Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MA..

Decoded Output download

<?  var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,i,r){if(e){for(i=$jscomp.global,t=t.split("."),r=0;r<t.length-1;r++){var n=t[r];n in i||(i[n]={}),i=i[n]}(e=e(r=i[t=t[t.length-1]]))!=r&&null!=e&&$jscomp.defineProperty(i,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.fill",(function(t){return t||function(t,e,i){var r=this.length||0;for(0>e&&(e=Math.max(0,r+e)),(null==i||i>r)&&(i=r),0>(i=Number(i))&&(i=Math.max(0,r+i)),e=Number(e||0);e<i;e++)this[e]=t;return this}}),"es6","es3"),$jscomp.polyfill("Math.imul",(function(t){return t||function(t,e){var i=65535&(t=Number(t)),r=65535&(e=Number(e));return i*r+((t>>>16&65535)*r+i*(e>>>16&65535)<<16>>>0)|0}}),"es6","es3"),$jscomp.polyfill("Number.isNaN",(function(t){return t||function(t){return"number"==typeof t&&isNaN(t)}}),"es6","es3"),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(t){var e=0;return $jscomp.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.iteratorFromArray=function(t,e){$jscomp.initSymbolIterator(),t instanceof String&&(t+="");var i=0,r={next:function(){if(i<t.length){var n=i++;return{value:e(n,t[n]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},$jscomp.polyfill("Array.prototype.keys",(function(t){return t||function(){return $jscomp.iteratorFromArray(this,(function(t){return t}))}}),"es6","es3"),$jscomp.polyfill("Object.setPrototypeOf",(function(t){return t||("object"!=typeof"".__proto__?null:function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t})}),"es6","es5"),$jscomp.makeIterator=function(t){$jscomp.initSymbolIterator();var e=t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.polyfill("Promise",(function(t){function e(){this.batch_=null}function i(t){return t instanceof n?t:new n((function(e,i){e(t)}))}if(t&&!$jscomp.FORCE_POLYFILL_PROMISE)return t;e.prototype.asyncExecute=function(t){return null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_()),this.batch_.push(t),this},e.prototype.asyncExecuteBatch_=function(){var t=this;this.asyncExecuteFunction((function(){t.executeBatch_()}))};var r=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){r(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var i=t[e];delete t[e];try{i()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction((function(){throw t}))};var n=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[];var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};n.prototype.createResolveAndReject_=function(){function t(t){return function(r){i||(i=!0,t.call(e,r))}}var e=this,i=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},n.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof n)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},n.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},n.prototype.reject_=function(t){this.settle_(2,t)},n.prototype.fulfill_=function(t){this.settle_(1,t)},n.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e|"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,this.executeOnSettledCallbacks_()},n.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var t=this.onSettledCallbacks_,e=0;e<t.length;++e)t[e].call(),t[e]=null;this.onSettledCallbacks_=null}};var o=new e;return n.prototype.settleSameAsPromise_=function(t){var e=this.createResolveAndReject_();t.callWhenSettled_(e.resolve,e.reject)},n.prototype.settleSameAsThenable_=function(t,e){var i=this.createResolveAndReject_();try{t.call(e,i.resolve,i.reject)}catch(t){i.reject(t)}},n.prototype.then=function(t,e){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(t){o(t)}}:e}var r,o,s=new n((function(t,e){r=t,o=e}));return this.callWhenSettled_(i(t,r),i(e,o)),s},n.prototype.catch=function(t){return this.then(void 0,t)},n.prototype.callWhenSettled_=function(t,e){function i(){switch(r.state_){case 1:t(r.result_);break;case 2:e(r.result_);break;default:throw Error("Unexpected state: "+r.state_)}}var r=this;null==this.onSettledCallbacks_?o.asyncExecute(i):this.onSettledCallbacks_.push((function(){o.asyncExecute(i)}))},n.resolve=i,n.reject=function(t){return new n((function(e,i){i(t)}))},n.race=function(t){return new n((function(e,r){for(var n=$jscomp.makeIterator(t),o=n.next();!o.done;o=n.next())i(o.value).callWhenSettled_(e,r)}))},n.all=function(t){var e=$jscomp.makeIterator(t),r=e.next();return r.done?i([]):new n((function(t,n){function o(e){return function(i){s[e]=i,0==--h&&t(s)}}var s=[],h=0;do{s.push(void 0),h++,i(r.value).callWhenSettled_(o(s.length-1),n),r=e.next()}while(!r.done)}))},n}),"es6","es3"),(window.webpackJsonp=window.webpackJsonp||[]).push([[3],[,,function(t,e){e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,i){(function(t){function r(t,e){this._id=t,this._clearFn=e}var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},i(7),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,i(2))},,,function(t,e){function i(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function n(t){if(f===setTimeout)return setTimeout(t,0);if((f===i||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function s(){p&&d&&(p=!1,d.length?c=d.concat(c):m=-1,c.length&&h())}function h(){if(!p){var t=n(s);p=!0;for(var e=c.length;e;){for(d=c,c=[];++m<e;)d&&d[m].run();m=-1,e=c.length}d=null,p=!1,o(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}t=t.exports={};try{var f="function"==typeof setTimeout?setTimeout:i}catch(t){f=i}try{var l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}var d,c=[],p=!1,m=-1;t.nextTick=function(t){var e=Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new a(t,e)),1!==c.length||p||n(h)},a.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=u,t.addListener=u,t.once=u,t.off=u,t.removeListener=u,t.removeAllListeners=u,t.emit=u,t.prependListener=u,t.prependOnceListener=u,t.listeners=function(t){return[]},t.binding=function(t){throw Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){(function(t,e){!function(t,i){function r(t){delete h[t]}function n(t){if(a)setTimeout(n,0,t);else{var e=h[t];if(e){a=!0;try{var i=e.callback,o=e.args;switch(o.length){case 0:i();break;case 1:i(o[0]);break;case 2:i(o[0],o[1]);break;case 3:i(o[0],o[1],o[2]);break;default:i.apply(void 0,o)}}finally{r(t),a=!1}}}}if(!t.setImmediate){var o,s=1,h={},a=!1,u=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?o=function(t){e.nextTick((function(){n(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?function(){var e="setImmediate$"+Math.random()+"$",i=function(i){i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&n(+i.data.slice(e.length))};t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),o=function(i){t.postMessage(e+i,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){n(t.data)},o=function(e){t.port2.postMessage(e)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;o=function(e){var i=u.createElement("script");i.onreadystatechange=function(){n(e),i.onreadystatechange=null,t.removeChild(i),i=null},t.appendChild(i)}}():o=function(t){setTimeout(n,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return h[s]={callback:t,args:e},o(s),s++},f.clearImmediate=r}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(2),i(6))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var r;t.exports=(r=i(40),i(72),i(251),i(252),i(59),i(60),i(90),i(143),i(253),i(144),i(254),i(255),i(256),i(91),i(257),i(52),i(42),i(258),i(259),i(260),i(261),i(262),i(263),i(264),i(265),i(266),i(267),i(268),i(269),i(270),i(271),i(272),i(273),r)},,function(t,e){t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},function(t,e,i){function r(t,e){for(var i in t)e[i]=t[i]}function n(t,e,i){return s(t,e,i)}var o=i(41),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=n),r(s,n),n.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,i)},n.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=s(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},n.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},n.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,i){(function(e){!function(e,i){t.exports=i()}(0,(function(){var t=t||function(t,r){if("undefined"!=typeof window&&window.crypto)var n=window.crypto;if(!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==e&&e.crypto&&(n=e.crypto),!n)try{n=i(145)}catch(t){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){return t.prototype=e,e=new t,t.prototype=null,e}}(),h={},a=h.lib={},u=a.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},f=a.WordArray=u.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,i=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var n=0;n<t;n++)e[r+n>>>2]|=(i[n>>>2]>>>24-n%4*8&255)<<24-(r+n)%4*8;else for(n=0;n<t;n+=4)e[r+n>>>2]=i[n>>>2];return this.sigBytes+=t,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4)e.push(o());return new f.init(e,t)}}),l=h.enc={},d=l.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var i=[],r=0;r<t;r++){var n=e[r>>>2]>>>24-r%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r+=2)i[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new f.init(i,e/2)}},c=l.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var i=[],r=0;r<t;r++)i.push(String.fromCharCode(e[r>>>2]>>>24-r%4*8&255));return i.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r++)i[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new f.init(i,e)}},p=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},m=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i,r=this._data,n=r.words,o=r.sigBytes,s=this.blockSize,h=o/(4*s);if(e=(h=e?t.ceil(h):t.max((0|h)-this._minBufferSize,0))*s,o=t.min(4*e,o),e){for(i=0;i<e;i+=s)this._doProcessBlock(n,i);i=n.splice(0,e),r.sigBytes-=o}return new f.init(i,o)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=m.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new g.HMAC.init(t,i).finalize(e)}}});var g=h.algo={};return h}(Math);return t}))}).call(this,i(2))},function(t,e,i){(function(t){function r(t,e){if((n.TYPED_ARRAY_SUPPORT?2147483647:1073741823)<e)throw new RangeError("Invalid typed array length");return n.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=n.prototype:(null===t&&(t=new n(e)),t.length=e),t}function n(t,e,i){if(!(n.TYPED_ARRAY_SUPPORT||this instanceof n))return new n(t,e,i);if("number"==typeof t){if("string"==typeof e)throw Error("If encoding is specified then the first argument must be a string");return h(this,t)}return o(this,t,e,i)}function o(t,e,i,o){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){if(e.byteLength,0>i||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(o||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,i):new Uint8Array(e,i,o),n.TYPED_ARRAY_SUPPORT?(t=e).__proto__=n.prototype:t=a(t,e),t}if("string"==typeof e){if(o=t,"string"==typeof(t=i)&&""!==t||(t="utf8"),!n.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return(e=(o=r(o,i=0|f(e,t))).write(e,t))!==i&&(o=o.slice(0,e)),o}return function(t,e){if(n.isBuffer(e)){var i=0|u(e.length);return 0===(t=r(t,i)).length||e.copy(t,0,0,i),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return(i="number"!=typeof e.length)||(i=(i=e.length)!=i),i?r(t,0):a(t,e);if("Buffer"===e.type&&B(e.data))return a(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(0>t)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(s(e),t=r(t,0>e?0:0|u(e)),!n.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function a(t,e){var i=0>e.length?0:0|u(e.length);t=r(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function u(t){if(t>=(n.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(n.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return 0|t}function f(t,e){if(n.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return x.toByteArray(S(t)).length;default:if(r)return k(t).length;e=(""+e).toLowerCase(),r=!0}}function l(t,e,i){var r=!1;if((void 0===e||0>e)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),0>=i)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":for(t=e,e=i,i=this.length,(!t||0>t)&&(t=0),(!e||0>e||e>i)&&(e=i),r="",i=t;i<e;++i)r=(t=r)+(r=16>(r=this[i])?"0"+r.toString(16):r.toString(16));return r;case"utf8":case"utf-8":return m(this,e,i);case"ascii":for(t="",i=Math.min(this.length,i);e<i;++e)t+=String.fromCharCode(127&this[e]);return t;case"latin1":case"binary":for(t="",i=Math.min(this.length,i);e<i;++e)t+=String.fromCharCode(this[e]);return t;case"base64":return e=0===e&&i===this.length?x.fromByteArray(this):x.fromByteArray(this.slice(e,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(e=this.slice(e,i),i="",t=0;t<e.length;t+=2)i+=String.fromCharCode(e[t]+256*e[t+1]);return i;default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function d(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function c(t,e,i,r,o){if(0===t.length)return-1;if("string"==typeof i?(r=i,i=0):2147483647<i?i=2147483647:-2147483648>i&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:t.length-1),0>i&&(i=t.length+i),i>=t.length){if(o)return-1;i=t.length-1}else if(0>i){if(!o)return-1;i=0}if("string"==typeof e&&(e=n.from(e,r)),n.isBuffer(e))return 0===e.length?-1:p(t,e,i,r,o);if("number"==typeof e)return e&=255,n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):p(t,[e],i,r,o);throw new TypeError("val must be string, number or Buffer")}function p(t,e,i,r,n){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,h=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(2>t.length||2>e.length)return-1;s=2,h/=2,a/=2,i/=2}if(n)for(r=-1;i<h;i++)if(o(t,i)===o(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===a)return r*s}else-1!==r&&(i-=i-r),r=-1;else for(i+a>h&&(i=h-a);0<=i;i--){for(h=!0,r=0;r<a;r++)if(o(t,i+r)!==o(e,r)){h=!1;break}if(h)return i}return-1}function m(t,e,i){i=Math.min(t.length,i);for(var r=[];e<i;){var n=t[e],o=null,s=239<n?4:223<n?3:191<n?2:1;if(e+s<=i)switch(s){case 1:128>n&&(o=n);break;case 2:var h=t[e+1];128==(192&h)&&(127<(n=(31&n)<<6|63&h)&&(o=n));break;case 3:h=t[e+1];var a=t[e+2];128==(192&h)&&128==(192&a)&&(2047<(n=(15&n)<<12|(63&h)<<6|63&a)&&(55296>n||57343<n)&&(o=n));break;case 4:h=t[e+1],a=t[e+2];var u=t[e+3];128==(192&h)&&128==(192&a)&&128==(192&u)&&(65535<(n=(15&n)<<18|(63&h)<<12|(63&a)<<6|63&u)&&1114112>n&&(o=n))}null===o?(o=65533,s=1):65535<o&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),e+=s}if((t=r.length)<=I)r=String.fromCharCode.apply(String,r);else{for(i="",e=0;e<t;)i+=String.fromCharCode.apply(String,r.slice(e,e+=I));r=i}return r}function g(t,e,i){if(0!=t%1||0>t)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function b(t,e,i,r,o,s){if(!n.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<s)throw new RangeError('"value" argument is out of bounds');if(i+r>t.length)throw new RangeError("Index out of range")}function v(t,e,i,r){0>e&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n<o;++n)t[i+n]=(e&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function y(t,e,i,r){0>e&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n<o;++n)t[i+n]=e>>>8*(r?n:3-n)&255}function M(t,e,i,r,n,o){if(i+r>t.length)throw new RangeError("Index out of range");if(0>i)throw new RangeError("Index out of range")}function w(t,e,i,r,n){return n||M(t,0,i,4),R.write(t,e,i,r,23,4),i+4}function _(t,e,i,r,n){return n||M(t,0,i,8),R.write(t,e,i,r,52,8),i+8}function S(t){if(2>(t=(t=t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(T,"")).length)return"";for(;0!=t.length%4;)t+="=";return t}function k(t,e){e=e||1/0;for(var i,r=t.length,n=null,o=[],s=0;s<r;++s){if(55295<(i=t.charCodeAt(s))&&57344>i){if(!n){if(56319<i){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===r){-1<(e-=3)&&o.push(239,191,189);continue}n=i;continue}if(56320>i){-1<(e-=3)&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&-1<(e-=3)&&o.push(239,191,189);if(n=null,128>i){if(0>--e)break;o.push(i)}else if(2048>i){if(0>(e-=2))break;o.push(i>>6|192,63&i|128)}else if(65536>i){if(0>(e-=3))break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(1114112>i))throw Error("Invalid code point");if(0>(e-=4))break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function A(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function E(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length||n>=t.length);++n)e[n+i]=t[n];return n}var x=i(146),R=i(147),B=i(92);e.Buffer=n,e.SlowBuffer=function(t){return+t!=t&&(t=0),n.alloc(+t)},e.INSPECT_MAX_BYTES=50,n.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n.TYPED_ARRAY_SUPPORT?2147483647:1073741823,n.poolSize=8192,n._augment=function(t){return t.__proto__=n.prototype,t},n.from=function(t,e,i){return o(null,t,e,i)},n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0})),n.alloc=function(t,e,i){return s(t),t=0>=t?r(null,t):void 0!==e?"string"==typeof i?r(null,t).fill(e,i):r(null,t).fill(e):r(null,t)},n.allocUnsafe=function(t){return h(null,t)},n.allocUnsafeSlow=function(t){return h(null,t)},n.isBuffer=function(t){return!(null==t||!t._isBuffer)},n.compare=function(t,e){if(!n.isBuffer(t)||!n.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,o=0,s=Math.min(i,r);o<s;++o)if(t[o]!==e[o]){i=t[o],r=e[o];break}return i<r?-1:r<i?1:0},n.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(t,e){if(!B(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return n.alloc(0);var i;if(void 0===e)for(i=e=0;i<t.length;++i)e+=t[i].length;e=n.allocUnsafe(e);var r=0;for(i=0;i<t.length;++i){var o=t[i];if(!n.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(e,r),r+=o.length}return e},n.byteLength=f,n.prototype._isBuffer=!0,n.prototype.swap16=function(){var t=this.length;if(0!=t%2)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},n.prototype.swap32=function(){var t=this.length;if(0!=t%4)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},n.prototype.swap64=function(){var t=this.length;if(0!=t%8)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},n.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?m(this,0,t):l.apply(this,arguments)},n.prototype.equals=function(t){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===n.compare(this,t)},n.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},n.prototype.compare=function(t,e,i,r,o){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),0>e||i>t.length||0>r||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=i)return 0;if(r>=o)return-1;if(e>=i)return 1;if(this===t)return 0;var s=(o>>>=0)-(r>>>=0),h=(i>>>=0)-(e>>>=0),a=Math.min(s,h);for(r=this.slice(r,o),t=t.slice(e,i),e=0;e<a;++e)if(r[e]!==t[e]){s=r[e],h=t[e];break}return s<h?-1:h<s?1:0},n.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},n.prototype.indexOf=function(t,e,i){return c(this,t,e,i,!0)},n.prototype.lastIndexOf=function(t,e,i){return c(this,t,e,i,!1)},n.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else{if(!isFinite(e))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-e;if((void 0===i||i>n)&&(i=n),0<t.length&&(0>i||0>e)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");for(r||(r="utf8"),n=!1;;)switch(r){case"hex":t:{if(e=Number(e)||0,r=this.length-e,i?(i=Number(i))>r&&(i=r):i=r,0!=(r=t.length)%2)throw new TypeError("Invalid hex string");for(i>r/2&&(i=r/2),r=0;r<i;++r){if(n=parseInt(t.substr(2*r,2),16),isNaN(n)){t=r;break t}this[e+r]=n}t=r}return t;case"utf8":case"utf-8":return E(k(t,this.length-e),this,e,i);case"ascii":return E(A(t),this,e,i);case"latin1":case"binary":return E(A(t),this,e,i);case"base64":return E(x.toByteArray(S(t)),this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=t,n=this.length-e;for(var o=[],s=0;s<r.length&&!(0>(n-=2));++s){var h=r.charCodeAt(s);t=h>>8,h%=256,o.push(h),o.push(t)}return E(o,this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),n=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;n.prototype.slice=function(t,e){var i=this.length;if(0>(t=~~t)?0>(t+=i)&&(t=0):t>i&&(t=i),0>(e=void 0===e?i:~~e)?0>(e+=i)&&(e=0):e>i&&(e=i),e<t&&(e=t),n.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,e)).__proto__=n.prototype;else{e=new n(i=e-t,void 0);for(var r=0;r<i;++r)e[r]=this[r+t]}return e},n.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=this[t];for(var r=1,n=0;++n<e&&(r*=256);)i+=this[t+n]*r;return i},n.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=this[t+--e];for(var r=1;0<e&&(r*=256);)i+=this[t+--e]*r;return i},n.prototype.readUInt8=function(t,e){return e||g(t,1,this.length),this[t]},n.prototype.readUInt16LE=function(t,e){return e||g(t,2,this.length),this[t]|this[t+1]<<8},n.prototype.readUInt16BE=function(t,e){return e||g(t,2,this.length),this[t]<<8|this[t+1]},n.prototype.readUInt32LE=function(t,e){return e||g(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},n.prototype.readUInt32BE=function(t,e){return e||g(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},n.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=this[t];for(var r=1,n=0;++n<e&&(r*=256);)i+=this[t+n]*r;return i>=128*r&&(i-=Math.pow(2,8*e)),i},n.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=e;for(var r=1,n=this[t+--i];0<i&&(r*=256);)n+=this[t+--i]*r;return n>=128*r&&(n-=Math.pow(2,8*e)),n},n.prototype.readInt8=function(t,e){return e||g(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},n.prototype.readInt16LE=function(t,e){return e||g(t,2,this.length),32768&(t=this[t]|this[t+1]<<8)?4294901760|t:t},n.prototype.readInt16BE=function(t,e){return e||g(t,2,this.length),32768&(t=this[t+1]|this[t]<<8)?4294901760|t:t},n.prototype.readInt32LE=function(t,e){return e||g(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},n.prototype.readInt32BE=function(t,e){return e||g(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},n.prototype.readFloatLE=function(t,e){return e||g(t,4,this.length),R.read(this,t,!0,23,4)},n.prototype.readFloatBE=function(t,e){return e||g(t,4,this.length),R.read(this,t,!1,23,4)},n.prototype.readDoubleLE=function(t,e){return e||g(t,8,this.length),R.read(this,t,!0,52,8)},n.prototype.readDoubleBE=function(t,e){return e||g(t,8,this.length),R.read(this,t,!1,52,8)},n.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||b(this,t,e,i,Math.pow(2,8*i)-1,0),r=1;var n=0;for(this[e]=255&t;++n<i&&(r*=256);)this[e+n]=t/r&255;return e+i},n.prototype.writeUIntBE=function(t,e,i,r){t=+t,e|=0,i|=0,r||b(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1;for(this[e+(r=i-1)]=255&t;0<=--r&&(n*=256);)this[e+r]=t/n&255;return e+i},n.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,1,255,0),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},n.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):v(this,t,e,!0),e+2},n.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):v(this,t,e,!1),e+2},n.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):y(this,t,e,!0),e+4},n.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):y(this,t,e,!1),e+4},n.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||b(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r),r=0;var n=1,o=0;for(this[e]=255&t;++r<i&&(n*=256);)0>t&&0===o&&0!==this[e+r-1]&&(o=1),this[e+r]=(t/n>>0)-o&255;return e+i},n.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||b(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=1,o=0;for(this[e+(r=i-1)]=255&t;0<=--r&&(n*=256);)0>t&&0===o&&0!==this[e+r+1]&&(o=1),this[e+r]=(t/n>>0)-o&255;return e+i},n.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,1,127,-128),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[e]=255&t,e+1},n.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):v(this,t,e,!0),e+2},n.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):v(this,t,e,!1),e+2},n.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):y(this,t,e,!0),e+4},n.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):y(this,t,e,!1),e+4},n.prototype.writeFloatLE=function(t,e,i){return w(this,t,e,!0,i)},n.prototype.writeFloatBE=function(t,e,i){return w(this,t,e,!1,i)},n.prototype.writeDoubleLE=function(t,e,i){return _(this,t,e,!0,i)},n.prototype.writeDoubleBE=function(t,e,i){return _(this,t,e,!1,i)},n.prototype.copy=function(t,e,i,r){if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),0<r&&r<i&&(r=i),r===i||0===t.length||0===this.length)return 0;if(0>e)throw new RangeError("targetStart out of bounds");if(0>i||i>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);var o=r-i;if(this===t&&i<e&&e<r)for(r=o-1;0<=r;--r)t[r+e]=this[r+i];else if(1e3>o||!n.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},n.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===t.length){var o=t.charCodeAt(0);256>o&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!n.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(0>e||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else for(o=(t=n.isBuffer(t)?t:k(new n(t,r).toString())).length,r=0;r<i-e;++r)this[r+e]=t[r%o];return this};var T=/[^+\/0-9A-Za-z-_]/g}).call(this,i(2))},function(t,e,i){var r;t.exports=(r=i(40),i(52),void(r.lib.Cipher||function(t){var e=r.lib,i=e.Base,n=e.WordArray,o=e.BufferedBlockAlgorithm,s=r.enc.Base64,h=r.algo.EvpKDF,a=e.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(t){return{encrypt:function(e,i,r){return("string"==typeof i?p:c).encrypt(t,e,i,r)},decrypt:function(e,i,r){return("string"==typeof i?p:c).decrypt(t,e,i,r)}}}});e.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=r.mode={},f=e.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}});u=u.CBC=function(){function t(t,e,i){var r;(r=this._iv)?this._iv=void 0:r=this._prevBlock;for(var n=0;n<i;n++)t[e+n]^=r[n]}var e=f.extend();return e.Encryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize;t.call(this,e,i,n),r.encryptBlock(e,i),this._prevBlock=e.slice(i,i+n)}}),e.Decryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize,o=e.slice(i,i+n);r.decryptBlock(e,i),t.call(this,e,i,n),this._prevBlock=o}}),e}();var l=(r.pad={}).Pkcs7={pad:function(t,e){e*=4;for(var i=(e-=t.sigBytes%e)<<24|e<<16|e<<8|e,r=[],o=0;o<e;o+=4)r.push(i);e=n.create(r,e),t.concat(e)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}};e.BlockCipher=a.extend({cfg:a.cfg.extend({mode:u,padding:l}),reset:function(){a.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,e&&e.words):(this._mode=t.call(i,this,e&&e.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var d=e.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}});u=(r.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?n.create([1398893684,1701076831]).concat(t).concat(e):e).toString(s)},parse:function(t){var e=(t=s.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var i=n.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return d.create({ciphertext:t,salt:i})}};var c=e.SerializableCipher=i.extend({cfg:i.extend({format:u}),encrypt:function(t,e,i,r){r=this.cfg.extend(r);var n=t.createEncryptor(i,r);return e=n.finalize(e),n=n.cfg,d.create({ciphertext:e,key:i,iv:n.iv,algorithm:t,mode:n.mode,padding:n.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,i,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(i,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}});i=(r.kdf={}).OpenSSL={execute:function(t,e,i,r){return r||(r=n.random(8)),t=h.create({keySize:e+i}).compute(t,r),i=n.create(t.words.slice(e),4*i),t.sigBytes=4*e,d.create({key:t,iv:i,salt:r})}};var p=e.PasswordBasedCipher=c.extend({cfg:c.cfg.extend({kdf:i}),encrypt:function(t,e,i,r){return i=(r=this.cfg.extend(r)).kdf.execute(i,t.keySize,t.ivSize),r.iv=i.iv,(t=c.encrypt.call(this,t,e,i.key,r)).mixIn(i),t},decrypt:function(t,e,i,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),i=r.kdf.execute(i,t.keySize,t.ivSize,e.salt),r.iv=i.iv,c.decrypt.call(this,t,e,i.key,r)}})}()))},function(t,e){function i(t,e){if(!t)throw Error(e||"Assertion failed")}t.exports=i,i.equal=function(t,e,i){if(t!=e)throw Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){var r=i(47);t=i(43),i=i(129),e.assert=t,e.toArray=i.toArray,e.zero2=i.zero2,e.toHex=i.toHex,e.encode=i.encode,e.getNAF=function(t,e,i){(i=Array(Math.max(t.bitLength(),i)+1)).fill(0),e=1<<e+1,t=t.clone();for(var r=0;r<i.length;r++){var n=t.andln(e-1);t.isOdd()?(n=n>(e>>1)-1?(e>>1)-n:n,t.isubn(n)):n=0,i[r]=n,t.iushrn(1)}return i},e.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r=0,n=0;0<t.cmpn(-r)||0<e.cmpn(-n);){var o=t.andln(3)+r&3,s=e.andln(3)+n&3;if(3===o&&(o=-1),3===s&&(s=-1),0==(1&o))var h=0;else{var a=t.andln(7)+r&7;h=3!==a&&5!==a||2!==s?o:-o}i[0].push(h),0==(1&s)?a=0:a=3!==(a=e.andln(7)+n&7)&&5!==a||2!==o?s:-s,i[1].push(a),2*r===h+1&&(r=1-r),2*n===a+1&&(n=1-n),t.iushrn(1),e.iushrn(1)}return i},e.cachedProperty=function(t,e,i){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=i.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new r(t,"hex","le")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){function r(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function n(t){return 1===t.length?"0"+t:t}function o(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var s=i(43);t=i(38),e.inherits=t,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"==typeof t)if(e){if("hex"===e)for(0!=(t=t.replace(/[^a-z0-9]+/gi,"")).length%2&&(t="0"+t),r=0;r<t.length;r+=2)i.push(parseInt(t[r]+t[r+1],16))}else for(var r=e=0;r<t.length;r++){var n=t.charCodeAt(r);if(128>n)i[e++]=n;else{if(2048>n)i[e++]=n>>6|192;else{var o=t,s=r;(o=55296==(64512&o.charCodeAt(s))&&(!(0>s||s+1>=o.length)&&56320==(64512&o.charCodeAt(s+1))))?(n=65536+((1023&n)<<10)+(1023&t.charCodeAt(++r)),i[e++]=n>>18|240,i[e++]=n>>12&63|128):i[e++]=n>>12|224,i[e++]=n>>6&63|128}i[e++]=63&n|128}}else for(r=0;r<t.length;r++)i[r]=0|t[r];return i},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=n(t[i].toString(16));return e},e.htonl=r,e.toHex32=function(t,e){for(var i="",n=0;n<t.length;n++){var s=t[n];"little"===e&&(s=r(s)),i+=o(s.toString(16))}return i},e.zero2=n,e.zero8=o,e.join32=function(t,e,i,r){s(0==(i-=e)%4),i=Array(i/4);for(var n=0;n<i.length;n++,e+=4)i[n]=("big"===r?t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]:t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0;return i},e.split32=function(t,e){for(var i=Array(4*t.length),r=0,n=0;r<t.length;r++,n+=4){var o=t[r];"big"===e?(i[n]=o>>>24,i[n+1]=o>>>16&255,i[n+2]=o>>>8&255,i[n+3]=255&o):(i[n+3]=o>>>24,i[n+2]=o>>>16&255,i[n+1]=o>>>8&255,i[n]=255&o)}return i},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,i){return t+e+i>>>0},e.sum32_4=function(t,e,i,r){return t+e+i+r>>>0},e.sum32_5=function(t,e,i,r,n){return t+e+i+r+n>>>0},e.sum64=function(t,e,i,r){var n=r+t[e+1]>>>0;t[e]=(n<r?1:0)+i+t[e]>>>0,t[e+1]=n},e.sum64_hi=function(t,e,i,r){return(e+r>>>0<e?1:0)+t+i>>>0},e.sum64_lo=function(t,e,i,r){return e+r>>>0},e.sum64_4_hi=function(t,e,i,r,n,o,s,h){return e=0+((r=e+r>>>0)<e?1:0),t+i+n+s+((e+=(r=r+o>>>0)<o?1:0)+(r+h>>>0<h?1:0))>>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,h){return e+r+o+h>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,h,a,u){return e=0+((r=e+r>>>0)<e?1:0),e+=(r=r+o>>>0)<o?1:0,t+i+n+s+a+((e+=(r=r+h>>>0)<h?1:0)+(r+u>>>0<u?1:0))>>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,h,a,u){return e+r+o+h+u>>>0},e.rotr64_hi=function(t,e,i){return(e<<32-i|t>>>i)>>>0},e.rotr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0},e.shr64_hi=function(t,e,i){return t>>>i},e.shr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0}},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(208).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){function r(t){o.call(this),(this.hashMode="string"==typeof t)?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._encoding=this._decoder=null}var n=i(39).Buffer,o=i(161).Transform,s=i(50).StringDecoder;i(38)(r,o),r.prototype.update=function(t,e,i){return"string"==typeof t&&(t=n.from(t,e)),t=this._update(t),this.hashMode?this:(i&&(t=this._toString(t,i)),t)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},r.prototype._transform=function(t,e,i){try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){var r=t}finally{i(r)}},r.prototype._flush=function(t){try{this.push(this.__final())}catch(t){var e=t}t(e)},r.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},r.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new s(e),this._encoding=e),this._encoding!==e)throw Error("can't switch encodings");return t=this._decoder.write(t),i&&(t+=this._decoder.end()),t},t.exports=r},function(t,e,i){function r(){r.init.call(this)}function n(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function o(t,e,i,o){n(i);var s=t._events;if(void 0===s)s=t._events=Object.create(null),t._eventsCount=0;else{void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events);var h=s[e]}return void 0===h?(s[e]=i,++t._eventsCount):("function"==typeof h?h=s[e]=o?[i,h]:[h,i]:o?h.unshift(i):h.push(i),0<(i=void 0===t._maxListeners?r.defaultMaxListeners:t._maxListeners)&&h.length>i&&!h.warned&&(h.warned=!0,(i=Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=h.length,console&&console.warn&&console.warn(i))),t}function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,i){return t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},(e=s.bind(t)).listener=i,t.wrapFn=e}function a(t,e,i){if(void 0===(t=t._events))return[];if(void 0===(e=t[e]))return[];if("function"==typeof e)return i?[e.listener||e]:[e];if(i)for(i=Array(e.length),t=0;t<i.length;++t)i[t]=e[t].listener||e[t];else i=f(e,e.length);return i}function u(t){var e=this._events;if(void 0!==e){if("function"==typeof(t=e[t]))return 1;if(void 0!==t)return t.length}return 0}function f(t,e){for(var i=Array(e),r=0;r<e;++r)i[r]=t[r];return i}var l=(e="object"==typeof Reflect?Reflect:null)&&"function"==typeof e.apply?e.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},d=e&&"function"==typeof e.ownKeys?e.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},c=Number.isNaN||function(t){return t!=t};t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var p=10;Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return p},set:function(t){if("number"!=typeof t||0>t||c(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");p=t}}),r.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(t){if("number"!=typeof t||0>t||c(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},r.prototype.getMaxListeners=function(){return void 0===this._maxListeners?r.defaultMaxListeners:this._maxListeners},r.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);i="error"===t;var r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var n;if(0<e.length&&(n=e[0]),n instanceof Error)throw n;throw(e=Error("Unhandled error."+(n?" ("+n.message+")":""))).context=n,e}if(void 0===(i=r[t]))return!1;if("function"==typeof i)l(i,this,e);else for(r=f(i,n=i.length),i=0;i<n;++i)l(r[i],this,e);return!0},r.prototype.addListener=function(t,e){return o(this,t,e,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(t,e){return o(this,t,e,!0)},r.prototype.once=function(t,e){return n(e),this.on(t,h(this,t,e)),this},r.prototype.prependOnceListener=function(t,e){return n(e),this.prependListener(t,h(this,t,e)),this},r.prototype.removeListener=function(t,e){var i;n(e);var r=this._events;if(void 0===r)return this;var o=r[t];if(void 0===o)return this;if(o===e||o.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,o.listener||e));else if("function"!=typeof o){var s=-1;for(i=o.length-1;0<=i;i--)if(o[i]===e||o[i].listener===e){var h=o[i].listener;s=i;break}if(0>s)return this;if(0===s)o.shift();else{for(;s+1<o.length;s++)o[s]=o[s+1];o.pop()}1===o.length&&(r[t]=o[0]),void 0!==r.removeListener&&this.emit("removeListener",t,h||e)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(t){var e=this._events;if(void 0===e)return this;if(void 0===e.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==e[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete e[t]),this;if(0===arguments.length){var i=Object.keys(e);for(e=0;e<i.length;++e){var r=i[e];"removeListener"!==r&&this.removeAllListeners(r)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(i=e[t]))this.removeListener(t,i);else if(void 0!==i)for(e=i.length-1;0<=e;e--)this.removeListener(t,i[e]);return this},r.prototype.listeners=function(t){return a(this,t,!0)},r.prototype.rawListeners=function(t){return a(this,t,!1)},r.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):u.call(t,e)},r.prototype.listenerCount=u,r.prototype.eventNames=function(){return 0<this._eventsCount?d(this._events):[]}},function(t,e,i){function r(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(d.isEncoding===c||!c(t)))throw Error("Unknown encoding: "+t);switch(this.encoding=e||t,this.encoding){case"utf16le":this.text=s,this.end=h,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=a,this.end=u,t=3;break;default:return this.write=f,void(this.end=l)}this.lastTotal=this.lastNeed=0,this.lastChar=d.allocUnsafe(t)}function n(t){return 127>=t?0:6==t>>5?2:14==t>>4?3:30==t>>3?4:2==t>>6?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed;t:if(128!=(192&t[0])){this.lastNeed=0;var i=""}else{if(1<this.lastNeed&&1<t.length){if(128!=(192&t[1])){this.lastNeed=1,i="";break t}if(2<this.lastNeed&&2<t.length&&128!=(192&t[2])){this.lastNeed=2,i="";break t}}i=void 0}return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if(0==(t.length-e)%2){if(e=t.toString("utf16le",e)){var i=e.charCodeAt(e.length-1);if(55296<=i&&56319>=i)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):t}function a(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function u(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(t){return t.toString(this.encoding)}function l(t){return t&&t.length?this.write(t):""}var d=i(39).Buffer,c=d.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};e.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";if(this.lastNeed){var e=this.fillLast(t);if(void 0===e)return"";var i=this.lastNeed;this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},r.prototype.end=function(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+"":t},r.prototype.text=function(t,e){var i=function(t,e,i){var r=e.length-1;if(r<i)return 0;var o=n(e[r]);return 0<=o?(0<o&&(t.lastNeed=o-1),o):--r<i||-2===o?0:0<=(o=n(e[r]))?(0<o&&(t.lastNeed=o-2),o):--r<i||-2===o?0:0<=(o=n(e[r]))?(0<o&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);return this.lastNeed?(this.lastTotal=i,i=t.length-(i-this.lastNeed),t.copy(this.lastChar,0,i),t.toString("utf8",e,i)):t.toString("utf8",e)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);h.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||s.nextTick(o,this)}function o(t){t.end()}var s=i(67);e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i},t.exports=r,(t=i(62)).inherits=i(38);var h=i(102),a=i(79);for(t.inherits(r,h),i=e(a.prototype),t=0;t<i.length;t++)e=i[t],r.prototype[e]||(r.prototype[e]=a.prototype[e]);Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),s.nextTick(e,t)}},function(t,e,i){var r;t.exports=(r=i(40),i(90),i(91),function(){var t=r.lib,e=t.Base,i=t.WordArray,n=(t=r.algo).EvpKDF=e.extend({cfg:e.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg,n=r.hasher.create(),o=i.create(),s=o.words,h=r.keySize;for(r=r.iterations;s.length<h;){a&&n.update(a);var a=n.update(t).finalize(e);n.reset();for(var u=1;u<r;u++)a=n.finalize(a),n.reset();o.concat(a)}return o.sigBytes=4*h,o}});r.EvpKDF=function(t,e,i){return n.create(i).compute(t,e)}}(),r.EvpKDF)},function(t,e,i){(function(e,r){var n=i(39).Buffer,o=e.crypto||e.msCrypto;t.exports=o&&o.getRandomValues?function(t,e){if(4294967295<t)throw new RangeError("requested too many random bytes");var i=n.allocUnsafe(t);if(0<t)if(65536<t)for(var s=0;s<t;s+=65536)o.getRandomValues(i.slice(s,s+65536));else o.getRandomValues(i);return"function"==typeof e?r.nextTick((function(){e(null,i)})):i}:function(){throw Error("Secure random number generation is not supported by this browser.
Use Chrome, Firefox or Internet Explorer 11")}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e,i){i||(i=Error);var r=function(t){function i(i,r,n){return t.call(this,"string"==typeof e?e:e(i,r,n))||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t),i}(i);r.prototype.name=i.name,r.prototype.code=t,o[t]=r}function n(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),2<i?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}var o={};r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,i){var r;(r="string"==typeof e)&&(r="not "===e.substr(0,4)),r?(r="must not be",e=e.replace(/^not /,"")):r="must be";var o=void 0;return(void 0===o||o>t.length)&&(o=t.length)," argument"===t.substring(o-9,o)?t="The ".concat(t," ").concat(r," ").concat(n(e,"type")):("number"!=typeof(o=void 0)&&(o=0),o=(o=!(o+1>t.length)&&-1!==t.indexOf(".",o))?"property":"argument",t='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(n(e,"type"))),t+". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},function(t,e,i){(function(e){function r(t){if(!(this instanceof r))return new r(t);h.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",n)))}function n(){this._writableState.ended||e.nextTick(o,this)}function o(t){t.end()}var s=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};t.exports=r;var h=i(94),a=i(98);i(38)(r,h),s=s(a.prototype);for(var u=0;u<s.length;u++){var f=s[u];r.prototype[f]||(r.prototype[f]=a.prototype[f])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(r.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(r.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i(6))},function(t,e,i){function r(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}var n=i(39).Buffer;r.prototype.update=function(t,e){"string"==typeof t&&(t=n.from(t,e||"utf8")),e=this._block;for(var i=this._blockSize,r=t.length,o=this._len,s=0;s<r;){for(var h=o%i,a=Math.min(r-s,i-h),u=0;u<a;u++)e[h+u]=t[s+u];s+=a,0==(o+=a)%i&&this._update(e)}return this._len+=r,this},r.prototype.digest=function(t){var e=this._len%this._blockSize;if(this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0)),4294967295>=(e=8*this._len))this._block.writeUInt32BE(e,this._blockSize-4);else{var i=(4294967295&e)>>>0;this._block.writeUInt32BE((e-i)/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}return this._update(this._block),e=this._hash(),t?e.toString(t):e},r.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){function r(t,e,i){i||(i=Error);var r=function(t){function i(i,r,n){return t.call(this,"string"==typeof e?e:e(i,r,n))||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t),i}(i);r.prototype.name=i.name,r.prototype.code=t,o[t]=r}function n(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),2<i?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}var o={};r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,i){var r;(r="string"==typeof e)&&(r="not "===e.substr(0,4)),r?(r="must not be",e=e.replace(/^not /,"")):r="must be";var o=void 0;return(void 0===o||o>t.length)&&(o=t.length)," argument"===t.substring(o-9,o)?t="The ".concat(t," ").concat(r," ").concat(n(e,"type")):("number"!=typeof(o=void 0)&&(o=0),o=(o=!(o+1>t.length)&&-1!==t.indexOf(".",o))?"property":"argument",t='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(n(e,"type"))),t+". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},function(t,e,i){(function(e){function r(t){if(!(this instanceof r))return new r(t);h.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",n)))}function n(){this._writableState.ended||e.nextTick(o,this)}function o(t){t.end()}var s=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};t.exports=r;var h=i(123),a=i(127);i(38)(r,h),s=s(a.prototype);for(var u=0;u<s.length;u++){var f=s[u];r.prototype[f]||(r.prototype[f]=a.prototype[f])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(r.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(r.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i(6))},function(t,e,i){var r,n;t.exports=(n=i(40),r=n.lib.WordArray,void(n.enc.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,r=this._map;t.clamp(),t=[];for(var n=0;n<i;n+=3)for(var o=(e[n>>>2]>>>24-n%4*8&255)<<16|(e[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|e[n+2>>>2]>>>24-(n+2)%4*8&255,s=0;4>s&&n+.75*s<i;s++)t.push(r.charAt(o>>>6*(3-s)&63));if(e=r.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var e=t.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<i.length;o++)n[i.charCodeAt(o)]=o}(i=i.charAt(64))&&-1!==(i=t.indexOf(i))&&(e=i),i=[];for(var s=o=0;s<e;s++)if(s%4){var h=n[t.charCodeAt(s-1)]<<s%4*2,a=n[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(h|a)<<24-o%4*8,o++}return r.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}),n.enc.Base64)},function(t,e,i){var r;t.exports=(r=i(40),function(t){function e(t,e,i,r,n,o,s){return((t=t+(e&i|~e&r)+n+s)<<o|t>>>32-o)+e}function i(t,e,i,r,n,o,s){return((t=t+(e&r|i&~r)+n+s)<<o|t>>>32-o)+e}function n(t,e,i,r,n,o,s){return((t=t+(e^i^r)+n+s)<<o|t>>>32-o)+e}function o(t,e,i,r,n,o,s){return((t=t+(i^(e|~r))+n+s)<<o|t>>>32-o)+e}var s=r.lib,h=s.WordArray,a=s.Hasher;s=r.algo;var u=[];!function(){for(var e=0;64>e;e++)u[e]=4294967296*t.abs(t.sin(e+1))|0}(),s=s.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var s=0;16>s;s++){var h=r+s,a=t[h];t[h]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}s=this._hash.words,h=t[r+0],a=t[r+1];var f=t[r+2],l=t[r+3],d=t[r+4],c=t[r+5],p=t[r+6],m=t[r+7],g=t[r+8],b=t[r+9],v=t[r+10],y=t[r+11],M=t[r+12],w=t[r+13],_=t[r+14];t=t[r+15],r=s[0];var S=s[1],k=s[2],A=s[3];r=e(r,S,k,A,h,7,u[0]),A=e(A,r,S,k,a,12,u[1]),k=e(k,A,r,S,f,17,u[2]),S=e(S,k,A,r,l,22,u[3]),r=e(r,S,k,A,d,7,u[4]),A=e(A,r,S,k,c,12,u[5]),k=e(k,A,r,S,p,17,u[6]),S=e(S,k,A,r,m,22,u[7]),r=e(r,S,k,A,g,7,u[8]),A=e(A,r,S,k,b,12,u[9]),k=e(k,A,r,S,v,17,u[10]),S=e(S,k,A,r,y,22,u[11]),r=e(r,S,k,A,M,7,u[12]),A=e(A,r,S,k,w,12,u[13]),k=e(k,A,r,S,_,17,u[14]),r=i(r,S=e(S,k,A,r,t,22,u[15]),k,A,a,5,u[16]),A=i(A,r,S,k,p,9,u[17]),k=i(k,A,r,S,y,14,u[18]),S=i(S,k,A,r,h,20,u[19]),r=i(r,S,k,A,c,5,u[20]),A=i(A,r,S,k,v,9,u[21]),k=i(k,A,r,S,t,14,u[22]),S=i(S,k,A,r,d,20,u[23]),r=i(r,S,k,A,b,5,u[24]),A=i(A,r,S,k,_,9,u[25]),k=i(k,A,r,S,l,14,u[26]),S=i(S,k,A,r,g,20,u[27]),r=i(r,S,k,A,w,5,u[28]),A=i(A,r,S,k,f,9,u[29]),k=i(k,A,r,S,m,14,u[30]),r=n(r,S=i(S,k,A,r,M,20,u[31]),k,A,c,4,u[32]),A=n(A,r,S,k,g,11,u[33]),k=n(k,A,r,S,y,16,u[34]),S=n(S,k,A,r,_,23,u[35]),r=n(r,S,k,A,a,4,u[36]),A=n(A,r,S,k,d,11,u[37]),k=n(k,A,r,S,m,16,u[38]),S=n(S,k,A,r,v,23,u[39]),r=n(r,S,k,A,w,4,u[40]),A=n(A,r,S,k,h,11,u[41]),k=n(k,A,r,S,l,16,u[42]),S=n(S,k,A,r,p,23,u[43]),r=n(r,S,k,A,b,4,u[44]),A=n(A,r,S,k,M,11,u[45]),k=n(k,A,r,S,t,16,u[46]),r=o(r,S=n(S,k,A,r,f,23,u[47]),k,A,h,6,u[48]),A=o(A,r,S,k,m,10,u[49]),k=o(k,A,r,S,_,15,u[50]),S=o(S,k,A,r,c,21,u[51]),r=o(r,S,k,A,M,6,u[52]),A=o(A,r,S,k,l,10,u[53]),k=o(k,A,r,S,v,15,u[54]),S=o(S,k,A,r,a,21,u[55]),r=o(r,S,k,A,g,6,u[56]),A=o(A,r,S,k,t,10,u[57]),k=o(k,A,r,S,p,15,u[58]),S=o(S,k,A,r,w,21,u[59]),r=o(r,S,k,A,d,6,u[60]),A=o(A,r,S,k,y,10,u[61]),k=o(k,A,r,S,f,15,u[62]),S=o(S,k,A,r,b,21,u[63]),s[0]=s[0]+r|0,s[1]=s[1]+S|0,s[2]=s[2]+k|0,s[3]=s[3]+A|0},_doFinalize:function(){var e=this._data,i=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;i[n>>>5]|=128<<24-n%32;var o=t.floor(r/4294967296);for(i[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(i.length+1),this._process(),i=(e=this._hash).words,r=0;4>r;r++)n=i[r],i[r]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);return e},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),r.MD5=a._createHelper(s),r.HmacMD5=a._createHmacHelper(s)}(Math),r.MD5)},function(t,e,i){function r(t){h.call(this,"digest"),this._hash=t}e=i(38);var n=i(73),o=i(76),s=i(77),h=i(48);e(r,h),r.prototype._update=function(t){this._hash.update(t)},r.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new n:"rmd160"===t||"ripemd160"===t?new o:new r(s(t))}},function(t,e,i){(function(t){e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},e.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,i(41).Buffer)},function(t,e,i){(function(e){t.exports=function(t,i){for(var r=Math.min(t.length,i.length),n=new e(r),o=0;o<r;++o)n[o]=t[o]^i[o];return n}}).call(this,i(41).Buffer)},function(t,e,i){function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var n=i(46),o=i(43);e.BlockHash=r,r.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending=this.pending?this.pending.concat(t):t,this.pendingTotal+=t.length,this.pending.length>=this._delta8)for(e=(t=this.pending).length%this._delta8,this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-e,this.endian),e=0;e<t.length;e+=this._delta32)this._update(t,e,e+this._delta32);return this},r.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},r.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,i=e-(t+this.padLength)%e;(e=Array(i+this.padLength))[0]=128;for(var r=1;r<i;r++)e[r]=0;if(t<<=3,"big"===this.endian){for(i=8;i<this.padLength;i++)e[r++]=0;e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=t>>>24&255,e[r++]=t>>>16&255,e[r++]=t>>>8&255,e[r++]=255&t}else for(e[r++]=255&t,e[r++]=t>>>8&255,e[r++]=t>>>16&255,e[r++]=t>>>24&255,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,i=8;i<this.padLength;i++)e[r++]=0;return e}},function(t,e,i){e.bignum=i(228),e.define=i(230).define,e.base=i(66),e.constants=i(136),e.decoders=i(235),e.encoders=i(237)},function(t,e,i){e.Reporter=i(232).Reporter,e.DecoderBuffer=i(135).DecoderBuffer,e.EncoderBuffer=i(135).EncoderBuffer,e.Node=i(233)},function(t,e,i){(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,i,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o=arguments.length;switch(o){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,i)}));case 3:return e.nextTick((function(){t.call(null,i,r)}));case 4:return e.nextTick((function(){t.call(null,i,r,n)}));default:var s=Array(o-1);for(o=0;o<s.length;)s[o++]=arguments[o];return e.nextTick((function(){t.apply(null,s)}))}}}:t.exports=e}).call(this,i(6))},function(t,e,i){function r(t){h.isBuffer(t)||(t=h.from(t));for(var e=t.length/4|0,i=Array(e),r=0;r<e;r++)i[r]=t.readUInt32BE(4*r);return i}function n(t){for(;0<t.length;t++)t[0]=0}function o(t,e,i,r,n){var o=i[0],s=i[1],h=i[2];i=i[3];for(var a,u,f=t[0]^e[0],l=t[1]^e[1],d=t[2]^e[2],c=t[3]^e[3],p=4,m=1;m<n;m++)t=o[f>>>24]^s[l>>>16&255]^h[d>>>8&255]^i[255&c]^e[p++],a=o[l>>>24]^s[d>>>16&255]^h[c>>>8&255]^i[255&f]^e[p++],u=o[d>>>24]^s[c>>>16&255]^h[f>>>8&255]^i[255&l]^e[p++],c=o[c>>>24]^s[f>>>16&255]^h[l>>>8&255]^i[255&d]^e[p++],f=t,l=a,d=u;return[(t=(r[f>>>24]<<24|r[l>>>16&255]<<16|r[d>>>8&255]<<8|r[255&c])^e[p++])>>>0,(a=(r[l>>>24]<<24|r[d>>>16&255]<<16|r[c>>>8&255]<<8|r[255&f])^e[p++])>>>0,(u=(r[d>>>24]<<24|r[c>>>16&255]<<16|r[f>>>8&255]<<8|r[255&l])^e[p++])>>>0,(c=(r[c>>>24]<<24|r[f>>>16&255]<<16|r[l>>>8&255]<<8|r[255&d])^e[p++])>>>0]}function s(t){this._key=r(t),this._reset()}var h=i(39).Buffer,a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=Array(256),e=0;256>e;e++)t[e]=128>e?e<<1:e<<1^283;e=[];for(var i=[],r=[[],[],[],[]],n=[[],[],[],[]],o=0,s=0,h=0;256>h;++h){var a=s^s<<1^s<<2^s<<3^s<<4;a=a>>>8^255&a^99,e[o]=a,i[a]=o;var u=t[o],f=t[u],l=t[f],d=257*t[a]^16843008*a;r[0][o]=d<<24|d>>>8,r[1][o]=d<<16|d>>>16,r[2][o]=d<<8|d>>>24,r[3][o]=d,d=16843009*l^65537*f^257*u^16843008*o,n[0][a]=d<<24|d>>>8,n[1][a]=d<<16|d>>>16,n[2][a]=d<<8|d>>>24,n[3][a]=d,0===o?o=s=1:(o=u^t[t[t[l^u]]],s^=t[t[s]])}return{SBOX:e,INV_SBOX:i,SUB_MIX:r,INV_SUB_MIX:n}}();s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o<e;o++)n[o]=t[o];for(o=e;o<r;o++)t=n[o-1],0==o%e?(t=t<<8|t>>>24,t=u.SBOX[t>>>24]<<24|u.SBOX[t>>>16&255]<<16|u.SBOX[t>>>8&255]<<8|u.SBOX[255&t],t^=a[o/e|0]<<24):6<e&&4==o%e&&(t=u.SBOX[t>>>24]<<24|u.SBOX[t>>>16&255]<<16|u.SBOX[t>>>8&255]<<8|u.SBOX[255&t]),n[o]=n[o-e]^t;for(e=[],o=0;o<r;o++){var s=n[(t=r-o)-(o%4?0:4)];e[o]=4>o||4>=t?s:u.INV_SUB_MIX[0][u.SBOX[s>>>24]]^u.INV_SUB_MIX[1][u.SBOX[s>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[s>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&s]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=e},s.prototype.encryptBlockRaw=function(t){return o(t=r(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},s.prototype.encryptBlock=function(t){t=this.encryptBlockRaw(t);var e=h.allocUnsafe(16);return e.writeUInt32BE(t[0],0),e.writeUInt32BE(t[1],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[3],12),e},s.prototype.decryptBlock=function(t){var e=(t=r(t))[1];return t[1]=t[3],t[3]=e,t=o(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),(e=h.allocUnsafe(16)).writeUInt32BE(t[0],0),e.writeUInt32BE(t[3],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[1],12),e},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=s},function(t,e,i){var r=i(39).Buffer,n=i(73);t.exports=function(t,e,i,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");i/=8;for(var s=r.alloc(i),h=r.alloc(o||0),a=r.alloc(0);0<i||0<o;){var u=new n;if(u.update(a),u.update(t),e&&u.update(e),a=u.digest(),u=0,0<i){var f=s.length-i;u=Math.min(i,a.length),a.copy(s,f,0,u),i-=u}u<a.length&&0<o&&(f=Math.min(o,a.length-u),a.copy(h,h.length-o,u,u+f),o-=f)}return a.fill(0),{key:s,iv:h}}},function(t,e,i){function r(t,e){this.type=t,this.p=new o(e.p,16),this.red=e.prime?o.red(e.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=e.n&&new o(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=Array(4),this._wnafT2=Array(4),this._wnafT3=Array(4),this._wnafT4=Array(4),this._bitLength=this.n?this.n.bitLength():0,!(t=this.n&&this.p.div(this.n))||0<t.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function n(t,e){this.curve=t,this.type=e,this.precomputed=null}var o=i(47),s=i(44),h=s.getNAF,a=s.getJSF,u=s.assert;t.exports=r,r.prototype.point=function(){throw Error("Not implemented")},r.prototype.validate=function(){throw Error("Not implemented")},r.prototype._fixedNafMul=function(t,e){u(t.precomputed);var i=t._getDoubles(),r=h(e,1,this._bitLength),n=(1<<i.step+1)-(0==i.step%2?2:1);n/=3;for(var o=[],s=0;s<r.length;s+=i.step){for(t=0,e=s+i.step-1;e>=s;e--)t=(t<<1)+r[e];o.push(t)}for(e=this.jpoint(null,null,null),r=this.jpoint(null,null,null);0<n;n--){for(s=0;s<o.length;s++)(t=o[s])===n?r=r.mixedAdd(i.points[s]):t===-n&&(r=r.mixedAdd(i.points[s].neg()));e=e.add(r)}return e.toP()},r.prototype._wnafMul=function(t,e){var i=t._getNAFPoints(4),r=i.points;i=h(e,i.wnd,this._bitLength);for(var n=this.jpoint(null,null,null),o=i.length-1;0<=o;o--){for(e=0;0<=o&&0===i[o];o--)e++;if(0<=o&&e++,n=n.dblp(e),0>o)break;e=i[o],u(0!==e),n="affine"===t.type?0<e?n.mixedAdd(r[e-1>>1]):n.mixedAdd(r[-e-1>>1].neg()):0<e?n.add(r[e-1>>1]):n.add(r[-e-1>>1].neg())}return"affine"===t.type?n.toP():n},r.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,l=0,d=0;d<r;d++){var c=(o=e[d])._getNAFPoints(t);s[d]=c.wnd,u[d]=c.points}for(d=r-1;1<=d;d-=2){var p=d;if(1!==s[c=d-1]||1!==s[p])f[c]=h(i[c],s[c],this._bitLength),f[p]=h(i[p],s[p],this._bitLength),l=Math.max(f[c].length,l),l=Math.max(f[p].length,l);else{var m=[e[c],null,null,e[p]];0===e[c].y.cmp(e[p].y)?(m[1]=e[c].add(e[p]),m[2]=e[c].toJ().mixedAdd(e[p].neg())):0===e[c].y.cmp(e[p].y.redNeg())?(m[1]=e[c].toJ().mixedAdd(e[p]),m[2]=e[c].add(e[p].neg())):(m[1]=e[c].toJ().mixedAdd(e[p]),m[2]=e[c].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=a(i[c],i[p]);for(l=Math.max(b[0].length,l),f[c]=Array(l),f[p]=Array(l),t=0;t<l;t++)f[c][t]=g[3*(1+(0|b[0][t]))+(1+(0|b[1][t]))],f[p][t]=0,u[c]=m}}for(e=this.jpoint(null,null,null),i=this._wnafT4,d=l;0<=d;d--){for(l=0;0<=d;){for(s=!0,t=0;t<r;t++)i[t]=0|f[t][d],0!==i[t]&&(s=!1);if(!s)break;l++,d--}if(0<=d&&l++,e=e.dblp(l),0>d)break;for(t=0;t<r;t++)0!==(l=i[t])&&(0<l?o=u[t][l-1>>1]:0>l&&(o=u[t][-l-1>>1].neg()),e="affine"===o.type?e.mixedAdd(o):e.add(o))}for(d=0;d<r;d++)u[d]=null;return n?e:e.toP()},r.BasePoint=n,n.prototype.eq=function(){throw Error("Not implemented")},n.prototype.validate=function(){return this.curve.validate(this)},r.prototype.decodePoint=function(t,e){if(t=s.toArray(t,e),e=this.p.byteLength(),(4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*e)return 6===t[0]?u(0==t[t.length-1]%2):7===t[0]&&u(1==t[t.length-1]%2),this.point(t.slice(1,1+e),t.slice(1+e,1+2*e));if((2===t[0]||3===t[0])&&t.length-1===e)return this.pointFromX(t.slice(1,1+e),3===t[0]);throw Error("Unknown point format")},n.prototype.encodeCompressed=function(t){return this.encode(t,!0)},n.prototype._encode=function(t){var e=this.curve.p.byteLength(),i=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",e))},n.prototype.encode=function(t,e){return s.encode(this._encode(e),t)},n.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},n.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},n.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n<e;n+=t){for(var o=0;o<t;o++)r=r.dbl();i.push(r)}return{step:t,points:i}},n.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],i=(1<<t)-1,r=1===i?null:this.dbl(),n=1;n<i;n++)e[n]=e[n-1].add(r);return{wnd:t,points:e}},n.prototype._getBeta=function(){return null},n.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},function(t,e,i){function r(t){if("object"==typeof t&&!u.isBuffer(t)){var e=t.passphrase;t=t.key}"string"==typeof t&&(t=u.from(t));var i=s(t,e);switch(t=i.tag,i=i.data,t){case"CERTIFICATE":var r=n.certificate.decode(i,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r||(r=n.PublicKey.decode(i,"der")),e=r.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(r.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return r.subjectPrivateKey=r.subjectPublicKey,{type:"ec",data:r};case"1.2.840.10040.4.1":return r.algorithm.params.pub_key=n.DSAparam.decode(r.subjectPublicKey.data,"der"),{type:"dsa",data:r.algorithm.params};default:throw Error("unknown key id "+e)}throw Error("unknown key type "+t);case"ENCRYPTED PRIVATE KEY":var f=i=n.EncryptedPrivateKey.decode(i,"der");i=e;var l=f.algorithm.decrypt.kde.kdeparams.salt,d=parseInt(f.algorithm.decrypt.kde.kdeparams.iters.toString(),10);r=o[f.algorithm.decrypt.cipher.algo.join(".")],t=f.algorithm.decrypt.cipher.iv,e=f.subjectPrivateKey,f=parseInt(r.split("-")[1],10)/8,i=a.pbkdf2Sync(i,l,d,f,"sha1"),r=h.createDecipheriv(r,i,t),(t=[]).push(r.update(e)),t.push(r.final()),i=u.concat(t);case"PRIVATE KEY":switch(e=(r=n.PrivateKey.decode(i,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(r.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:r.algorithm.curve,privateKey:n.ECPrivateKey.decode(r.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return r.algorithm.params.priv_key=n.DSAparam.decode(r.subjectPrivateKey,"der"),{type:"dsa",params:r.algorithm.params};default:throw Error("unknown key id "+e)}throw Error("unknown key type "+t);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(i,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(i,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(i,"der")};case"EC PRIVATE KEY":return{curve:(i=n.ECPrivateKey.decode(i,"der")).parameters.value,privateKey:i.privateKey};default:throw Error("unknown key type "+t)}}var n=i(227),o=i(240),s=i(241),h=i(81),a=i(109),u=i(39).Buffer;t.exports=r,r.signature=n.signature},function(t,e,i){var r;t.exports=(r=i(40),function(t){var e=r.lib,i=e.Base,n=e.WordArray;(e=r.x64={}).Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),e.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,i=[],r=0;r<e;r++){var o=t[r];i.push(o.high),i.push(o.low)}return n.create(i,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),r)},function(t,e,i){function r(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function n(t,e){return t<<e|t>>>32-e}function o(t,e,i,r,o,s,h){return n(t+(e&i|~e&r)+o+s|0,h)+e|0}function s(t,e,i,r,o,s,h){return n(t+(e&r|i&~r)+o+s|0,h)+e|0}function h(t,e,i,r,o,s,h){return n(t+(e^i^r)+o+s|0,h)+e|0}function a(t,e,i,r,o,s,h){return n(t+(i^(e|~r))+o+s|0,h)+e|0}e=i(38);var u=i(93),f=i(39).Buffer,l=Array(16);e(r,u),r.prototype._update=function(){for(var t=0;16>t;++t)l[t]=this._block.readInt32LE(4*t);t=this._a;var e=this._b,i=this._c,r=this._d;t=o(t,e,i,r,l[0],3614090360,7),r=o(r,t,e,i,l[1],3905402710,12),i=o(i,r,t,e,l[2],606105819,17),e=o(e,i,r,t,l[3],3250441966,22),t=o(t,e,i,r,l[4],4118548399,7),r=o(r,t,e,i,l[5],1200080426,12),i=o(i,r,t,e,l[6],2821735955,17),e=o(e,i,r,t,l[7],4249261313,22),t=o(t,e,i,r,l[8],1770035416,7),r=o(r,t,e,i,l[9],2336552879,12),i=o(i,r,t,e,l[10],4294925233,17),e=o(e,i,r,t,l[11],2304563134,22),t=o(t,e,i,r,l[12],1804603682,7),r=o(r,t,e,i,l[13],4254626195,12),i=o(i,r,t,e,l[14],2792965006,17),t=s(t,e=o(e,i,r,t,l[15],1236535329,22),i,r,l[1],4129170786,5),r=s(r,t,e,i,l[6],3225465664,9),i=s(i,r,t,e,l[11],643717713,14),e=s(e,i,r,t,l[0],3921069994,20),t=s(t,e,i,r,l[5],3593408605,5),r=s(r,t,e,i,l[10],38016083,9),i=s(i,r,t,e,l[15],3634488961,14),e=s(e,i,r,t,l[4],3889429448,20),t=s(t,e,i,r,l[9],568446438,5),r=s(r,t,e,i,l[14],3275163606,9),i=s(i,r,t,e,l[3],4107603335,14),e=s(e,i,r,t,l[8],1163531501,20),t=s(t,e,i,r,l[13],2850285829,5),r=s(r,t,e,i,l[2],4243563512,9),i=s(i,r,t,e,l[7],1735328473,14),t=h(t,e=s(e,i,r,t,l[12],2368359562,20),i,r,l[5],4294588738,4),r=h(r,t,e,i,l[8],2272392833,11),i=h(i,r,t,e,l[11],1839030562,16),e=h(e,i,r,t,l[14],4259657740,23),t=h(t,e,i,r,l[1],2763975236,4),r=h(r,t,e,i,l[4],1272893353,11),i=h(i,r,t,e,l[7],4139469664,16),e=h(e,i,r,t,l[10],3200236656,23),t=h(t,e,i,r,l[13],681279174,4),r=h(r,t,e,i,l[0],3936430074,11),i=h(i,r,t,e,l[3],3572445317,16),e=h(e,i,r,t,l[6],76029189,23),t=h(t,e,i,r,l[9],3654602809,4),r=h(r,t,e,i,l[12],3873151461,11),i=h(i,r,t,e,l[15],530742520,16),t=a(t,e=h(e,i,r,t,l[2],3299628645,23),i,r,l[0],4096336452,6),r=a(r,t,e,i,l[7],1126891415,10),i=a(i,r,t,e,l[14],2878612391,15),e=a(e,i,r,t,l[5],4237533241,21),t=a(t,e,i,r,l[12],1700485571,6),r=a(r,t,e,i,l[3],2399980690,10),i=a(i,r,t,e,l[10],4293915773,15),e=a(e,i,r,t,l[1],2240044497,21),t=a(t,e,i,r,l[8],1873313359,6),r=a(r,t,e,i,l[15],4264355552,10),i=a(i,r,t,e,l[6],2734768916,15),e=a(e,i,r,t,l[13],1309151649,21),t=a(t,e,i,r,l[4],4149444226,6),r=a(r,t,e,i,l[11],3174756917,10),i=a(i,r,t,e,l[2],718787259,15),e=a(e,i,r,t,l[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+e|0,this._c=this._c+i|0,this._d=this._d+r|0},r.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=f.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=r},function(t,e,i){(function(e){function i(t){try{if(!e.localStorage)return!1}catch(t){return!1}return null!=(t=e.localStorage[t])&&"true"===String(t).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,i(2))},function(t,e,i){function r(){}var n=i(54).codes.ERR_STREAM_PREMATURE_CLOSE;t.exports=function t(e,i,o){if("function"==typeof i)return t(e,null,i);i||(i={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];t.apply(this,r)}}}(o||r);var s=i.readable||!1!==i.readable&&e.readable,h=i.writable||!1!==i.writable&&e.writable,a=function(){e.writable||f()},u=e._writableState&&e._writableState.finished,f=function(){h=!1,u=!0,s||o.call(e)},l=e._readableState&&e._readableState.endEmitted,d=function(){s=!1,l=!0,h||o.call(e)},c=function(t){o.call(e,t)},p=function(){var t;return s&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):h&&!u?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},m=function(){e.req.on("finish",f)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",f),e.on("abort",p),e.req?m():e.on("request",m)):h&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",d),e.on("finish",f),!1!==i.error&&e.on("error",c),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",d),e.removeListener("error",c),e.removeListener("close",p)}}},function(t,e,i){function r(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function n(t,e){return t<<e|t>>>32-e}var o=i(41).Buffer;e=i(38);var s=i(93),h=Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[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],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[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],d=[0,1518500249,1859775393,2400959708,2840853838],c=[1352829926,1548603684,1836072691,2053994217,0];e(r,s),r.prototype._update=function(){for(var t=0;16>t;++t)h[t]=this._block.readInt32LE(4*t);var e=0|this._a;t=0|this._b;for(var i=0|this._c,r=0|this._d,o=0|this._e,s=0|this._a,p=0|this._b,m=0|this._c,g=0|this._d,b=0|this._e,v=0;80>v;v+=1){if(16>v){var y=o;y=n(e+(t^i^r)+h[a[v]]+d[0]|0,f[v])+y|0,e=b;var M=n(s+(p^(m|~g))+h[u[v]]+c[0]|0,l[v])+e|0}else 32>v?(y=o,y=n(e+(t&i|~t&r)+h[a[v]]+d[1]|0,f[v])+y|0,e=b,M=n(s+(p&g|m&~g)+h[u[v]]+c[1]|0,l[v])+e|0):48>v?(y=o,y=n(e+((t|~i)^r)+h[a[v]]+d[2]|0,f[v])+y|0,e=b,M=n(s+((p|~m)^g)+h[u[v]]+c[2]|0,l[v])+e|0):64>v?(y=o,y=n(e+(t&r|i&~r)+h[a[v]]+d[3]|0,f[v])+y|0,e=b,M=n(s+(p&m|~p&g)+h[u[v]]+c[3]|0,l[v])+e|0):(y=o,y=n(e+(t^(i|~r))+h[a[v]]+d[4]|0,f[v])+y|0,e=b,M=n(s+(p^m^g)+h[u[v]]+c[4]|0,l[v])+e|0);e=o,o=r,r=n(i,10),i=t,t=y,s=b,b=g,g=n(m,10),m=p,p=M}i=this._b+i+g|0,this._b=this._c+r+b|0,this._c=this._d+o+s|0,this._d=this._e+e+p|0,this._e=this._a+t+m|0,this._a=i},r.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.alloc?o.alloc(20):new o(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=r},function(t,e,i){(e=t.exports=function(t){t=t.toLowerCase();var i=e[t];if(!i)throw Error(t+" is not supported (we accept pull requests)");return new i}).sha=i(157),e.sha1=i(158),e.sha224=i(159),e.sha256=i(100),e.sha384=i(160),e.sha512=i(101)},function(t,e,i){(e=t.exports=i(102)).Stream=e,e.Readable=e,e.Writable=i(79),e.Duplex=i(51),e.Transform=i(105),e.PassThrough=i(165)},function(t,e,i){(function(e,r,n){function o(t){var e=this;this.entry=this.next=null,this.finish=function(){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(void 0),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}function s(){}function h(t,e){g=g||i(51),t=t||{};var r=e instanceof g;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,s=t.writableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(s||0===s)?s:h,this.highWaterMark=Math.floor(this.highWaterMark),this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var i=e._writableState,r=i.sync,n=i.writecb;i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,t?(--i.pendingcb,r?(m.nextTick(n,t),m.nextTick(p,e,i),e._writableState.errorEmitted=!0,e.emit("error",t)):(n(t),e._writableState.errorEmitted=!0,e.emit("error",t),p(e,i))):((t=d(i))||i.corked||i.bufferProcessing||!i.bufferedRequest||l(e,i),r?b(f,e,i,t,n):f(e,i,t,n))},this.writecb=null,this.writelen=0,this.lastBufferedRequest=this.bufferedRequest=null,this.pendingcb=0,this.errorEmitted=this.prefinished=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function a(t){if(g=g||i(51),!(_.call(a,this)||this instanceof g))return new a(t);this._writableState=new h(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),y.call(this)}function u(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function f(t,e,i,r){!i&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain")),e.pendingcb--,r(),p(t,e)}function l(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=Array(e.bufferedRequestCount),n=e.corkedRequestsFree;n.entry=i;for(var s=0,h=!0;i;)r[s]=i,i.isBuf||(h=!1),i=i.next,s+=1;r.allBuffers=h,u(t,e,!0,e.length,r,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;i&&(r=i.chunk,u(t,e,!1,e.objectMode?1:r.length,r,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,!e.writing););null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function d(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function c(t,e){t._final((function(i){e.pendingcb--,i&&t.emit("error",i),e.prefinished=!0,t.emit("prefinish"),p(t,e)}))}function p(t,e){var i=d(e);return i&&(e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,m.nextTick(c,t,e)):(e.prefinished=!0,t.emit("prefinish"))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}var m=i(67);t.exports=a;var g,b=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:m.nextTick;a.WritableState=h,(e=i(62)).inherits=i(38);var v={deprecate:i(74)},y=i(103),M=i(39).Buffer,w=n.Uint8Array||function(){};if(n=i(104),e.inherits(a,y),h.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(h.prototype,"buffer",{get:v.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){var _=Function.prototype[Symbol.hasInstance];Object.defineProperty(a,Symbol.hasInstance,{value:function(t){return!!_.call(this,t)||this===a&&(t&&t._writableState instanceof h)}})}else _=function(t){return t instanceof this};a.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},a.prototype.write=function(t,e,i){var r,n=this._writableState,o=!1;if((r=!n.objectMode)&&(r=t,r=M.isBuffer(r)||r instanceof w),r&&!M.isBuffer(t)&&(t=M.from(t)),"function"==typeof e&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof i&&(i=s),n.ended)n=i,i=Error("write after end"),this.emit("error",i),m.nextTick(n,i);else{var h;if(!(h=r)){var a=i,f=!0,l=!1;null===(h=t)?l=new TypeError("May not write null values to stream"):"string"==typeof h||void 0===h||n.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(this.emit("error",l),m.nextTick(a,l),f=!1),h=f}h&&(n.pendingcb++,(o=r)||(r=t,n.objectMode||!1===n.decodeStrings||"string"!=typeof r||(r=M.from(r,e)),t!==r&&(o=!0,e="buffer",t=r)),h=n.objectMode?1:t.length,n.length+=h,(r=n.length<n.highWaterMark)||(n.needDrain=!0),n.writing||n.corked?(h=n.lastBufferedRequest,n.lastBufferedRequest={chunk:t,encoding:e,isBuf:o,callback:i,next:null},h?h.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest,n.bufferedRequestCount+=1):u(this,n,!1,h,t,e,i),o=r)}return o},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||l(this,t))},a.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((t+"").toLowerCase())))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),a.prototype._write=function(t,e,i){i(Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(t,e,i){var r=this._writableState;"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||(t=i,r.ending=!0,p(this,r),t&&(r.finished?m.nextTick(t):this.once("finish",t)),r.ended=!0,this.writable=!1)},Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),a.prototype.destroy=n.destroy,a.prototype._undestroy=n.undestroy,a.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i(6),i(3).setImmediate,i(2))},function(t,e,i){function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}var n=i(43);t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<i;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=i,i},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,i=0,r=Array(((this.bufferOff+t.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(r,i)));for(var n=t.length-(t.length-e)%this.blockSize;e<n;e+=this.blockSize)this._update(t,e,r,i),i+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return r},r.prototype._updateDecrypt=function(t){for(var e=0,i=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,n=Array(r*this.blockSize);0<r;r--)e+=this._buffer(t,e),i+=this._flushBuffer(n,i);return this._buffer(t,e),n},r.prototype.final=function(t){var e;return t&&(e=this.update(t)),t="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(t):t},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=Array(this.blockSize);return this._update(this.buffer,0,t,0),t},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,i){t=i(178);var r=i(186),n=i(117);e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(n)}},function(t,e,i){for(var r in e={ECB:i(179),CBC:i(180),CFB:i(181),CFB8:i(182),CFB1:i(183),OFB:i(184),CTR:i(115),GCM:i(115)},i=i(117))i[r].module=e[i[r].mode];t.exports=i},function(t,e,i){function r(t){this.rand=t}var n;if(t.exports=function(t){return n||(n=new r(null)),n.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);t=new Uint8Array(t);for(var e=0;e<t.length;e++)t[e]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){return t=new Uint8Array(t),self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){return t=new Uint8Array(t),self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(r.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=i(192);if("function"!=typeof o.randomBytes)throw Error("Not supported");r.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,i){function r(){}var n=i(57).codes.ERR_STREAM_PREMATURE_CLOSE;t.exports=function t(e,i,o){if("function"==typeof i)return t(e,null,i);i||(i={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];t.apply(this,r)}}}(o||r);var s=i.readable||!1!==i.readable&&e.readable,h=i.writable||!1!==i.writable&&e.writable,a=function(){e.writable||f()},u=e._writableState&&e._writableState.finished,f=function(){h=!1,u=!0,s||o.call(e)},l=e._readableState&&e._readableState.endEmitted,d=function(){s=!1,l=!0,h||o.call(e)},c=function(t){o.call(e,t)},p=function(){var t;return s&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):h&&!u?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},m=function(){e.req.on("finish",f)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",f),e.on("abort",p),e.req?m():e.on("request",m)):h&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",d),e.on("finish",f),!1!==i.error&&e.on("error",c),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",d),e.removeListener("error",c),e.removeListener("close",p)}}},function(t,e,i){(function(e){function r(t,i){var r=n(i),s=r.toRed(o.mont(i.modulus)).redPow(new o(i.publicExponent)).fromRed();r=r.invm(i.modulus);var h=i.modulus.byteLength();o.mont(i.modulus);var a=(t=new o(t).mul(s).umod(i.modulus)).toRed(o.mont(i.prime1)),u=t.toRed(o.mont(i.prime2));s=i.coefficient;var f=i.prime1;return t=i.prime2,a=a.redPow(i.exponent1),u=u.redPow(i.exponent2),a=a.fromRed(),u=u.fromRed(),(s=a.isub(u).imul(s).umod(f)).imul(t),u.iadd(s),new e(u.imul(r).umod(i.modulus).toArray(!1,h))}function n(t){for(var e=t.modulus.byteLength(),i=new o(s(e));0<=i.cmp(t.modulus)||!i.umod(t.prime1)||!i.umod(t.prime2);)i=new o(s(e));return i}var o=i(205),s=i(53);t.exports=r,r.getr=n}).call(this,i(41).Buffer)},function(t,e,i){e.version=i(207).version,e.utils=i(44),e.rand=i(83),e.curve=i(130),e.curves=i(87),e.ec=i(219),e.eddsa=i(223)},function(t,e,i){function r(t){this.curve="short"===t.type?new s.short(t):"edwards"===t.type?new s.edwards(t):new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,h(this.g.validate(),"Invalid curve"),h(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function n(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var i=new r(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:i}),i}})}var o=e;t=i(88);var s=i(130),h=i(44).assert;o.PresetCurve=r,n("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:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),n("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:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),n("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:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),n("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:t.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"]}),n("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:t.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"]}),n("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),n("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:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{var a=i(218)}catch(t){a=void 0}n("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:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})},function(t,e,i){e.utils=i(46),e.common=i(64),e.sha=i(212),e.ripemd=i(216),e.hmac=i(217),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(248).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){var r;t.exports=(r=i(40),function(){var t=r.lib,e=t.WordArray,i=t.Hasher,n=[];t=r.algo.SHA1=i.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,r=i[0],o=i[1],s=i[2],h=i[3],a=i[4],u=0;80>u;u++){if(16>u)n[u]=0|t[e+u];else{var f=n[u-3]^n[u-8]^n[u-14]^n[u-16];n[u]=f<<1|f>>>31}f=(r<<5|r>>>27)+a+n[u],f=20>u?f+(1518500249+(o&s|~o&h)):40>u?f+(1859775393+(o^s^h)):60>u?f+((o&s|o&h|s&h)-1894007588):f+((o^s^h)-899497514),a=h,h=s,s=o<<30|o>>>2,o=r,r=f}i[0]=i[0]+r|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+h|0,i[4]=i[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(r+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=i._createHelper(t),r.HmacSHA1=i._createHmacHelper(t)}(),r.SHA1)},function(t,e,i){var r,n;t.exports=(n=i(40),r=n.enc.Utf8,void(n.algo.HMAC=n.lib.Base.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var i=t.blockSize,n=4*i;e.sigBytes>n&&(e=t.finalize(e)),e.clamp(),t=this._oKey=e.clone(),e=this._iKey=e.clone();for(var o=t.words,s=e.words,h=0;h<i;h++)o[h]^=1549556828,s[h]^=909522486;t.sigBytes=e.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher;return t=e.finalize(t),e.reset(),e.finalize(this._oKey.clone().concat(t))}})))},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){function r(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var n=i(148).Buffer,o=i(149).Transform;i(38)(r,o),r.prototype._transform=function(t,e,i){var r=null;try{this.update(t,e)}catch(t){r=t}i(r)},r.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},r.prototype.update=function(t,e){var i=t;if(!n.isBuffer(i)&&"string"!=typeof i)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");for(n.isBuffer(t)||(t=n.from(t,e)),e=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var r=this._blockOffset;r<this._blockSize;)e[r++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)e[this._blockOffset++]=t[i++];for(e=0,t=8*t.length;0<t;++e)this._length[e]+=t,0<(t=this._length[e]/4294967296|0)&&(this._length[e]-=4294967296*t);return this},r.prototype._update=function(){throw Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var e=this._digest();for(void 0!==t&&(e=e.toString(t)),this._block.fill(0),t=this._blockOffset=0;4>t;++t)this._length[t]=0;return e},r.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=r},function(t,e,i){(function(e,r){function n(t,e,r){w=w||i(55),t=t||{},"boolean"!=typeof r&&(r=e instanceof w),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=I(this,t,"readableHighWaterMark",r),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.reading=this.endEmitted=this.ended=!1,this.sync=!0,this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.encoding=this.decoder=null,t.encoding&&(x||(x=i(50).StringDecoder),this.decoder=new x(t.encoding),this.encoding=t.encoding)}function o(t){if(w=w||i(55),!(this instanceof o))return new o(t);this._readableState=new n(t,this,this instanceof w),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),_.call(this)}function s(t,e,i,r,n){A("readableAddChunk",e);var o=t._readableState;if(null===e)o.reading=!1,A("onEofChunk"),o.ended||(o.decoder&&(e=o.decoder.end())&&e.length&&(o.buffer.push(e),o.length+=o.objectMode?1:e.length),o.ended=!0,o.sync?u(t):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,f(t))));else{if(!n){var s;n=e,S.isBuffer(n)||n instanceof k||"string"==typeof n||void 0===n||o.objectMode||(s=new P("chunk",["string","Buffer","Uint8Array"],n));var a=s}if(a)O(t,a);else if(o.objectMode||e&&0<e.length)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===S.prototype||(e=S.from(e)),r)o.endEmitted?O(t,new C):h(t,o,e,!0);else if(o.ended)O(t,new j);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(e=o.decoder.write(e),o.objectMode||0!==e.length?h(t,o,e,!1):l(t,o)):h(t,o,e,!1)}else r||(o.reading=!1,l(t,o))}return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function h(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&u(t)),l(t,e)}function a(t,e){if(0>=t||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var i=t;1073741824<=i?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),e.highWaterMark=i}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function u(t){var e=t._readableState;A("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(A("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(f,t))}function f(t){var e=t._readableState;A("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,g(t)}function l(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(d,t,e))}function d(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(A("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function c(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function p(t){A("readable nexttick read 0"),t.read(0)}function m(t,e){A("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),g(t),e.flowing&&!e.reading&&t.read(0)}function g(t){var e=t._readableState;for(A("flow",e.flowing);e.flowing&&null!==t.read(););}function b(t,e){return 0===e.length?null:(e.objectMode?t=e.buffer.shift():!t||t>=e.length?(t=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(t,e.decoder),t)}function v(t){var e=t._readableState;A("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(y,e,t))}function y(t,e){A("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy&&((!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy()))}function M(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}var w;t.exports=o,o.ReadableState=n,i(49);var _=i(95),S=i(41).Buffer,k=e.Uint8Array||function(){},A=(e=i(150))&&e.debuglog?e.debuglog("stream"):function(){},E=i(151);e=i(96);var x,R,B,I=i(97).getHighWaterMark,T=i(54).codes,P=T.ERR_INVALID_ARG_TYPE,j=T.ERR_STREAM_PUSH_AFTER_EOF,L=T.ERR_METHOD_NOT_IMPLEMENTED,C=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(38)(o,_);var O=e.errorOrDestroy,N=["error","close","destroy","pause","resume"];Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),o.prototype.destroy=e.destroy,o.prototype._undestroy=e.undestroy,o.prototype._destroy=function(t,e){e(t)},o.prototype.push=function(t,e){var i=this._readableState;if(i.objectMode)var r=!0;else"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=S.from(t,e),e=""),r=!0);return s(this,t,e,!1,r)},o.prototype.unshift=function(t){return s(this,t,null,!0,!1)},o.prototype.isPaused=function(){return!1===this._readableState.flowing},o.prototype.setEncoding=function(t){x||(x=i(50).StringDecoder),t=new x(t),this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var e=this._readableState.buffer.head,r="";null!==e;)r+=t.write(e.data),e=e.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},o.prototype.read=function(t){A("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:0<e.length)||e.ended))return A("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?v(this):u(this),null;if(0===(t=a(t,e))&&e.ended)return 0===e.length&&v(this),null;var r=e.needReadable;return A("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&A("length less than watermark",r=!0),e.ended||e.reading?A("reading or ended",!1):r&&(A("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=a(i,e))),null===(r=0<t?b(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&v(this)),null!==r&&this.emit("data",r),r},o.prototype._read=function(t){O(this,new L("_read()"))},o.prototype.pipe=function(t,e){function i(){A("onend"),t.end()}function n(e){A("ondata"),e=t.write(e),A("dest.write",e),!1===e&&((1===f.pipesCount&&f.pipes===t||1<f.pipesCount&&-1!==M(f.pipes,t))&&!d&&(A("false write response, pause",f.awaitDrain),f.awaitDrain++),u.pause())}function o(e){A("onerror",e),a(),t.removeListener("error",o),0===t.listeners("error").length&&O(t,e)}function s(){t.removeListener("finish",h),a()}function h(){A("onfinish"),t.removeListener("close",s),a()}function a(){A("unpipe"),u.unpipe(t)}var u=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,A("pipe count=%d opts=%j",f.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?a:i,f.endEmitted?r.nextTick(e):u.once("end",e),t.on("unpipe",(function e(r,c){A("onunpipe"),r===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,A("cleanup"),t.removeListener("close",s),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",o),t.removeListener("unpipe",e),u.removeListener("end",i),u.removeListener("end",a),u.removeListener("data",n),d=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;A("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,g(t))}}(u);t.on("drain",l);var d=!1;return u.on("data",n),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",o),t.once("close",s),t.once("finish",h),t.emit("pipe",u),f.flowing||(A("pipe resume"),u.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){for(t=e.pipes,i=e.pipesCount,e.pipes=null,e.pipesCount=0,e.flowing=!1,e=0;e<i;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}var r=M(e.pipes,t);return-1===r||(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},o.prototype.on=function(t,e){e=_.prototype.on.call(this,t,e);var i=this._readableState;return"data"===t?(i.readableListening=0<this.listenerCount("readable"),!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,A("on readable",i.length,i.reading),i.length?u(this):i.reading||r.nextTick(p,this)),e},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(t,e){return e=_.prototype.removeListener.call(this,t,e),"readable"===t&&r.nextTick(c,this),e},o.prototype.removeAllListeners=function(t){var e=_.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(c,this),e},o.prototype.resume=function(){var t=this._readableState;return t.flowing||(A("resume"),t.flowing=!t.readableListening,t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(m,this,t))),t.paused=!1,this},o.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},o.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var n in t.on("end",(function(){if(A("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(n){A("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||!(i.objectMode||n&&n.length)||e.push(n)||(r=!0,t.pause())})),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(n=0;n<N.length;n++)t.on(N[n],this.emit.bind(this,N[n]));return this._read=function(e){A("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(o.prototype[Symbol.asyncIterator]=function(){return void 0===R&&(R=i(153)),R(this)}),Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(o.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(o.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),o._fromList=b,Object.defineProperty(o.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(o.from=function(t,e){return void 0===B&&(B=i(154)),B(o,t,e)})}).call(this,i(2),i(6))},function(t,e,i){t.exports=i(49).EventEmitter},function(t,e,i){(function(e){function i(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var s=this,h=this._writableState&&this._writableState.destroyed;return this._readableState&&this._readableState.destroyed||h?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,t)):e.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(i,s,t)):e.nextTick(i,s,t):o?(e.nextTick(r,s),o(t)):e.nextTick(r,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,r=t._writableState;i&&i.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i(6))},function(t,e,i){var r=i(54).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,n){if(null!=(e=null!=e.highWaterMark?e.highWaterMark:n?e[i]:null)){if(!isFinite(e)||Math.floor(e)!==e||0>e)throw new r(n?i:"highWaterMark",e);return Math.floor(e)}return t.objectMode?16:16384}}},function(t,e,i){(function(e,r){function n(t){var e=this;this.entry=this.next=null,this.finish=function(){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(void 0),i=i.next}t.corkedRequestsFree.next=e}}function o(){}function s(t,e,o){p=p||i(55),t=t||{},"boolean"!=typeof o&&(o=e instanceof p),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",o),this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var i=e._writableState,n=i.sync,o=i.writecb;if("function"!=typeof o)throw new S;i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,t?(--i.pendingcb,n?(r.nextTick(o,t),r.nextTick(c,e,i),e._writableState.errorEmitted=!0,B(e,t)):(o(t),e._writableState.errorEmitted=!0,B(e,t),c(e,i))):((t=l(i)||e.destroyed)||i.corked||i.bufferProcessing||!i.bufferedRequest||f(e,i),n?r.nextTick(u,e,i,t,o):u(e,i,t,o))},this.writecb=null,this.writelen=0,this.lastBufferedRequest=this.bufferedRequest=null,this.pendingcb=0,this.errorEmitted=this.prefinished=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function h(t){var e=this instanceof(p=p||i(55));if(!e&&!I.call(h,this))return new h(t);this._writableState=new s(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),g.call(this)}function a(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new A("write")):i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function u(t,e,i,r){!i&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain")),e.pendingcb--,r(),c(t,e)}function f(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=Array(e.bufferedRequestCount),o=e.corkedRequestsFree;o.entry=i;for(var s=0,h=!0;i;)r[s]=i,i.isBuf||(h=!1),i=i.next,s+=1;r.allBuffers=h,a(t,e,!0,e.length,r,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i&&(r=i.chunk,a(t,e,!1,e.objectMode?1:r.length,r,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,!e.writing););null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function l(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function d(t,e){t._final((function(i){e.pendingcb--,i&&B(t,i),e.prefinished=!0,t.emit("prefinish"),c(t,e)}))}function c(t,e){var i=l(e);return i&&(e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(d,t,e))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy&&((!(e=t._readableState)||e.autoDestroy&&e.endEmitted)&&t.destroy()))),i}var p;t.exports=h,h.WritableState=s;var m={deprecate:i(74)},g=i(95),b=i(41).Buffer,v=e.Uint8Array||function(){};e=i(96);var y=i(97).getHighWaterMark,M=i(54).codes,w=M.ERR_INVALID_ARG_TYPE,_=M.ERR_METHOD_NOT_IMPLEMENTED,S=M.ERR_MULTIPLE_CALLBACK,k=M.ERR_STREAM_CANNOT_PIPE,A=M.ERR_STREAM_DESTROYED,E=M.ERR_STREAM_NULL_VALUES,x=M.ERR_STREAM_WRITE_AFTER_END,R=M.ERR_UNKNOWN_ENCODING,B=e.errorOrDestroy;if(i(38)(h,g),s.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(s.prototype,"buffer",{get:m.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){var I=Function.prototype[Symbol.hasInstance];Object.defineProperty(h,Symbol.hasInstance,{value:function(t){return!!I.call(this,t)||this===h&&(t&&t._writableState instanceof s)}})}else I=function(t){return t instanceof this};h.prototype.pipe=function(){B(this,new k)},h.prototype.write=function(t,e,i){var n,s=this._writableState,h=!1;if((n=!s.objectMode)&&(n=t,n=b.isBuffer(n)||n instanceof v),n&&!b.isBuffer(t)&&(t=b.from(t)),"function"==typeof e&&(i=e,e=null),n?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof i&&(i=o),s.ending)s=i,i=new x,B(this,i),r.nextTick(s,i);else{var u;if(!(u=n)){var f,l=i;null===(u=t)?f=new E:"string"==typeof u||s.objectMode||(f=new w("chunk",["string","Buffer"],u)),f?(B(this,f),r.nextTick(l,f),u=!1):u=!0}u&&(s.pendingcb++,(h=n)||(f=t,s.objectMode||!1===s.decodeStrings||"string"!=typeof f||(f=b.from(f,e)),t!==f&&(h=!0,e="buffer",t=f)),n=s.objectMode?1:t.length,s.length+=n,(f=s.length<s.highWaterMark)||(s.needDrain=!0),s.writing||s.corked?(n=s.lastBufferedRequest,s.lastBufferedRequest={chunk:t,encoding:e,isBuf:h,callback:i,next:null},n?n.next=s.lastBufferedRequest:s.bufferedRequest=s.lastBufferedRequest,s.bufferedRequestCount+=1):a(this,s,!1,n,t,e,i),h=f)}return h},h.prototype.cork=function(){this._writableState.corked++},h.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||f(this,t))},h.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((t+"").toLowerCase())))throw new R(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(t,e,i){i(new _("_write()"))},h.prototype._writev=null,h.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||(t=i,n.ending=!0,c(this,n),t&&(n.finished?r.nextTick(t):this.once("finish",t)),n.ended=!0,this.writable=!1),this},Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),h.prototype.destroy=e.destroy,h.prototype._undestroy=e.undestroy,h.prototype._destroy=function(t,e){e(t)}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(null===r)return this.emit("error",new a);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);l.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?s(this,null,null):this._flush((function(e,i){s(t,e,i)}))}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new f;if(t._transformState.transforming)throw new u;return t.push(null)}t.exports=n;var h=(t=i(54).codes).ERR_METHOD_NOT_IMPLEMENTED,a=t.ERR_MULTIPLE_CALLBACK,u=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=t.ERR_TRANSFORM_WITH_LENGTH_0,l=i(55);i(38)(n,l),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){i(new h("_transform()"))},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,r.transforming||(t=this._readableState,(r.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},n.prototype._read=function(t){null===(t=this._transformState).writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},n.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,i){function r(){this.init(),this._w=h,n.call(this,64,56)}e=i(38);var n=i(56),o=i(39).Buffer,s=[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],h=Array(64);e(r,n),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(t){for(var e=this._w,i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,a=0|this._f,u=0|this._g,f=0|this._h,l=0;16>l;++l)e[l]=t.readInt32BE(4*l);for(;64>l;++l){t=e[l-2];var d=e[l-15];e[l]=((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+e[l-7]+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)+e[l-16]|0}for(l=0;64>l;++l)t=f+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(u^h&(a^u))+s[l]+e[l]|0,d=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r|n&(i|r))|0,f=u,u=a,a=h,h=o+t|0,o=n,n=r,r=i,i=t+d|0;this._a=i+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0,this._f=a+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},r.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=a,o.call(this,128,112)}function n(t,e){return t>>>0<e>>>0?1:0}e=i(38);var o=i(56),s=i(39).Buffer,h=[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],a=Array(160);e(r,o),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(t){for(var e,i=this._w,r=0|this._ah,o=0|this._bh,s=0|this._ch,a=0|this._dh,u=0|this._eh,f=0|this._fh,l=0|this._gh,d=0|this._hh,c=0|this._al,p=0|this._bl,m=0|this._cl,g=0|this._dl,b=0|this._el,v=0|this._fl,y=0|this._gl,M=0|this._hl,w=0;32>w;w+=2)i[w]=t.readInt32BE(4*w),i[w+1]=t.readInt32BE(4*w+4);for(;160>w;w+=2){t=i[w-30];var _=i[w-30+1];e=(t>>>1|_<<31)^(t>>>8|_<<24)^t>>>7;var S=(_>>>1|t<<31)^(_>>>8|t<<24)^(_>>>7|t<<25),k=((t=i[w-4])>>>19|(_=i[w-4+1])<<13)^(_>>>29|t<<3)^t>>>6;_=(_>>>19|t<<13)^(t>>>29|_<<3)^(_>>>6|t<<26);var A=i[w-14],E=i[w-32],x=i[w-32+1];e=(e=(e=e+A+n(t=S+i[w-14+1]|0,S)|0)+k+n(t=t+_|0,_)|0)+E+n(t=t+x|0,x)|0,i[w]=e,i[w+1]=t}for(w=0;160>w;w+=2){e=i[w],t=i[w+1],_=r&o|s&(r|o),A=c&p|m&(c|p),E=(r>>>28|c<<4)^(c>>>2|r<<30)^(c>>>7|r<<25),x=(c>>>28|r<<4)^(r>>>2|c<<30)^(r>>>7|c<<25);var R=h[w],B=h[w+1],I=l^u&(f^l),T=y^b&(v^y);S=(S=(S=(S=d+((u>>>14|b<<18)^(u>>>18|b<<14)^(b>>>9|u<<23))+n(k=M+((b>>>14|u<<18)^(b>>>18|u<<14)^(u>>>9|b<<23))|0,M)|0)+I+n(k=k+T|0,T)|0)+R+n(k=k+B|0,B)|0)+e+n(k=k+t|0,t)|0,e=E+_+n(t=x+A|0,x)|0,d=l,M=y,l=f,y=v,f=u,v=b,u=a+S+n(b=g+k|0,g)|0,a=s,g=m,s=o,m=p,o=r,p=c,r=S+e+n(c=k+t|0,k)|0}this._al=this._al+c|0,this._bl=this._bl+p|0,this._cl=this._cl+m|0,this._dl=this._dl+g|0,this._el=this._el+b|0,this._fl=this._fl+v|0,this._gl=this._gl+y|0,this._hl=this._hl+M|0,this._ah=this._ah+r+n(this._al,c)|0,this._bh=this._bh+o+n(this._bl,p)|0,this._ch=this._ch+s+n(this._cl,m)|0,this._dh=this._dh+a+n(this._dl,g)|0,this._eh=this._eh+u+n(this._el,b)|0,this._fh=this._fh+f+n(this._fl,v)|0,this._gh=this._gh+l+n(this._gl,y)|0,this._hh=this._hh+d+n(this._hl,M)|0},r.prototype._hash=function(){function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}var e=s.allocUnsafe(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=r},function(t,e,i){(function(e,r){function n(t,e){t=t||{},e=e instanceof(M=M||i(51)),this.objectMode=!!t.objectMode,e&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:e&&(n||0===n)?n:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new R,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.reading=this.endEmitted=this.ended=!1,this.sync=!0,this.destroyed=this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.encoding=this.decoder=null,t.encoding&&(x||(x=i(50).StringDecoder),this.decoder=new x(t.encoding),this.encoding=t.encoding)}function o(t){if(M=M||i(51),!(this instanceof o))return new o(t);this._readableState=new n(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),_.call(this)}function s(t,e,i,r,n){var o=t._readableState;if(null===e)o.reading=!1,o.ended||(o.decoder&&(e=o.decoder.end())&&e.length&&(o.buffer.push(e),o.length+=o.objectMode?1:e.length),o.ended=!0,u(t));else{if(!n){var s;n=e,S.isBuffer(n)||n instanceof k||"string"==typeof n||void 0===n||o.objectMode||(s=new TypeError("Invalid non-string/buffer chunk"));var a=s}a?t.emit("error",a):o.objectMode||e&&0<e.length?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===S.prototype||(e=S.from(e)),r?o.endEmitted?t.emit("error",Error("stream.unshift() after end event")):h(t,o,e,!0):o.ended?t.emit("error",Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!i?(e=o.decoder.write(e),o.objectMode||0!==e.length?h(t,o,e,!1):o.readingMore||(o.readingMore=!0,y.nextTick(l,t,o))):h(t,o,e,!1))):r||(o.reading=!1)}return!o.ended&&(o.needReadable||o.length<o.highWaterMark||0===o.length)}function h(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&u(t)),e.readingMore||(e.readingMore=!0,y.nextTick(l,t,e))}function a(t,e){if(0>=t||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var i=t;8388608<=i?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),e.highWaterMark=i}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function u(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(E("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?y.nextTick(f,t):f(t))}function f(t){E("emit readable"),t.emit("readable"),p(t)}function l(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(E("maybeReadMore read 0"),t.read(0),i!==e.length);)i=e.length;e.readingMore=!1}function d(t){E("readable nexttick read 0"),t.read(0)}function c(t,e){e.reading||(E("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),p(t),e.flowing&&!e.reading&&t.read(0)}function p(t){var e=t._readableState;for(E("flow",e.flowing);e.flowing&&null!==t.read(););}function m(t,e){if(0===e.length)return null;if(e.objectMode)var i=e.buffer.shift();else if(!t||t>=e.length)i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear();else{if(i=e.buffer,e=e.decoder,t<i.head.data.length)e=i.head.data.slice(0,t),i.head.data=i.head.data.slice(t);else{if(t===i.head.data.length)i=i.shift();else if(e){var r=1,n=(e=i.head).data;for(t-=n.length;e=e.next;){var o=e.data,s=t>o.length?o.length:t;if(n=s===o.length?n+o:n+o.slice(0,t),0===(t-=s)){s===o.length?(++r,i.head=e.next?e.next:i.tail=null):(i.head=e,e.data=o.slice(s));break}++r}i.length-=r,i=n}else{for(e=S.allocUnsafe(t),n=1,(r=i.head).data.copy(e),t-=r.data.length;r=r.next;){if(s=t>(o=r.data).length?o.length:t,o.copy(e,e.length-t,0,s),0===(t-=s)){s===o.length?(++n,i.head=r.next?r.next:i.tail=null):(i.head=r,r.data=o.slice(s));break}++n}i.length-=n,i=e}e=i}i=e}return i}function g(t){var e=t._readableState;if(0<e.length)throw Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,y.nextTick(b,e,t))}function b(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function v(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}var y=i(67);t.exports=o;var M,w=i(92);o.ReadableState=n,i(49);var _=i(103),S=i(39).Buffer,k=e.Uint8Array||function(){};(e=i(62)).inherits=i(38);var A=i(162),E=void 0;E=A&&A.debuglog?A.debuglog("stream"):function(){};var x,R=i(163);A=i(104),e.inherits(o,_);var B=["error","close","destroy","pause","resume"];Object.defineProperty(o.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),o.prototype.destroy=A.destroy,o.prototype._undestroy=A.undestroy,o.prototype._destroy=function(t,e){this.push(null),e(t)},o.prototype.push=function(t,e){var i=this._readableState;if(i.objectMode)var r=!0;else"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=S.from(t,e),e=""),r=!0);return s(this,t,e,!1,r)},o.prototype.unshift=function(t){return s(this,t,null,!0,!1)},o.prototype.isPaused=function(){return!1===this._readableState.flowing},o.prototype.setEncoding=function(t){return x||(x=i(50).StringDecoder),this._readableState.decoder=new x(t),this._readableState.encoding=t,this},o.prototype.read=function(t){E("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return E("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?g(this):u(this),null;if(0===(t=a(t,e))&&e.ended)return 0===e.length&&g(this),null;var r=e.needReadable;return E("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&E("length less than watermark",r=!0),e.ended||e.reading?E("reading or ended",!1):r&&(E("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=a(i,e))),null===(r=0<t?m(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&g(this)),null!==r&&this.emit("data",r),r},o.prototype._read=function(t){this.emit("error",Error("_read() is not implemented"))},o.prototype.pipe=function(t,e){function i(){E("onend"),t.end()}function n(e){E("ondata"),c=!1,!1!==t.write(e)||c||((1===f.pipesCount&&f.pipes===t||1<f.pipesCount&&-1!==v(f.pipes,t))&&!d&&(E("false write response, pause",u._readableState.awaitDrain),u._readableState.awaitDrain++,c=!0),u.pause())}function o(e){E("onerror",e),a(),t.removeListener("error",o),0===t.listeners("error").length&&t.emit("error",e)}function s(){t.removeListener("finish",h),a()}function h(){E("onfinish"),t.removeListener("close",s),a()}function a(){E("unpipe"),u.unpipe(t)}var u=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,E("pipe count=%d opts=%j",f.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?a:i,f.endEmitted?y.nextTick(e):u.once("end",e),t.on("unpipe",(function e(r,c){E("onunpipe"),r===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,E("cleanup"),t.removeListener("close",s),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",o),t.removeListener("unpipe",e),u.removeListener("end",i),u.removeListener("end",a),u.removeListener("data",n),d=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;E("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,p(t))}}(u);t.on("drain",l);var d=!1,c=!1;return u.on("data",n),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?w(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",o),t.once("close",s),t.once("finish",h),t.emit("pipe",u),f.flowing||(E("pipe resume"),u.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){t=e.pipes;var r=e.pipesCount;for(e.pipes=null,e.pipesCount=0,e.flowing=!1,e=0;e<r;e++)t[e].emit("unpipe",this,i);return this}return-1===(r=v(e.pipes,t))||(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},o.prototype.on=function(t,e){return e=_.prototype.on.call(this,t,e),"data"===t?!1!==this._readableState.flowing&&this.resume():"readable"===t&&((t=this._readableState).endEmitted||t.readableListening||(t.readableListening=t.needReadable=!0,t.emittedReadable=!1,t.reading?t.length&&u(this):y.nextTick(d,this))),e},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){var t=this._readableState;return t.flowing||(E("resume"),t.flowing=!0,t.resumeScheduled||(t.resumeScheduled=!0,y.nextTick(c,this,t))),this},o.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this},o.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var n in t.on("end",(function(){if(E("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(n){E("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||!(i.objectMode||n&&n.length)||e.push(n)||(r=!0,t.pause())})),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(n=0;n<B.length;n++)t.on(B[n],this.emit.bind(this,B[n]));return this._read=function(e){E("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),o._fromList=m}).call(this,i(2),i(6))},function(t,e,i){t.exports=i(49).EventEmitter},function(t,e,i){function r(t,e){t.emit("error",e)}var n=i(67);t.exports={destroy:function(t,e){var i=this,o=this._writableState&&this._writableState.destroyed;return this._readableState&&this._readableState.destroyed||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(r,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(r,i,t),i._writableState&&(i._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,i){function r(t,e){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(!r)return this.emit("error",Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);h.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush((function(e,i){s(t,e,i)})):s(this,null,null)}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw Error("Calling transform done when still transforming");return t.push(null)}t.exports=n;var h=i(51);(t=i(62)).inherits=i(38),t.inherits(n,h),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,h.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){throw Error("_transform() is not implemented")},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,r.transforming||(t=this._readableState,(r.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},n.prototype._read=function(t){null!==(t=this._transformState).writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(t,e){var i=this;h.prototype._destroy.call(this,t,(function(t){e(t),i.emit("close")}))}},function(t,e,i){function r(t,e){o.call(this,"digest"),"string"==typeof e&&(e=s.from(e));var i="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>i?e=("rmd160"===t?new a:u(t)).update(e).digest():e.length<i&&(e=s.concat([e,f],i));for(var r=this._ipad=s.allocUnsafe(i),n=this._opad=s.allocUnsafe(i),h=0;h<i;h++)r[h]=54^e[h],n[h]=92^e[h];this._hash="rmd160"===t?new a:u(t),this._hash.update(r)}e=i(38);var n=i(170),o=i(48),s=i(39).Buffer,h=i(107),a=i(76),u=i(77),f=s.alloc(128);e(r,o),r.prototype._update=function(t){this._hash.update(t)},r.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new a:u(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new r("rmd160",e):"md5"===t?new n(h,e):new r(t,e)}},function(t,e,i){var r=i(73);t.exports=function(t){return(new r).update(t).digest()}},function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(t,e,i){e.pbkdf2=i(172),e.pbkdf2Sync=i(112)},function(t,e,i){(function(e){function i(t,i){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(i+" must be a buffer or string")}var r=Math.pow(2,30)-1;t.exports=function(t,e,n,o){if(i(t,"Password"),i(e,"Salt"),"number"!=typeof n)throw new TypeError("Iterations not a number");if(0>n)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(0>o||o>r||o!=o)throw new TypeError("Bad key length")}}).call(this,i(41).Buffer)},function(t,e,i){e=(e=i(6)).browser||6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary",t.exports=e},function(t,e,i){function r(t,e,i){var r=n(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=r(e):e.length<o&&(e=f.concat([e,l],o));for(var s=f.allocUnsafe(o+d[t]),h=f.allocUnsafe(o+d[t]),a=0;a<o;a++)s[a]=54^e[a],h[a]=92^e[a];e=f.allocUnsafe(o+i+4),s.copy(e,0,0,o),this.ipad1=e,this.ipad2=s,this.opad=h,this.alg=t,this.blocksize=o,this.hash=r,this.size=d[t]}function n(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new s).update(t).digest()}:"md5"===t?o:function(e){return h(t).update(e).digest()}}var o=i(107),s=i(76),h=i(77),a=i(110),u=i(111),f=i(39).Buffer,l=f.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};r.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,i,n,o){a(t,e,i,n),f.isBuffer(t)||(t=f.from(t,u)),f.isBuffer(e)||(e=f.from(e,u)),t=new r(o=o||"sha1",t,e.length);var s=f.allocUnsafe(n),h=f.allocUnsafe(e.length+4);e.copy(h,0,0,e.length);var l=0;o=d[o],n=Math.ceil(n/o);for(var c=1;c<=n;c++){h.writeUInt32BE(c,e.length);for(var p=t.run(h,t.ipad1),m=p,g=1;g<i;g++){m=t.run(m,t.ipad2);for(var b=0;b<o;b++)p[b]^=m[b]}p.copy(s,l),l+=o}return s}},function(t,e,i){e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,r){for(var n=0,o=0,s=6;0<=s;s-=2){for(var h=0;24>=h;h+=8)n<<=1,n|=e>>>h+s&1;for(h=0;24>=h;h+=8)n<<=1,n|=t>>>h+s&1}for(s=6;0<=s;s-=2){for(h=1;25>=h;h+=8)o<<=1,o|=e>>>h+s&1;for(h=1;25>=h;h+=8)o<<=1,o|=t>>>h+s&1}i[r+0]=n>>>0,i[r+1]=o>>>0},e.rip=function(t,e,i,r){for(var n=0,o=0,s=0;4>s;s++)for(var h=24;0<=h;h-=8)n<<=1,n|=e>>>h+s&1,n<<=1,n|=t>>>h+s&1;for(s=4;8>s;s++)for(h=24;0<=h;h-=8)o<<=1,o|=e>>>h+s&1,o<<=1,o|=t>>>h+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.pc1=function(t,e,i,r){for(var n=0,o=0,s=7;5<=s;s--){for(var h=0;24>=h;h+=8)n<<=1,n|=e>>h+s&1;for(h=0;24>=h;h+=8)n<<=1,n|=t>>h+s&1}for(h=0;24>=h;h+=8)n<<=1,n|=e>>h+s&1;for(s=1;3>=s;s++){for(h=0;24>=h;h+=8)o<<=1,o|=e>>h+s&1;for(h=0;24>=h;h+=8)o<<=1,o|=t>>h+s&1}for(h=0;24>=h;h+=8)o<<=1,o|=t>>h+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,i,n){for(var o=0,s=0,h=r.length>>>1,a=0;a<h;a++)o<<=1,o|=t>>>r[a]&1;for(a=h;a<r.length;a++)s<<=1,s|=e>>>r[a]&1;i[n+0]=o>>>0,i[n+1]=s>>>0},e.expand=function(t,e,i){for(var r=0,n=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)n<<=6,n|=t>>>o&63;for(o=11;3<=o;o-=4)r|=t>>>o&63,r<<=6;e[i+0]=n>>>0,e[i+1]=(r|(31&t)<<1|t>>>31)>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,r=0;4>r;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;4>r;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i<o.length;i++)e<<=1,e|=t>>>o[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(t=t.toString(2);t.length<e;)t="0"+t;for(var r=[],n=0;n<e;n+=i)r.push(t.slice(n,n+i));return r.join(" ")}},function(t,e,i){function r(){this.tmp=Array(2),this.keys=null}function n(t){h.call(this,t);var e=new r;this._desState=e,this.deriveKeys(e,t.key)}var o=i(43);e=i(38);var s=i(113),h=i(80);e(n,h),t.exports=n,n.create=function(t){return new n(t)};var a=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];n.prototype.deriveKeys=function(t,e){t.keys=Array(32),o.equal(e.length,this.blockSize,"Invalid key length");var i=s.readUInt32BE(e,0);e=s.readUInt32BE(e,4),s.pc1(i,e,t.tmp,0),i=t.tmp[0],e=t.tmp[1];for(var r=0;r<t.keys.length;r+=2){var n=a[r>>>1];i=s.r28shl(i,n),e=s.r28shl(e,n),s.pc2(i,e,t.keys,r)}},n.prototype._update=function(t,e,i,r){var n=this._desState,o=s.readUInt32BE(t,e);t=s.readUInt32BE(t,e+4),s.ip(o,t,n.tmp,0),o=n.tmp[0],t=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,t,n.tmp,0):this._decrypt(n,o,t,n.tmp,0),o=n.tmp[0],t=n.tmp[1],s.writeUInt32BE(i,o,r),s.writeUInt32BE(i,t,r+4)},n.prototype._pad=function(t,e){for(var i=t.length-e;e<t.length;e++)t[e]=i;return!0},n.prototype._unpad=function(t){for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)o.equal(t[i],e);return t.slice(0,t.length-e)},n.prototype._encrypt=function(t,e,i,r,n){for(var o=0;o<t.keys.length;o+=2){var h=t.keys[o],a=t.keys[o+1];s.expand(i,t.tmp,0),h^=t.tmp[0],a^=t.tmp[1],h=s.substitute(h,a),a=i,i=(e^(h=s.permute(h)))>>>0,e=a}s.rip(i,e,r,n)},n.prototype._decrypt=function(t,e,i,r,n){for(var o=t.keys.length-2;0<=o;o-=2){var h=t.keys[o],a=t.keys[o+1];s.expand(i,t.tmp,0),h^=t.tmp[0],a^=t.tmp[1],h=s.substitute(h,a),a=i,i=(e^(h=s.permute(h)))>>>0,e=a}s.rip(i,e,r,n)}},function(t,e,i){var r=i(63),n=i(39).Buffer,o=i(116);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),s=t._cache.length;t._cache=n.concat([t._cache,n.allocUnsafe(16*i)]);for(var h=0;h<i;h++){var a=t,u=a._cipher.encryptBlockRaw(a._prev);o(a._prev),a=u,u=s+16*h,t._cache.writeUInt32BE(a[0],u+0),t._cache.writeUInt32BE(a[1],u+4),t._cache.writeUInt32BE(a[2],u+8),t._cache.writeUInt32BE(a[3],u+12)}return i=t._cache.slice(0,e.length),t._cache=t._cache.slice(e.length),r(e,i)}},function(t,e){t.exports=function(t){for(var e,i=t.length;i--;){if(255!==(e=t.readUInt8(i))){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}},function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(t,e,i){function r(t,e,i,r){s.call(this);var a=o.alloc(4,0);if(this._cipher=new n.AES(e),a=this._cipher.encryptBlock(a),this._ghash=new h(a),12===(e=i).length)this._finID=o.concat([e,o.from([0,0,0,1])]),i=o.concat([e,o.from([0,0,0,2])]);else{i=new h(a);var f=(a=e.length)%16;i.update(e),f&&i.update(o.alloc(16-f,0)),i.update(o.alloc(8,0)),e=8*a,(a=o.alloc(8)).writeUIntBE(e,0,8),i.update(a),this._finID=i.state,i=o.from(this._finID),u(i)}this._prev=o.from(i),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=r,this._len=this._alen=0,this._mode=t,this._authTag=null,this._called=!1}var n=i(68),o=i(39).Buffer,s=i(48);e=i(38);var h=i(185),a=i(63),u=i(116);e(r,s),r.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;16>e&&(e=o.alloc(e,0),this._ghash.update(e))}return this._called=!0,e=this._mode.encrypt(this,t),this._decrypt?this._ghash.update(t):this._ghash.update(e),this._len+=t.length,e},r.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var t,e=a(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(t=this._decrypt){t=this._authTag;var i=0;e.length!==t.length&&i++;for(var r=Math.min(e.length,t.length),n=0;n<r;++n)i+=e[n]^t[n];t=i}if(t)throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},r.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},r.prototype.setAuthTag=function(t){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=t},r.prototype.setAAD=function(t){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=r},function(t,e,i){function r(t,e,i,r){s.call(this),this._cipher=new n.AES(e),this._prev=o.from(i),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=r,this._mode=t}var n=i(68),o=i(39).Buffer,s=i(48);i(38)(r,s),r.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},t.exports=r},function(t,e,i){function r(t){if(null!==b)var e=b;else{e=[2];for(var i=1,r=3;1048576>r;r+=2){for(var n=Math.ceil(Math.sqrt(r)),o=0;o<i&&e[o]<=n&&0!=r%e[o];o++);i!==o&&e[o]<=n||(e[i++]=r)}b=e}for(i=0;i<e.length;i++)if(0===t.modn(e[i])){if(0===t.cmpn(e[i]))break;return!1}return!0}function n(t){var e=h.mont(t);return 0===l.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function o(t,e){if(16>t)return new h(2===e||5===e?[140,123]:[140,39]);e=new h(e);for(var i,o;;){for(i=new h(s(Math.ceil(t/8)));i.bitLength()>t;)i.ishrn(1);if(i.isEven()&&i.iadd(f),i.testn(1)||i.iadd(l),e.cmp(l)){if(!e.cmp(d))for(;i.mod(c).cmp(p);)i.iadd(g)}else for(;i.mod(a).cmp(m);)i.iadd(g);if(r(o=i.shrn(1))&&r(i)&&n(o)&&n(i)&&u.test(o)&&u.test(i))return i}}var s=i(53);t.exports=o,o.simpleSieve=r,o.fermatTest=n;var h=i(121),a=new h(24),u=new(i(122)),f=new h(1),l=new h(2),d=new h(5);new h(16),new h(8);var c=new h(10),p=new h(3);new h(7);var m=new h(11),g=new h(4);new h(12);var b=null},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(189).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){function r(t){this.rand=t||new o.Rand}var n=i(190),o=i(83);t.exports=r,r.create=function(t){return new r(t)},r.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{e=new n(this.rand.generate(i))}while(0<=e.cmp(t));return e},r.prototype._randrange=function(t,e){return e=e.sub(t),t.add(this._randbelow(e))},r.prototype.test=function(t,e,i){var r=t.bitLength(),o=n.mont(t),s=new n(1).toRed(o);e||(e=Math.max(1,r/48|0)),r=t.subn(1);for(var h=0;!r.testn(h);h++);t=t.shrn(h);for(var a=r.toRed(o);0<e;e--){var u=this._randrange(new n(2),r);if(i&&i(u),0!==(u=u.toRed(o).redPow(t)).cmp(s)&&0!==u.cmp(a)){for(var f=1;f<h;f++){if(0===(u=u.redSqr()).cmp(s))return!1;if(0===u.cmp(a))break}if(f===h)return!1}}return!0},r.prototype.getDivisor=function(t,e){var i=t.bitLength(),r=n.mont(t),o=new n(1).toRed(r);e||(e=Math.max(1,i/48|0)),i=t.subn(1);for(var s=0;!i.testn(s);s++);for(var h=t.shrn(s),a=i.toRed(r);0<e;e--){var u=this._randrange(new n(2),i),f=t.gcd(u);if(0!==f.cmpn(1))return f;if(0!==(u=u.toRed(r).redPow(h)).cmp(o)&&0!==u.cmp(a)){for(f=1;f<s;f++){if(0===(u=u.redSqr()).cmp(o))return u.fromRed().subn(1).gcd(t);if(0===u.cmp(a))break}if(f===s)return(u=u.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,i){(function(e,r){function n(t,e,r){w=w||i(58),t=t||{},"boolean"!=typeof r&&(r=e instanceof w),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=I(this,t,"readableHighWaterMark",r),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.reading=this.endEmitted=this.ended=!1,this.sync=!0,this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.encoding=this.decoder=null,t.encoding&&(x||(x=i(50).StringDecoder),this.decoder=new x(t.encoding),this.encoding=t.encoding)}function o(t){if(w=w||i(58),!(this instanceof o))return new o(t);this._readableState=new n(t,this,this instanceof w),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),_.call(this)}function s(t,e,i,r,n){A("readableAddChunk",e);var o=t._readableState;if(null===e)o.reading=!1,A("onEofChunk"),o.ended||(o.decoder&&(e=o.decoder.end())&&e.length&&(o.buffer.push(e),o.length+=o.objectMode?1:e.length),o.ended=!0,o.sync?u(t):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,f(t))));else{if(!n){var s;n=e,S.isBuffer(n)||n instanceof k||"string"==typeof n||void 0===n||o.objectMode||(s=new P("chunk",["string","Buffer","Uint8Array"],n));var a=s}if(a)O(t,a);else if(o.objectMode||e&&0<e.length)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===S.prototype||(e=S.from(e)),r)o.endEmitted?O(t,new C):h(t,o,e,!0);else if(o.ended)O(t,new j);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(e=o.decoder.write(e),o.objectMode||0!==e.length?h(t,o,e,!1):l(t,o)):h(t,o,e,!1)}else r||(o.reading=!1,l(t,o))}return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function h(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&u(t)),l(t,e)}function a(t,e){if(0>=t||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var i=t;1073741824<=i?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),e.highWaterMark=i}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function u(t){var e=t._readableState;A("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(A("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(f,t))}function f(t){var e=t._readableState;A("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,g(t)}function l(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(d,t,e))}function d(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(A("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function c(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function p(t){A("readable nexttick read 0"),t.read(0)}function m(t,e){A("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),g(t),e.flowing&&!e.reading&&t.read(0)}function g(t){var e=t._readableState;for(A("flow",e.flowing);e.flowing&&null!==t.read(););}function b(t,e){return 0===e.length?null:(e.objectMode?t=e.buffer.shift():!t||t>=e.length?(t=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(t,e.decoder),t)}function v(t){var e=t._readableState;A("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(y,e,t))}function y(t,e){A("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy&&((!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy()))}function M(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}var w;t.exports=o,o.ReadableState=n,i(49);var _=i(124),S=i(41).Buffer,k=e.Uint8Array||function(){},A=(e=i(197))&&e.debuglog?e.debuglog("stream"):function(){},E=i(198);e=i(125);var x,R,B,I=i(126).getHighWaterMark,T=i(57).codes,P=T.ERR_INVALID_ARG_TYPE,j=T.ERR_STREAM_PUSH_AFTER_EOF,L=T.ERR_METHOD_NOT_IMPLEMENTED,C=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(38)(o,_);var O=e.errorOrDestroy,N=["error","close","destroy","pause","resume"];Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),o.prototype.destroy=e.destroy,o.prototype._undestroy=e.undestroy,o.prototype._destroy=function(t,e){e(t)},o.prototype.push=function(t,e){var i=this._readableState;if(i.objectMode)var r=!0;else"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=S.from(t,e),e=""),r=!0);return s(this,t,e,!1,r)},o.prototype.unshift=function(t){return s(this,t,null,!0,!1)},o.prototype.isPaused=function(){return!1===this._readableState.flowing},o.prototype.setEncoding=function(t){x||(x=i(50).StringDecoder),t=new x(t),this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var e=this._readableState.buffer.head,r="";null!==e;)r+=t.write(e.data),e=e.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},o.prototype.read=function(t){A("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:0<e.length)||e.ended))return A("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?v(this):u(this),null;if(0===(t=a(t,e))&&e.ended)return 0===e.length&&v(this),null;var r=e.needReadable;return A("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&A("length less than watermark",r=!0),e.ended||e.reading?A("reading or ended",!1):r&&(A("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=a(i,e))),null===(r=0<t?b(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&v(this)),null!==r&&this.emit("data",r),r},o.prototype._read=function(t){O(this,new L("_read()"))},o.prototype.pipe=function(t,e){function i(){A("onend"),t.end()}function n(e){A("ondata"),e=t.write(e),A("dest.write",e),!1===e&&((1===f.pipesCount&&f.pipes===t||1<f.pipesCount&&-1!==M(f.pipes,t))&&!d&&(A("false write response, pause",f.awaitDrain),f.awaitDrain++),u.pause())}function o(e){A("onerror",e),a(),t.removeListener("error",o),0===t.listeners("error").length&&O(t,e)}function s(){t.removeListener("finish",h),a()}function h(){A("onfinish"),t.removeListener("close",s),a()}function a(){A("unpipe"),u.unpipe(t)}var u=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,A("pipe count=%d opts=%j",f.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?a:i,f.endEmitted?r.nextTick(e):u.once("end",e),t.on("unpipe",(function e(r,c){A("onunpipe"),r===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,A("cleanup"),t.removeListener("close",s),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",o),t.removeListener("unpipe",e),u.removeListener("end",i),u.removeListener("end",a),u.removeListener("data",n),d=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;A("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,g(t))}}(u);t.on("drain",l);var d=!1;return u.on("data",n),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",o),t.once("close",s),t.once("finish",h),t.emit("pipe",u),f.flowing||(A("pipe resume"),u.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){for(t=e.pipes,i=e.pipesCount,e.pipes=null,e.pipesCount=0,e.flowing=!1,e=0;e<i;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}var r=M(e.pipes,t);return-1===r||(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},o.prototype.on=function(t,e){e=_.prototype.on.call(this,t,e);var i=this._readableState;return"data"===t?(i.readableListening=0<this.listenerCount("readable"),!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,A("on readable",i.length,i.reading),i.length?u(this):i.reading||r.nextTick(p,this)),e},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(t,e){return e=_.prototype.removeListener.call(this,t,e),"readable"===t&&r.nextTick(c,this),e},o.prototype.removeAllListeners=function(t){var e=_.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(c,this),e},o.prototype.resume=function(){var t=this._readableState;return t.flowing||(A("resume"),t.flowing=!t.readableListening,t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(m,this,t))),t.paused=!1,this},o.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},o.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var n in t.on("end",(function(){if(A("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(n){A("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||!(i.objectMode||n&&n.length)||e.push(n)||(r=!0,t.pause())})),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(n=0;n<N.length;n++)t.on(N[n],this.emit.bind(this,N[n]));return this._read=function(e){A("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(o.prototype[Symbol.asyncIterator]=function(){return void 0===R&&(R=i(200)),R(this)}),Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(o.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(o.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),o._fromList=b,Object.defineProperty(o.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(o.from=function(t,e){return void 0===B&&(B=i(201)),B(o,t,e)})}).call(this,i(2),i(6))},function(t,e,i){t.exports=i(49).EventEmitter},function(t,e,i){(function(e){function i(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var s=this,h=this._writableState&&this._writableState.destroyed;return this._readableState&&this._readableState.destroyed||h?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,t)):e.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(i,s,t)):e.nextTick(i,s,t):o?(e.nextTick(r,s),o(t)):e.nextTick(r,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,r=t._writableState;i&&i.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i(6))},function(t,e,i){var r=i(57).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,n){if(null!=(e=null!=e.highWaterMark?e.highWaterMark:n?e[i]:null)){if(!isFinite(e)||Math.floor(e)!==e||0>e)throw new r(n?i:"highWaterMark",e);return Math.floor(e)}return t.objectMode?16:16384}}},function(t,e,i){(function(e,r){function n(t){var e=this;this.entry=this.next=null,this.finish=function(){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(void 0),i=i.next}t.corkedRequestsFree.next=e}}function o(){}function s(t,e,o){p=p||i(58),t=t||{},"boolean"!=typeof o&&(o=e instanceof p),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",o),this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var i=e._writableState,n=i.sync,o=i.writecb;if("function"!=typeof o)throw new S;i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,t?(--i.pendingcb,n?(r.nextTick(o,t),r.nextTick(c,e,i),e._writableState.errorEmitted=!0,B(e,t)):(o(t),e._writableState.errorEmitted=!0,B(e,t),c(e,i))):((t=l(i)||e.destroyed)||i.corked||i.bufferProcessing||!i.bufferedRequest||f(e,i),n?r.nextTick(u,e,i,t,o):u(e,i,t,o))},this.writecb=null,this.writelen=0,this.lastBufferedRequest=this.bufferedRequest=null,this.pendingcb=0,this.errorEmitted=this.prefinished=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function h(t){var e=this instanceof(p=p||i(58));if(!e&&!I.call(h,this))return new h(t);this._writableState=new s(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),g.call(this)}function a(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new A("write")):i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function u(t,e,i,r){!i&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain")),e.pendingcb--,r(),c(t,e)}function f(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=Array(e.bufferedRequestCount),o=e.corkedRequestsFree;o.entry=i;for(var s=0,h=!0;i;)r[s]=i,i.isBuf||(h=!1),i=i.next,s+=1;r.allBuffers=h,a(t,e,!0,e.length,r,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i&&(r=i.chunk,a(t,e,!1,e.objectMode?1:r.length,r,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,!e.writing););null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function l(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function d(t,e){t._final((function(i){e.pendingcb--,i&&B(t,i),e.prefinished=!0,t.emit("prefinish"),c(t,e)}))}function c(t,e){var i=l(e);return i&&(e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(d,t,e))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy&&((!(e=t._readableState)||e.autoDestroy&&e.endEmitted)&&t.destroy()))),i}var p;t.exports=h,h.WritableState=s;var m={deprecate:i(74)},g=i(124),b=i(41).Buffer,v=e.Uint8Array||function(){};e=i(125);var y=i(126).getHighWaterMark,M=i(57).codes,w=M.ERR_INVALID_ARG_TYPE,_=M.ERR_METHOD_NOT_IMPLEMENTED,S=M.ERR_MULTIPLE_CALLBACK,k=M.ERR_STREAM_CANNOT_PIPE,A=M.ERR_STREAM_DESTROYED,E=M.ERR_STREAM_NULL_VALUES,x=M.ERR_STREAM_WRITE_AFTER_END,R=M.ERR_UNKNOWN_ENCODING,B=e.errorOrDestroy;if(i(38)(h,g),s.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(s.prototype,"buffer",{get:m.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){var I=Function.prototype[Symbol.hasInstance];Object.defineProperty(h,Symbol.hasInstance,{value:function(t){return!!I.call(this,t)||this===h&&(t&&t._writableState instanceof s)}})}else I=function(t){return t instanceof this};h.prototype.pipe=function(){B(this,new k)},h.prototype.write=function(t,e,i){var n,s=this._writableState,h=!1;if((n=!s.objectMode)&&(n=t,n=b.isBuffer(n)||n instanceof v),n&&!b.isBuffer(t)&&(t=b.from(t)),"function"==typeof e&&(i=e,e=null),n?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof i&&(i=o),s.ending)s=i,i=new x,B(this,i),r.nextTick(s,i);else{var u;if(!(u=n)){var f,l=i;null===(u=t)?f=new E:"string"==typeof u||s.objectMode||(f=new w("chunk",["string","Buffer"],u)),f?(B(this,f),r.nextTick(l,f),u=!1):u=!0}u&&(s.pendingcb++,(h=n)||(f=t,s.objectMode||!1===s.decodeStrings||"string"!=typeof f||(f=b.from(f,e)),t!==f&&(h=!0,e="buffer",t=f)),n=s.objectMode?1:t.length,s.length+=n,(f=s.length<s.highWaterMark)||(s.needDrain=!0),s.writing||s.corked?(n=s.lastBufferedRequest,s.lastBufferedRequest={chunk:t,encoding:e,isBuf:h,callback:i,next:null},n?n.next=s.lastBufferedRequest:s.bufferedRequest=s.lastBufferedRequest,s.bufferedRequestCount+=1):a(this,s,!1,n,t,e,i),h=f)}return h},h.prototype.cork=function(){this._writableState.corked++},h.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||f(this,t))},h.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((t+"").toLowerCase())))throw new R(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(t,e,i){i(new _("_write()"))},h.prototype._writev=null,h.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||(t=i,n.ending=!0,c(this,n),t&&(n.finished?r.nextTick(t):this.once("finish",t)),n.ended=!0,this.writable=!1),this},Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),h.prototype.destroy=e.destroy,h.prototype._undestroy=e.undestroy,h.prototype._destroy=function(t,e){e(t)}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(null===r)return this.emit("error",new a);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);l.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?s(this,null,null):this._flush((function(e,i){s(t,e,i)}))}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new f;if(t._transformState.transforming)throw new u;return t.push(null)}t.exports=n;var h=(t=i(57).codes).ERR_METHOD_NOT_IMPLEMENTED,a=t.ERR_MULTIPLE_CALLBACK,u=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=t.ERR_TRANSFORM_WITH_LENGTH_0,l=i(58);i(38)(n,l),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){i(new h("_transform()"))},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,r.transforming||(t=this._readableState,(r.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},n.prototype._read=function(t){null===(t=this._transformState).writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},n.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,i){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",i=0;i<t.length;i++)e+=r(t[i].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"!=typeof t){for(e=0;e<t.length;e++)i[e]=0|t[e];return i}if("hex"===e)for(0!=(t=t.replace(/[^a-z0-9]+/gi,"")).length%2&&(t="0"+t),e=0;e<t.length;e+=2)i.push(parseInt(t[e]+t[e+1],16));else for(e=0;e<t.length;e++){var r=t.charCodeAt(e),n=r>>8;r&=255,n?i.push(n,r):i.push(r)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){e.base=i(70),e.short=i(209),e.mont=i(210),e.edwards=i(211)},function(t,e,i){function r(t,e,i){return t&e^t&i^e&i}var n=i(46).rotr32;e.ft_1=function(t,e,i,n){return 0===t?e&i^~e&n:1===t||3===t?e^i^n:2===t?r(e,i,n):void 0},e.ch32=function(t,e,i){return t&e^~t&i},e.maj32=r,e.p32=function(t,e,i){return t^e^i},e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},function(t,e,i){function r(){if(!(this instanceof r))return new r;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=Array(64)}var n=i(46);e=i(64);var o=i(131),s=i(43),h=n.sum32,a=n.sum32_4,u=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,c=o.s1_256,p=o.g0_256,m=o.g1_256,g=e.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];n.inherits(r,g),t.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var i=this.W,r=0;16>r;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=a(m(i[r-2]),i[r-7],p(i[r-15]),i[r-16]);t=this.h[0],e=this.h[1];var n=this.h[2],o=this.h[3],g=this.h[4],b=this.h[5],v=this.h[6],y=this.h[7];for(s(this.k.length===i.length),r=0;r<i.length;r++){var M=u(y,c(g),f(g,b,v),this.k[r],i[r]),w=h(d(t),l(t,e,n));y=v,v=b,b=g,g=h(o,M),o=n,n=e,e=t,t=h(M,w)}this.h[0]=h(this.h[0],t),this.h[1]=h(this.h[1],e),this.h[2]=h(this.h[2],n),this.h[3]=h(this.h[3],o),this.h[4]=h(this.h[4],g),this.h[5]=h(this.h[5],b),this.h[6]=h(this.h[6],v),this.h[7]=h(this.h[7],y)},r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=Array(160)}var n=i(46);e=i(64);var o=i(43),s=n.rotr64_hi,h=n.rotr64_lo,a=n.shr64_hi,u=n.shr64_lo,f=n.sum64,l=n.sum64_hi,d=n.sum64_lo,c=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=e.BlockHash,v=[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];n.inherits(r,b),t.exports=r,r.blockSize=1024,r.outSize=512,r.hmacStrength=192,r.padLength=128,r.prototype._prepareBlock=function(t,e){for(var i=this.W,r=0;32>r;r++)i[r]=t[e+r];for(;r<i.length;r+=2){var n=i[r-4],o=i[r-3];0>(t=(t=s(n,o,19))^(e=s(o,n,29))^(n=a(n,o,6)))&&(t+=4294967296),o=i[r-4];var f=i[r-3];0>(e=(e=h(o,f,19))^(n=h(f,o,29))^(o=u(o,f,6)))&&(e+=4294967296),n=i[r-14],o=i[r-13];var l=i[r-30],d=i[r-29];f=s(l,d,1);var m=s(l,d,8);0>(f=f^m^(l=a(l,d,7)))&&(f+=4294967296),d=i[r-30];var g=i[r-29];0>(m=(m=h(d,g,1))^(l=h(d,g,8))^(d=u(d,g,7)))&&(m+=4294967296),l=i[r-32],d=i[r-31],i[r]=c(t,e,n,o,f,m,l,d),i[r+1]=p(t,e,n,o,f,m,l,d)}},r.prototype._update=function(t,e){this._prepareBlock(t,e),t=this.W,e=this.h[0];var i=this.h[1],r=this.h[2],n=this.h[3],a=this.h[4],u=this.h[5],c=this.h[6],p=this.h[7],b=this.h[8],v=this.h[9],y=this.h[10],M=this.h[11],w=this.h[12],_=this.h[13],S=this.h[14],k=this.h[15];o(this.k.length===t.length);for(var A=0;A<t.length;A+=2){var E=b,x=v,R=s(E,x,14),B=s(E,x,18);0>(R=R^B^(E=s(x,E,9)))&&(R+=4294967296),E=R;var I=v;0>(R=(R=h(x=b,I,14))^(B=h(x,I,18))^(x=h(I,x,9)))&&(R+=4294967296),x=R,0>(R=b&y^~b&w)&&(R+=4294967296),B=R,0>(R=v&M^~v&_)&&(R+=4294967296),I=R;var T=this.k[A],P=this.k[A+1],j=t[A],L=t[A+1];R=m(S,k,E,x,B,I,T,P,j,L),B=g(S,k,E,x,B,I,T,P,j,L),0>(S=(S=s(E=e,x=i,28))^(k=s(x,E,2))^(E=s(x,E,7)))&&(S+=4294967296),0>(k=(k=h(x=e,I=i,28))^(E=h(I,x,2))^(x=h(I,x,7)))&&(k+=4294967296),0>(E=e&r^e&a^r&a)&&(E+=4294967296),0>(x=i&n^i&u^n&u)&&(x+=4294967296),I=l(S,k,E,x),E=d(S,k,E,x),S=w,k=_,w=y,_=M,y=b,M=v,b=l(c,p,R,B),v=d(p,p,R,B),c=a,p=u,a=r,u=n,r=e,n=i,e=l(R,B,I,E),i=d(R,B,I,E)}f(this.h,0,e,i),f(this.h,2,r,n),f(this.h,4,a,u),f(this.h,6,c,p),f(this.h,8,b,v),f(this.h,10,y,M),f(this.h,12,w,_),f(this.h,14,S,k)},r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var n=0;i=Math.min(t.length,i);for(var o=0;e<i;e++){var s=t.charCodeAt(e)-48;n<<=4,n|=s=49<=s&&54>=s?s-49+10:17<=s&&22>=s?s-17+10:s,o|=s}return r(!(240&o),"Invalid character in "+t),n}function h(t,e,i,n){var o=0;i=Math.min(t.length,i);for(var s=e;s<i;s++){var h=t.charCodeAt(s)-48;o*=n,e=49<=h?h-49+10:17<=h?h-17+10:h,r(0<=h&&e<n,"Invalid character"),o+=e}return o}function a(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}function f(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i._strip()}function l(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){var s=n;n=0,r&=67108863;for(var h=Math.min(o,e.length-1),a=Math.max(0,o-t.length+1);a<=h;a++){var u=(0|t.words[o-a])*(0|e.words[a]),f=67108863&u;r=67108863&(f=f+r|0),n+=(s=(s=s+(u/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=r,r=s}return 0!==r?i.words[o]=r:i.length--,i._strip()}function d(t,e){this.x=t,this.y=e}function c(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function y(t){v.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var M=i(226).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this._strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this._strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){a(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u:o.prototype.inspect=u;var w=" 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".split(" "),_=[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],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?w[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=_[t],o=S[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modrn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:w[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},M&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(M,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){this._strip();var n=this.byteLength();return r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),t=t.allocUnsafe?t.allocUnsafe(i):new t(i),this["_toArrayLike"+("le"===e?"LE":"BE")](t,n),t},o.prototype._toArrayLikeLE=function(t,e){for(var i=e=0,r=0,n=0;r<this.length;r++)i|=this.words[r]<<n,t[e++]=255&i,e<t.length&&(t[e++]=i>>8&255),e<t.length&&(t[e++]=i>>16&255),6===n?(e<t.length&&(t[e++]=i>>24&255),n=i=0):(i>>>=24,n+=2);if(e<t.length)for(t[e++]=i;e<t.length;)t[e++]=0},o.prototype._toArrayLikeBE=function(t,e){e=t.length-1;for(var i=0,r=0,n=0;r<this.length;r++)i|=this.words[r]<<n,t[e--]=255&i,0<=e&&(t[e--]=i>>8&255),0<=e&&(t[e--]=i>>16&255),6===n?(0<=e&&(t[e--]=i>>24&255),n=i=0):(i>>>=24,n+=2);if(0<=e)for(t[e--]=i;0<=e;)t[e--]=0},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this._strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var k=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(k=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?k(this,t,e):63>i?f(this,t,e):l(this,t,e)},d.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},d.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},d.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},d.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},d.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},d.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},d.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},d.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},d.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},d.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),l(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=0>t;e&&(t=-t),r("number"==typeof t),r(67108864>t);for(var i=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,s=(67108863&o)+(67108863&i);i>>=26,i+=o/67108864|0,i+=s>>>26,this.words[n]=67108863&s}return 0!==i&&(this.words[n]=i,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++)e[i]=t.words[i/26|0]>>>i%26&1;if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(var r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this._strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h._strip(),i._strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=0>t;e&&(t=-t),r(67108863>=t);for(var i=67108864%t,n=0,o=this.length-1;0<=o;o--)n=(i*n+(0|this.words[o]))%t;return e?-n:n},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=0>t;e&&(t=-t),r(67108863>=t);for(var i=0,n=this.length-1;0<=n;n--)i=(0|this.words[n])+67108864*i,this.words[n]=i/t|0,i%=t;return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new v(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};c.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},c.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t._strip(),t},c.prototype.split=function(t,e){t.iushrn(this.n,0,e)},c.prototype.imulK=function(t){return t.imul(this.k)},n(p,c),p.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(m,c),n(g,c),n(b,c),b.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(A[t])return A[t];if("k256"===t)var e=new p;else if("p224"===t)e=new m;else if("p192"===t)e=new g;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new b}return A[t]=e},v.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},v.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},v.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},v.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},v.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},v.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},v.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},v.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},v.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},v.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},v.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},v.prototype.isqr=function(t){return this.imul(t,t.clone())},v.prototype.sqr=function(t){return this.mul(t,t)},v.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},v.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},v.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},v.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},v.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new y(t)},n(y,v),y.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},y.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},y.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},y.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},y.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){function r(t,e){o.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function n(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof n||(t=new n(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&255>=t))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}t=i(38);var o=i(66).Reporter,s=i(41).Buffer;t(r,o),e.DecoderBuffer=r,r.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},r.prototype.restore=function(t){var e=new r(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},r.prototype.skip=function(t,e){return this.offset+t<=this.length?((e=new r(this.base))._reporterState=this._reporterState,e.offset=this.offset,e.length=this.offset+t,this.offset+=t,e):this.error(e||"DecoderBuffer overrun")},r.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=n,n.prototype.join=function(t,e){return t||(t=new s(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(t,e),e+=i.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,i){e._reverse=function(t){var e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0),e[t[i]]=i})),e},e.der=i(234)},function(t,e,i){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new n,this.tree._init(t.body)}function n(t){h.Node.call(this,"der",t)}function o(t,e){var i=t.readUInt8(e);if(t.isError(i))return i;var r=u.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){var o=i;for(i=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;i<<=7,i|=127&o}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:u.tag[i]}}function s(t,e,i){var r=t.readUInt8(i);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;if(4<(e=127&r))return t.error("length octect is too long");for(var n=r=0;n<e;n++){r<<=8;var o=t.readUInt8(i);if(t.isError(o))return o;r|=o}return r}e=i(38);var h=(i=i(65)).base,a=i.bignum,u=i.constants.der;t.exports=r,r.prototype.decode=function(t,e){return t instanceof h.DecoderBuffer||(t=new h.DecoderBuffer(t,e)),this.tree._decode(t,e)},e(n,h.Node),n.prototype._peekTag=function(t,e,i){if(t.isEmpty())return!1;var r=t.save(),n=o(t,'Failed to peek tag: "'+e+'"');return t.isError(n)?n:(t.restore(r),n.tag===e||n.tagStr===e||n.tagStr+"of"===e||i)},n.prototype._decodeTag=function(t,e,i){var r=o(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var n=s(t,r.primitive,'Failed to get length of "'+e+'"');return t.isError(n)?n:i||r.tag===e||r.tagStr===e||r.tagStr+"of"===e?r.primitive||null!==n?t.skip(n,'Failed to match body of: "'+e+'"'):(i=t.save(),n=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"'),t.isError(n)?n:(n=t.offset-i.offset,t.restore(i),t.skip(n,'Failed to match body of: "'+e+'"'))):t.error('Failed to match tag: "'+e+'"')},n.prototype._skipUntilEnd=function(t,e){for(;;){var i=o(t,e);if(t.isError(i))return i;var r=s(t,i.primitive,e);if(t.isError(r))return r;if(r=i.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===i.tagStr)break}},n.prototype._decodeList=function(t,e,i,r){for(e=[];!t.isEmpty();){var n=this._peekTag(t,"end");if(t.isError(n))return n;var o=i.decode(t,"der",r);if(t.isError(o)&&n)break;e.push(o)}return e},n.prototype._decodeStr=function(t,e){if("bitstr"===e)return e=t.readUInt8(),t.isError(e)?e:{unused:e,data:t.raw()};if("bmpstr"===e){if(1==(e=t.raw()).length%2)return t.error("Decoding of string type: bmpstr length mismatch");t="";for(var i=0;i<e.length/2;i++)t+=String.fromCharCode(e.readUInt16BE(2*i));return t}return"numstr"===e?(e=t.raw().toString("ascii"),this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")):"octstr"===e||"objDesc"===e?t.raw():"printstr"===e?(e=t.raw().toString("ascii"),this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")):/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},n.prototype._decodeObjid=function(t,e,i){for(var r,n=[],o=0;!t.isEmpty();)o<<=7,o|=127&(r=t.readUInt8()),0==(128&r)&&(n.push(o),o=0);return 128&r&&n.push(o),t=n[0]/40|0,r=n[0]%40,i=i?n:[t,r].concat(n.slice(1)),e&&(void 0===(n=e[i.join(" ")])&&(n=e[i.join(".")]),void 0!==n&&(i=n)),i},n.prototype._decodeTime=function(t,e){var i=t.raw().toString();if("gentime"===e){var r=0|i.slice(0,4),n=0|i.slice(4,6),o=0|i.slice(6,8);e=0|i.slice(8,10),t=0|i.slice(10,12),i=0|i.slice(12,14)}else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|i.slice(0,2),n=0|i.slice(2,4),o=0|i.slice(4,6),e=0|i.slice(6,8),t=0|i.slice(8,10),i=0|i.slice(10,12),r=70>r?2e3+r:1900+r}return Date.UTC(r,n-1,o,e,t,i,0)},n.prototype._decodeNull=function(t){return null},n.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},n.prototype._decodeInt=function(t,e){return t=t.raw(),t=new a(t),e&&(t=e[t.toString(10)]||t),t},n.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,i){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new n,this.tree._init(t.body)}function n(t){h.Node.call(this,"der",t)}function o(t){return 10>t?"0"+t:t}e=i(38);var s=i(41).Buffer,h=(i=i(65)).base,a=i.constants.der;t.exports=r,r.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},e(n,h.Node),n.prototype._encodeComposite=function(t,e,i,r){t:{var n=t;if(t=this.reporter,"seqof"===n?n="seq":"setof"===n&&(n="set"),a.tagByName.hasOwnProperty(n))n=a.tagByName[n];else if("number"!=typeof n||(0|n)!==n){t=t.error("Unknown tag: "+n);break t}31<=n?t=t.error("Multi-octet tag encoding unsupported"):(e||(n|=32),t=n|=a.tagClassByName[i||"universal"]<<6)}if(128>r.length)return(e=new s(2))[0]=t,e[1]=r.length,this._createEncoderBuffer([e,r]);for(n=1,i=r.length;256<=i;i>>=8)n++;for((e=new s(2+n))[0]=t,e[1]=128|n,i=1+n,t=r.length;0<t;i--,t>>=8)e[i]=255&t;return this._createEncoderBuffer([e,r])},n.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){e=new s(2*t.length);for(var i=0;i<t.length;i++)e.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},n.prototype._encodeObjid=function(t,e,i){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");for(t=e[t].split(/[\s\.]+/g),e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t))for(t=t.slice(),e=0;e<t.length;e++)t[e]|=0;if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(40<=t[1])return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var r=0;for(e=0;e<t.length;e++)for(i=t[e],r++;128<=i;i>>=7)r++;var n=(r=new s(r)).length-1;for(e=t.length-1;0<=e;e--)for(i=t[e],r[n--]=127&i;0<(i>>=7);)r[n--]=128|127&i;return this._createEncoderBuffer(r)},n.prototype._encodeTime=function(t,e){var i;return t=new Date(t),"gentime"===e?i=[o(t.getFullYear()),o(t.getUTCMonth()+1),o(t.getUTCDate()),o(t.getUTCHours()),o(t.getUTCMinutes()),o(t.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[o(t.getFullYear()%100),o(t.getUTCMonth()+1),o(t.getUTCDate()),o(t.getUTCHours()),o(t.getUTCMinutes()),o(t.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},n.prototype._encodeNull=function(){return this._createEncoderBuffer("")},n.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"==typeof t||s.isBuffer(t)||(e=t.toArray(),!t.sign&&128&e[0]&&e.unshift(0),t=new s(e)),s.isBuffer(t)){var i=t.length;return 0===t.length&&i++,i=new s(i),t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(128>t)return this._createEncoderBuffer(t);if(256>t)return this._createEncoderBuffer([0,t]);for(i=1,e=t;256<=e;e>>=8)i++;for(e=(i=Array(i)).length-1;0<=e;e--)i[e]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new s(i))},n.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},n.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},n.prototype._skipDefault=function(t,e,i){var r=this._baseState;if(null===r.default)return!1;if(t=t.join(),void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),t.length!==r.defaultBuffer.length)return!1;for(e=0;e<t.length;e++)if(t[e]!==r.defaultBuffer[e])return!1;return!0}},function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(t,e,i){var r=i(61),n=i(39).Buffer;t.exports=function(t,e){for(var i,o=n.alloc(0),s=0;o.length<e;){i=s++;var h=n.allocUnsafe(4);h.writeUInt32BE(i,0),i=h,o=n.concat([o,r("sha1").update(t).update(i).digest()])}return o.slice(0,e)}},function(t,e){t.exports=function(t,e){for(var i=t.length,r=-1;++r<i;)t[r]^=e[r];return t}},function(t,e,i){var r=i(89),n=i(39).Buffer;t.exports=function(t,e){return n.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},function(t,e,i){var r;t.exports=(r=i(40),function(t){var e=r.lib,i=e.WordArray,n=e.Hasher;e=r.algo;var o=[],s=[];!function(){function e(e){for(var i=t.sqrt(e),r=2;r<=i;r++)if(!(e%r))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var r=2,n=0;64>n;)e(r)&&(8>n&&(o[n]=i(t.pow(r,.5))),s[n]=i(t.pow(r,1/3)),n++),r++}();var h=[];e=e.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,r=i[0],n=i[1],o=i[2],a=i[3],u=i[4],f=i[5],l=i[6],d=i[7],c=0;64>c;c++){if(16>c)h[c]=0|t[e+c];else{var p=h[c-15],m=h[c-2];h[c]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+h[c-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+h[c-16]}p=d+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&f^~u&l)+s[c]+h[c],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&n^r&o^n&o),d=l,l=f,f=u,u=a+p|0,a=o,o=n,n=r,r=p+m|0}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+u|0,i[5]=i[5]+f|0,i[6]=i[6]+l|0,i[7]=i[7]+d|0},_doFinalize:function(){var e=this._data,i=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=t.floor(r/4294967296),i[15+(n+64>>>9<<4)]=r,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA256=n._createHelper(e),r.HmacSHA256=n._createHmacHelper(e)}(Math),r.SHA256)},function(t,e,i){var r;t.exports=(r=i(40),i(72),function(){function t(){return n.create.apply(n,arguments)}var e=r.lib.Hasher,i=r.x64,n=i.Word,o=i.WordArray;i=r.algo;var s=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],h=[];!function(){for(var e=0;80>e;e++)h[e]=t()}(),i=i.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){var i=this._hash.words,r=i[0],n=i[1],o=i[2],a=i[3],u=i[4],f=i[5],l=i[6];i=i[7];for(var d=r.high,c=r.low,p=n.high,m=n.low,g=o.high,b=o.low,v=a.high,y=a.low,M=u.high,w=u.low,_=f.high,S=f.low,k=l.high,A=l.low,E=i.high,x=i.low,R=d,B=c,I=p,T=m,P=g,j=b,L=v,C=y,O=M,N=w,q=_,D=S,z=k,U=A,H=E,F=x,Z=0;80>Z;Z++){var K=h[Z];if(16>Z)var W=K.high=0|t[e+2*Z],Y=K.low=0|t[e+2*Z+1];else{Y=(W=h[Z-15]).high;var V=W.low;W=(Y>>>1|V<<31)^(Y>>>8|V<<24)^Y>>>7,V=(V>>>1|Y<<31)^(V>>>8|Y<<24)^(V>>>7|Y<<25);var X=h[Z-2];Y=X.high;var $=X.low;X=(Y>>>19|$<<13)^(Y<<3|$>>>29)^Y>>>6,$=($>>>19|Y<<13)^($<<3|Y>>>29)^($>>>6|Y<<26);var G=(Y=h[Z-7]).high,J=h[Z-16],Q=J.high;J=J.low,W=(W=(W=W+G+((Y=V+Y.low)>>>0<V>>>0?1:0))+X+((Y+=$)>>>0<$>>>0?1:0))+Q+((Y+=J)>>>0<J>>>0?1:0),K.high=W,K.low=Y}G=O&q^~O&z,J=N&D^~N&U,K=R&I^R&P^I&P;var tt=B&T^B&j^T&j;V=(R>>>28|B<<4)^(R<<30|B>>>2)^(R<<25|B>>>7),X=(B>>>28|R<<4)^(B<<30|R>>>2)^(B<<25|R>>>7);var et=($=s[Z]).high,it=$.low;Q=H+((O>>>14|N<<18)^(O>>>18|N<<14)^(O<<23|N>>>9))+(($=F+((N>>>14|O<<18)^(N>>>18|O<<14)^(N<<23|O>>>9)))>>>0<F>>>0?1:0),H=z,F=U,z=q,U=D,q=O,D=N,O=L+(Q=(Q=(Q=Q+G+(($+=J)>>>0<J>>>0?1:0))+et+(($+=it)>>>0<it>>>0?1:0))+W+(($+=Y)>>>0<Y>>>0?1:0))+((N=C+$|0)>>>0<C>>>0?1:0)|0,L=P,C=j,P=I,j=T,I=R,T=B,R=Q+(W=V+K+((Y=X+tt)>>>0<X>>>0?1:0))+((B=$+Y|0)>>>0<$>>>0?1:0)|0}c=r.low=c+B,r.high=d+R+(c>>>0<B>>>0?1:0),m=n.low=m+T,n.high=p+I+(m>>>0<T>>>0?1:0),b=o.low=b+j,o.high=g+P+(b>>>0<j>>>0?1:0),y=a.low=y+C,a.high=v+L+(y>>>0<C>>>0?1:0),w=u.low=w+N,u.high=M+O+(w>>>0<N>>>0?1:0),S=f.low=S+D,f.high=_+q+(S>>>0<D>>>0?1:0),A=l.low=A+U,l.high=k+z+(A>>>0<U>>>0?1:0),x=i.low=x+F,i.high=E+H+(x>>>0<F>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(r+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),r.SHA512=e._createHelper(i),r.HmacSHA512=e._createHmacHelper(i)}(),r.SHA512)},function(t,e,i){e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i(53),e.createHash=e.Hash=i(61),e.createHmac=e.Hmac=i(106),t=i(171),t=Object.keys(t);var r="sha1 sha224 sha256 sha384 sha512 md5 rmd160".split(" ").concat(t);e.getHashes=function(){return r},t=i(109),e.pbkdf2=t.pbkdf2,e.pbkdf2Sync=t.pbkdf2Sync,t=i(173),e.Cipher=t.Cipher,e.createCipher=t.createCipher,e.Cipheriv=t.Cipheriv,e.createCipheriv=t.createCipheriv,e.Decipher=t.Decipher,e.createDecipher=t.createDecipher,e.Decipheriv=t.Decipheriv,e.createDecipheriv=t.createDecipheriv,e.getCiphers=t.getCiphers,e.listCiphers=t.listCiphers,t=i(188),e.DiffieHellmanGroup=t.DiffieHellmanGroup,e.createDiffieHellmanGroup=t.createDiffieHellmanGroup,e.getDiffieHellman=t.getDiffieHellman,e.createDiffieHellman=t.createDiffieHellman,e.DiffieHellman=t.DiffieHellman,t=i(195),e.createSign=t.createSign,e.Sign=t.Sign,e.createVerify=t.createVerify,e.Verify=t.Verify,e.createECDH=i(243),t=i(246),e.publicEncrypt=t.publicEncrypt,e.privateEncrypt=t.privateEncrypt,e.publicDecrypt=t.publicDecrypt,e.privateDecrypt=t.privateDecrypt,i=i(250),e.randomFill=i.randomFill,e.randomFillSync=i.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet
we accept pull requests
https://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,i){function r(t){var e=t.length;if(0<e%4)throw Error("Invalid string. Length must be a multiple of 4");return-1===(t=t.indexOf("="))&&(t=e),[t,t===e?0:4-t%4]}function n(t,e,i){for(var r=[],n=e;n<i;n+=3)e=(t[n]<<16&16711680)+(t[n+1]<<8&65280)+(255&t[n+2]),r.push(o[e>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]);return r.join("")}e.byteLength=function(t){var e=(t=r(t))[1];return 3*(t[0]+e)/4-e},e.toByteArray=function(t){var e=r(t),i=e[0];e=e[1];var n,o=new h(3*(i+e)/4-e),a=0,u=0<e?i-4:i;for(n=0;n<u;n+=4)i=s[t.charCodeAt(n)]<<18|s[t.charCodeAt(n+1)]<<12|s[t.charCodeAt(n+2)]<<6|s[t.charCodeAt(n+3)],o[a++]=i>>16&255,o[a++]=i>>8&255,o[a++]=255&i;return 2===e&&(i=s[t.charCodeAt(n)]<<2|s[t.charCodeAt(n+1)]>>4,o[a++]=255&i),1===e&&(i=s[t.charCodeAt(n)]<<10|s[t.charCodeAt(n+1)]<<4|s[t.charCodeAt(n+2)]>>2,o[a++]=i>>8&255,o[a++]=255&i),o},e.fromByteArray=function(t){for(var e=t.length,i=e%3,r=[],s=0,h=e-i;s<h;s+=16383)r.push(n(t,s,s+16383>h?h:s+16383));return 1===i?(t=t[e-1],r.push(o[t>>2]+o[t<<4&63]+"==")):2===i&&(t=(t[e-2]<<8)+t[e-1],r.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"=")),r.join("")};var o=[],s=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array;for(t=0;64>t;++t)o[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t],s["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t)]=t;s[45]=62,s[95]=63},function(t,e){e.read=function(t,e,i,r,n){var o=8*n-r-1,s=(1<<o)-1,h=s>>1,a=-7,u=i?-1:1,f=t[e+(n=i?n-1:0)];for(n+=u,i=f&(1<<-a)-1,f>>=-a,a+=o;0<a;i=256*i+t[e+n],n+=u,a-=8);for(o=i&(1<<-a)-1,i>>=-a,a+=r;0<a;o=256*o+t[e+n],n+=u,a-=8);if(0===i)i=1-h;else{if(i===s)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),i-=h}return(f?-1:1)*o*Math.pow(2,i-r)},e.write=function(t,e,i,r,n,o){var s,h=8*o-n-1,a=(1<<h)-1,u=a>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0;o=r?0:o-1;var l=r?1:-1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(e=isNaN(e)?1:0,r=a):(r=Math.floor(Math.log(e)/Math.LN2),1>e*(s=Math.pow(2,-r))&&(r--,s*=2),2<=(e=1<=r+u?e+f/s:e+f*Math.pow(2,1-u))*s&&(r++,s/=2),r+u>=a?(e=0,r=a):1<=r+u?(e=(e*s-1)*Math.pow(2,n),r+=u):(e=e*Math.pow(2,u-1)*Math.pow(2,n),r=0));8<=n;t[i+o]=255&e,o+=l,e/=256,n-=8);for(r=r<<n|e,h+=n;0<h;t[i+o]=255&r,o+=l,r/=256,h-=8);t[i+o-l]|=128*d}},function(t,e,i){function r(t,e){for(var i in t)e[i]=t[i]}function n(t,e,i){return s(t,e,i)}var o=i(41),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=n),n.prototype=Object.create(s.prototype),r(s,n),n.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,i)},n.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=s(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},n.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},n.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,i){(e=t.exports=i(94)).Stream=e,e.Readable=e,e.Writable=i(98),e.Duplex=i(55),e.Transform=i(99),e.PassThrough=i(155),e.finished=i(75),e.pipeline=i(156)},,function(t,e,i){function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function n(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=i(41).Buffer,s=i(152).inspect,h=s&&s.custom||"inspect";t.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null,this.length=0}return function(t,e,i){e&&n(t.prototype,e),i&&n(t,i)}(t,[{key:"push",value:function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);t=o.allocUnsafe(t>>>0);for(var e=this.head,i=0;e;)o.prototype.copy.call(e.data,t,i),i+=e.data.length,e=e.next;return t}},{key:"consume",value:function(t,e){return t<this.head.data.length?(e=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):e=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),e}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,r=e.data;for(t-=r.length;e=e.next;){var n=e.data,o=t>n.length?n.length:t;if(r=o===n.length?r+n:r+n.slice(0,t),0===(t-=o)){o===n.length?(++i,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=n.slice(o));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,s=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,s),0===(t-=s)){s===n.length?(++r,this.head=i.next?i.next:this.tail=null):(this.head=i,i.data=n.slice(s));break}++r}return this.length-=r,e}},{key:h,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){var r=i[e];e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}]),t}()},,function(t,e,i){(function(e){function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e){return{value:t,done:e}}function o(t){var e=t[u];if(null!==e){var i=t[m].read();null!==i&&(t[c]=null,t[u]=null,t[f]=null,e(n(i,!1)))}}function s(t){e.nextTick(o,t)}var h,a=i(75),u=Symbol("lastResolve"),f=Symbol("lastReject"),l=Symbol("error"),d=Symbol("ended"),c=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream"),g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r(h={get stream(){return this[m]},next:function(){var t=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[d])return Promise.resolve(n(void 0,!0));if(this[m].destroyed)return new Promise((function(i,r){e.nextTick((function(){t[l]?r(t[l]):i(n(void 0,!0))}))}));if(i=this[c])i=new Promise(function(t,e){return function(i,r){t.then((function(){e[d]?i(n(void 0,!0)):e[p](i,r)}),r)}}(i,this));else{if(null!==(i=this[m].read()))return Promise.resolve(n(i,!1));i=new Promise(this[p])}return this[c]=i}},Symbol.asyncIterator,(function(){return this})),r(h,"return",(function(){var t=this;return new Promise((function(e,i){t[m].destroy(null,(function(t){t?i(t):e(n(void 0,!0))}))}))})),h),g);t.exports=function(t){var e,i=Object.create(b,(r(e={},m,{value:t,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,f,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,d,{value:t._readableState.endEmitted,writable:!0}),r(e,p,{value:function(t,e){var r=i[m].read();r?(i[c]=null,i[u]=null,i[f]=null,t(n(r,!1))):(i[u]=t,i[f]=e)},writable:!0}),e));return i[c]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[f];null!==e&&(i[c]=null,i[u]=null,i[f]=null,e(t)),i[l]=t}else null!==(t=i[u])&&(i[c]=null,i[u]=null,i[f]=null,t(n(void 0,!0))),i[d]=!0})),t.on("readable",s.bind(null,i)),i}}).call(this,i(6))},function(t,e){t.exports=function(){throw Error("Readable.from is not available in the browser")}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}t.exports=r;var n=i(99);i(38)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){function r(t){if(t)throw t}function n(t,e,r,n){n=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(n);var o=!1;t.on("close",(function(){o=!0})),void 0===h&&(h=i(75)),h(t,{readable:e,writable:r},(function(t){if(t)return n(t);o=!0,n()}));var s=!1;return function(e){if(!o&&!s){if(s=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();n(e||new u("pipe"))}}}function o(t){t()}function s(t,e){return t.pipe(e)}var h,a=(e=i(54).codes).ERR_MISSING_ARGS,u=e.ERR_STREAM_DESTROYED;t.exports=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var h=e.length?"function"!=typeof e[e.length-1]?r:e.pop():r;if(Array.isArray(e[0])&&(e=e[0]),2>e.length)throw new a("streams");var u,f=e.map((function(t,i){var r=i<e.length-1;return n(t,r,0<i,(function(t){u||(u=t),t&&f.forEach(o),r||(f.forEach(o),h(u))}))}));return e.reduce(s)}},function(t,e,i){function r(){this.init(),this._w=h,n.call(this,64,56)}e=i(38);var n=i(56),o=i(39).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],h=Array(80);e(r,n),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,a=0;16>a;++a)e[a]=t.readInt32BE(4*a);for(;80>a;++a)e[a]=e[a-3]^e[a-8]^e[a-14]^e[a-16];for(t=0;80>t;++t){a=(i<<5|i>>>27)+(0===(a=~~(t/20))?r&n|~r&o:2===a?r&n|r&o|n&o:r^n^o)+h+e[t]+s[a]|0,h=o,o=n,n=r<<30|r>>>2,r=i,i=a}this._a=i+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=h,n.call(this,64,56)}e=i(38);var n=i(56),o=i(39).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],h=Array(80);e(r,n),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,a=0;16>a;++a)e[a]=t.readInt32BE(4*a);for(;80>a;++a)t=e[a-3]^e[a-8]^e[a-14]^e[a-16],e[a]=t<<1|t>>>31;for(a=0;80>a;++a){t=(i<<5|i>>>27)+(0===(t=~~(a/20))?r&n|~r&o:2===t?r&n|r&o|n&o:r^n^o)+h+e[a]+s[t]|0,h=o,o=n,n=r<<30|r>>>2,r=i,i=t}this._a=i+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=h,o.call(this,64,56)}e=i(38);var n=i(100),o=i(56),s=i(39).Buffer,h=Array(64);e(r,n),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=h,o.call(this,128,112)}e=i(38);var n=i(101),o=i(56),s=i(39).Buffer,h=Array(160);e(r,n),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}var e=s.allocUnsafe(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=r},function(t,e,i){function r(){n.call(this)}t.exports=r;var n=i(49).EventEmitter;i(38)(r,n),r.Readable=i(78),r.Writable=i(166),r.Duplex=i(167),r.Transform=i(168),r.PassThrough=i(169),r.Stream=r,r.prototype.pipe=function(t,e){function i(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function r(){u.readable&&u.resume&&u.resume()}function o(){f||(f=!0,t.end())}function s(){f||(f=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(a(),0===n.listenerCount(this,"error"))throw t}function a(){u.removeListener("data",i),t.removeListener("drain",r),u.removeListener("end",o),u.removeListener("close",s),u.removeListener("error",h),t.removeListener("error",h),u.removeListener("end",a),u.removeListener("close",a),t.removeListener("close",a)}var u=this;u.on("data",i),t.on("drain",r),t._isStdio||e&&!1===e.end||(u.on("end",o),u.on("close",s));var f=!1;return u.on("error",h),t.on("error",h),u.on("end",a),u.on("close",a),t.on("close",a),t.emit("pipe",u),t}},,function(t,e,i){var r=i(39).Buffer,n=i(164);t.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null,this.length=0}return t.prototype.push=function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.prototype.unshift=function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;t=r.allocUnsafe(t>>>0);for(var e=this.head,i=0;e;)e.data.copy(t,i),i+=e.data.length,e=e.next;return t},t}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},,function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}t.exports=r;var n=i(105);(t=i(62)).inherits=i(38),t.inherits(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){t.exports=i(79)},function(t,e,i){t.exports=i(51)},function(t,e,i){t.exports=i(78).Transform},function(t,e,i){t.exports=i(78).PassThrough},function(t,e,i){function r(t,e){o.call(this,"digest"),"string"==typeof e&&(e=n.from(e)),this._alg=t,this._key=e,64<e.length?e=t(e):64>e.length&&(e=n.concat([e,s],64)),t=this._ipad=n.allocUnsafe(64);for(var i=this._opad=n.allocUnsafe(64),r=0;64>r;r++)t[r]=54^e[r],i[r]=92^e[r];this._hash=[t]}e=i(38);var n=i(39).Buffer,o=i(48),s=n.alloc(128);e(r,o),r.prototype._update=function(t){this._hash.push(t)},r.prototype._final=function(){var t=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,t]))},t.exports=r},function(t,e,i){t.exports=i(108)},function(t,e,i){(function(e,r){function n(t){if(e.process&&!e.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==c[t])return c[t];var i=o(s=s||f.alloc(8),s,10,128,t).then((function(){return!0})).catch((function(){return!1}));return c[t]=i}function o(t,e,i,r,n){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:n}},t,r<<3)})).then((function(t){return f.from(t)}))}var s,h=i(110),a=i(111),u=i(112),f=i(39).Buffer,l=e.crypto&&e.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},c=[];t.exports=function(t,i,s,l,c,p){"function"==typeof c&&(p=c,c=void 0);var m=d[(c=c||"sha1").toLowerCase()];if(!m||"function"!=typeof e.Promise)return r.nextTick((function(){try{var e=u(t,i,s,l,c)}catch(t){return p(t)}p(null,e)}));if(h(t,i,s,l),"function"!=typeof p)throw Error("No callback provided to pbkdf2");f.isBuffer(t)||(t=f.from(t,a)),f.isBuffer(i)||(i=f.from(i,a)),function(t,e){t.then((function(t){r.nextTick((function(){e(null,t)}))}),(function(t){r.nextTick((function(){e(t)}))}))}(n(m).then((function(e){return e?o(t,i,s,l,m):u(t,i,s,l,c)})),p)}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e,i){if(t=t.toLowerCase(),h[t])return s.createCipheriv(t,e,i);if(a[t])return new o({key:e,iv:i,mode:t});throw new TypeError("invalid suite type")}function n(t,e,i){if(t=t.toLowerCase(),h[t])return s.createDecipheriv(t,e,i);if(a[t])return new o({key:e,iv:i,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}var o=i(174),s=i(81),h=i(82),a=i(187),u=i(69);e.createCipher=e.Cipher=function(t,e){if(t=t.toLowerCase(),h[t])var i=h[t].key,n=h[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");i=8*a[t].key,n=a[t].iv}return r(t,(e=u(e,!1,i,n)).key,e.iv)},e.createCipheriv=e.Cipheriv=r,e.createDecipher=e.Decipher=function(t,e){if(t=t.toLowerCase(),h[t])var i=h[t].key,r=h[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");i=8*a[t].key,r=a[t].iv}return n(t,(e=u(e,!1,i,r)).key,e.iv)},e.createDecipheriv=e.Decipheriv=n,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(s.getCiphers())}},function(t,e,i){function r(t){n.call(this);var e=t.mode.toLowerCase(),i=h[e],r=t.decrypt?"decrypt":"encrypt",o=t.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==e&&"des-ede-cbc"!==e||(o=s.concat([o,o.slice(0,8)])),t=t.iv,s.isBuffer(t)||(t=s.from(t)),this._des=i.create({key:o,iv:t,type:r})}var n=i(48);e=i(175);var o=i(38),s=i(39).Buffer,h={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};h.des=h["des-cbc"],h.des3=h["des-ede3-cbc"],t.exports=r,o(r,n),r.prototype._update=function(t){return s.from(this._des.update(t))},r.prototype._final=function(){return s.from(this._des.final())}},function(t,e,i){e.utils=i(113),e.Cipher=i(80),e.DES=i(114),e.CBC=i(176),e.EDE=i(177)},function(t,e,i){function r(t){n.equal(t.length,8,"Invalid IV length"),this.iv=Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}var n=i(43),o=i(38),s={};e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}o(e,t);for(var i=Object.keys(s),r=0;r<i.length;r++){var n=i[r];e.prototype[n]=s[n]}return e.create=function(t){return new e(t)},e},s._cbcInit=function(){this._cbcState=new r(this.options.iv)},s._update=function(t,e,i,r){var n=this.constructor.super_.prototype,o=this._cbcState.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=t[e+s];for(n._update.call(this,o,0,i,r),s=0;s<this.blockSize;s++)o[s]=i[r+s]}else{for(n._update.call(this,t,e,i,r),s=0;s<this.blockSize;s++)i[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=t[e+s]}}},function(t,e,i){function r(t,e){o.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),r=e.slice(8,16);e=e.slice(16,24),this.ciphers="encrypt"===t?[h.create({type:"encrypt",key:i}),h.create({type:"decrypt",key:r}),h.create({type:"encrypt",key:e})]:[h.create({type:"decrypt",key:e}),h.create({type:"encrypt",key:r}),h.create({type:"decrypt",key:i})]}function n(t){s.call(this,t),this._edeState=new r(this.type,this.options.key)}var o=i(43);e=i(38);var s=i(80),h=i(114);e(n,s),t.exports=n,n.create=function(t){return new n(t)},n.prototype._update=function(t,e,i,r){var n=this._edeState;n.ciphers[0]._update(t,e,i,r),n.ciphers[1]._update(i,r,i,r),n.ciphers[2]._update(i,r,i,r)},n.prototype._pad=h.prototype._pad,n.prototype._unpad=h.prototype._unpad},function(t,e,i){function r(t,e,i){f.call(this),this._cache=new n,this._cipher=new l.AES(e),this._prev=a.from(i),this._mode=t,this._autopadding=!0}function n(){this.cache=a.allocUnsafe(0)}function o(t,e,i){if(!(t=s[t.toLowerCase()]))throw new TypeError("invalid suite type");if("string"==typeof e&&(e=a.from(e)),e.length!==t.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof i&&(i=a.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===t.type?new u(t.module,e,i):"auth"===t.type?new h(t.module,e,i):new r(t.module,e,i)}var s=i(82),h=i(118),a=i(39).Buffer,u=i(119),f=i(48),l=i(68),d=i(69);i(38)(r,f),r.prototype._update=function(t){var e;for(this._cache.add(t),t=[];e=this._cache.get();)e=this._mode.encrypt(this,e),t.push(e);return a.concat(t)};var c=a.alloc(16,16);r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(c))throw this._cipher.scrub(),Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},n.prototype.add=function(t){this.cache=a.concat([this.cache,t])},n.prototype.get=function(){if(15<this.cache.length){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},n.prototype.flush=function(){for(var t=16-this.cache.length,e=a.allocUnsafe(t),i=-1;++i<t;)e.writeUInt8(t,i);return a.concat([this.cache,e])},e.createCipheriv=o,e.createCipher=function(t,e){var i=s[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");return o(t,(e=d(e,!1,i.key,i.iv)).key,e.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,i){var r=i(63);e.encrypt=function(t,e){return e=r(e,t._prev),t._prev=t._cipher.encryptBlock(e),t._prev},e.decrypt=function(t,e){var i=t._prev;return t._prev=e,t=t._cipher.decryptBlock(e),r(t,i)}},function(t,e,i){function r(t,e,i){var r=e.length,s=o(e,t._cache);return t._cache=t._cache.slice(r),t._prev=n.concat([t._prev,i?e:s]),s}var n=i(39).Buffer,o=i(63);e.encrypt=function(t,e,i){for(var o,s=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){s=n.concat([s,r(t,e,i)]);break}o=t._cache.length,s=n.concat([s,r(t,e.slice(0,o),i)]),e=e.slice(o)}return s}},function(t,e,i){var r=i(39).Buffer;e.encrypt=function(t,e,i){for(var n=e.length,o=r.allocUnsafe(n),s=-1;++s<n;){var h=s,a=t,u=e[s],f=i,l=a._cipher.encryptBlock(a._prev)[0]^u;a._prev=r.concat([a._prev.slice(1),r.from([f?u:l])]),o[h]=l}return o}},function(t,e,i){var r=i(39).Buffer;e.encrypt=function(t,e,i){for(var n=e.length,o=r.allocUnsafe(n),s=-1;++s<n;){for(var h,a,u,f=s,l=t,d=e[s],c=i,p=-1,m=0;8>++p;){a=d&1<<7-p?128:0,m+=(128&(h=(u=l._cipher.encryptBlock(l._prev))[0]^a))>>p%8,u=l;var g=l._prev;a=c?a:h,h=g.length;var b=-1,v=r.allocUnsafe(g.length);for(g=r.concat([g,r.from([a])]);++b<h;)v[b]=g[b]<<1|g[b+1]>>7;u._prev=v}o[f]=m}return o}},function(t,e,i){(function(t){function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}var n=i(63);e.encrypt=function(e,i){for(;e._cache.length<i.length;)e._cache=t.concat([e._cache,r(e)]);var o=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),n(i,o)}}).call(this,i(41).Buffer)},function(t,e,i){function r(t){var e=o.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function n(t){this.h=t,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}var o=i(39).Buffer,s=o.alloc(16,0);n.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},n.prototype._multiply=function(){var t=this.h;t=[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)];for(var e,i,n=[0,0,0,0],o=-1;128>++o;){for((e=0!=(this.state[~~(o/8)]&1<<7-o%8))&&(n[0]^=t[0],n[1]^=t[1],n[2]^=t[2],n[3]^=t[3]),i=0!=(1&t[3]),e=3;0<e;e--)t[e]=t[e]>>>1|(1&t[e-1])<<31;t[0]>>>=1,i&&(t[0]^=-520093696)}this.state=r(n)},n.prototype.update=function(t){for(this.cache=o.concat([this.cache,t]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},n.prototype.final=function(t,e){return this.cache.length&&this.ghash(o.concat([this.cache,s],16)),this.ghash(r([0,t,0,e])),this.state},t.exports=n},function(t,e,i){function r(t,e,i){f.call(this),this._cache=new n,this._last=void 0,this._cipher=new l.AES(e),this._prev=h.from(i),this._mode=t,this._autopadding=!0}function n(){this.cache=h.allocUnsafe(0)}function o(t,e,i){if(!(t=a[t.toLowerCase()]))throw new TypeError("invalid suite type");if("string"==typeof i&&(i=h.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof e&&(e=h.from(e)),e.length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new u(t.module,e,i,!0):"auth"===t.type?new s(t.module,e,i,!0):new r(t.module,e,i)}var s=i(118),h=i(39).Buffer,a=i(82),u=i(119),f=i(48),l=i(68),d=i(69);i(38)(r,f),r.prototype._update=function(t){var e;for(this._cache.add(t),t=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),t.push(e);return h.concat(t)},r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding){var e=(t=this._mode.decrypt(this,t))[15];if(1>e||16<e)throw Error("unable to decrypt data");for(var i=-1;++i<e;)if(t[i+(16-e)]!==e)throw Error("unable to decrypt data");return t=16===e?void 0:t.slice(0,16-e)}if(t)throw Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},n.prototype.add=function(t){this.cache=h.concat([this.cache,t])},n.prototype.get=function(t){if(t){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},n.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var i=a[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");return o(t,(e=d(e,!1,i.key,i.iv)).key,e.iv)},e.createDecipheriv=o},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,i){(function(t){var r=i(120),n=i(193),o=i(194),s={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var i=new t(n[e].prime,"hex");return e=new t(n[e].gen,"hex"),new o(i,e)},e.createDiffieHellman=e.DiffieHellman=function e(i,n,h,a){return t.isBuffer(n)||void 0===s[n]?e(i,"binary",n,h):(n=n||"binary",a=a||"binary",h=h||new t([2]),t.isBuffer(h)||(h=new t(h,a)),"number"==typeof i?new o(r(i,h),h,!0):(t.isBuffer(i)||(i=new t(i,n)),new o(i,h,!0)))}}).call(this,i(41).Buffer)},,function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(191).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,,function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,i){(function(e){function r(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._pub=new h(t),this}function n(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._priv=new h(t),this}function o(t,e,i){this.setGenerator(e),this.__prime=new h(t),this._prime=h.mont(this.__prime),this._primeLen=t.length,this._primeCode=this._priv=this._pub=void 0,i?(this.setPublicKey=r,this.setPrivateKey=n):this._primeCode=8}function s(t,i){return t=new e(t.toArray()),i?t.toString(i):t}var h=i(121),a=new(i(122)),u=new h(24),f=new h(11),l=new h(10),d=new h(3),c=new h(7),p=i(120),m=i(53);t.exports=o;var g={};Object.defineProperty(o.prototype,"verifyError",{enumerable:!0,get:function(){if("number"!=typeof this._primeCode){var t=this.__prime,e=this.__gen.toString("hex"),i=[e,t.toString(16)].join("_");if(i in g)i=g[i];else{var r=0;if(!t.isEven()&&p.simpleSieve&&p.fermatTest(t)&&a.test(t))switch(a.test(t.shrn(1))||(r+=2),e){case"02":t.mod(u).cmp(f)&&(r+=8);break;case"05":(t=t.mod(l)).cmp(d)&&t.cmp(c)&&(r+=8);break;default:r+=4}else r+=1,r="02"===e||"05"===e?r+8:r+4;i=g[i]=r}this._primeCode=i}return this._primeCode}}),o.prototype.generateKeys=function(){return this._priv||(this._priv=new h(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},o.prototype.computeSecret=function(t){t=(t=(t=new h(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new e(t.toArray());var i=this.getPrime();return t.length<i.length&&((i=new e(i.length-t.length)).fill(0),t=e.concat([i,t])),t},o.prototype.getPublicKey=function(t){return s(this._pub,t)},o.prototype.getPrivateKey=function(t){return s(this._priv,t)},o.prototype.getPrime=function(t){return s(this.__prime,t)},o.prototype.getGenerator=function(t){return s(this._gen,t)},o.prototype.setGenerator=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.__gen=t,this._gen=new h(t),this}}).call(this,i(41).Buffer)},function(t,e,i){function r(t){if(u.Writable.call(this),!(t=d[t]))throw Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function n(t){if(u.Writable.call(this),!(t=d[t]))throw Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function o(t){return new r(t)}function s(t){return new n(t)}var h=i(41).Buffer,a=i(61),u=i(196);e=i(38);var f=i(204),l=i(242),d=i(108);Object.keys(d).forEach((function(t){d[t].id=h.from(d[t].id,"hex"),d[t.toLowerCase()]=d[t]})),e(r,u.Writable),r.prototype._write=function(t,e,i){this._hash.update(t),i()},r.prototype.update=function(t,e){return"string"==typeof t&&(t=h.from(t,e)),this._hash.update(t),this},r.prototype.sign=function(t,e){this.end();var i=this._hash.digest();return t=f(i,t,this._hashType,this._signType,this._tag),e?t.toString(e):t},e(n,u.Writable),n.prototype._write=function(t,e,i){this._hash.update(t),i()},n.prototype.update=function(t,e){return"string"==typeof t&&(t=h.from(t,e)),this._hash.update(t),this},n.prototype.verify=function(t,e,i){return"string"==typeof e&&(e=h.from(e,i)),this.end(),i=this._hash.digest(),l(e,i,t,this._signType,this._tag)},t.exports={Sign:o,Verify:s,createSign:o,createVerify:s}},function(t,e,i){(e=t.exports=i(123)).Stream=e,e.Readable=e,e.Writable=i(127),e.Duplex=i(58),e.Transform=i(128),e.PassThrough=i(202),e.finished=i(84),e.pipeline=i(203)},,function(t,e,i){function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function n(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=i(41).Buffer,s=i(199).inspect,h=s&&s.custom||"inspect";t.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null,this.length=0}return function(t,e,i){e&&n(t.prototype,e),i&&n(t,i)}(t,[{key:"push",value:function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);t=o.allocUnsafe(t>>>0);for(var e=this.head,i=0;e;)o.prototype.copy.call(e.data,t,i),i+=e.data.length,e=e.next;return t}},{key:"consume",value:function(t,e){return t<this.head.data.length?(e=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):e=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),e}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,r=e.data;for(t-=r.length;e=e.next;){var n=e.data,o=t>n.length?n.length:t;if(r=o===n.length?r+n:r+n.slice(0,t),0===(t-=o)){o===n.length?(++i,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=n.slice(o));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,s=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,s),0===(t-=s)){s===n.length?(++r,this.head=i.next?i.next:this.tail=null):(this.head=i,i.data=n.slice(s));break}++r}return this.length-=r,e}},{key:h,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){var r=i[e];e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}]),t}()},,function(t,e,i){(function(e){function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e){return{value:t,done:e}}function o(t){var e=t[u];if(null!==e){var i=t[m].read();null!==i&&(t[c]=null,t[u]=null,t[f]=null,e(n(i,!1)))}}function s(t){e.nextTick(o,t)}var h,a=i(84),u=Symbol("lastResolve"),f=Symbol("lastReject"),l=Symbol("error"),d=Symbol("ended"),c=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream"),g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r(h={get stream(){return this[m]},next:function(){var t=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[d])return Promise.resolve(n(void 0,!0));if(this[m].destroyed)return new Promise((function(i,r){e.nextTick((function(){t[l]?r(t[l]):i(n(void 0,!0))}))}));if(i=this[c])i=new Promise(function(t,e){return function(i,r){t.then((function(){e[d]?i(n(void 0,!0)):e[p](i,r)}),r)}}(i,this));else{if(null!==(i=this[m].read()))return Promise.resolve(n(i,!1));i=new Promise(this[p])}return this[c]=i}},Symbol.asyncIterator,(function(){return this})),r(h,"return",(function(){var t=this;return new Promise((function(e,i){t[m].destroy(null,(function(t){t?i(t):e(n(void 0,!0))}))}))})),h),g);t.exports=function(t){var e,i=Object.create(b,(r(e={},m,{value:t,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,f,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,d,{value:t._readableState.endEmitted,writable:!0}),r(e,p,{value:function(t,e){var r=i[m].read();r?(i[c]=null,i[u]=null,i[f]=null,t(n(r,!1))):(i[u]=t,i[f]=e)},writable:!0}),e));return i[c]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[f];null!==e&&(i[c]=null,i[u]=null,i[f]=null,e(t)),i[l]=t}else null!==(t=i[u])&&(i[c]=null,i[u]=null,i[f]=null,t(n(void 0,!0))),i[d]=!0})),t.on("readable",s.bind(null,i)),i}}).call(this,i(6))},function(t,e){t.exports=function(){throw Error("Readable.from is not available in the browser")}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}t.exports=r;var n=i(128);i(38)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){function r(t){if(t)throw t}function n(t,e,r,n){n=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(n);var o=!1;t.on("close",(function(){o=!0})),void 0===h&&(h=i(84)),h(t,{readable:e,writable:r},(function(t){if(t)return n(t);o=!0,n()}));var s=!1;return function(e){if(!o&&!s){if(s=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();n(e||new u("pipe"))}}}function o(t){t()}function s(t,e){return t.pipe(e)}var h,a=(e=i(57).codes).ERR_MISSING_ARGS,u=e.ERR_STREAM_DESTROYED;t.exports=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var h=e.length?"function"!=typeof e[e.length-1]?r:e.pop():r;if(Array.isArray(e[0])&&(e=e[0]),2>e.length)throw new a("streams");var u,f=e.map((function(t,i){var r=i<e.length-1;return n(t,r,0<i,(function(t){u||(u=t),t&&f.forEach(o),r||(f.forEach(o),h(u))}))}));return e.reduce(s)}},function(t,e,i){function r(t,e,i,r){if((t=s.from(t.toArray())).length<e.byteLength()){var o=s.alloc(e.byteLength()-t.length);t=s.concat([o,t])}return o=i.length,i=(i=n(i,e)).mod(e),(i=s.from(i.toArray())).length<e.byteLength()&&(e=s.alloc(e.byteLength()-i.length),i=s.concat([e,i])),e=i,(i=s.alloc(o)).fill(1),o=s.alloc(o),o=h(r,o).update(i).update(s.from([0])).update(t).update(e).digest(),i=h(r,o).update(i).digest(),{k:o=h(r,o).update(i).update(s.from([1])).update(t).update(e).digest(),v:i=h(r,o).update(i).digest()}}function n(t,e){var i=new f(t);return 0<(t=(t.length<<3)-e.bitLength())&&i.ishrn(t),i}function o(t,e,i){var r;do{for(r=s.alloc(0);8*r.length<t.bitLength();)e.v=h(i,e.k).update(e.v).digest(),r=s.concat([r,e.v]);r=n(r,t),e.k=h(i,e.k).update(e.v).update(s.from([0])).digest(),e.v=h(i,e.k).update(e.v).digest()}while(-1!==r.cmp(t));return r}var s=i(41).Buffer,h=i(106),a=i(85),u=i(86).ec,f=i(134),l=i(71),d=i(139);t.exports=function(t,e,i,h,c){if((e=l(e)).curve){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw Error("wrong private key type");if(i=t,!(t=d[e.curve.join(".")]))throw Error("unknown curve "+e.curve.join("."));return i=new u(t).keyFromPrivate(e.privateKey).sign(i),s.from(i.toDER())}if("dsa"===e.type){if("dsa"!==h)throw Error("wrong private key type");var p=t;t=e.params.priv_key,h=e.params.p,c=e.params.q,e=e.params.g;var m=new f(0),g=n(p,c).mod(c),b=!1;for(p=r(t,c,p,i);!1===b;){m=b=o(c,p,i);var v=c;m=e.toRed(f.mont(h)).redPow(m).fromRed().mod(v),0===(b=b.invm(c).imul(g.add(t.mul(m))).mod(c)).cmpn(0)&&(b=!1,m=new f(0))}return i=b,e=m.toArray(),i=i.toArray(),128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),t=(t=[48,e.length+i.length+4,2,e.length]).concat(e,[2,i.length],i),s.from(t)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw Error("wrong private key type");for(t=s.concat([c,t]),h=e.modulus.byteLength(),i=[0,1];t.length+i.length+1<h;)i.push(255);for(i.push(0),h=-1;++h<t.length;)i.push(t[h]);return a(i,e)},t.exports.getKey=r,t.exports.makeKey=o},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(206).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,function(t){t.exports=JSON.parse('{"_args":[["[email protected]","C:\\Users\\scarr\\Desktop\\SCISRC"]],"_development":true,"_from":"[email protected]","_id":"[email protected]","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"[email protected]","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.2","saveSpec":null,"fetchSpec":"6.5.2"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_spec":"6.5.2","_where":"C:\\Users\\scarr\\Desktop\\SCISRC","author":{"name":"Fedor Indutny","email":"[email protected]"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://[email protected]/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},,function(t,e,i){function r(t){a.call(this,"short",t),this.a=new s(t.a,16).toRed(this.red),this.b=new s(t.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(t),this._endoWnafT1=Array(4),this._endoWnafT2=Array(4)}function n(t,e,i,r){a.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.y=this.x=null,this.inf=!0):(this.x=new s(e,16),this.y=new s(i,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function o(t,e,i,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===r?(this.y=this.x=this.curve.one,this.z=new s(0)):(this.x=new s(e,16),this.y=new s(i,16),this.z=new s(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}e=i(44);var s=i(47),h=i(38),a=i(70),u=e.assert;h(r,a),t.exports=r,r.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)var e=new s(t.beta,16).toRed(this.red);else e=(e=0>(e=this._getEndoRoots(this.p))[0].cmp(e[1])?e[0]:e[1]).toRed(this.red);if(t.lambda)var i=new s(t.lambda,16);else i=this._getEndoRoots(this.n),0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?i=i[0]:(i=i[1],u(0===this.g.mul(i).x.cmp(this.g.x.redMul(e))));return{beta:e,lambda:i,basis:t=t.basis?t.basis.map((function(t){return{a:new s(t.a,16),b:new s(t.b,16)}})):this._getEndoBasis(i)}}},r.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:s.mont(t),i=new s(2).toRed(e).redInvm();return t=i.redNeg(),i=new s(3).toRed(e).redNeg().redSqrt().redMul(i),[e=t.redAdd(i).fromRed(),t=t.redSub(i).fromRed()]},r.prototype._getEndoBasis=function(t){for(var e,i,r,n,o,h,a,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=this.n.clone(),l=new s(1),d=new s(0),c=new s(0),p=new s(1),m=0;0!==t.cmpn(0);){var g=f.div(t);if(a=f.sub(g.mul(t)),o=c.sub(g.mul(l)),g=p.sub(g.mul(d)),!r&&0>a.cmp(u))e=h.neg(),i=l,r=a.neg(),n=o;else if(r&&2==++m)break;h=a,f=t,t=a,c=l,l=o,p=d,d=g}return u=a.neg(),h=r.sqr().add(n.sqr()),0<=u.sqr().add(o.sqr()).cmp(h)&&(u=e,o=i),r.negative&&(r=r.neg(),n=n.neg()),u.negative&&(u=u.neg(),o=o.neg()),[{a:r,b:n},{a:u,b:o}]},r.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],r=e[1],n=r.b.mul(t).divRound(this.n),o=i.b.neg().mul(t).divRound(this.n);e=n.mul(i.a);var s=o.mul(r.a);return i=n.mul(i.b),r=o.mul(r.b),{k1:t=t.sub(e).sub(s),k2:e=i.add(r).neg()}},r.prototype.pointFromX=function(t,e){(t=new s(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw Error("invalid point");return i=r.fromRed().isOdd(),(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},r.prototype.validate=function(t){if(t.inf)return!0;var e=t.x;t=t.y;var i=this.a.redMul(e);return e=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b),0===t.redSqr().redISub(e).cmpn(0)},r.prototype._endoWnafMulAdd=function(t,e,i){for(var r=this._endoWnafT1,n=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),h=t[o],a=h._getBeta();s.k1.negative&&(s.k1.ineg(),h=h.neg(!0)),s.k2.negative&&(s.k2.ineg(),a=a.neg(!0)),r[2*o]=h,r[2*o+1]=a,n[2*o]=s.k1,n[2*o+1]=s.k2}for(t=this._wnafMulAdd(1,r,n,2*o,i),e=0;e<2*o;e++)r[e]=null,n[e]=null;return t},h(n,a.BasePoint),r.prototype.point=function(t,e,i){return new n(this,t,e,i)},r.prototype.pointFromJSON=function(t,e){return n.fromJSON(this,t,e)},n.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,r=function(t){return i.point(t.x.redMul(i.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},n.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]},n.fromJSON=function(t,e,i){function r(e){return t.point(e[0],e[1],i)}"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],i);return e[2]?(e=e[2],n.precomputed={beta:null,doubles:e.doubles&&{step:e.doubles.step,points:[n].concat(e.doubles.points.map(r))},naf:e.naf&&{wnd:e.naf.wnd,points:[n].concat(e.naf.points.map(r))}},n):n},n.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)+">"},n.prototype.isInfinity=function(){return this.inf},n.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t)||0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);return 0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm())),t=e.redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y),this.curve.point(t,e)},n.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr();return t=t.redInvm(),e=(i=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t)).redSqr().redISub(this.x.redAdd(this.x)),i=i.redMul(this.x.redSub(e)).redISub(this.y),this.curve.point(e,i)},n.prototype.getX=function(){return this.x.fromRed()},n.prototype.getY=function(){return this.y.fromRed()},n.prototype.mul=function(t){return t=new s(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},n.prototype.mulAdd=function(t,e,i){return e=[this,e],t=[t,i],this.curve.endo?this.curve._endoWnafMulAdd(e,t):this.curve._wnafMulAdd(1,e,t,2)},n.prototype.jmulAdd=function(t,e,i){return e=[this,e],t=[t,i],this.curve.endo?this.curve._endoWnafMulAdd(e,t,!0):this.curve._wnafMulAdd(1,e,t,2,!0)},n.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},n.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){t=this.precomputed;var i=function(t){return t.neg()};e.precomputed={naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e},n.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},h(o,a.BasePoint),r.prototype.jpoint=function(t,e,i){return new o(this,t,e,i)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e);return t=this.y.redMul(e).redMul(t),this.curve.point(i,t)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),r=this.x.redMul(e),n=t.x.redMul(i);if(e=this.y.redMul(e.redMul(t.z)),i=t.y.redMul(i.redMul(this.z)),n=r.redSub(n),i=e.redSub(i),0===n.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var o=n.redSqr(),s=o.redMul(n);return o=r.redMul(o),r=i.redSqr().redIAdd(s).redISub(o).redISub(o),e=i.redMul(o.redISub(r)).redISub(e.redMul(s)),t=this.z.redMul(t.z).redMul(n),this.curve.jpoint(r,e,t)},o.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,r=t.x.redMul(e),n=this.y;if(t=t.y.redMul(e).redMul(this.z),r=i.redSub(r),t=n.redSub(t),0===r.cmpn(0))return 0!==t.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var o=r.redSqr();return e=o.redMul(r),o=i.redMul(o),i=t.redSqr().redIAdd(e).redISub(o).redISub(o),n=t.redMul(o.redISub(i)).redISub(n.redMul(e)),r=this.z.redMul(r),this.curve.jpoint(i,n,r)},o.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}e=this.curve.a;var r=this.curve.tinv,n=this.x;i=this.y;var o=this.z,s=o.redSqr().redSqr(),h=i.redAdd(i);for(i=0;i<t;i++){var a=n.redSqr(),u=h.redSqr(),f=u.redSqr();a=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(s)),u=n.redMul(u),n=a.redSqr().redISub(u.redAdd(u)),u=u.redISub(n),a=(a=a.redMul(u)).redIAdd(a).redISub(f),o=h.redMul(o),i+1<t&&(s=s.redMul(f)),h=a}return this.curve.jpoint(n,h.redMul(r),o)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){if(this.zOne){var t=this.x.redSqr(),e=this.y.redSqr(),i=e.redSqr();e=(e=this.x.redAdd(e).redSqr().redISub(t).redISub(i)).redIAdd(e);var r=(t=t.redAdd(t).redIAdd(t)).redSqr().redISub(e).redISub(e),n=i.redIAdd(i);n=(n=n.redIAdd(n)).redIAdd(n),i=r,e=t.redMul(e.redISub(r)).redISub(n),t=this.y.redAdd(this.y)}else t=this.x.redSqr(),i=(e=this.y.redSqr()).redSqr(),e=(e=this.x.redAdd(e).redSqr().redISub(t).redISub(i)).redIAdd(e),r=(t=t.redAdd(t).redIAdd(t)).redSqr(),n=(n=(n=i.redIAdd(i)).redIAdd(n)).redIAdd(n),i=r.redISub(e).redISub(e),e=t.redMul(e.redISub(i)).redISub(n),t=(t=this.y.redMul(this.z)).redIAdd(t);return this.curve.jpoint(i,e,t)},o.prototype._threeDbl=function(){var t;if(this.zOne){var e=this.x.redSqr(),i=this.y.redSqr(),r=i.redSqr();i=(i=this.x.redAdd(i).redSqr().redISub(e).redISub(r)).redIAdd(i);var n=e.redAdd(e).redIAdd(e).redIAdd(this.curve.a);e=t=n.redSqr().redISub(i).redISub(i),r=(r=(r=r.redIAdd(r)).redIAdd(r)).redIAdd(r),r=n.redMul(i.redISub(t)).redISub(r),t=this.y.redAdd(this.y)}else t=this.z.redSqr(),i=this.y.redSqr(),e=this.x.redMul(i),r=(r=this.x.redSub(t).redMul(this.x.redAdd(t))).redAdd(r).redIAdd(r),n=e.redIAdd(e),e=(n=n.redIAdd(n)).redAdd(n),e=r.redSqr().redISub(e),t=this.y.redAdd(this.z).redSqr().redISub(i).redISub(t),i=(i=(i=(i=i.redSqr()).redIAdd(i)).redIAdd(i)).redIAdd(i),r=r.redMul(n.redISub(e)).redISub(i);return this.curve.jpoint(e,r,t)},o.prototype._dbl=function(){var t=this.curve.a,e=this.x,i=this.y,r=this.z,n=r.redSqr().redSqr(),o=e.redSqr(),s=i.redSqr();return t=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(n)),n=(e=(e=e.redAdd(e)).redIAdd(e)).redMul(s),e=t.redSqr().redISub(n.redAdd(n)),n=n.redISub(e),s=(s=(s=(s=s.redSqr()).redIAdd(s)).redIAdd(s)).redIAdd(s),s=t.redMul(n).redISub(s),i=i.redAdd(i).redMul(r),this.curve.jpoint(e,s,i)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr(),r=e.redSqr(),n=t.redAdd(t).redIAdd(t),o=n.redSqr(),s=(t=(t=(t=(t=this.x.redAdd(e).redSqr().redISub(t).redISub(r)).redIAdd(t)).redAdd(t).redIAdd(t)).redISub(o)).redSqr();return r=(r=(r=(r=r.redIAdd(r)).redIAdd(r)).redIAdd(r)).redIAdd(r),n=n.redIAdd(t).redSqr().redISub(o).redISub(s).redISub(r),e=(e=(e=e.redMul(n)).redIAdd(e)).redIAdd(e),e=(e=(e=this.x.redMul(s).redISub(e)).redIAdd(e)).redIAdd(e),r=(r=(r=(r=this.y.redMul(n.redMul(r.redISub(n)).redISub(t.redMul(s)))).redIAdd(r)).redIAdd(r)).redIAdd(r),i=this.z.redAdd(t).redSqr().redISub(i).redISub(s),this.curve.jpoint(e,r,i)},o.prototype.mul=function(t,e){return t=new s(t,e),this.curve._wnafMul(this,t)},o.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),i=t.z.redSqr();return 0===this.x.redMul(i).redISub(t.x.redMul(e)).cmpn(0)&&(e=e.redMul(this.z),i=i.redMul(t.z),0===this.y.redMul(i).redISub(t.y.redMul(e)).cmpn(0))},o.prototype.eqXToP=function(t){var e=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(i))return!0;for(t=t.clone(),e=this.curve.redN.redMul(e);;){if(t.iadd(this.curve.n),0<=t.cmp(this.curve.p))return!1;if(i.redIAdd(e),0===this.x.cmp(i))return!0}},o.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)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){function r(t){s.call(this,"mont",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(t,e,i){s.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(e,16),this.z=new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=i(47);e=i(38);var s=i(70),h=i(44);e(r,s),t.exports=r,r.prototype.validate=function(t){var e=(t=t.normalize().x).redSqr();return 0===(t=e.redMul(t).redAdd(e.redMul(this.a)).redAdd(t)).redSqrt().redSqr().cmp(t)},e(n,s.BasePoint),r.prototype.decodePoint=function(t,e){return this.point(h.toArray(t,e),1)},r.prototype.point=function(t,e){return new n(this,t,e)},r.prototype.pointFromJSON=function(t){return n.fromJSON(this,t)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(t,e){return new n(t,e[0],e[1]||t.one)},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},n.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e);return t=t.redMul(e),e=i.redMul(e.redAdd(this.curve.a24.redMul(i))),this.curve.point(t,e)},n.prototype.add=function(){throw Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z);return t=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(t.redAdd(n).redSqr()),e=e.x.redMul(t.redISub(n).redSqr()),this.curve.point(r,e)},n.prototype.mul=function(t){var e=t.clone();t=this;for(var i=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(e=r.length-1;0<=e;e--)0===r[e]?(t=t.diffAdd(i,this),i=i.dbl()):(i=t.diffAdd(i,this),t=t.dbl());return i},n.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},n.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){function r(t){this.extended=this.mOneA=(this.twisted=1!=(0|t.a))&&-1==(0|t.a),h.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function n(t,e,i,r,n){h.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.z=this.y=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(e,16),this.y=new o(i,16),this.z=r?new o(r,16):this.curve.one,this.t=n&&new o(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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}e=i(44);var o=i(47),s=i(38),h=i(70),a=e.assert;s(r,h),t.exports=r,r.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},r.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},r.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},r.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),r=this.c2.redSub(this.a.redMul(i));if(i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),i=r.redMul(i.redInvm()),0!==(r=i.redSqrt()).redSqr().redSub(i).cmp(this.zero))throw Error("invalid point");return i=r.fromRed().isOdd(),(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},r.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),r=i.redSub(this.c2);if(i=i.redMul(this.d).redMul(this.c2).redSub(this.a),0===(r=r.redMul(i.redInvm())).cmp(this.zero)){if(e)throw Error("invalid point");return this.point(this.zero,t)}if(0!==(i=r.redSqrt()).redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},r.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr();return t=e.redMul(this.a).redAdd(i),e=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i))),0===t.cmp(e)},s(n,h.BasePoint),r.prototype.pointFromJSON=function(t){return n.fromJSON(this,t)},r.prototype.point=function(t,e,i,r){return new n(this,t,e,i,r)},n.fromJSON=function(t,e){return new n(t,e[0],e[1],e[2])},n.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)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},n.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e);i=(t=r.redAdd(e)).redSub(i);var o=r.redSub(e);return e=n.redMul(i),r=t.redMul(o),n=n.redMul(o),t=i.redMul(t),this.curve.point(e,r,t,n)},n.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),e=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var r=this.curve._mulA(e),n=r.redAdd(i);if(this.zOne)t=t.redSub(e).redSub(i).redMul(n.redSub(this.curve.two)),e=n.redMul(r.redSub(i)),r=n.redSqr().redSub(n).redSub(n);else{var o=this.z.redSqr();o=n.redSub(o).redISub(o),t=t.redSub(e).redISub(i).redMul(o),e=n.redMul(r.redSub(i)),r=n.redMul(o)}}else r=e.redAdd(i),o=this.curve._mulC(this.z).redSqr(),o=r.redSub(o).redSub(o),t=this.curve._mulC(t.redISub(r)).redMul(o),e=this.curve._mulC(r).redMul(e.redISub(i)),r=r.redMul(o);return this.curve.point(t,e,r)},n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},n.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),n=this.z.redMul(t.z.redAdd(t.z)),o=i.redSub(e);return t=n.redSub(r),r=n.redAdd(r),n=i.redAdd(e),e=o.redMul(t),i=r.redMul(n),o=o.redMul(n),t=t.redMul(r),this.curve.point(e,i,t,o)},n.prototype._projAdd=function(t){var e=this.z.redMul(t.z),i=e.redSqr(),r=this.x.redMul(t.x),n=this.y.redMul(t.y),o=this.curve.d.redMul(r).redMul(n),s=i.redSub(o);return i=i.redAdd(o),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(r).redISub(n),t=e.redMul(s).redMul(t),this.curve.twisted?(e=e.redMul(i).redMul(n.redSub(this.curve._mulA(r))),s=s.redMul(i)):(e=e.redMul(i).redMul(n.redSub(r)),s=this.curve._mulC(s).redMul(i)),this.curve.point(t,e,s)},n.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},n.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},n.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},n.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},n.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},n.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()},n.prototype.getY=function(){return this.normalize(),this.y.fromRed()},n.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},n.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;t=t.clone();for(var i=this.curve.redN.redMul(this.z);;){if(t.iadd(this.curve.n),0<=t.cmp(this.curve.p))return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},n.prototype.toP=n.prototype.normalize,n.prototype.mixedAdd=n.prototype.add},function(t,e,i){e.sha1=i(213),e.sha224=i(214),e.sha256=i(132),e.sha384=i(215),e.sha512=i(133)},function(t,e,i){function r(){if(!(this instanceof r))return new r;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}var n=i(46);e=i(64),i=i(131);var o=n.rotl32,s=n.sum32,h=n.sum32_5,a=i.ft_1,u=e.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];n.inherits(r,u),t.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(t,e){for(var i=this.W,r=0;16>r;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=o(i[r-3]^i[r-8]^i[r-14]^i[r-16],1);t=this.h[0],e=this.h[1];var n=this.h[2],u=this.h[3],l=this.h[4];for(r=0;r<i.length;r++){var d=~~(r/20);d=h(o(t,5),a(d,e,n,u),l,i[r],f[d]),l=u,u=n,n=o(e,30),e=t,t=d}this.h[0]=s(this.h[0],t),this.h[1]=s(this.h[1],e),this.h[2]=s(this.h[2],n),this.h[3]=s(this.h[3],u),this.h[4]=s(this.h[4],l)},r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var n=i(46),o=i(132);n.inherits(r,o),t.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var n=i(46),o=i(133);n.inherits(r,o),t.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function n(t,e,i,r){return 15>=t?e^i^r:31>=t?e&i|~e&r:47>=t?(e|~i)^r:63>=t?e&r|i&~r:e^(i|~r)}var o=i(46);t=i(64);var s=o.rotl32,h=o.sum32,a=o.sum32_3,u=o.sum32_4,f=t.BlockHash;o.inherits(r,f),e.ripemd160=r,r.blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var i,r=this.h[0],o=this.h[1],f=this.h[2],m=this.h[3],g=this.h[4],b=r,v=o,y=f,M=m,w=g,_=0;80>_;_++)i=h(s(u(r,n(_,o,f,m),t[l[_]+e],15>=_?0:31>=_?1518500249:47>=_?1859775393:63>=_?2400959708:2840853838),c[_]),g),r=g,g=m,m=s(f,10),f=o,o=i,i=h(s(u(b,n(79-_,v,y,M),t[d[_]+e],15>=_?1352829926:31>=_?1548603684:47>=_?1836072691:63>=_?2053994217:0),p[_]),w),b=w,w=M,M=s(y,10),y=v,v=i;i=a(this.h[1],f,M),this.h[1]=a(this.h[2],m,w),this.h[2]=a(this.h[3],g,b),this.h[3]=a(this.h[4],r,v),this.h[4]=a(this.h[0],o,y),this.h[0]=i},r.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h,"little"):o.split32(this.h,"little")};var l=[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],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[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],p=[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(t,e,i){function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.outer=this.inner=null,this._init(n.toArray(e,i))}var n=i(46),o=i(43);t.exports=r,r.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},r.prototype.update=function(t,e){return this.inner.update(t,e),this},r.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);"string"==typeof t&&(a(s.hasOwnProperty(t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var n=i(47),o=i(220);e=i(44);var s=i(87),h=i(83),a=e.assert,u=i(221),f=i(222);t.exports=r,r.prototype.keyPair=function(t){return new u(this,t)},r.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},r.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},r.prototype.genKeyPair=function(t){t||(t={}),t=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||h(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()});for(var e=this.n.byteLength(),i=this.n.sub(new n(2));;){var r=new n(t.generate(e));if(!(0<r.cmp(i)))return r.iaddn(1),this.keyFromPrivate(r)}},r.prototype._truncateToN=function(t,e){var i=8*t.byteLength()-this.n.bitLength();return 0<i&&(t=t.ushrn(i)),!e&&0<=t.cmp(this.n)?t.sub(this.n):t},r.prototype.sign=function(t,e,i,r){"object"==typeof i&&(r=i,i=null),r||(r={}),e=this.keyFromPrivate(e,i),t=this._truncateToN(new n(t,16));var s=this.n.byteLength();i=e.getPrivate().toArray("be",s),s=t.toArray("be",s),s=new o({hash:this.hash,entropy:i,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"});for(var h=this.n.sub(new n(1)),a=0;;a++){var u=r.k?r.k(a):new n(s.generate(this.n.byteLength()));if(!(0>=(u=this._truncateToN(u,!0)).cmpn(1)||0<=u.cmp(h))){var l=this.g.mul(u);if(!l.isInfinity()){var d=l.getX();if(0!==(i=d.umod(this.n)).cmpn(0)&&0!==(u=(u=u.invm(this.n).mul(i.mul(e.getPrivate()).iadd(t))).umod(this.n)).cmpn(0))return t=(l.getY().isOdd()?1:0)|(0!==d.cmp(i)?2:0),r.canonical&&0<u.cmp(this.nh)&&(u=this.n.sub(u),t^=1),new f({r:i,s:u,recoveryParam:t})}}}},r.prototype.verify=function(t,e,i,r){return t=this._truncateToN(new n(t,16)),i=this.keyFromPublic(i,r),r=(e=new f(e,"hex")).r,e=e.s,!(0>r.cmpn(1)||0<=r.cmp(this.n)||0>e.cmpn(1)||0<=e.cmp(this.n))&&(t=(e=e.invm(this.n)).mul(t).umod(this.n),e=e.mul(r).umod(this.n),this.curve._maxwellTrick?!(i=this.g.jmulAdd(t,i.getPublic(),e)).isInfinity()&&i.eqXToP(r):!(i=this.g.mulAdd(t,i.getPublic(),e)).isInfinity()&&0===i.getX().umod(this.n).cmp(r))},r.prototype.recoverPubKey=function(t,e,i,r){a((3&i)===i,"The recovery param is more than two bits"),e=new f(e,r),r=this.n;var o=new n(t);t=e.r;var s=e.s,h=1&i;if(i>>=1,0<=t.cmp(this.curve.p.umod(this.curve.n))&&i)throw Error("Unable to find sencond key candinate");return t=i?this.curve.pointFromX(t.add(this.curve.n),h):this.curve.pointFromX(t,h),e=e.r.invm(r),i=r.sub(o).mul(e).umod(r),r=s.mul(e).umod(r),this.g.mulAdd(i,t,r)},r.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new f(e,r)).recoveryParam)return e.recoveryParam;for(r=0;4>r;r++){try{var n=this.recoverPubKey(t,e,r)}catch(t){continue}if(n.eq(i))return r}throw Error("Unable to find valid recovery factor")}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this.V=this.K=this.reseedInterval=this._reseed=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex");t=o.toArray(t.pers,t.persEnc||"hex"),s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}var n=i(88),o=i(129),s=i(43);t.exports=r,r.prototype._init=function(t,e,i){for(t=t.concat(e).concat(i),this.K=Array(this.outLen/8),this.V=Array(this.outLen/8),e=0;e<this.V.length;e++)this.K[e]=0,this.V[e]=1;this._update(t),this._reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},r.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(t,e,i,r){"string"!=typeof e&&(r=i,i=e,e=null),t=o.toArray(t,e),i=o.toArray(i,r),s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},r.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");for("string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i)),r=[];r.length<t;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V);return t=r.slice(0,t),this._update(i),this._reseed++,o.encode(t,e)}},function(t,e,i){function r(t,e){this.ec=t,this.pub=this.priv=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var n=i(47),o=i(44).assert;t.exports=r,r.fromPublic=function(t,e,i){return e instanceof r?e:new r(t,{pub:e,pubEnc:i})},r.fromPrivate=function(t,e,i){return e instanceof r?e:new r(t,{priv:e,privEnc:i})},r.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},r.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},r.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(t,e){t.x||t.y?("mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y)):this.pub=this.ec.curve.decodePoint(t,e)},r.prototype.derive=function(t){return t.mul(this.priv).getX()},r.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},r.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,i){function r(t,e){if(t instanceof r)return t;this._importDER(t,e)||(f(t.r&&t.s,"Signature without r or s"),this.r=new a(t.r,16),this.s=new a(t.s,16),this.recoveryParam=void 0===t.recoveryParam?null:t.recoveryParam)}function n(){this.place=0}function o(t,e){var i=t[e.place++];if(!(128&i))return i;i&=15;for(var r=0,n=0,o=e.place;n<i;n++,o++)r<<=8,r|=t[o];return e.place=o,r}function s(t){for(var e=0,i=t.length-1;!(t[e]||128&t[e+1])&&e<i;)e++;return 0===e?t:t.slice(e)}function h(t,e){if(!(128>e)){var i=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255)}t.push(e)}var a=i(47),u=i(44),f=u.assert;t.exports=r,r.prototype._importDER=function(t,e){t=u.toArray(t,e);var i=new n;if(48!==t[i.place++]||o(t,i)+i.place!==t.length||2!==t[i.place++])return!1;var r=o(t,i);return e=t.slice(i.place,r+i.place),i.place+=r,2===t[i.place++]&&(r=o(t,i),t.length===r+i.place&&(t=t.slice(i.place,r+i.place),0===e[0]&&128&e[1]&&(e=e.slice(1)),0===t[0]&&128&t[1]&&(t=t.slice(1)),this.r=new a(e),this.s=new a(t),this.recoveryParam=null,!0))},r.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=s(e),i=s(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];return h(r,e.length),(r=r.concat(e)).push(2),h(r,i.length),e=r.concat(i),h(i=[48],e.length),i=i.concat(e),u.encode(i,t)}},function(t,e,i){function r(t){if(h("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof r))return new r(t);this.curve=t=o[t].curve,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}var n=i(88),o=i(87),s=i(44),h=s.assert,a=s.parseBytes,u=i(224),f=i(225);t.exports=r,r.prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t);e=this.g.mul(r);var n=this.encodePoint(e);return t=this.hashInt(n,i.pubBytes(),t).mul(i.priv()),t=r.add(t).umod(this.curve.n),this.makeSignature({R:e,S:t,Rencoded:n})},r.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e),i=this.keyFromPublic(i),t=this.hashInt(e.Rencoded(),i.pubBytes(),t);var r=this.g.mul(e.S());return e.R().add(i.pub().mul(t)).eq(r)},r.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return s.intFromLE(t.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},r.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},r.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},r.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},r.prototype.decodePoint=function(t){var e=(t=s.parseBytes(t)).length-1,i=t.slice(0,e).concat(-129&t[e]);return t=0!=(128&t[e]),i=s.intFromLE(i),this.curve.pointFromY(i,t)},r.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(t){return s.intFromLE(t)},r.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,i){function r(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}var n=i(44),o=n.assert,s=n.parseBytes;e=n.cachedProperty,r.fromPublic=function(t,e){return e instanceof r?e:new r(t,{pub:e})},r.fromSecret=function(t,e){return e instanceof r?e:new r(t,{secret:e})},r.prototype.secret=function(){return this._secret},e(r,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),e(r,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),e(r,"privBytes",(function(){var t=this.eddsa,e=this.hash(),i=t.encodingLength-1;return(t=e.slice(0,t.encodingLength))[0]&=248,t[i]&=127,t[i]|=64,t})),e(r,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),e(r,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),e(r,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),r.prototype.sign=function(t){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},r.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},r.prototype.getSecret=function(t){return o(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},r.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=r},function(t,e,i){function r(t,e){this.eddsa=t,"object"!=typeof e&&(e=h(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}var n=i(47),o=i(44),s=o.assert;e=o.cachedProperty;var h=o.parseBytes;e(r,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),e(r,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),e(r,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),e(r,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=r},,function(t,e,i){t=i(65),e.certificate=i(239),i=t.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())})),e.RSAPrivateKey=i,i=t.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())})),e.RSAPublicKey=i,i=t.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(r),this.key("subjectPublicKey").bitstr())})),e.PublicKey=i;var r=t.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}));i=t.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(r),this.key("subjectPrivateKey").octstr())})),e.PrivateKey=i,i=t.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())})),e.EncryptedPrivateKey=i,i=t.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())})),e.DSAPrivateKey=i,e.DSAparam=t.define("DSAparam",(function(){this.int()})),i=t.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(n),this.key("publicKey").optional().explicit(1).bitstr())})),e.ECPrivateKey=i;var n=t.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=t.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(229).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,function(t,e,i){function r(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}var n=i(65),o=i(38);e.define=function(t,e){return new r(t,e)},r.prototype._createNamed=function(t){try{var e=i(231).runInThisContext("(function "+this.name+"(entity) {
  this._initNamed(entity);
})")}catch(t){e=function(t){this._initNamed(t)}}return o(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},r.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},r.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},r.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},r.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},function(v,q){function m(){}var k=function(t){if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)i.push(e);return i},h=function(t,e){if(t.forEach)return t.forEach(e);for(var i=0;i<t.length;i++)e(t[i],i,t)},w=function(){try{return Object.defineProperty({},"_",{}),function(t,e,i){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(t){return function(t,e,i){t[e]=i}}}(),d="Array Boolean Date Error EvalError Function Infinity JSON Math NaN Number Object RangeError ReferenceError RegExp String SyntaxError TypeError URIError decodeURI decodeURIComponent encodeURI encodeURIComponent escape eval isFinite isNaN parseFloat parseInt undefined unescape".split(" ");m.prototype={};var g=q.Script=function(t){if(!(this instanceof g))return new g(t);this.code=t};g.prototype.runInContext=function(t){if(!(t instanceof m))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var i=e.contentWindow,r=i.eval,n=i.execScript;!r&&n&&(n.call(i,"null"),r=i.eval),h(k(t),(function(e){i[e]=t[e]})),h(d,(function(e){t[e]&&(i[e]=t[e])}));var o=k(i);return r=r.call(i,this.code),h(k(i),(function(e){var r;if(!(r=e in t)){t:if(o.indexOf)r=o.indexOf(e);else{for(r=0;r<o.length;r++)if(o[r]===e)break t;r=-1}r=-1===r}r&&(t[e]=i[e])})),h(d,(function(e){e in t||w(t,e,i[e])})),document.body.removeChild(e),r},g.prototype.runInThisContext=function(){return eval(this.code)},g.prototype.runInNewContext=function(t){var e=g.createContext(t),i=this.runInContext(e);return t&&h(k(e),(function(i){t[i]=e[i]})),i},h(k(g.prototype),(function(t){q[t]=g[t]=function(e){var i=g(e);return i[t].apply(i,[].slice.call(arguments,1))}})),q.isContext=function(t){return t instanceof m},q.createScript=function(t){return q.Script(t)},q.createContext=g.createContext=function(t){var e=new m;return"object"==typeof t&&h(k(t),(function(i){e[i]=t[i]})),e}},function(t,e,i){function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function n(t,e){this.path=t,this.rethrow(e)}t=i(38),e.Reporter=r,r.prototype.isError=function(t){return t instanceof n},r.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){var e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){var e=this._reporterState,i=t instanceof n;if(t=i?t:new n(e.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!e.options.partial)throw t;return i||e.errors.push(t),t},r.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},t(n,Error),n.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){function r(t,e){var i={};this._baseState=i,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}var n=i(66).Reporter,o=i(66).EncoderBuffer,s=i(66).DecoderBuffer,h=i(43);e="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" ");var a="key obj use optional explicit implicit def choice any contains".split(" ").concat(e);t.exports=r;var u="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit contains".split(" ");r.prototype.clone=function(){var t=this._baseState,e={};u.forEach((function(i){e[i]=t[i]}));var i=new this.constructor(e.parent);return i._baseState=e,i},r.prototype._wrap=function(){var t=this._baseState;a.forEach((function(e){this[e]=function(){var i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}}),this)},r.prototype._init=function(t){var e=this._baseState;h(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),h.equal(e.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(t){var e=this._baseState,i=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==i.length&&(h(null===e.children),e.children=i,i.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(h(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(i){i==(0|i)&&(i|=0),e[t[i]]=i})),e})))},"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach((function(t){r.prototype[t]=function(){throw Error(t+" not implemented for encoding: "+this._baseState.enc)}})),e.forEach((function(t){r.prototype[t]=function(){var e=this._baseState,i=Array.prototype.slice.call(arguments);return h(null===e.tag),e.tag=t,this._useArgs(i),this}})),r.prototype.use=function(t){h(t);var e=this._baseState;return h(null===e.use),e.use=t,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(t){var e=this._baseState;return h(null===e.default),e.default=t,e.optional=!0,this},r.prototype.explicit=function(t){var e=this._baseState;return h(null===e.explicit&&null===e.implicit),e.explicit=t,this},r.prototype.implicit=function(t){var e=this._baseState;return h(null===e.explicit&&null===e.implicit),e.implicit=t,this},r.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},r.prototype.key=function(t){var e=this._baseState;return h(null===e.key),e.key=t,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(t){var e=this._baseState;return h(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},r.prototype.contains=function(t){var e=this._baseState;return h(null===e.use),e.contains=t,this},r.prototype._decode=function(t,e){var i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));var r,n=i.default,o=!0,h=null;if(null!==i.key&&(h=t.enterKey(i.key)),i.optional){var a=null;if(null!==i.explicit?a=i.explicit:null!==i.implicit?a=i.implicit:null!==i.tag&&(a=i.tag),null!==a||i.any){if(o=this._peekTag(t,a,i.any),t.isError(o))return o}else{var u=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),o=!0}catch(t){o=!1}t.restore(u)}}if(i.obj&&o&&(r=t.enterObject()),o){if(null!==i.explicit){if(a=this._decodeTag(t,i.explicit),t.isError(a))return a;t=a}if(a=t.offset,null===i.use&&null===i.choice){i.any&&(u=t.save());var f=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(f))return f;i.any?n=t.raw(u):t=f}if(e&&e.track&&null!==i.tag&&e.track(t.path(),a,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e)),t.isError(n))return n;i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(t,e)})),!i.contains||"octstr"!==i.tag&&"bitstr"!==i.tag||(u=new s(n),n=this._getUse(i.contains,t._reporterState.obj)._decode(u,e))}return i.obj&&o&&(n=t.leaveObject(r)),null===i.key||null===n&&!0!==o?null!==h&&t.exitKey(h):t.leaveKey(h,i.key,n),n},r.prototype._decodeGeneric=function(t,e,i){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},r.prototype._getUse=function(t,e){var i=this._baseState;return i.useDecoder=this._use(t,e),h(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},r.prototype._decodeChoice=function(t,e){var i=this._baseState,r=null,n=!1;return Object.keys(i.choice).some((function(o){var s=t.save(),h=i.choice[o];try{var a=h._decode(t,e);if(t.isError(a))return!1;r={type:o,value:a},n=!0}catch(e){return t.restore(s),!1}return!0}),this),n?r:t.error("Choice not matched")},r.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},r.prototype._encode=function(t,e,i){var r=this._baseState;if((null===r.default||r.default!==t)&&(void 0!==(t=this._encodeValue(t,e,i))&&!this._skipDefault(t,e,i)))return t},r.prototype._encodeValue=function(t,e,i){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}var s=null,h=!1;if(r.any)o=this._createEncoderBuffer(t);else if(r.choice)o=this._encodeChoice(t,e);else if(r.contains)s=this._getUse(r.contains,i)._encode(t,e),h=!0;else if(r.children)s=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");var r=e.enterKey(i._baseState.key);return"object"!=typeof t?e.error("Child expected, but input is not object"):(i=i._encode(t[i._baseState.key],e,t),e.leaveKey(r),i)}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");(s=this.clone())._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(i){return this._getUse(this._baseState.args[0],t)._encode(i,e)}),s))}else null!==r.use?o=this._getUse(r.use,i)._encode(t,e):(s=this._encodePrimitive(r.tag,t),h=!0);if(!r.any&&null===r.choice){i=null!==r.implicit?r.implicit:r.tag;var a=null===r.implicit?"universal":"context";null===i?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(i,h,a,s))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},r.prototype._encodeChoice=function(t,e){var i=this._baseState,r=i.choice[t.type];return r||h(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},r.prototype._encodePrimitive=function(t,e){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw Error("Unsupported tag: "+t)},r.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},r.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,i){t=i(136),e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t._reverse(e.tag)},function(t,e,i){e.der=i(137),e.pem=i(236)},function(t,e,i){function r(t){o.call(this,t),this.enc="pem"}e=i(38);var n=i(41).Buffer,o=i(137);e(r,o),t.exports=r,r.prototype.decode=function(t,e){t=t.toString().split(/[
]+/g);for(var i=e.label.toUpperCase(),r=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,h=-1,a=0;a<t.length;a++){var u=t[a].match(r);if(null!==u&&u[2]===i){if(-1!==s){if("END"!==u[1])break;h=a;break}if("BEGIN"!==u[1])break;s=a}}if(-1===s||-1===h)throw Error("PEM section not found for: "+i);return(t=t.slice(s+1,h).join("")).replace(/[^a-z0-9\+\/=]+/gi,""),t=new n(t,"base64"),o.prototype.decode.call(this,t,e)}},function(t,e,i){e.der=i(138),e.pem=i(238)},function(t,e,i){function r(t){n.call(this,t),this.enc="pem"}e=i(38);var n=i(138);e(r,n),t.exports=r,r.prototype.encode=function(t,e){t=n.prototype.encode.call(this,t).toString("base64");for(var i=["-----BEGIN "+e.label+"-----"],r=0;r<t.length;r+=64)i.push(t.slice(r,r+64));return i.push("-----END "+e.label+"-----"),i.join("
")}},function(t,e,i){var r=(e=i(65)).define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=e.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=e.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=e.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),h=e.define("RelativeDistinguishedName",(function(){this.setof(n)})),a=e.define("RDNSequence",(function(){this.seqof(h)})),u=e.define("Name",(function(){this.choice({rdnSequence:this.use(a)})})),f=e.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),l=e.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=e.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}));e=e.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())})),t.exports=e},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,i){var r=/Proc-Type: 4,ENCRYPTED[

]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[

]+([0-9A-z

\+\/\=]+)[

]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z

\+\/\=]+)-----END -----$/m,s=i(69),h=i(81),a=i(39).Buffer;t.exports=function(t,e){var i=(t=t.toString()).match(r);if(i){var u="aes"+i[1],f=a.from(i[2],"hex"),l=a.from(i[3].replace(/[
]/g,""),"base64");i=s(e,f.slice(0,8),parseInt(i[1],10)).key,e=[],u=h.createDecipheriv(u,i,f),e.push(u.update(l)),e.push(u.final()),l=a.concat(e)}else l=t.match(o),l=new a(l[2].replace(/[
]/g,""),"base64");return{tag:t.match(n)[1],data:l}}},function(t,e,i){function r(t,e){if(0>=t.cmpn(0))throw Error("invalid sig");if(t.cmp(e)>=e)throw Error("invalid sig")}var n=i(41).Buffer,o=i(134),s=i(86).ec,h=i(71),a=i(139);t.exports=function(t,e,i,u,f){if("ec"===(i=h(i)).type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw Error("wrong public key type");if(!(u=a[i.data.algorithm.curve.join(".")]))throw Error("unknown curve "+i.data.algorithm.curve.join("."));return new s(u).verify(e,t,i.data.subjectPrivateKey.data)}if("dsa"===i.type){if("dsa"!==u)throw Error("wrong public key type");u=i.data.p,f=i.data.q;var l=i.data.g;i=i.data.pub_key;var d=h.signature.decode(t,"der");t=d.s,d=d.r,r(t,f),r(d,f);var c=o.mont(u);return t=t.invm(f),0===l.toRed(c).redPow(new o(e).mul(t).mod(f)).fromRed().mul(i.toRed(c).redPow(d.mul(t).mod(f)).fromRed()).mod(u).mod(f).cmp(d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw Error("wrong public key type");for(e=n.concat([f,e]),f=i.modulus.byteLength(),u=[1],l=0;e.length+u.length+2<f;)u.push(255),l++;for(u.push(0),d=-1;++d<e.length;)u.push(e[d]);for(u=n.from(u),e=o.mont(i.modulus),t=(t=new o(t).toRed(e)).redPow(new o(i.publicExponent)),t=n.from(t.fromRed().toArray()),i=8>l?1:0,f=Math.min(t.length,u.length),t.length!==u.length&&(i=1),d=-1;++d<f;)i|=t[d]^u[d];return 0===i}},function(t,e,i){(function(e){function r(t){this.curveType=h[t],this.curveType||(this.curveType={name:t}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function n(t,i,r){return Array.isArray(t)||(t=t.toArray()),t=new e(t),r&&t.length<r&&((r=new e(r-t.length)).fill(0),t=e.concat([r,t])),i?t.toString(i):t}var o=i(86),s=i(244);t.exports=function(t){return new r(t)};var h={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};h.p224=h.secp224r1,h.p256=h.secp256r1=h.prime256v1,h.p192=h.secp192r1=h.prime192v1,h.p384=h.secp384r1,h.p521=h.secp521r1,r.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},r.prototype.computeSecret=function(t,i,r){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),n(t=this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(t,e){var i=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(i[0]=i[i.length-1]%2?7:6),n(i,t)},r.prototype.getPrivateKey=function(t){return n(this.keys.getPrivate(),t)},r.prototype.setPublicKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.keys._importPublic(t),this},r.prototype.setPrivateKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),t=(t=new s(t)).toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this}}).call(this,i(41).Buffer)},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(245).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,function(t,e,i){e.publicEncrypt=i(247),e.privateDecrypt=i(249),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},function(t,e,i){var r=i(71),n=i(53),o=i(61),s=i(140),h=i(141),a=i(89),u=i(142),f=i(85),l=i(39).Buffer;t.exports=function(t,e,i){var d=t.padding?t.padding:i?1:4;if(t=r(t),4===d){d=t.modulus.byteLength();var c=e.length,p=o("sha1").update(l.alloc(0)).digest(),m=p.length,g=2*m;if(c>d-g-2)throw Error("message too long");g=l.alloc(d-c-g-2);var b=d-m-1;c=n(m),e=h(l.concat([p,g,l.alloc(1,1),e],b),s(c,b)),m=h(c,s(e,m)),e=new a(l.concat([l.alloc(1),m,e],d))}else if(1===d){if((m=e.length)>(d=t.modulus.byteLength())-11)throw Error("message too long");if(i)m=l.alloc(d-m-3,255);else{m=d-m-3,p=l.allocUnsafe(m),c=0,g=n(2*m),b=0;for(var v;c<m;)b===g.length&&(g=n(2*m),b=0),(v=g[b++])&&(p[c++]=v);m=p}e=new a(l.concat([l.from([0,i?1:2]),m,l.alloc(1),e],d))}else{if(3!==d)throw Error("unknown padding");if(0<=(e=new a(e)).cmp(t.modulus))throw Error("data too long for modulus")}return i?f(e,t):u(e,t)}},,function(t,e,i){var r=i(71),n=i(140),o=i(141),s=i(89),h=i(85),a=i(61),u=i(142),f=i(39).Buffer;t.exports=function(t,e,i){var l=t.padding?t.padding:i?1:4,d=(t=r(t)).modulus.byteLength();if(e.length>d||0<=new s(e).cmp(t.modulus))throw Error("decryption error");e=i?u(new s(e),t):h(e,t);var c=f.alloc(d-e.length);if(e=f.concat([c,e],d),4===l){if(d=e,l=t.modulus.byteLength(),i=(t=a("sha1").update(f.alloc(0)).digest()).length,0!==d[0])throw Error("decryption error");e=d.slice(1,i+1),d=d.slice(i+1),e=o(e,n(d,i)),d=(l=o(d,n(e,l-i-1))).slice(0,i),t=f.from(t),d=f.from(d),e=0,c=t.length,t.length!==d.length&&(e++,c=Math.min(t.length,d.length));for(var p=-1;++p<c;)e+=t[p]^d[p];if(e)throw Error("decryption error");for(;0===l[i];)i++;if(1!==l[i++])throw Error("decryption error");return l.slice(i)}if(1===l){for(t=(l=e).slice(0,2),d=2,e=0;0!==l[d++];)if(d>=l.length){e++;break}if(c=l.slice(2,d-1),("0002"!==t.toString("hex")&&!i||"0001"!==t.toString("hex")&&i)&&e++,8>c.length&&e++,e)throw Error("decryption error");return l.slice(d)}if(3===l)return e;throw Error("unknown padding")}},function(t,e,i){(function(t,r){function n(){throw Error("secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11")}function o(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||0>t)throw new TypeError("offset must be a uint32");if(t>l||t>e)throw new RangeError("offset out of range")}function s(t,e,i){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||0>t)throw new TypeError("size must be a uint32");if(t+e>i||t>l)throw new RangeError("buffer too small")}function h(t,e,i,n){return r.browser?(i=new Uint8Array(t.buffer,e,i),d.getRandomValues(i),n?void r.nextTick((function(){n(null,t)})):t):n?void u(i,(function(i,r){if(i)return n(i);r.copy(t,e),n(null,t)})):(u(i).copy(t,e),t)}var a=i(39),u=i(53),f=a.Buffer,l=a.kMaxLength,d=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;d&&d.getRandomValues||!r.browser?(e.randomFill=function(e,i,r,n){if(!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof i)n=i,i=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-i;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return o(i,e.length),s(r,i,e.length),h(e,i,r,n)},e.randomFillSync=function(e,i,r){if(void 0===i&&(i=0),!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return o(i,e.length),void 0===r&&(r=e.length-i),s(r,i,e.length),h(e,i,r)}):(e.randomFill=n,e.randomFillSync=n)}).call(this,i(2),i(6))},function(t,e,i){var r;t.exports=(r=i(40),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var i=t.byteLength,r=[],n=0;n<i;n++)r[n>>>2]|=t[n]<<24-n%4*8;e.call(this,r,i)}else e.apply(this,arguments)}).prototype=t}}(),r.lib.WordArray)},function(t,e,i){var r;t.exports=(r=i(40),function(){function t(t){return t<<8&4278255360|t>>>8&16711935}var e=r.lib.WordArray,i=r.enc;i.Utf16=i.Utf16BE={stringify:function(t){var e=t.words;t=t.sigBytes;for(var i=[],r=0;r<t;r+=2)i.push(String.fromCharCode(e[r>>>2]>>>16-r%4*8&65535));return i.join("")},parse:function(t){for(var i=t.length,r=[],n=0;n<i;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return e.create(r,2*i)}},i.Utf16LE={stringify:function(e){var i=e.words;e=e.sigBytes;for(var r=[],n=0;n<e;n+=2){var o=t(i[n>>>2]>>>16-n%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(i){for(var r=i.length,n=[],o=0;o<r;o++)n[o>>>1]|=t(i.charCodeAt(o)<<16-o%2*16);return e.create(n,2*r)}}}(),r.enc.Utf16)},function(t,e,i){var r;t.exports=(r=i(40),i(143),function(){var t=r.lib.WordArray,e=r.algo,i=e.SHA256;e=e.SHA224=i.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}}),r.SHA224=i._createHelper(e),r.HmacSHA224=i._createHmacHelper(e)}(),r.SHA224)},function(t,e,i){var r;t.exports=(r=i(40),i(72),i(144),function(){var t=r.x64,e=t.Word,i=t.WordArray,n=(t=r.algo).SHA512;t=t.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}}),r.SHA384=n._createHelper(t),r.HmacSHA384=n._createHmacHelper(t)}(),r.SHA384)},function(t,e,i){var r;t.exports=(r=i(40),i(72),function(t){var e=r.lib,i=e.WordArray,n=e.Hasher,o=r.x64.Word;e=r.algo;var s=[],h=[],a=[];!function(){for(var t=1,e=0,i=0;24>i;i++){s[t+5*e]=(i+1)*(i+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;5>t;t++)for(e=0;5>e;e++)h[t+5*e]=e+(2*t+3*e)%5*5;for(t=1,e=0;24>e;e++){for(var n=r=i=0;7>n;n++){if(1&t){var u=(1<<n)-1;32>u?r^=1<<u:i^=1<<u-32}t=128&t?t<<1^113:t<<1}a[e]=o.create(i,r)}}();var u=[];!function(){for(var t=0;25>t;t++)u[t]=o.create()}(),e=e.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;25>e;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){var i,r=this._state,n=this.blockSize/2;for(i=0;i<n;i++){var o=t[e+2*i],f=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8);var l=r[i];l.high^=f,l.low^=o}for(t=0;24>t;t++){for(n=0;5>n;n++){for(o=f=e=0;5>o;o++)e^=(l=r[n+5*o]).high,f^=l.low;(l=u[n]).high=e,l.low=f}for(n=0;5>n;n++)for(l=u[(n+4)%5],i=(e=u[(n+1)%5]).high,o=e.low,e=l.high^(i<<1|o>>>31),f=l.low^(o<<1|i>>>31),o=0;5>o;o++)(l=r[n+5*o]).high^=e,l.low^=f;for(i=1;25>i;i++)n=(l=r[i]).high,l=l.low,32>(o=s[i])?(e=n<<o|l>>>32-o,f=l<<o|n>>>32-o):(e=l<<o-32|n>>>64-o,f=n<<o-32|l>>>64-o),(l=u[h[i]]).high=e,l.low=f;for(l=u[0],e=r[0],l.high=e.high,l.low=e.low,n=0;5>n;n++)for(o=0;5>o;o++)l=r[i=n+5*o],e=u[i],i=u[(n+1)%5+5*o],f=u[(n+2)%5+5*o],l.high=e.high^~i.high&f.high,l.low=e.low^~i.low&f.low;l=r[0],e=a[t],l.high^=e.high,l.low^=e.low}},_doFinalize:function(){var e=this._data,r=e.words,n=8*e.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process(),e=this._state,n=(r=this.cfg.outputLength/8)/8,o=[];for(var s=0;s<n;s++){var h=e[s],a=h.high;a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=16711935&((h=h.low)<<8|h>>>24)|4278255360&(h<<24|h>>>8),o.push(h),o.push(a)}return new i.init(o,r)},clone:function(){for(var t=n.clone.call(this),e=t._state=this._state.slice(0),i=0;25>i;i++)e[i]=e[i].clone();return t}}),r.SHA3=n._createHelper(e),r.HmacSHA3=n._createHmacHelper(e)}(Math),r.SHA3)},function(t,e,i){var r;t.exports=(r=i(40),function(t){function e(t,e){return t<<e|t>>>32-e}var i=(t=r.lib).WordArray,n=t.Hasher;t=r.algo;var o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]);t=t.RIPEMD160=n.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,i){for(var r=0;16>r;r++){var n=i+r,l=t[n];t[n]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}n=this._hash.words,l=u.words;var d,c,p,m,g,b=f.words,v=o.words,y=s.words,M=h.words,w=a.words,_=d=n[0],S=c=n[1],k=p=n[2],A=m=n[3],E=g=n[4];for(r=0;80>r;r+=1){var x=d+t[i+v[r]]|0;x=16>r?x+((c^p^m)+l[0]):32>r?x+((c&p|~c&m)+l[1]):48>r?x+(((c|~p)^m)+l[2]):64>r?x+((c&m|p&~m)+l[3]):x+((c^(p|~m))+l[4]),x=(x=e(x|=0,M[r]))+g|0,d=g,g=m,m=e(p,10),p=c,c=x,x=_+t[i+y[r]]|0,x=16>r?x+((S^(k|~A))+b[0]):32>r?x+((S&A|k&~A)+b[1]):48>r?x+(((S|~k)^A)+b[2]):64>r?x+((S&k|~S&A)+b[3]):x+((S^k^A)+b[4]),x=(x=e(x|=0,w[r]))+E|0,_=E,E=A,A=e(k,10),k=S,S=x}x=n[1]+p+A|0,n[1]=n[2]+m+E|0,n[2]=n[3]+g+_|0,n[3]=n[4]+d+S|0,n[4]=n[0]+c+k|0,n[0]=x},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;for(e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process(),e=(t=this._hash).words,i=0;5>i;i++)r=e[i],e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),r.RIPEMD160=n._createHelper(t),r.HmacRIPEMD160=n._createHmacHelper(t)}(Math),r.RIPEMD160)},function(t,e,i){var r;t.exports=(r=i(40),i(90),i(91),function(){var t=r.lib,e=t.Base,i=t.WordArray,n=(t=r.algo).HMAC,o=t.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg;t=n.create(r.hasher,t);var o=i.create(),s=i.create([1]),h=o.words,a=s.words,u=r.keySize;for(r=r.iterations;h.length<u;){var f=t.update(e).finalize(s);t.reset();for(var l=f.words,d=l.length,c=f,p=1;p<r;p++){c=t.finalize(c),t.reset();for(var m=c.words,g=0;g<d;g++)l[g]^=m[g]}o.concat(f),a[0]++}return o.sigBytes=4*u,o}});r.PBKDF2=function(t,e,i){return o.create(i).compute(t,e)}}(),r.PBKDF2)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.CFB=function(){function t(t,e,i,r){var n;for((n=this._iv)?(n=n.slice(0),this._iv=void 0):n=this._prevBlock,r.encryptBlock(n,0),r=0;r<i;r++)t[e+r]^=n[r]}var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize;t.call(this,e,i,n,r),this._prevBlock=e.slice(i,i+n)}}),e.Decryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize,o=e.slice(i,i+n);t.call(this,e,i,n,r),this._prevBlock=o}}),e}(),r.mode.CFB)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.CTR=function(){var t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,n=this._iv,o=this._counter;for(n&&(o=this._counter=n.slice(0),this._iv=void 0),n=o.slice(0),i.encryptBlock(n,0),o[r-1]=o[r-1]+1|0,i=0;i<r;i++)t[e+i]^=n[i]}});return t.Decryptor=e,t}(),r.mode.CTR)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.CTRGladman=function(){function t(t){if(255==(t>>24&255)){var e=t>>16&255,i=t>>8&255;t&=255,255===e?(e=0,255===i?(i=0,255===t?t=0:++t):++i):++e,t=0+(e<<16)+(i<<8)+t}else t+=16777216;return t}var e=r.lib.BlockCipherMode.extend(),i=e.Encryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize,o=this._iv,s=this._counter;for(o&&(s=this._counter=o.slice(0),this._iv=void 0),0===((o=s)[0]=t(o[0]))&&(o[1]=t(o[1])),s=s.slice(0),r.encryptBlock(s,0),r=0;r<n;r++)e[i+r]^=s[r]}});return e.Decryptor=i,e}(),r.mode.CTRGladman)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.OFB=function(){var t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,n=this._iv,o=this._keystream;for(n&&(o=this._keystream=n.slice(0),this._iv=void 0),i.encryptBlock(o,0),i=0;i<r;i++)t[e+i]^=o[i]}});return t.Decryptor=e,t}(),r.mode.OFB)},function(t,e,i){var r,n;t.exports=(n=i(40),i(42),n.mode.ECB=((r=n.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),r.Decryptor=r.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),r),n.mode.ECB)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.AnsiX923={pad:function(t,e){var i=t.sigBytes;e*=4,i=i+(e-=i%e)-1,t.clamp(),t.words[i>>>2]|=e<<24-i%4*8,t.sigBytes+=e},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},r.pad.Ansix923)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.Iso10126={pad:function(t,e){e*=4,e-=t.sigBytes%e,t.concat(r.lib.WordArray.random(e-1)).concat(r.lib.WordArray.create([e<<24],1))},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},r.pad.Iso10126)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.Iso97971={pad:function(t,e){t.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(t,e)},unpad:function(t){r.pad.ZeroPadding.unpad(t),t.sigBytes--}},r.pad.Iso97971)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.ZeroPadding={pad:function(t,e){e*=4,t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var e,i=t.words;for(e=t.sigBytes-1;0<=e;e--)if(i[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},r.pad.ZeroPadding)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},function(t,e,i){var r;t.exports=(r=i(40),i(42),function(t){var e=r.lib.CipherParams,i=r.enc.Hex;r.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){return t=i.parse(t),e.create({ciphertext:t})}}}(),r.format.Hex)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){var t=r.lib.BlockCipher,e=r.algo,i=[],n=[],o=[],s=[],h=[],a=[],u=[],f=[],l=[],d=[];!function(){for(var t=[],e=0;256>e;e++)t[e]=128>e?e<<1:e<<1^283;var r=0,c=0;for(e=0;256>e;e++){var p=c^c<<1^c<<2^c<<3^c<<4;p=p>>>8^255&p^99,i[r]=p,n[p]=r;var m=t[r],g=t[m],b=t[g],v=257*t[p]^16843008*p;o[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,h[r]=v<<8|v>>>24,a[r]=v,v=16843009*b^65537*g^257*m^16843008*r,u[p]=v<<24|v>>>8,f[p]=v<<16|v>>>16,l[p]=v<<8|v>>>24,d[p]=v,r?(r=m^t[t[t[b^m]]],c^=t[t[c]]):r=c=1}}();var c=[0,1,2,4,8,16,32,64,128,27,54];e=e.AES=t.extend({_doReset:function(){var t;if(!this._nRounds||this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,r=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),s=this._keySchedule=[];for(t=0;t<o;t++)t<n?s[t]=r[t]:(e=s[t-1],t%n?6<n&&4==t%n&&(e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[255&e]):(e=i[(e=e<<8|e>>>24)>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[255&e],e^=c[t/n|0]<<24),s[t]=s[t-n]^e);for(r=this._invKeySchedule=[],n=0;n<o;n++)t=o-n,e=n%4?s[t]:s[t-4],r[n]=4>n||4>=t?e:u[i[e>>>24]]^f[i[e>>>16&255]]^l[i[e>>>8&255]]^d[i[255&e]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,h,a,i)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,u,f,l,d,n),i=t[e+1],t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,r,n,o,s,h){for(var a=this._nRounds,u=t[e]^i[0],f=t[e+1]^i[1],l=t[e+2]^i[2],d=t[e+3]^i[3],c=4,p=1;p<a;p++){var m=r[u>>>24]^n[f>>>16&255]^o[l>>>8&255]^s[255&d]^i[c++],g=r[f>>>24]^n[l>>>16&255]^o[d>>>8&255]^s[255&u]^i[c++],b=r[l>>>24]^n[d>>>16&255]^o[u>>>8&255]^s[255&f]^i[c++];d=r[d>>>24]^n[u>>>16&255]^o[f>>>8&255]^s[255&l]^i[c++],u=m,f=g,l=b}m=(h[u>>>24]<<24|h[f>>>16&255]<<16|h[l>>>8&255]<<8|h[255&d])^i[c++],g=(h[f>>>24]<<24|h[l>>>16&255]<<16|h[d>>>8&255]<<8|h[255&u])^i[c++],b=(h[l>>>24]<<24|h[d>>>16&255]<<16|h[u>>>8&255]<<8|h[255&f])^i[c++],d=(h[d>>>24]<<24|h[u>>>16&255]<<16|h[f>>>8&255]<<8|h[255&l])^i[c++],t[e]=m,t[e+1]=g,t[e+2]=b,t[e+3]=d},keySize:8}),r.AES=t._createHelper(e)}(),r.AES)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(t,e){e&=this._lBlock>>>t^this._rBlock,this._rBlock^=e,this._lBlock^=e<<t}function e(t,e){e&=this._rBlock>>>t^this._lBlock,this._lBlock^=e,this._rBlock^=e<<t}var i=r.lib,n=i.WordArray;i=i.BlockCipher;var o=r.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],i=0;56>i;i++){var r=s[i]-1;e[i]=t[r>>>5]>>>31-r%32&1}for(t=this._subKeys=[],r=0;16>r;r++){var n=t[r]=[],o=a[r];for(i=0;24>i;i++)n[i/6|0]|=e[(h[i]-1+o)%28]<<31-i%6,n[4+(i/6|0)]|=e[28+(h[i+24]-1+o)%28]<<31-i%6;for(n[0]=n[0]<<1|n[0]>>>31,i=1;7>i;i++)n[i]>>>=4*(i-1)+3;n[7]=n[7]<<5|n[7]>>>27}for(e=this._invSubKeys=[],i=0;16>i;i++)e[i]=t[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(i,r,n){this._lBlock=i[r],this._rBlock=i[r+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var o=0;16>o;o++){for(var s=n[o],h=this._lBlock,a=this._rBlock,l=0,d=0;8>d;d++)l|=u[d][((a^s[d])&f[d])>>>0];this._lBlock=a,this._rBlock=h^l}n=this._lBlock,this._lBlock=this._rBlock,this._rBlock=n,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),i[r]=this._lBlock,i[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=i._createHelper(l),o=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&6>t.length)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),i=4>t.length?t.slice(0,2):t.slice(2,4);t=6>t.length?t.slice(0,2):t.slice(4,6),this._des1=l.createEncryptor(n.create(e)),this._des2=l.createEncryptor(n.create(i)),this._des3=l.createEncryptor(n.create(t))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2}),r.TripleDES=i._createHelper(o)}(),r.TripleDES)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(){for(var t=this._S,e=this._i,i=this._j,r=0,n=0;4>n;n++){i=(i+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[i],t[i]=o,r|=t[(t[e]+t[i])%256]<<24-8*n}return this._i=e,this._j=i,r}var e=r.lib.StreamCipher,i=r.algo,n=i.RC4=e.extend({_doReset:function(){var t=this._key,e=t.words;t=t.sigBytes;for(var i=this._S=[],r=0;256>r;r++)i[r]=r;for(var n=r=0;256>r;r++){var o=r%t;n=(n+i[r]+(e[o>>>2]>>>24-o%4*8&255))%256,o=i[r],i[r]=i[n],i[n]=o}this._i=this._j=0},_doProcessBlock:function(e,i){e[i]^=t.call(this)},keySize:8,ivSize:0});r.RC4=e._createHelper(n),i=i.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;0<e;e--)t.call(this)}}),r.RC4Drop=e._createHelper(i)}(),r.RC4)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(){for(var t=this._X,e=this._C,i=0;8>i;i++)n[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,i=0;8>i;i++){var r=t[i]+e[i],s=65535&r,h=r>>>16;o[i]=((s*s>>>17)+s*h>>>15)+h*h^((4294901760&r)*r|0)+((65535&r)*r|0)}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}var e=r.lib.StreamCipher,i=[],n=[],o=[],s=r.algo.Rabbit=e.extend({_doReset:function(){for(var e=this._key.words,i=this.cfg.iv,r=0;4>r;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];for(e=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]],r=this._b=0;4>r;r++)t.call(this);for(r=0;8>r;r++)e[r]^=n[r+4&7];if(i){n=(i=16711935&((i=(r=i.words)[0])<<8|i>>>24)|4278255360&(i<<24|i>>>8))>>>16|4294901760&(r=16711935&((r=r[1])<<8|r>>>24)|4278255360&(r<<24|r>>>8));var o=r<<16|65535&i;for(e[0]^=i,e[1]^=n,e[2]^=r,e[3]^=o,e[4]^=i,e[5]^=n,e[6]^=r,e[7]^=o,r=0;4>r;r++)t.call(this)}},_doProcessBlock:function(e,r){var n=this._X;for(t.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16,n=0;4>n;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});r.Rabbit=e._createHelper(s)}(),r.Rabbit)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(){for(var t=this._X,e=this._C,i=0;8>i;i++)n[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,i=0;8>i;i++){var r=t[i]+e[i],s=65535&r,h=r>>>16;o[i]=((s*s>>>17)+s*h>>>15)+h*h^((4294901760&r)*r|0)+((65535&r)*r|0)}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}var e=r.lib.StreamCipher,i=[],n=[],o=[],s=r.algo.RabbitLegacy=e.extend({_doReset:function(){var e=this._key.words,i=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];e=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(var n=this._b=0;4>n;n++)t.call(this);for(n=0;8>n;n++)e[n]^=r[n+4&7];if(i){n=(i=16711935&((i=(r=i.words)[0])<<8|i>>>24)|4278255360&(i<<24|i>>>8))>>>16|4294901760&(r=16711935&((r=r[1])<<8|r>>>24)|4278255360&(r<<24|r>>>8));var o=r<<16|65535&i;for(e[0]^=i,e[1]^=n,e[2]^=r,e[3]^=o,e[4]^=i,e[5]^=n,e[6]^=r,e[7]^=o,n=0;4>n;n++)t.call(this)}},_doProcessBlock:function(e,r){var n=this._X;for(t.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16,n=0;4>n;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});r.RabbitLegacy=e._createHelper(s)}(),r.RabbitLegacy)}]]); ?>

Did this file decode correctly?

Original Code

var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,i){t!=Array.prototype&&t!=Object.prototype&&(t[e]=i.value)},$jscomp.getGlobal=function(t){return"undefined"!=typeof window&&window===t?t:"undefined"!=typeof global&&null!=global?global:t},$jscomp.global=$jscomp.getGlobal(this),$jscomp.polyfill=function(t,e,i,r){if(e){for(i=$jscomp.global,t=t.split("."),r=0;r<t.length-1;r++){var n=t[r];n in i||(i[n]={}),i=i[n]}(e=e(r=i[t=t[t.length-1]]))!=r&&null!=e&&$jscomp.defineProperty(i,t,{configurable:!0,writable:!0,value:e})}},$jscomp.polyfill("Array.prototype.fill",(function(t){return t||function(t,e,i){var r=this.length||0;for(0>e&&(e=Math.max(0,r+e)),(null==i||i>r)&&(i=r),0>(i=Number(i))&&(i=Math.max(0,r+i)),e=Number(e||0);e<i;e++)this[e]=t;return this}}),"es6","es3"),$jscomp.polyfill("Math.imul",(function(t){return t||function(t,e){var i=65535&(t=Number(t)),r=65535&(e=Number(e));return i*r+((t>>>16&65535)*r+i*(e>>>16&65535)<<16>>>0)|0}}),"es6","es3"),$jscomp.polyfill("Number.isNaN",(function(t){return t||function(t){return"number"==typeof t&&isNaN(t)}}),"es6","es3"),$jscomp.SYMBOL_PREFIX="jscomp_symbol_",$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){},$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)},$jscomp.symbolCounter_=0,$jscomp.Symbol=function(t){return $jscomp.SYMBOL_PREFIX+(t||"")+$jscomp.symbolCounter_++},$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var t=$jscomp.global.Symbol.iterator;t||(t=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator")),"function"!=typeof Array.prototype[t]&&$jscomp.defineProperty(Array.prototype,t,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}}),$jscomp.initSymbolIterator=function(){}},$jscomp.arrayIterator=function(t){var e=0;return $jscomp.iteratorPrototype((function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}))},$jscomp.iteratorPrototype=function(t){return $jscomp.initSymbolIterator(),(t={next:t})[$jscomp.global.Symbol.iterator]=function(){return this},t},$jscomp.iteratorFromArray=function(t,e){$jscomp.initSymbolIterator(),t instanceof String&&(t+="");var i=0,r={next:function(){if(i<t.length){var n=i++;return{value:e(n,t[n]),done:!1}}return r.next=function(){return{done:!0,value:void 0}},r.next()}};return r[Symbol.iterator]=function(){return r},r},$jscomp.polyfill("Array.prototype.keys",(function(t){return t||function(){return $jscomp.iteratorFromArray(this,(function(t){return t}))}}),"es6","es3"),$jscomp.polyfill("Object.setPrototypeOf",(function(t){return t||("object"!=typeof"".__proto__?null:function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t})}),"es6","es5"),$jscomp.makeIterator=function(t){$jscomp.initSymbolIterator();var e=t[Symbol.iterator];return e?e.call(t):$jscomp.arrayIterator(t)},$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.polyfill("Promise",(function(t){function e(){this.batch_=null}function i(t){return t instanceof n?t:new n((function(e,i){e(t)}))}if(t&&!$jscomp.FORCE_POLYFILL_PROMISE)return t;e.prototype.asyncExecute=function(t){return null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_()),this.batch_.push(t),this},e.prototype.asyncExecuteBatch_=function(){var t=this;this.asyncExecuteFunction((function(){t.executeBatch_()}))};var r=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){r(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var i=t[e];delete t[e];try{i()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction((function(){throw t}))};var n=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[];var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};n.prototype.createResolveAndReject_=function(){function t(t){return function(r){i||(i=!0,t.call(e,r))}}var e=this,i=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},n.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof n)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},n.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},n.prototype.reject_=function(t){this.settle_(2,t)},n.prototype.fulfill_=function(t){this.settle_(1,t)},n.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e|"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,this.executeOnSettledCallbacks_()},n.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var t=this.onSettledCallbacks_,e=0;e<t.length;++e)t[e].call(),t[e]=null;this.onSettledCallbacks_=null}};var o=new e;return n.prototype.settleSameAsPromise_=function(t){var e=this.createResolveAndReject_();t.callWhenSettled_(e.resolve,e.reject)},n.prototype.settleSameAsThenable_=function(t,e){var i=this.createResolveAndReject_();try{t.call(e,i.resolve,i.reject)}catch(t){i.reject(t)}},n.prototype.then=function(t,e){function i(t,e){return"function"==typeof t?function(e){try{r(t(e))}catch(t){o(t)}}:e}var r,o,s=new n((function(t,e){r=t,o=e}));return this.callWhenSettled_(i(t,r),i(e,o)),s},n.prototype.catch=function(t){return this.then(void 0,t)},n.prototype.callWhenSettled_=function(t,e){function i(){switch(r.state_){case 1:t(r.result_);break;case 2:e(r.result_);break;default:throw Error("Unexpected state: "+r.state_)}}var r=this;null==this.onSettledCallbacks_?o.asyncExecute(i):this.onSettledCallbacks_.push((function(){o.asyncExecute(i)}))},n.resolve=i,n.reject=function(t){return new n((function(e,i){i(t)}))},n.race=function(t){return new n((function(e,r){for(var n=$jscomp.makeIterator(t),o=n.next();!o.done;o=n.next())i(o.value).callWhenSettled_(e,r)}))},n.all=function(t){var e=$jscomp.makeIterator(t),r=e.next();return r.done?i([]):new n((function(t,n){function o(e){return function(i){s[e]=i,0==--h&&t(s)}}var s=[],h=0;do{s.push(void 0),h++,i(r.value).callWhenSettled_(o(s.length-1),n),r=e.next()}while(!r.done)}))},n}),"es6","es3"),(window.webpackJsonp=window.webpackJsonp||[]).push([[3],[,,function(t,e){e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,i){(function(t){function r(t,e){this._id=t,this._clearFn=e}var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},i(7),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,i(2))},,,function(t,e){function i(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function n(t){if(f===setTimeout)return setTimeout(t,0);if((f===i||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function o(t){if(l===clearTimeout)return clearTimeout(t);if((l===r||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function s(){p&&d&&(p=!1,d.length?c=d.concat(c):m=-1,c.length&&h())}function h(){if(!p){var t=n(s);p=!0;for(var e=c.length;e;){for(d=c,c=[];++m<e;)d&&d[m].run();m=-1,e=c.length}d=null,p=!1,o(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}t=t.exports={};try{var f="function"==typeof setTimeout?setTimeout:i}catch(t){f=i}try{var l="function"==typeof clearTimeout?clearTimeout:r}catch(t){l=r}var d,c=[],p=!1,m=-1;t.nextTick=function(t){var e=Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];c.push(new a(t,e)),1!==c.length||p||n(h)},a.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=u,t.addListener=u,t.once=u,t.off=u,t.removeListener=u,t.removeAllListeners=u,t.emit=u,t.prependListener=u,t.prependOnceListener=u,t.listeners=function(t){return[]},t.binding=function(t){throw Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,i){(function(t,e){!function(t,i){function r(t){delete h[t]}function n(t){if(a)setTimeout(n,0,t);else{var e=h[t];if(e){a=!0;try{var i=e.callback,o=e.args;switch(o.length){case 0:i();break;case 1:i(o[0]);break;case 2:i(o[0],o[1]);break;case 3:i(o[0],o[1],o[2]);break;default:i.apply(void 0,o)}}finally{r(t),a=!1}}}}if(!t.setImmediate){var o,s=1,h={},a=!1,u=t.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(t);f=f&&f.setTimeout?f:t,"[object process]"==={}.toString.call(t.process)?o=function(t){e.nextTick((function(){n(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?function(){var e="setImmediate$"+Math.random()+"$",i=function(i){i.source===t&&"string"==typeof i.data&&0===i.data.indexOf(e)&&n(+i.data.slice(e.length))};t.addEventListener?t.addEventListener("message",i,!1):t.attachEvent("onmessage",i),o=function(i){t.postMessage(e+i,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){n(t.data)},o=function(e){t.port2.postMessage(e)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var t=u.documentElement;o=function(e){var i=u.createElement("script");i.onreadystatechange=function(){n(e),i.onreadystatechange=null,t.removeChild(i),i=null},t.appendChild(i)}}():o=function(t){setTimeout(n,0,t)},f.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];return h[s]={callback:t,args:e},o(s),s++},f.clearImmediate=r}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,i(2),i(6))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var r;t.exports=(r=i(40),i(72),i(251),i(252),i(59),i(60),i(90),i(143),i(253),i(144),i(254),i(255),i(256),i(91),i(257),i(52),i(42),i(258),i(259),i(260),i(261),i(262),i(263),i(264),i(265),i(266),i(267),i(268),i(269),i(270),i(271),i(272),i(273),r)},,function(t,e){t.exports="function"==typeof Object.create?function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:function(t,e){if(e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}}},function(t,e,i){function r(t,e){for(var i in t)e[i]=t[i]}function n(t,e,i){return s(t,e,i)}var o=i(41),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=n),r(s,n),n.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,i)},n.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=s(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},n.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},n.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,i){(function(e){!function(e,i){t.exports=i()}(0,(function(){var t=t||function(t,r){if("undefined"!=typeof window&&window.crypto)var n=window.crypto;if(!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==e&&e.crypto&&(n=e.crypto),!n)try{n=i(145)}catch(t){}var o=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(t){}}throw Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function t(){}return function(e){return t.prototype=e,e=new t,t.prototype=null,e}}(),h={},a=h.lib={},u=a.Base={extend:function(t){var e=s(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},f=a.WordArray=u.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||d).stringify(this)},concat:function(t){var e=this.words,i=t.words,r=this.sigBytes;if(t=t.sigBytes,this.clamp(),r%4)for(var n=0;n<t;n++)e[r+n>>>2]|=(i[n>>>2]>>>24-n%4*8&255)<<24-(r+n)%4*8;else for(n=0;n<t;n+=4)e[r+n>>>2]=i[n>>>2];return this.sigBytes+=t,this},clamp:function(){var e=this.words,i=this.sigBytes;e[i>>>2]&=4294967295<<32-i%4*8,e.length=t.ceil(i/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],i=0;i<t;i+=4)e.push(o());return new f.init(e,t)}}),l=h.enc={},d=l.Hex={stringify:function(t){var e=t.words;t=t.sigBytes;for(var i=[],r=0;r<t;r++){var n=e[r>>>2]>>>24-r%4*8&255;i.push((n>>>4).toString(16)),i.push((15&n).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r+=2)i[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new f.init(i,e/2)}},c=l.Latin1={stringify:function(t){var e=t.words;t=t.sigBytes;for(var i=[],r=0;r<t;r++)i.push(String.fromCharCode(e[r>>>2]>>>24-r%4*8&255));return i.join("")},parse:function(t){for(var e=t.length,i=[],r=0;r<e;r++)i[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new f.init(i,e)}},p=l.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},m=a.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new f.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var i,r=this._data,n=r.words,o=r.sigBytes,s=this.blockSize,h=o/(4*s);if(e=(h=e?t.ceil(h):t.max((0|h)-this._minBufferSize,0))*s,o=t.min(4*e,o),e){for(i=0;i<e;i+=s)this._doProcessBlock(n,i);i=n.splice(0,e),r.sigBytes-=o}return new f.init(i,o)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});a.Hasher=m.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,i){return new t.init(i).finalize(e)}},_createHmacHelper:function(t){return function(e,i){return new g.HMAC.init(t,i).finalize(e)}}});var g=h.algo={};return h}(Math);return t}))}).call(this,i(2))},function(t,e,i){(function(t){function r(t,e){if((n.TYPED_ARRAY_SUPPORT?2147483647:1073741823)<e)throw new RangeError("Invalid typed array length");return n.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=n.prototype:(null===t&&(t=new n(e)),t.length=e),t}function n(t,e,i){if(!(n.TYPED_ARRAY_SUPPORT||this instanceof n))return new n(t,e,i);if("number"==typeof t){if("string"==typeof e)throw Error("If encoding is specified then the first argument must be a string");return h(this,t)}return o(this,t,e,i)}function o(t,e,i,o){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){if(e.byteLength,0>i||e.byteLength<i)throw new RangeError("'offset' is out of bounds");if(e.byteLength<i+(o||0))throw new RangeError("'length' is out of bounds");return e=void 0===i&&void 0===o?new Uint8Array(e):void 0===o?new Uint8Array(e,i):new Uint8Array(e,i,o),n.TYPED_ARRAY_SUPPORT?(t=e).__proto__=n.prototype:t=a(t,e),t}if("string"==typeof e){if(o=t,"string"==typeof(t=i)&&""!==t||(t="utf8"),!n.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return(e=(o=r(o,i=0|f(e,t))).write(e,t))!==i&&(o=o.slice(0,e)),o}return function(t,e){if(n.isBuffer(e)){var i=0|u(e.length);return 0===(t=r(t,i)).length||e.copy(t,0,0,i),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return(i="number"!=typeof e.length)||(i=(i=e.length)!=i),i?r(t,0):a(t,e);if("Buffer"===e.type&&B(e.data))return a(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(0>t)throw new RangeError('"size" argument must not be negative')}function h(t,e){if(s(e),t=r(t,0>e?0:0|u(e)),!n.TYPED_ARRAY_SUPPORT)for(var i=0;i<e;++i)t[i]=0;return t}function a(t,e){var i=0>e.length?0:0|u(e.length);t=r(t,i);for(var n=0;n<i;n+=1)t[n]=255&e[n];return t}function u(t){if(t>=(n.TYPED_ARRAY_SUPPORT?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(n.TYPED_ARRAY_SUPPORT?2147483647:1073741823).toString(16)+" bytes");return 0|t}function f(t,e){if(n.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var i=t.length;if(0===i)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return x.toByteArray(S(t)).length;default:if(r)return k(t).length;e=(""+e).toLowerCase(),r=!0}}function l(t,e,i){var r=!1;if((void 0===e||0>e)&&(e=0),e>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),0>=i)return"";if((i>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":for(t=e,e=i,i=this.length,(!t||0>t)&&(t=0),(!e||0>e||e>i)&&(e=i),r="",i=t;i<e;++i)r=(t=r)+(r=16>(r=this[i])?"0"+r.toString(16):r.toString(16));return r;case"utf8":case"utf-8":return m(this,e,i);case"ascii":for(t="",i=Math.min(this.length,i);e<i;++e)t+=String.fromCharCode(127&this[e]);return t;case"latin1":case"binary":for(t="",i=Math.min(this.length,i);e<i;++e)t+=String.fromCharCode(this[e]);return t;case"base64":return e=0===e&&i===this.length?x.fromByteArray(this):x.fromByteArray(this.slice(e,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(e=this.slice(e,i),i="",t=0;t<e.length;t+=2)i+=String.fromCharCode(e[t]+256*e[t+1]);return i;default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function d(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function c(t,e,i,r,o){if(0===t.length)return-1;if("string"==typeof i?(r=i,i=0):2147483647<i?i=2147483647:-2147483648>i&&(i=-2147483648),i=+i,isNaN(i)&&(i=o?0:t.length-1),0>i&&(i=t.length+i),i>=t.length){if(o)return-1;i=t.length-1}else if(0>i){if(!o)return-1;i=0}if("string"==typeof e&&(e=n.from(e,r)),n.isBuffer(e))return 0===e.length?-1:p(t,e,i,r,o);if("number"==typeof e)return e&=255,n.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):p(t,[e],i,r,o);throw new TypeError("val must be string, number or Buffer")}function p(t,e,i,r,n){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,h=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(2>t.length||2>e.length)return-1;s=2,h/=2,a/=2,i/=2}if(n)for(r=-1;i<h;i++)if(o(t,i)===o(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===a)return r*s}else-1!==r&&(i-=i-r),r=-1;else for(i+a>h&&(i=h-a);0<=i;i--){for(h=!0,r=0;r<a;r++)if(o(t,i+r)!==o(e,r)){h=!1;break}if(h)return i}return-1}function m(t,e,i){i=Math.min(t.length,i);for(var r=[];e<i;){var n=t[e],o=null,s=239<n?4:223<n?3:191<n?2:1;if(e+s<=i)switch(s){case 1:128>n&&(o=n);break;case 2:var h=t[e+1];128==(192&h)&&(127<(n=(31&n)<<6|63&h)&&(o=n));break;case 3:h=t[e+1];var a=t[e+2];128==(192&h)&&128==(192&a)&&(2047<(n=(15&n)<<12|(63&h)<<6|63&a)&&(55296>n||57343<n)&&(o=n));break;case 4:h=t[e+1],a=t[e+2];var u=t[e+3];128==(192&h)&&128==(192&a)&&128==(192&u)&&(65535<(n=(15&n)<<18|(63&h)<<12|(63&a)<<6|63&u)&&1114112>n&&(o=n))}null===o?(o=65533,s=1):65535<o&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),e+=s}if((t=r.length)<=I)r=String.fromCharCode.apply(String,r);else{for(i="",e=0;e<t;)i+=String.fromCharCode.apply(String,r.slice(e,e+=I));r=i}return r}function g(t,e,i){if(0!=t%1||0>t)throw new RangeError("offset is not uint");if(t+e>i)throw new RangeError("Trying to access beyond buffer length")}function b(t,e,i,r,o,s){if(!n.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<s)throw new RangeError('"value" argument is out of bounds');if(i+r>t.length)throw new RangeError("Index out of range")}function v(t,e,i,r){0>e&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n<o;++n)t[i+n]=(e&255<<8*(r?n:1-n))>>>8*(r?n:1-n)}function y(t,e,i,r){0>e&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n<o;++n)t[i+n]=e>>>8*(r?n:3-n)&255}function M(t,e,i,r,n,o){if(i+r>t.length)throw new RangeError("Index out of range");if(0>i)throw new RangeError("Index out of range")}function w(t,e,i,r,n){return n||M(t,0,i,4),R.write(t,e,i,r,23,4),i+4}function _(t,e,i,r,n){return n||M(t,0,i,8),R.write(t,e,i,r,52,8),i+8}function S(t){if(2>(t=(t=t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(T,"")).length)return"";for(;0!=t.length%4;)t+="=";return t}function k(t,e){e=e||1/0;for(var i,r=t.length,n=null,o=[],s=0;s<r;++s){if(55295<(i=t.charCodeAt(s))&&57344>i){if(!n){if(56319<i){-1<(e-=3)&&o.push(239,191,189);continue}if(s+1===r){-1<(e-=3)&&o.push(239,191,189);continue}n=i;continue}if(56320>i){-1<(e-=3)&&o.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&-1<(e-=3)&&o.push(239,191,189);if(n=null,128>i){if(0>--e)break;o.push(i)}else if(2048>i){if(0>(e-=2))break;o.push(i>>6|192,63&i|128)}else if(65536>i){if(0>(e-=3))break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(1114112>i))throw Error("Invalid code point");if(0>(e-=4))break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function A(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function E(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length||n>=t.length);++n)e[n+i]=t[n];return n}var x=i(146),R=i(147),B=i(92);e.Buffer=n,e.SlowBuffer=function(t){return+t!=t&&(t=0),n.alloc(+t)},e.INSPECT_MAX_BYTES=50,n.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=n.TYPED_ARRAY_SUPPORT?2147483647:1073741823,n.poolSize=8192,n._augment=function(t){return t.__proto__=n.prototype,t},n.from=function(t,e,i){return o(null,t,e,i)},n.TYPED_ARRAY_SUPPORT&&(n.prototype.__proto__=Uint8Array.prototype,n.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&n[Symbol.species]===n&&Object.defineProperty(n,Symbol.species,{value:null,configurable:!0})),n.alloc=function(t,e,i){return s(t),t=0>=t?r(null,t):void 0!==e?"string"==typeof i?r(null,t).fill(e,i):r(null,t).fill(e):r(null,t)},n.allocUnsafe=function(t){return h(null,t)},n.allocUnsafeSlow=function(t){return h(null,t)},n.isBuffer=function(t){return!(null==t||!t._isBuffer)},n.compare=function(t,e){if(!n.isBuffer(t)||!n.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,o=0,s=Math.min(i,r);o<s;++o)if(t[o]!==e[o]){i=t[o],r=e[o];break}return i<r?-1:r<i?1:0},n.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},n.concat=function(t,e){if(!B(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return n.alloc(0);var i;if(void 0===e)for(i=e=0;i<t.length;++i)e+=t[i].length;e=n.allocUnsafe(e);var r=0;for(i=0;i<t.length;++i){var o=t[i];if(!n.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(e,r),r+=o.length}return e},n.byteLength=f,n.prototype._isBuffer=!0,n.prototype.swap16=function(){var t=this.length;if(0!=t%2)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)d(this,e,e+1);return this},n.prototype.swap32=function(){var t=this.length;if(0!=t%4)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)d(this,e,e+3),d(this,e+1,e+2);return this},n.prototype.swap64=function(){var t=this.length;if(0!=t%8)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)d(this,e,e+7),d(this,e+1,e+6),d(this,e+2,e+5),d(this,e+3,e+4);return this},n.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?m(this,0,t):l.apply(this,arguments)},n.prototype.equals=function(t){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===n.compare(this,t)},n.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(t+=" ... ")),"<Buffer "+t+">"},n.prototype.compare=function(t,e,i,r,o){if(!n.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),0>e||i>t.length||0>r||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=i)return 0;if(r>=o)return-1;if(e>=i)return 1;if(this===t)return 0;var s=(o>>>=0)-(r>>>=0),h=(i>>>=0)-(e>>>=0),a=Math.min(s,h);for(r=this.slice(r,o),t=t.slice(e,i),e=0;e<a;++e)if(r[e]!==t[e]){s=r[e],h=t[e];break}return s<h?-1:h<s?1:0},n.prototype.includes=function(t,e,i){return-1!==this.indexOf(t,e,i)},n.prototype.indexOf=function(t,e,i){return c(this,t,e,i,!0)},n.prototype.lastIndexOf=function(t,e,i){return c(this,t,e,i,!1)},n.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else{if(!isFinite(e))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(i)?(i|=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}var n=this.length-e;if((void 0===i||i>n)&&(i=n),0<t.length&&(0>i||0>e)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");for(r||(r="utf8"),n=!1;;)switch(r){case"hex":t:{if(e=Number(e)||0,r=this.length-e,i?(i=Number(i))>r&&(i=r):i=r,0!=(r=t.length)%2)throw new TypeError("Invalid hex string");for(i>r/2&&(i=r/2),r=0;r<i;++r){if(n=parseInt(t.substr(2*r,2),16),isNaN(n)){t=r;break t}this[e+r]=n}t=r}return t;case"utf8":case"utf-8":return E(k(t,this.length-e),this,e,i);case"ascii":return E(A(t),this,e,i);case"latin1":case"binary":return E(A(t),this,e,i);case"base64":return E(x.toByteArray(S(t)),this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=t,n=this.length-e;for(var o=[],s=0;s<r.length&&!(0>(n-=2));++s){var h=r.charCodeAt(s);t=h>>8,h%=256,o.push(h),o.push(t)}return E(o,this,e,i);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),n=!0}},n.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var I=4096;n.prototype.slice=function(t,e){var i=this.length;if(0>(t=~~t)?0>(t+=i)&&(t=0):t>i&&(t=i),0>(e=void 0===e?i:~~e)?0>(e+=i)&&(e=0):e>i&&(e=i),e<t&&(e=t),n.TYPED_ARRAY_SUPPORT)(e=this.subarray(t,e)).__proto__=n.prototype;else{e=new n(i=e-t,void 0);for(var r=0;r<i;++r)e[r]=this[r+t]}return e},n.prototype.readUIntLE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=this[t];for(var r=1,n=0;++n<e&&(r*=256);)i+=this[t+n]*r;return i},n.prototype.readUIntBE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=this[t+--e];for(var r=1;0<e&&(r*=256);)i+=this[t+--e]*r;return i},n.prototype.readUInt8=function(t,e){return e||g(t,1,this.length),this[t]},n.prototype.readUInt16LE=function(t,e){return e||g(t,2,this.length),this[t]|this[t+1]<<8},n.prototype.readUInt16BE=function(t,e){return e||g(t,2,this.length),this[t]<<8|this[t+1]},n.prototype.readUInt32LE=function(t,e){return e||g(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},n.prototype.readUInt32BE=function(t,e){return e||g(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},n.prototype.readIntLE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=this[t];for(var r=1,n=0;++n<e&&(r*=256);)i+=this[t+n]*r;return i>=128*r&&(i-=Math.pow(2,8*e)),i},n.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||g(t,e,this.length),i=e;for(var r=1,n=this[t+--i];0<i&&(r*=256);)n+=this[t+--i]*r;return n>=128*r&&(n-=Math.pow(2,8*e)),n},n.prototype.readInt8=function(t,e){return e||g(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},n.prototype.readInt16LE=function(t,e){return e||g(t,2,this.length),32768&(t=this[t]|this[t+1]<<8)?4294901760|t:t},n.prototype.readInt16BE=function(t,e){return e||g(t,2,this.length),32768&(t=this[t+1]|this[t]<<8)?4294901760|t:t},n.prototype.readInt32LE=function(t,e){return e||g(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},n.prototype.readInt32BE=function(t,e){return e||g(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},n.prototype.readFloatLE=function(t,e){return e||g(t,4,this.length),R.read(this,t,!0,23,4)},n.prototype.readFloatBE=function(t,e){return e||g(t,4,this.length),R.read(this,t,!1,23,4)},n.prototype.readDoubleLE=function(t,e){return e||g(t,8,this.length),R.read(this,t,!0,52,8)},n.prototype.readDoubleBE=function(t,e){return e||g(t,8,this.length),R.read(this,t,!1,52,8)},n.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||b(this,t,e,i,Math.pow(2,8*i)-1,0),r=1;var n=0;for(this[e]=255&t;++n<i&&(r*=256);)this[e+n]=t/r&255;return e+i},n.prototype.writeUIntBE=function(t,e,i,r){t=+t,e|=0,i|=0,r||b(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1;for(this[e+(r=i-1)]=255&t;0<=--r&&(n*=256);)this[e+r]=t/n&255;return e+i},n.prototype.writeUInt8=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,1,255,0),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},n.prototype.writeUInt16LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):v(this,t,e,!0),e+2},n.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,65535,0),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):v(this,t,e,!1),e+2},n.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):y(this,t,e,!0),e+4},n.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,4294967295,0),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):y(this,t,e,!1),e+4},n.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||b(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r),r=0;var n=1,o=0;for(this[e]=255&t;++r<i&&(n*=256);)0>t&&0===o&&0!==this[e+r-1]&&(o=1),this[e+r]=(t/n>>0)-o&255;return e+i},n.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||b(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=1,o=0;for(this[e+(r=i-1)]=255&t;0<=--r&&(n*=256);)0>t&&0===o&&0!==this[e+r+1]&&(o=1),this[e+r]=(t/n>>0)-o&255;return e+i},n.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,1,127,-128),n.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[e]=255&t,e+1},n.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):v(this,t,e,!0),e+2},n.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,2,32767,-32768),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):v(this,t,e,!1),e+2},n.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,2147483647,-2147483648),n.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):y(this,t,e,!0),e+4},n.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||b(this,t,e,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),n.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):y(this,t,e,!1),e+4},n.prototype.writeFloatLE=function(t,e,i){return w(this,t,e,!0,i)},n.prototype.writeFloatBE=function(t,e,i){return w(this,t,e,!1,i)},n.prototype.writeDoubleLE=function(t,e,i){return _(this,t,e,!0,i)},n.prototype.writeDoubleBE=function(t,e,i){return _(this,t,e,!1,i)},n.prototype.copy=function(t,e,i,r){if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),0<r&&r<i&&(r=i),r===i||0===t.length||0===this.length)return 0;if(0>e)throw new RangeError("targetStart out of bounds");if(0>i||i>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);var o=r-i;if(this===t&&i<e&&e<r)for(r=o-1;0<=r;--r)t[r+e]=this[r+i];else if(1e3>o||!n.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)t[r+e]=this[r+i];else Uint8Array.prototype.set.call(t,this.subarray(i,i+o),e);return o},n.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),1===t.length){var o=t.charCodeAt(0);256>o&&(t=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!n.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(0>e||this.length<e||this.length<i)throw new RangeError("Out of range index");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(r=e;r<i;++r)this[r]=t;else for(o=(t=n.isBuffer(t)?t:k(new n(t,r).toString())).length,r=0;r<i-e;++r)this[r+e]=t[r%o];return this};var T=/[^+\/0-9A-Za-z-_]/g}).call(this,i(2))},function(t,e,i){var r;t.exports=(r=i(40),i(52),void(r.lib.Cipher||function(t){var e=r.lib,i=e.Base,n=e.WordArray,o=e.BufferedBlockAlgorithm,s=r.enc.Base64,h=r.algo.EvpKDF,a=e.Cipher=o.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,i){this.cfg=this.cfg.extend(i),this._xformMode=t,this._key=e,this.reset()},reset:function(){o.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(t){return{encrypt:function(e,i,r){return("string"==typeof i?p:c).encrypt(t,e,i,r)},decrypt:function(e,i,r){return("string"==typeof i?p:c).decrypt(t,e,i,r)}}}});e.StreamCipher=a.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var u=r.mode={},f=e.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}});u=u.CBC=function(){function t(t,e,i){var r;(r=this._iv)?this._iv=void 0:r=this._prevBlock;for(var n=0;n<i;n++)t[e+n]^=r[n]}var e=f.extend();return e.Encryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize;t.call(this,e,i,n),r.encryptBlock(e,i),this._prevBlock=e.slice(i,i+n)}}),e.Decryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize,o=e.slice(i,i+n);r.decryptBlock(e,i),t.call(this,e,i,n),this._prevBlock=o}}),e}();var l=(r.pad={}).Pkcs7={pad:function(t,e){e*=4;for(var i=(e-=t.sigBytes%e)<<24|e<<16|e<<8|e,r=[],o=0;o<e;o+=4)r.push(i);e=n.create(r,e),t.concat(e)},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}};e.BlockCipher=a.extend({cfg:a.cfg.extend({mode:u,padding:l}),reset:function(){a.reset.call(this);var t=this.cfg,e=t.iv,i=t.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,e&&e.words):(this._mode=t.call(i,this,e&&e.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var e=this._process(!0)}else e=this._process(!0),t.unpad(e);return e},blockSize:4});var d=e.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}});u=(r.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext;return((t=t.salt)?n.create([1398893684,1701076831]).concat(t).concat(e):e).toString(s)},parse:function(t){var e=(t=s.parse(t)).words;if(1398893684==e[0]&&1701076831==e[1]){var i=n.create(e.slice(2,4));e.splice(0,4),t.sigBytes-=16}return d.create({ciphertext:t,salt:i})}};var c=e.SerializableCipher=i.extend({cfg:i.extend({format:u}),encrypt:function(t,e,i,r){r=this.cfg.extend(r);var n=t.createEncryptor(i,r);return e=n.finalize(e),n=n.cfg,d.create({ciphertext:e,key:i,iv:n.iv,algorithm:t,mode:n.mode,padding:n.padding,blockSize:t.blockSize,formatter:r.format})},decrypt:function(t,e,i,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),t.createDecryptor(i,r).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}});i=(r.kdf={}).OpenSSL={execute:function(t,e,i,r){return r||(r=n.random(8)),t=h.create({keySize:e+i}).compute(t,r),i=n.create(t.words.slice(e),4*i),t.sigBytes=4*e,d.create({key:t,iv:i,salt:r})}};var p=e.PasswordBasedCipher=c.extend({cfg:c.cfg.extend({kdf:i}),encrypt:function(t,e,i,r){return i=(r=this.cfg.extend(r)).kdf.execute(i,t.keySize,t.ivSize),r.iv=i.iv,(t=c.encrypt.call(this,t,e,i.key,r)).mixIn(i),t},decrypt:function(t,e,i,r){return r=this.cfg.extend(r),e=this._parse(e,r.format),i=r.kdf.execute(i,t.keySize,t.ivSize,e.salt),r.iv=i.iv,c.decrypt.call(this,t,e,i.key,r)}})}()))},function(t,e){function i(t,e){if(!t)throw Error(e||"Assertion failed")}t.exports=i,i.equal=function(t,e,i){if(t!=e)throw Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){var r=i(47);t=i(43),i=i(129),e.assert=t,e.toArray=i.toArray,e.zero2=i.zero2,e.toHex=i.toHex,e.encode=i.encode,e.getNAF=function(t,e,i){(i=Array(Math.max(t.bitLength(),i)+1)).fill(0),e=1<<e+1,t=t.clone();for(var r=0;r<i.length;r++){var n=t.andln(e-1);t.isOdd()?(n=n>(e>>1)-1?(e>>1)-n:n,t.isubn(n)):n=0,i[r]=n,t.iushrn(1)}return i},e.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r=0,n=0;0<t.cmpn(-r)||0<e.cmpn(-n);){var o=t.andln(3)+r&3,s=e.andln(3)+n&3;if(3===o&&(o=-1),3===s&&(s=-1),0==(1&o))var h=0;else{var a=t.andln(7)+r&7;h=3!==a&&5!==a||2!==s?o:-o}i[0].push(h),0==(1&s)?a=0:a=3!==(a=e.andln(7)+n&7)&&5!==a||2!==o?s:-s,i[1].push(a),2*r===h+1&&(r=1-r),2*n===a+1&&(n=1-n),t.iushrn(1),e.iushrn(1)}return i},e.cachedProperty=function(t,e,i){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=i.call(this)}},e.parseBytes=function(t){return"string"==typeof t?e.toArray(t,"hex"):t},e.intFromLE=function(t){return new r(t,"hex","le")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){function r(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function n(t){return 1===t.length?"0"+t:t}function o(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var s=i(43);t=i(38),e.inherits=t,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"==typeof t)if(e){if("hex"===e)for(0!=(t=t.replace(/[^a-z0-9]+/gi,"")).length%2&&(t="0"+t),r=0;r<t.length;r+=2)i.push(parseInt(t[r]+t[r+1],16))}else for(var r=e=0;r<t.length;r++){var n=t.charCodeAt(r);if(128>n)i[e++]=n;else{if(2048>n)i[e++]=n>>6|192;else{var o=t,s=r;(o=55296==(64512&o.charCodeAt(s))&&(!(0>s||s+1>=o.length)&&56320==(64512&o.charCodeAt(s+1))))?(n=65536+((1023&n)<<10)+(1023&t.charCodeAt(++r)),i[e++]=n>>18|240,i[e++]=n>>12&63|128):i[e++]=n>>12|224,i[e++]=n>>6&63|128}i[e++]=63&n|128}}else for(r=0;r<t.length;r++)i[r]=0|t[r];return i},e.toHex=function(t){for(var e="",i=0;i<t.length;i++)e+=n(t[i].toString(16));return e},e.htonl=r,e.toHex32=function(t,e){for(var i="",n=0;n<t.length;n++){var s=t[n];"little"===e&&(s=r(s)),i+=o(s.toString(16))}return i},e.zero2=n,e.zero8=o,e.join32=function(t,e,i,r){s(0==(i-=e)%4),i=Array(i/4);for(var n=0;n<i.length;n++,e+=4)i[n]=("big"===r?t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]:t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0;return i},e.split32=function(t,e){for(var i=Array(4*t.length),r=0,n=0;r<t.length;r++,n+=4){var o=t[r];"big"===e?(i[n]=o>>>24,i[n+1]=o>>>16&255,i[n+2]=o>>>8&255,i[n+3]=255&o):(i[n+3]=o>>>24,i[n+2]=o>>>16&255,i[n+1]=o>>>8&255,i[n]=255&o)}return i},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,i){return t+e+i>>>0},e.sum32_4=function(t,e,i,r){return t+e+i+r>>>0},e.sum32_5=function(t,e,i,r,n){return t+e+i+r+n>>>0},e.sum64=function(t,e,i,r){var n=r+t[e+1]>>>0;t[e]=(n<r?1:0)+i+t[e]>>>0,t[e+1]=n},e.sum64_hi=function(t,e,i,r){return(e+r>>>0<e?1:0)+t+i>>>0},e.sum64_lo=function(t,e,i,r){return e+r>>>0},e.sum64_4_hi=function(t,e,i,r,n,o,s,h){return e=0+((r=e+r>>>0)<e?1:0),t+i+n+s+((e+=(r=r+o>>>0)<o?1:0)+(r+h>>>0<h?1:0))>>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,h){return e+r+o+h>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,h,a,u){return e=0+((r=e+r>>>0)<e?1:0),e+=(r=r+o>>>0)<o?1:0,t+i+n+s+a+((e+=(r=r+h>>>0)<h?1:0)+(r+u>>>0<u?1:0))>>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,h,a,u){return e+r+o+h+u>>>0},e.rotr64_hi=function(t,e,i){return(e<<32-i|t>>>i)>>>0},e.rotr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0},e.shr64_hi=function(t,e,i){return t>>>i},e.shr64_lo=function(t,e,i){return(t<<32-i|e>>>i)>>>0}},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(208).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){function r(t){o.call(this),(this.hashMode="string"==typeof t)?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._encoding=this._decoder=null}var n=i(39).Buffer,o=i(161).Transform,s=i(50).StringDecoder;i(38)(r,o),r.prototype.update=function(t,e,i){return"string"==typeof t&&(t=n.from(t,e)),t=this._update(t),this.hashMode?this:(i&&(t=this._toString(t,i)),t)},r.prototype.setAutoPadding=function(){},r.prototype.getAuthTag=function(){throw Error("trying to get auth tag in unsupported state")},r.prototype.setAuthTag=function(){throw Error("trying to set auth tag in unsupported state")},r.prototype.setAAD=function(){throw Error("trying to set aad in unsupported state")},r.prototype._transform=function(t,e,i){try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){var r=t}finally{i(r)}},r.prototype._flush=function(t){try{this.push(this.__final())}catch(t){var e=t}t(e)},r.prototype._finalOrDigest=function(t){var e=this.__final()||n.alloc(0);return t&&(e=this._toString(e,t,!0)),e},r.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new s(e),this._encoding=e),this._encoding!==e)throw Error("can't switch encodings");return t=this._decoder.write(t),i&&(t+=this._decoder.end()),t},t.exports=r},function(t,e,i){function r(){r.init.call(this)}function n(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function o(t,e,i,o){n(i);var s=t._events;if(void 0===s)s=t._events=Object.create(null),t._eventsCount=0;else{void 0!==s.newListener&&(t.emit("newListener",e,i.listener?i.listener:i),s=t._events);var h=s[e]}return void 0===h?(s[e]=i,++t._eventsCount):("function"==typeof h?h=s[e]=o?[i,h]:[h,i]:o?h.unshift(i):h.push(i),0<(i=void 0===t._maxListeners?r.defaultMaxListeners:t._maxListeners)&&h.length>i&&!h.warned&&(h.warned=!0,(i=Error("Possible EventEmitter memory leak detected. "+h.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=h.length,console&&console.warn&&console.warn(i))),t}function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,i){return t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},(e=s.bind(t)).listener=i,t.wrapFn=e}function a(t,e,i){if(void 0===(t=t._events))return[];if(void 0===(e=t[e]))return[];if("function"==typeof e)return i?[e.listener||e]:[e];if(i)for(i=Array(e.length),t=0;t<i.length;++t)i[t]=e[t].listener||e[t];else i=f(e,e.length);return i}function u(t){var e=this._events;if(void 0!==e){if("function"==typeof(t=e[t]))return 1;if(void 0!==t)return t.length}return 0}function f(t,e){for(var i=Array(e),r=0;r<e;++r)i[r]=t[r];return i}var l=(e="object"==typeof Reflect?Reflect:null)&&"function"==typeof e.apply?e.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},d=e&&"function"==typeof e.ownKeys?e.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},c=Number.isNaN||function(t){return t!=t};t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._eventsCount=0,r.prototype._maxListeners=void 0;var p=10;Object.defineProperty(r,"defaultMaxListeners",{enumerable:!0,get:function(){return p},set:function(t){if("number"!=typeof t||0>t||c(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");p=t}}),r.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(t){if("number"!=typeof t||0>t||c(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},r.prototype.getMaxListeners=function(){return void 0===this._maxListeners?r.defaultMaxListeners:this._maxListeners},r.prototype.emit=function(t){for(var e=[],i=1;i<arguments.length;i++)e.push(arguments[i]);i="error"===t;var r=this._events;if(void 0!==r)i=i&&void 0===r.error;else if(!i)return!1;if(i){var n;if(0<e.length&&(n=e[0]),n instanceof Error)throw n;throw(e=Error("Unhandled error."+(n?" ("+n.message+")":""))).context=n,e}if(void 0===(i=r[t]))return!1;if("function"==typeof i)l(i,this,e);else for(r=f(i,n=i.length),i=0;i<n;++i)l(r[i],this,e);return!0},r.prototype.addListener=function(t,e){return o(this,t,e,!1)},r.prototype.on=r.prototype.addListener,r.prototype.prependListener=function(t,e){return o(this,t,e,!0)},r.prototype.once=function(t,e){return n(e),this.on(t,h(this,t,e)),this},r.prototype.prependOnceListener=function(t,e){return n(e),this.prependListener(t,h(this,t,e)),this},r.prototype.removeListener=function(t,e){var i;n(e);var r=this._events;if(void 0===r)return this;var o=r[t];if(void 0===o)return this;if(o===e||o.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,o.listener||e));else if("function"!=typeof o){var s=-1;for(i=o.length-1;0<=i;i--)if(o[i]===e||o[i].listener===e){var h=o[i].listener;s=i;break}if(0>s)return this;if(0===s)o.shift();else{for(;s+1<o.length;s++)o[s]=o[s+1];o.pop()}1===o.length&&(r[t]=o[0]),void 0!==r.removeListener&&this.emit("removeListener",t,h||e)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(t){var e=this._events;if(void 0===e)return this;if(void 0===e.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==e[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete e[t]),this;if(0===arguments.length){var i=Object.keys(e);for(e=0;e<i.length;++e){var r=i[e];"removeListener"!==r&&this.removeAllListeners(r)}return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(i=e[t]))this.removeListener(t,i);else if(void 0!==i)for(e=i.length-1;0<=e;e--)this.removeListener(t,i[e]);return this},r.prototype.listeners=function(t){return a(this,t,!0)},r.prototype.rawListeners=function(t){return a(this,t,!1)},r.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):u.call(t,e)},r.prototype.listenerCount=u,r.prototype.eventNames=function(){return 0<this._eventsCount?d(this._events):[]}},function(t,e,i){function r(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(d.isEncoding===c||!c(t)))throw Error("Unknown encoding: "+t);switch(this.encoding=e||t,this.encoding){case"utf16le":this.text=s,this.end=h,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=a,this.end=u,t=3;break;default:return this.write=f,void(this.end=l)}this.lastTotal=this.lastNeed=0,this.lastChar=d.allocUnsafe(t)}function n(t){return 127>=t?0:6==t>>5?2:14==t>>4?3:30==t>>3?4:2==t>>6?-1:-2}function o(t){var e=this.lastTotal-this.lastNeed;t:if(128!=(192&t[0])){this.lastNeed=0;var i=""}else{if(1<this.lastNeed&&1<t.length){if(128!=(192&t[1])){this.lastNeed=1,i="";break t}if(2<this.lastNeed&&2<t.length&&128!=(192&t[2])){this.lastNeed=2,i="";break t}}i=void 0}return void 0!==i?i:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function s(t,e){if(0==(t.length-e)%2){if(e=t.toString("utf16le",e)){var i=e.charCodeAt(e.length-1);if(55296<=i&&56319>=i)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],e.slice(0,-1)}return e}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function h(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):t}function a(t,e){var i=(t.length-e)%3;return 0===i?t.toString("base64",e):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-i))}function u(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(t){return t.toString(this.encoding)}function l(t){return t&&t.length?this.write(t):""}var d=i(39).Buffer,c=d.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};e.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";if(this.lastNeed){var e=this.fillLast(t);if(void 0===e)return"";var i=this.lastNeed;this.lastNeed=0}else i=0;return i<t.length?e?e+this.text(t,i):this.text(t,i):e||""},r.prototype.end=function(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+"":t},r.prototype.text=function(t,e){var i=function(t,e,i){var r=e.length-1;if(r<i)return 0;var o=n(e[r]);return 0<=o?(0<o&&(t.lastNeed=o-1),o):--r<i||-2===o?0:0<=(o=n(e[r]))?(0<o&&(t.lastNeed=o-2),o):--r<i||-2===o?0:0<=(o=n(e[r]))?(0<o&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);return this.lastNeed?(this.lastTotal=i,i=t.length-(i-this.lastNeed),t.copy(this.lastChar,0,i),t.toString("utf8",e,i)):t.toString("utf8",e)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);h.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",n)}function n(){this.allowHalfOpen||this._writableState.ended||s.nextTick(o,this)}function o(t){t.end()}var s=i(67);e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i},t.exports=r,(t=i(62)).inherits=i(38);var h=i(102),a=i(79);for(t.inherits(r,h),i=e(a.prototype),t=0;t<i.length;t++)e=i[t],r.prototype[e]||(r.prototype[e]=a.prototype[e]);Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),s.nextTick(e,t)}},function(t,e,i){var r;t.exports=(r=i(40),i(90),i(91),function(){var t=r.lib,e=t.Base,i=t.WordArray,n=(t=r.algo).EvpKDF=e.extend({cfg:e.extend({keySize:4,hasher:t.MD5,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg,n=r.hasher.create(),o=i.create(),s=o.words,h=r.keySize;for(r=r.iterations;s.length<h;){a&&n.update(a);var a=n.update(t).finalize(e);n.reset();for(var u=1;u<r;u++)a=n.finalize(a),n.reset();o.concat(a)}return o.sigBytes=4*h,o}});r.EvpKDF=function(t,e,i){return n.create(i).compute(t,e)}}(),r.EvpKDF)},function(t,e,i){(function(e,r){var n=i(39).Buffer,o=e.crypto||e.msCrypto;t.exports=o&&o.getRandomValues?function(t,e){if(4294967295<t)throw new RangeError("requested too many random bytes");var i=n.allocUnsafe(t);if(0<t)if(65536<t)for(var s=0;s<t;s+=65536)o.getRandomValues(i.slice(s,s+65536));else o.getRandomValues(i);return"function"==typeof e?r.nextTick((function(){e(null,i)})):i}:function(){throw Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e,i){i||(i=Error);var r=function(t){function i(i,r,n){return t.call(this,"string"==typeof e?e:e(i,r,n))||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t),i}(i);r.prototype.name=i.name,r.prototype.code=t,o[t]=r}function n(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),2<i?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}var o={};r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,i){var r;(r="string"==typeof e)&&(r="not "===e.substr(0,4)),r?(r="must not be",e=e.replace(/^not /,"")):r="must be";var o=void 0;return(void 0===o||o>t.length)&&(o=t.length)," argument"===t.substring(o-9,o)?t="The ".concat(t," ").concat(r," ").concat(n(e,"type")):("number"!=typeof(o=void 0)&&(o=0),o=(o=!(o+1>t.length)&&-1!==t.indexOf(".",o))?"property":"argument",t='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(n(e,"type"))),t+". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},function(t,e,i){(function(e){function r(t){if(!(this instanceof r))return new r(t);h.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",n)))}function n(){this._writableState.ended||e.nextTick(o,this)}function o(t){t.end()}var s=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};t.exports=r;var h=i(94),a=i(98);i(38)(r,h),s=s(a.prototype);for(var u=0;u<s.length;u++){var f=s[u];r.prototype[f]||(r.prototype[f]=a.prototype[f])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(r.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(r.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i(6))},function(t,e,i){function r(t,e){this._block=n.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}var n=i(39).Buffer;r.prototype.update=function(t,e){"string"==typeof t&&(t=n.from(t,e||"utf8")),e=this._block;for(var i=this._blockSize,r=t.length,o=this._len,s=0;s<r;){for(var h=o%i,a=Math.min(r-s,i-h),u=0;u<a;u++)e[h+u]=t[s+u];s+=a,0==(o+=a)%i&&this._update(e)}return this._len+=r,this},r.prototype.digest=function(t){var e=this._len%this._blockSize;if(this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0)),4294967295>=(e=8*this._len))this._block.writeUInt32BE(e,this._blockSize-4);else{var i=(4294967295&e)>>>0;this._block.writeUInt32BE((e-i)/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}return this._update(this._block),e=this._hash(),t?e.toString(t):e},r.prototype._update=function(){throw Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){function r(t,e,i){i||(i=Error);var r=function(t){function i(i,r,n){return t.call(this,"string"==typeof e?e:e(i,r,n))||this}return function(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}(i,t),i}(i);r.prototype.name=i.name,r.prototype.code=t,o[t]=r}function n(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map((function(t){return String(t)})),2<i?"one of ".concat(e," ").concat(t.slice(0,i-1).join(", "),", or ")+t[i-1]:2===i?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}var o={};r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,i){var r;(r="string"==typeof e)&&(r="not "===e.substr(0,4)),r?(r="must not be",e=e.replace(/^not /,"")):r="must be";var o=void 0;return(void 0===o||o>t.length)&&(o=t.length)," argument"===t.substring(o-9,o)?t="The ".concat(t," ").concat(r," ").concat(n(e,"type")):("number"!=typeof(o=void 0)&&(o=0),o=(o=!(o+1>t.length)&&-1!==t.indexOf(".",o))?"property":"argument",t='The "'.concat(t,'" ').concat(o," ").concat(r," ").concat(n(e,"type"))),t+". Received type ".concat(typeof i)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=o},function(t,e,i){(function(e){function r(t){if(!(this instanceof r))return new r(t);h.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",n)))}function n(){this._writableState.ended||e.nextTick(o,this)}function o(t){t.end()}var s=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};t.exports=r;var h=i(123),a=i(127);i(38)(r,h),s=s(a.prototype);for(var u=0;u<s.length;u++){var f=s[u];r.prototype[f]||(r.prototype[f]=a.prototype[f])}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(r.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(r.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,i(6))},function(t,e,i){var r,n;t.exports=(n=i(40),r=n.lib.WordArray,void(n.enc.Base64={stringify:function(t){var e=t.words,i=t.sigBytes,r=this._map;t.clamp(),t=[];for(var n=0;n<i;n+=3)for(var o=(e[n>>>2]>>>24-n%4*8&255)<<16|(e[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|e[n+2>>>2]>>>24-(n+2)%4*8&255,s=0;4>s&&n+.75*s<i;s++)t.push(r.charAt(o>>>6*(3-s)&63));if(e=r.charAt(64))for(;t.length%4;)t.push(e);return t.join("")},parse:function(t){var e=t.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<i.length;o++)n[i.charCodeAt(o)]=o}(i=i.charAt(64))&&-1!==(i=t.indexOf(i))&&(e=i),i=[];for(var s=o=0;s<e;s++)if(s%4){var h=n[t.charCodeAt(s-1)]<<s%4*2,a=n[t.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(h|a)<<24-o%4*8,o++}return r.create(i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}),n.enc.Base64)},function(t,e,i){var r;t.exports=(r=i(40),function(t){function e(t,e,i,r,n,o,s){return((t=t+(e&i|~e&r)+n+s)<<o|t>>>32-o)+e}function i(t,e,i,r,n,o,s){return((t=t+(e&r|i&~r)+n+s)<<o|t>>>32-o)+e}function n(t,e,i,r,n,o,s){return((t=t+(e^i^r)+n+s)<<o|t>>>32-o)+e}function o(t,e,i,r,n,o,s){return((t=t+(i^(e|~r))+n+s)<<o|t>>>32-o)+e}var s=r.lib,h=s.WordArray,a=s.Hasher;s=r.algo;var u=[];!function(){for(var e=0;64>e;e++)u[e]=4294967296*t.abs(t.sin(e+1))|0}(),s=s.MD5=a.extend({_doReset:function(){this._hash=new h.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var s=0;16>s;s++){var h=r+s,a=t[h];t[h]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}s=this._hash.words,h=t[r+0],a=t[r+1];var f=t[r+2],l=t[r+3],d=t[r+4],c=t[r+5],p=t[r+6],m=t[r+7],g=t[r+8],b=t[r+9],v=t[r+10],y=t[r+11],M=t[r+12],w=t[r+13],_=t[r+14];t=t[r+15],r=s[0];var S=s[1],k=s[2],A=s[3];r=e(r,S,k,A,h,7,u[0]),A=e(A,r,S,k,a,12,u[1]),k=e(k,A,r,S,f,17,u[2]),S=e(S,k,A,r,l,22,u[3]),r=e(r,S,k,A,d,7,u[4]),A=e(A,r,S,k,c,12,u[5]),k=e(k,A,r,S,p,17,u[6]),S=e(S,k,A,r,m,22,u[7]),r=e(r,S,k,A,g,7,u[8]),A=e(A,r,S,k,b,12,u[9]),k=e(k,A,r,S,v,17,u[10]),S=e(S,k,A,r,y,22,u[11]),r=e(r,S,k,A,M,7,u[12]),A=e(A,r,S,k,w,12,u[13]),k=e(k,A,r,S,_,17,u[14]),r=i(r,S=e(S,k,A,r,t,22,u[15]),k,A,a,5,u[16]),A=i(A,r,S,k,p,9,u[17]),k=i(k,A,r,S,y,14,u[18]),S=i(S,k,A,r,h,20,u[19]),r=i(r,S,k,A,c,5,u[20]),A=i(A,r,S,k,v,9,u[21]),k=i(k,A,r,S,t,14,u[22]),S=i(S,k,A,r,d,20,u[23]),r=i(r,S,k,A,b,5,u[24]),A=i(A,r,S,k,_,9,u[25]),k=i(k,A,r,S,l,14,u[26]),S=i(S,k,A,r,g,20,u[27]),r=i(r,S,k,A,w,5,u[28]),A=i(A,r,S,k,f,9,u[29]),k=i(k,A,r,S,m,14,u[30]),r=n(r,S=i(S,k,A,r,M,20,u[31]),k,A,c,4,u[32]),A=n(A,r,S,k,g,11,u[33]),k=n(k,A,r,S,y,16,u[34]),S=n(S,k,A,r,_,23,u[35]),r=n(r,S,k,A,a,4,u[36]),A=n(A,r,S,k,d,11,u[37]),k=n(k,A,r,S,m,16,u[38]),S=n(S,k,A,r,v,23,u[39]),r=n(r,S,k,A,w,4,u[40]),A=n(A,r,S,k,h,11,u[41]),k=n(k,A,r,S,l,16,u[42]),S=n(S,k,A,r,p,23,u[43]),r=n(r,S,k,A,b,4,u[44]),A=n(A,r,S,k,M,11,u[45]),k=n(k,A,r,S,t,16,u[46]),r=o(r,S=n(S,k,A,r,f,23,u[47]),k,A,h,6,u[48]),A=o(A,r,S,k,m,10,u[49]),k=o(k,A,r,S,_,15,u[50]),S=o(S,k,A,r,c,21,u[51]),r=o(r,S,k,A,M,6,u[52]),A=o(A,r,S,k,l,10,u[53]),k=o(k,A,r,S,v,15,u[54]),S=o(S,k,A,r,a,21,u[55]),r=o(r,S,k,A,g,6,u[56]),A=o(A,r,S,k,t,10,u[57]),k=o(k,A,r,S,p,15,u[58]),S=o(S,k,A,r,w,21,u[59]),r=o(r,S,k,A,d,6,u[60]),A=o(A,r,S,k,y,10,u[61]),k=o(k,A,r,S,f,15,u[62]),S=o(S,k,A,r,b,21,u[63]),s[0]=s[0]+r|0,s[1]=s[1]+S|0,s[2]=s[2]+k|0,s[3]=s[3]+A|0},_doFinalize:function(){var e=this._data,i=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;i[n>>>5]|=128<<24-n%32;var o=t.floor(r/4294967296);for(i[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),i[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),e.sigBytes=4*(i.length+1),this._process(),i=(e=this._hash).words,r=0;4>r;r++)n=i[r],i[r]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8);return e},clone:function(){var t=a.clone.call(this);return t._hash=this._hash.clone(),t}}),r.MD5=a._createHelper(s),r.HmacMD5=a._createHmacHelper(s)}(Math),r.MD5)},function(t,e,i){function r(t){h.call(this,"digest"),this._hash=t}e=i(38);var n=i(73),o=i(76),s=i(77),h=i(48);e(r,h),r.prototype._update=function(t){this._hash.update(t)},r.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new n:"rmd160"===t||"ripemd160"===t?new o:new r(s(t))}},function(t,e,i){(function(t){e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},e.isError=function(t){return"[object Error]"===Object.prototype.toString.call(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,i(41).Buffer)},function(t,e,i){(function(e){t.exports=function(t,i){for(var r=Math.min(t.length,i.length),n=new e(r),o=0;o<r;++o)n[o]=t[o]^i[o];return n}}).call(this,i(41).Buffer)},function(t,e,i){function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var n=i(46),o=i(43);e.BlockHash=r,r.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending=this.pending?this.pending.concat(t):t,this.pendingTotal+=t.length,this.pending.length>=this._delta8)for(e=(t=this.pending).length%this._delta8,this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-e,this.endian),e=0;e<t.length;e+=this._delta32)this._update(t,e,e+this._delta32);return this},r.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},r.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,i=e-(t+this.padLength)%e;(e=Array(i+this.padLength))[0]=128;for(var r=1;r<i;r++)e[r]=0;if(t<<=3,"big"===this.endian){for(i=8;i<this.padLength;i++)e[r++]=0;e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=t>>>24&255,e[r++]=t>>>16&255,e[r++]=t>>>8&255,e[r++]=255&t}else for(e[r++]=255&t,e[r++]=t>>>8&255,e[r++]=t>>>16&255,e[r++]=t>>>24&255,e[r++]=0,e[r++]=0,e[r++]=0,e[r++]=0,i=8;i<this.padLength;i++)e[r++]=0;return e}},function(t,e,i){e.bignum=i(228),e.define=i(230).define,e.base=i(66),e.constants=i(136),e.decoders=i(235),e.encoders=i(237)},function(t,e,i){e.Reporter=i(232).Reporter,e.DecoderBuffer=i(135).DecoderBuffer,e.EncoderBuffer=i(135).EncoderBuffer,e.Node=i(233)},function(t,e,i){(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,i,r,n){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o=arguments.length;switch(o){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,i)}));case 3:return e.nextTick((function(){t.call(null,i,r)}));case 4:return e.nextTick((function(){t.call(null,i,r,n)}));default:var s=Array(o-1);for(o=0;o<s.length;)s[o++]=arguments[o];return e.nextTick((function(){t.apply(null,s)}))}}}:t.exports=e}).call(this,i(6))},function(t,e,i){function r(t){h.isBuffer(t)||(t=h.from(t));for(var e=t.length/4|0,i=Array(e),r=0;r<e;r++)i[r]=t.readUInt32BE(4*r);return i}function n(t){for(;0<t.length;t++)t[0]=0}function o(t,e,i,r,n){var o=i[0],s=i[1],h=i[2];i=i[3];for(var a,u,f=t[0]^e[0],l=t[1]^e[1],d=t[2]^e[2],c=t[3]^e[3],p=4,m=1;m<n;m++)t=o[f>>>24]^s[l>>>16&255]^h[d>>>8&255]^i[255&c]^e[p++],a=o[l>>>24]^s[d>>>16&255]^h[c>>>8&255]^i[255&f]^e[p++],u=o[d>>>24]^s[c>>>16&255]^h[f>>>8&255]^i[255&l]^e[p++],c=o[c>>>24]^s[f>>>16&255]^h[l>>>8&255]^i[255&d]^e[p++],f=t,l=a,d=u;return[(t=(r[f>>>24]<<24|r[l>>>16&255]<<16|r[d>>>8&255]<<8|r[255&c])^e[p++])>>>0,(a=(r[l>>>24]<<24|r[d>>>16&255]<<16|r[c>>>8&255]<<8|r[255&f])^e[p++])>>>0,(u=(r[d>>>24]<<24|r[c>>>16&255]<<16|r[f>>>8&255]<<8|r[255&l])^e[p++])>>>0,(c=(r[c>>>24]<<24|r[f>>>16&255]<<16|r[l>>>8&255]<<8|r[255&d])^e[p++])>>>0]}function s(t){this._key=r(t),this._reset()}var h=i(39).Buffer,a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=Array(256),e=0;256>e;e++)t[e]=128>e?e<<1:e<<1^283;e=[];for(var i=[],r=[[],[],[],[]],n=[[],[],[],[]],o=0,s=0,h=0;256>h;++h){var a=s^s<<1^s<<2^s<<3^s<<4;a=a>>>8^255&a^99,e[o]=a,i[a]=o;var u=t[o],f=t[u],l=t[f],d=257*t[a]^16843008*a;r[0][o]=d<<24|d>>>8,r[1][o]=d<<16|d>>>16,r[2][o]=d<<8|d>>>24,r[3][o]=d,d=16843009*l^65537*f^257*u^16843008*o,n[0][a]=d<<24|d>>>8,n[1][a]=d<<16|d>>>16,n[2][a]=d<<8|d>>>24,n[3][a]=d,0===o?o=s=1:(o=u^t[t[t[l^u]]],s^=t[t[s]])}return{SBOX:e,INV_SBOX:i,SUB_MIX:r,INV_SUB_MIX:n}}();s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o<e;o++)n[o]=t[o];for(o=e;o<r;o++)t=n[o-1],0==o%e?(t=t<<8|t>>>24,t=u.SBOX[t>>>24]<<24|u.SBOX[t>>>16&255]<<16|u.SBOX[t>>>8&255]<<8|u.SBOX[255&t],t^=a[o/e|0]<<24):6<e&&4==o%e&&(t=u.SBOX[t>>>24]<<24|u.SBOX[t>>>16&255]<<16|u.SBOX[t>>>8&255]<<8|u.SBOX[255&t]),n[o]=n[o-e]^t;for(e=[],o=0;o<r;o++){var s=n[(t=r-o)-(o%4?0:4)];e[o]=4>o||4>=t?s:u.INV_SUB_MIX[0][u.SBOX[s>>>24]]^u.INV_SUB_MIX[1][u.SBOX[s>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[s>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&s]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=e},s.prototype.encryptBlockRaw=function(t){return o(t=r(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},s.prototype.encryptBlock=function(t){t=this.encryptBlockRaw(t);var e=h.allocUnsafe(16);return e.writeUInt32BE(t[0],0),e.writeUInt32BE(t[1],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[3],12),e},s.prototype.decryptBlock=function(t){var e=(t=r(t))[1];return t[1]=t[3],t[3]=e,t=o(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),(e=h.allocUnsafe(16)).writeUInt32BE(t[0],0),e.writeUInt32BE(t[3],4),e.writeUInt32BE(t[2],8),e.writeUInt32BE(t[1],12),e},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=s},function(t,e,i){var r=i(39).Buffer,n=i(73);t.exports=function(t,e,i,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");i/=8;for(var s=r.alloc(i),h=r.alloc(o||0),a=r.alloc(0);0<i||0<o;){var u=new n;if(u.update(a),u.update(t),e&&u.update(e),a=u.digest(),u=0,0<i){var f=s.length-i;u=Math.min(i,a.length),a.copy(s,f,0,u),i-=u}u<a.length&&0<o&&(f=Math.min(o,a.length-u),a.copy(h,h.length-o,u,u+f),o-=f)}return a.fill(0),{key:s,iv:h}}},function(t,e,i){function r(t,e){this.type=t,this.p=new o(e.p,16),this.red=e.prime?o.red(e.prime):o.mont(this.p),this.zero=new o(0).toRed(this.red),this.one=new o(1).toRed(this.red),this.two=new o(2).toRed(this.red),this.n=e.n&&new o(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=Array(4),this._wnafT2=Array(4),this._wnafT3=Array(4),this._wnafT4=Array(4),this._bitLength=this.n?this.n.bitLength():0,!(t=this.n&&this.p.div(this.n))||0<t.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function n(t,e){this.curve=t,this.type=e,this.precomputed=null}var o=i(47),s=i(44),h=s.getNAF,a=s.getJSF,u=s.assert;t.exports=r,r.prototype.point=function(){throw Error("Not implemented")},r.prototype.validate=function(){throw Error("Not implemented")},r.prototype._fixedNafMul=function(t,e){u(t.precomputed);var i=t._getDoubles(),r=h(e,1,this._bitLength),n=(1<<i.step+1)-(0==i.step%2?2:1);n/=3;for(var o=[],s=0;s<r.length;s+=i.step){for(t=0,e=s+i.step-1;e>=s;e--)t=(t<<1)+r[e];o.push(t)}for(e=this.jpoint(null,null,null),r=this.jpoint(null,null,null);0<n;n--){for(s=0;s<o.length;s++)(t=o[s])===n?r=r.mixedAdd(i.points[s]):t===-n&&(r=r.mixedAdd(i.points[s].neg()));e=e.add(r)}return e.toP()},r.prototype._wnafMul=function(t,e){var i=t._getNAFPoints(4),r=i.points;i=h(e,i.wnd,this._bitLength);for(var n=this.jpoint(null,null,null),o=i.length-1;0<=o;o--){for(e=0;0<=o&&0===i[o];o--)e++;if(0<=o&&e++,n=n.dblp(e),0>o)break;e=i[o],u(0!==e),n="affine"===t.type?0<e?n.mixedAdd(r[e-1>>1]):n.mixedAdd(r[-e-1>>1].neg()):0<e?n.add(r[e-1>>1]):n.add(r[-e-1>>1].neg())}return"affine"===t.type?n.toP():n},r.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,u=this._wnafT2,f=this._wnafT3,l=0,d=0;d<r;d++){var c=(o=e[d])._getNAFPoints(t);s[d]=c.wnd,u[d]=c.points}for(d=r-1;1<=d;d-=2){var p=d;if(1!==s[c=d-1]||1!==s[p])f[c]=h(i[c],s[c],this._bitLength),f[p]=h(i[p],s[p],this._bitLength),l=Math.max(f[c].length,l),l=Math.max(f[p].length,l);else{var m=[e[c],null,null,e[p]];0===e[c].y.cmp(e[p].y)?(m[1]=e[c].add(e[p]),m[2]=e[c].toJ().mixedAdd(e[p].neg())):0===e[c].y.cmp(e[p].y.redNeg())?(m[1]=e[c].toJ().mixedAdd(e[p]),m[2]=e[c].add(e[p].neg())):(m[1]=e[c].toJ().mixedAdd(e[p]),m[2]=e[c].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=a(i[c],i[p]);for(l=Math.max(b[0].length,l),f[c]=Array(l),f[p]=Array(l),t=0;t<l;t++)f[c][t]=g[3*(1+(0|b[0][t]))+(1+(0|b[1][t]))],f[p][t]=0,u[c]=m}}for(e=this.jpoint(null,null,null),i=this._wnafT4,d=l;0<=d;d--){for(l=0;0<=d;){for(s=!0,t=0;t<r;t++)i[t]=0|f[t][d],0!==i[t]&&(s=!1);if(!s)break;l++,d--}if(0<=d&&l++,e=e.dblp(l),0>d)break;for(t=0;t<r;t++)0!==(l=i[t])&&(0<l?o=u[t][l-1>>1]:0>l&&(o=u[t][-l-1>>1].neg()),e="affine"===o.type?e.mixedAdd(o):e.add(o))}for(d=0;d<r;d++)u[d]=null;return n?e:e.toP()},r.BasePoint=n,n.prototype.eq=function(){throw Error("Not implemented")},n.prototype.validate=function(){return this.curve.validate(this)},r.prototype.decodePoint=function(t,e){if(t=s.toArray(t,e),e=this.p.byteLength(),(4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*e)return 6===t[0]?u(0==t[t.length-1]%2):7===t[0]&&u(1==t[t.length-1]%2),this.point(t.slice(1,1+e),t.slice(1+e,1+2*e));if((2===t[0]||3===t[0])&&t.length-1===e)return this.pointFromX(t.slice(1,1+e),3===t[0]);throw Error("Unknown point format")},n.prototype.encodeCompressed=function(t){return this.encode(t,!0)},n.prototype._encode=function(t){var e=this.curve.p.byteLength(),i=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(i):[4].concat(i,this.getY().toArray("be",e))},n.prototype.encode=function(t,e){return s.encode(this._encode(e),t)},n.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},n.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},n.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n<e;n+=t){for(var o=0;o<t;o++)r=r.dbl();i.push(r)}return{step:t,points:i}},n.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],i=(1<<t)-1,r=1===i?null:this.dbl(),n=1;n<i;n++)e[n]=e[n-1].add(r);return{wnd:t,points:e}},n.prototype._getBeta=function(){return null},n.prototype.dblp=function(t){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}},function(t,e,i){function r(t){if("object"==typeof t&&!u.isBuffer(t)){var e=t.passphrase;t=t.key}"string"==typeof t&&(t=u.from(t));var i=s(t,e);switch(t=i.tag,i=i.data,t){case"CERTIFICATE":var r=n.certificate.decode(i,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(r||(r=n.PublicKey.decode(i,"der")),e=r.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(r.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return r.subjectPrivateKey=r.subjectPublicKey,{type:"ec",data:r};case"1.2.840.10040.4.1":return r.algorithm.params.pub_key=n.DSAparam.decode(r.subjectPublicKey.data,"der"),{type:"dsa",data:r.algorithm.params};default:throw Error("unknown key id "+e)}throw Error("unknown key type "+t);case"ENCRYPTED PRIVATE KEY":var f=i=n.EncryptedPrivateKey.decode(i,"der");i=e;var l=f.algorithm.decrypt.kde.kdeparams.salt,d=parseInt(f.algorithm.decrypt.kde.kdeparams.iters.toString(),10);r=o[f.algorithm.decrypt.cipher.algo.join(".")],t=f.algorithm.decrypt.cipher.iv,e=f.subjectPrivateKey,f=parseInt(r.split("-")[1],10)/8,i=a.pbkdf2Sync(i,l,d,f,"sha1"),r=h.createDecipheriv(r,i,t),(t=[]).push(r.update(e)),t.push(r.final()),i=u.concat(t);case"PRIVATE KEY":switch(e=(r=n.PrivateKey.decode(i,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(r.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:r.algorithm.curve,privateKey:n.ECPrivateKey.decode(r.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return r.algorithm.params.priv_key=n.DSAparam.decode(r.subjectPrivateKey,"der"),{type:"dsa",params:r.algorithm.params};default:throw Error("unknown key id "+e)}throw Error("unknown key type "+t);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(i,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(i,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(i,"der")};case"EC PRIVATE KEY":return{curve:(i=n.ECPrivateKey.decode(i,"der")).parameters.value,privateKey:i.privateKey};default:throw Error("unknown key type "+t)}}var n=i(227),o=i(240),s=i(241),h=i(81),a=i(109),u=i(39).Buffer;t.exports=r,r.signature=n.signature},function(t,e,i){var r;t.exports=(r=i(40),function(t){var e=r.lib,i=e.Base,n=e.WordArray;(e=r.x64={}).Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),e.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,i=[],r=0;r<e;r++){var o=t[r];i.push(o.high),i.push(o.low)}return n.create(i,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),r)},function(t,e,i){function r(){u.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function n(t,e){return t<<e|t>>>32-e}function o(t,e,i,r,o,s,h){return n(t+(e&i|~e&r)+o+s|0,h)+e|0}function s(t,e,i,r,o,s,h){return n(t+(e&r|i&~r)+o+s|0,h)+e|0}function h(t,e,i,r,o,s,h){return n(t+(e^i^r)+o+s|0,h)+e|0}function a(t,e,i,r,o,s,h){return n(t+(i^(e|~r))+o+s|0,h)+e|0}e=i(38);var u=i(93),f=i(39).Buffer,l=Array(16);e(r,u),r.prototype._update=function(){for(var t=0;16>t;++t)l[t]=this._block.readInt32LE(4*t);t=this._a;var e=this._b,i=this._c,r=this._d;t=o(t,e,i,r,l[0],3614090360,7),r=o(r,t,e,i,l[1],3905402710,12),i=o(i,r,t,e,l[2],606105819,17),e=o(e,i,r,t,l[3],3250441966,22),t=o(t,e,i,r,l[4],4118548399,7),r=o(r,t,e,i,l[5],1200080426,12),i=o(i,r,t,e,l[6],2821735955,17),e=o(e,i,r,t,l[7],4249261313,22),t=o(t,e,i,r,l[8],1770035416,7),r=o(r,t,e,i,l[9],2336552879,12),i=o(i,r,t,e,l[10],4294925233,17),e=o(e,i,r,t,l[11],2304563134,22),t=o(t,e,i,r,l[12],1804603682,7),r=o(r,t,e,i,l[13],4254626195,12),i=o(i,r,t,e,l[14],2792965006,17),t=s(t,e=o(e,i,r,t,l[15],1236535329,22),i,r,l[1],4129170786,5),r=s(r,t,e,i,l[6],3225465664,9),i=s(i,r,t,e,l[11],643717713,14),e=s(e,i,r,t,l[0],3921069994,20),t=s(t,e,i,r,l[5],3593408605,5),r=s(r,t,e,i,l[10],38016083,9),i=s(i,r,t,e,l[15],3634488961,14),e=s(e,i,r,t,l[4],3889429448,20),t=s(t,e,i,r,l[9],568446438,5),r=s(r,t,e,i,l[14],3275163606,9),i=s(i,r,t,e,l[3],4107603335,14),e=s(e,i,r,t,l[8],1163531501,20),t=s(t,e,i,r,l[13],2850285829,5),r=s(r,t,e,i,l[2],4243563512,9),i=s(i,r,t,e,l[7],1735328473,14),t=h(t,e=s(e,i,r,t,l[12],2368359562,20),i,r,l[5],4294588738,4),r=h(r,t,e,i,l[8],2272392833,11),i=h(i,r,t,e,l[11],1839030562,16),e=h(e,i,r,t,l[14],4259657740,23),t=h(t,e,i,r,l[1],2763975236,4),r=h(r,t,e,i,l[4],1272893353,11),i=h(i,r,t,e,l[7],4139469664,16),e=h(e,i,r,t,l[10],3200236656,23),t=h(t,e,i,r,l[13],681279174,4),r=h(r,t,e,i,l[0],3936430074,11),i=h(i,r,t,e,l[3],3572445317,16),e=h(e,i,r,t,l[6],76029189,23),t=h(t,e,i,r,l[9],3654602809,4),r=h(r,t,e,i,l[12],3873151461,11),i=h(i,r,t,e,l[15],530742520,16),t=a(t,e=h(e,i,r,t,l[2],3299628645,23),i,r,l[0],4096336452,6),r=a(r,t,e,i,l[7],1126891415,10),i=a(i,r,t,e,l[14],2878612391,15),e=a(e,i,r,t,l[5],4237533241,21),t=a(t,e,i,r,l[12],1700485571,6),r=a(r,t,e,i,l[3],2399980690,10),i=a(i,r,t,e,l[10],4293915773,15),e=a(e,i,r,t,l[1],2240044497,21),t=a(t,e,i,r,l[8],1873313359,6),r=a(r,t,e,i,l[15],4264355552,10),i=a(i,r,t,e,l[6],2734768916,15),e=a(e,i,r,t,l[13],1309151649,21),t=a(t,e,i,r,l[4],4149444226,6),r=a(r,t,e,i,l[11],3174756917,10),i=a(i,r,t,e,l[2],718787259,15),e=a(e,i,r,t,l[9],3951481745,21),this._a=this._a+t|0,this._b=this._b+e|0,this._c=this._c+i|0,this._d=this._d+r|0},r.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=f.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=r},function(t,e,i){(function(e){function i(t){try{if(!e.localStorage)return!1}catch(t){return!1}return null!=(t=e.localStorage[t])&&"true"===String(t).toLowerCase()}t.exports=function(t,e){if(i("noDeprecation"))return t;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw Error(e);i("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,i(2))},function(t,e,i){function r(){}var n=i(54).codes.ERR_STREAM_PREMATURE_CLOSE;t.exports=function t(e,i,o){if("function"==typeof i)return t(e,null,i);i||(i={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];t.apply(this,r)}}}(o||r);var s=i.readable||!1!==i.readable&&e.readable,h=i.writable||!1!==i.writable&&e.writable,a=function(){e.writable||f()},u=e._writableState&&e._writableState.finished,f=function(){h=!1,u=!0,s||o.call(e)},l=e._readableState&&e._readableState.endEmitted,d=function(){s=!1,l=!0,h||o.call(e)},c=function(t){o.call(e,t)},p=function(){var t;return s&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):h&&!u?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},m=function(){e.req.on("finish",f)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",f),e.on("abort",p),e.req?m():e.on("request",m)):h&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",d),e.on("finish",f),!1!==i.error&&e.on("error",c),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",d),e.removeListener("error",c),e.removeListener("close",p)}}},function(t,e,i){function r(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function n(t,e){return t<<e|t>>>32-e}var o=i(41).Buffer;e=i(38);var s=i(93),h=Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[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],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],l=[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],d=[0,1518500249,1859775393,2400959708,2840853838],c=[1352829926,1548603684,1836072691,2053994217,0];e(r,s),r.prototype._update=function(){for(var t=0;16>t;++t)h[t]=this._block.readInt32LE(4*t);var e=0|this._a;t=0|this._b;for(var i=0|this._c,r=0|this._d,o=0|this._e,s=0|this._a,p=0|this._b,m=0|this._c,g=0|this._d,b=0|this._e,v=0;80>v;v+=1){if(16>v){var y=o;y=n(e+(t^i^r)+h[a[v]]+d[0]|0,f[v])+y|0,e=b;var M=n(s+(p^(m|~g))+h[u[v]]+c[0]|0,l[v])+e|0}else 32>v?(y=o,y=n(e+(t&i|~t&r)+h[a[v]]+d[1]|0,f[v])+y|0,e=b,M=n(s+(p&g|m&~g)+h[u[v]]+c[1]|0,l[v])+e|0):48>v?(y=o,y=n(e+((t|~i)^r)+h[a[v]]+d[2]|0,f[v])+y|0,e=b,M=n(s+((p|~m)^g)+h[u[v]]+c[2]|0,l[v])+e|0):64>v?(y=o,y=n(e+(t&r|i&~r)+h[a[v]]+d[3]|0,f[v])+y|0,e=b,M=n(s+(p&m|~p&g)+h[u[v]]+c[3]|0,l[v])+e|0):(y=o,y=n(e+(t^(i|~r))+h[a[v]]+d[4]|0,f[v])+y|0,e=b,M=n(s+(p^m^g)+h[u[v]]+c[4]|0,l[v])+e|0);e=o,o=r,r=n(i,10),i=t,t=y,s=b,b=g,g=n(m,10),m=p,p=M}i=this._b+i+g|0,this._b=this._c+r+b|0,this._c=this._d+o+s|0,this._d=this._e+e+p|0,this._e=this._a+t+m|0,this._a=i},r.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.alloc?o.alloc(20):new o(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=r},function(t,e,i){(e=t.exports=function(t){t=t.toLowerCase();var i=e[t];if(!i)throw Error(t+" is not supported (we accept pull requests)");return new i}).sha=i(157),e.sha1=i(158),e.sha224=i(159),e.sha256=i(100),e.sha384=i(160),e.sha512=i(101)},function(t,e,i){(e=t.exports=i(102)).Stream=e,e.Readable=e,e.Writable=i(79),e.Duplex=i(51),e.Transform=i(105),e.PassThrough=i(165)},function(t,e,i){(function(e,r,n){function o(t){var e=this;this.entry=this.next=null,this.finish=function(){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(void 0),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}function s(){}function h(t,e){g=g||i(51),t=t||{};var r=e instanceof g;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var n=t.highWaterMark,s=t.writableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(s||0===s)?s:h,this.highWaterMark=Math.floor(this.highWaterMark),this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var i=e._writableState,r=i.sync,n=i.writecb;i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,t?(--i.pendingcb,r?(m.nextTick(n,t),m.nextTick(p,e,i),e._writableState.errorEmitted=!0,e.emit("error",t)):(n(t),e._writableState.errorEmitted=!0,e.emit("error",t),p(e,i))):((t=d(i))||i.corked||i.bufferProcessing||!i.bufferedRequest||l(e,i),r?b(f,e,i,t,n):f(e,i,t,n))},this.writecb=null,this.writelen=0,this.lastBufferedRequest=this.bufferedRequest=null,this.pendingcb=0,this.errorEmitted=this.prefinished=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function a(t){if(g=g||i(51),!(_.call(a,this)||this instanceof g))return new a(t);this._writableState=new h(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),y.call(this)}function u(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function f(t,e,i,r){!i&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain")),e.pendingcb--,r(),p(t,e)}function l(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=Array(e.bufferedRequestCount),n=e.corkedRequestsFree;n.entry=i;for(var s=0,h=!0;i;)r[s]=i,i.isBuf||(h=!1),i=i.next,s+=1;r.allBuffers=h,u(t,e,!0,e.length,r,"",n.finish),e.pendingcb++,e.lastBufferedRequest=null,n.next?(e.corkedRequestsFree=n.next,n.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;i&&(r=i.chunk,u(t,e,!1,e.objectMode?1:r.length,r,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,!e.writing););null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function d(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function c(t,e){t._final((function(i){e.pendingcb--,i&&t.emit("error",i),e.prefinished=!0,t.emit("prefinish"),p(t,e)}))}function p(t,e){var i=d(e);return i&&(e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,m.nextTick(c,t,e)):(e.prefinished=!0,t.emit("prefinish"))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),i}var m=i(67);t.exports=a;var g,b=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:m.nextTick;a.WritableState=h,(e=i(62)).inherits=i(38);var v={deprecate:i(74)},y=i(103),M=i(39).Buffer,w=n.Uint8Array||function(){};if(n=i(104),e.inherits(a,y),h.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(h.prototype,"buffer",{get:v.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){var _=Function.prototype[Symbol.hasInstance];Object.defineProperty(a,Symbol.hasInstance,{value:function(t){return!!_.call(this,t)||this===a&&(t&&t._writableState instanceof h)}})}else _=function(t){return t instanceof this};a.prototype.pipe=function(){this.emit("error",Error("Cannot pipe, not readable"))},a.prototype.write=function(t,e,i){var r,n=this._writableState,o=!1;if((r=!n.objectMode)&&(r=t,r=M.isBuffer(r)||r instanceof w),r&&!M.isBuffer(t)&&(t=M.from(t)),"function"==typeof e&&(i=e,e=null),r?e="buffer":e||(e=n.defaultEncoding),"function"!=typeof i&&(i=s),n.ended)n=i,i=Error("write after end"),this.emit("error",i),m.nextTick(n,i);else{var h;if(!(h=r)){var a=i,f=!0,l=!1;null===(h=t)?l=new TypeError("May not write null values to stream"):"string"==typeof h||void 0===h||n.objectMode||(l=new TypeError("Invalid non-string/buffer chunk")),l&&(this.emit("error",l),m.nextTick(a,l),f=!1),h=f}h&&(n.pendingcb++,(o=r)||(r=t,n.objectMode||!1===n.decodeStrings||"string"!=typeof r||(r=M.from(r,e)),t!==r&&(o=!0,e="buffer",t=r)),h=n.objectMode?1:t.length,n.length+=h,(r=n.length<n.highWaterMark)||(n.needDrain=!0),n.writing||n.corked?(h=n.lastBufferedRequest,n.lastBufferedRequest={chunk:t,encoding:e,isBuf:o,callback:i,next:null},h?h.next=n.lastBufferedRequest:n.bufferedRequest=n.lastBufferedRequest,n.bufferedRequestCount+=1):u(this,n,!1,h,t,e,i),o=r)}return o},a.prototype.cork=function(){this._writableState.corked++},a.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||l(this,t))},a.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((t+"").toLowerCase())))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),a.prototype._write=function(t,e,i){i(Error("_write() is not implemented"))},a.prototype._writev=null,a.prototype.end=function(t,e,i){var r=this._writableState;"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||(t=i,r.ending=!0,p(this,r),t&&(r.finished?m.nextTick(t):this.once("finish",t)),r.ended=!0,this.writable=!1)},Object.defineProperty(a.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),a.prototype.destroy=n.destroy,a.prototype._undestroy=n.undestroy,a.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,i(6),i(3).setImmediate,i(2))},function(t,e,i){function r(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=Array(this.blockSize),this.bufferOff=0}var n=i(43);t.exports=r,r.prototype._init=function(){},r.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},r.prototype._buffer=function(t,e){for(var i=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<i;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=i,i},r.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},r.prototype._updateEncrypt=function(t){var e=0,i=0,r=Array(((this.bufferOff+t.length)/this.blockSize|0)*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(i+=this._flushBuffer(r,i)));for(var n=t.length-(t.length-e)%this.blockSize;e<n;e+=this.blockSize)this._update(t,e,r,i),i+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return r},r.prototype._updateDecrypt=function(t){for(var e=0,i=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,n=Array(r*this.blockSize);0<r;r--)e+=this._buffer(t,e),i+=this._flushBuffer(n,i);return this._buffer(t,e),n},r.prototype.final=function(t){var e;return t&&(e=this.update(t)),t="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(t):t},r.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},r.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=Array(this.blockSize);return this._update(this.buffer,0,t,0),t},r.prototype._unpad=function(t){return t},r.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,i){t=i(178);var r=i(186),n=i(117);e.createCipher=e.Cipher=t.createCipher,e.createCipheriv=e.Cipheriv=t.createCipheriv,e.createDecipher=e.Decipher=r.createDecipher,e.createDecipheriv=e.Decipheriv=r.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(n)}},function(t,e,i){for(var r in e={ECB:i(179),CBC:i(180),CFB:i(181),CFB8:i(182),CFB1:i(183),OFB:i(184),CTR:i(115),GCM:i(115)},i=i(117))i[r].module=e[i[r].mode];t.exports=i},function(t,e,i){function r(t){this.rand=t}var n;if(t.exports=function(t){return n||(n=new r(null)),n.generate(t)},t.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);t=new Uint8Array(t);for(var e=0;e<t.length;e++)t[e]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?r.prototype._rand=function(t){return t=new Uint8Array(t),self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?r.prototype._rand=function(t){return t=new Uint8Array(t),self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(r.prototype._rand=function(){throw Error("Not implemented yet")});else try{var o=i(192);if("function"!=typeof o.randomBytes)throw Error("Not supported");r.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,i){function r(){}var n=i(57).codes.ERR_STREAM_PREMATURE_CLOSE;t.exports=function t(e,i,o){if("function"==typeof i)return t(e,null,i);i||(i={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];t.apply(this,r)}}}(o||r);var s=i.readable||!1!==i.readable&&e.readable,h=i.writable||!1!==i.writable&&e.writable,a=function(){e.writable||f()},u=e._writableState&&e._writableState.finished,f=function(){h=!1,u=!0,s||o.call(e)},l=e._readableState&&e._readableState.endEmitted,d=function(){s=!1,l=!0,h||o.call(e)},c=function(t){o.call(e,t)},p=function(){var t;return s&&!l?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):h&&!u?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},m=function(){e.req.on("finish",f)};return e.setHeader&&"function"==typeof e.abort?(e.on("complete",f),e.on("abort",p),e.req?m():e.on("request",m)):h&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",d),e.on("finish",f),!1!==i.error&&e.on("error",c),e.on("close",p),function(){e.removeListener("complete",f),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",f),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",f),e.removeListener("end",d),e.removeListener("error",c),e.removeListener("close",p)}}},function(t,e,i){(function(e){function r(t,i){var r=n(i),s=r.toRed(o.mont(i.modulus)).redPow(new o(i.publicExponent)).fromRed();r=r.invm(i.modulus);var h=i.modulus.byteLength();o.mont(i.modulus);var a=(t=new o(t).mul(s).umod(i.modulus)).toRed(o.mont(i.prime1)),u=t.toRed(o.mont(i.prime2));s=i.coefficient;var f=i.prime1;return t=i.prime2,a=a.redPow(i.exponent1),u=u.redPow(i.exponent2),a=a.fromRed(),u=u.fromRed(),(s=a.isub(u).imul(s).umod(f)).imul(t),u.iadd(s),new e(u.imul(r).umod(i.modulus).toArray(!1,h))}function n(t){for(var e=t.modulus.byteLength(),i=new o(s(e));0<=i.cmp(t.modulus)||!i.umod(t.prime1)||!i.umod(t.prime2);)i=new o(s(e));return i}var o=i(205),s=i(53);t.exports=r,r.getr=n}).call(this,i(41).Buffer)},function(t,e,i){e.version=i(207).version,e.utils=i(44),e.rand=i(83),e.curve=i(130),e.curves=i(87),e.ec=i(219),e.eddsa=i(223)},function(t,e,i){function r(t){this.curve="short"===t.type?new s.short(t):"edwards"===t.type?new s.edwards(t):new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,h(this.g.validate(),"Invalid curve"),h(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function n(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var i=new r(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:i}),i}})}var o=e;t=i(88);var s=i(130),h=i(44).assert;o.PresetCurve=r,n("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:t.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),n("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:t.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),n("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:t.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),n("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:t.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"]}),n("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:t.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"]}),n("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:t.sha256,gRed:!1,g:["9"]}),n("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:t.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{var a=i(218)}catch(t){a=void 0}n("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:t.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",a]})},function(t,e,i){e.utils=i(46),e.common=i(64),e.sha=i(212),e.ripemd=i(216),e.hmac=i(217),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(248).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){var r;t.exports=(r=i(40),function(){var t=r.lib,e=t.WordArray,i=t.Hasher,n=[];t=r.algo.SHA1=i.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var i=this._hash.words,r=i[0],o=i[1],s=i[2],h=i[3],a=i[4],u=0;80>u;u++){if(16>u)n[u]=0|t[e+u];else{var f=n[u-3]^n[u-8]^n[u-14]^n[u-16];n[u]=f<<1|f>>>31}f=(r<<5|r>>>27)+a+n[u],f=20>u?f+(1518500249+(o&s|~o&h)):40>u?f+(1859775393+(o^s^h)):60>u?f+((o&s|o&h|s&h)-1894007588):f+((o^s^h)-899497514),a=h,h=s,s=o<<30|o>>>2,o=r,r=f}i[0]=i[0]+r|0,i[1]=i[1]+o|0,i[2]=i[2]+s|0,i[3]=i[3]+h|0,i[4]=i[4]+a|0},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(i/4294967296),e[15+(r+64>>>9<<4)]=i,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA1=i._createHelper(t),r.HmacSHA1=i._createHmacHelper(t)}(),r.SHA1)},function(t,e,i){var r,n;t.exports=(n=i(40),r=n.enc.Utf8,void(n.algo.HMAC=n.lib.Base.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=r.parse(e));var i=t.blockSize,n=4*i;e.sigBytes>n&&(e=t.finalize(e)),e.clamp(),t=this._oKey=e.clone(),e=this._iKey=e.clone();for(var o=t.words,s=e.words,h=0;h<i;h++)o[h]^=1549556828,s[h]^=909522486;t.sigBytes=e.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher;return t=e.finalize(t),e.reset(),e.finalize(this._oKey.clone().concat(t))}})))},function(t,e){var i={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},function(t,e,i){function r(t){o.call(this),this._block=n.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}var n=i(148).Buffer,o=i(149).Transform;i(38)(r,o),r.prototype._transform=function(t,e,i){var r=null;try{this.update(t,e)}catch(t){r=t}i(r)},r.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},r.prototype.update=function(t,e){var i=t;if(!n.isBuffer(i)&&"string"!=typeof i)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");for(n.isBuffer(t)||(t=n.from(t,e)),e=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var r=this._blockOffset;r<this._blockSize;)e[r++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)e[this._blockOffset++]=t[i++];for(e=0,t=8*t.length;0<t;++e)this._length[e]+=t,0<(t=this._length[e]/4294967296|0)&&(this._length[e]-=4294967296*t);return this},r.prototype._update=function(){throw Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var e=this._digest();for(void 0!==t&&(e=e.toString(t)),this._block.fill(0),t=this._blockOffset=0;4>t;++t)this._length[t]=0;return e},r.prototype._digest=function(){throw Error("_digest is not implemented")},t.exports=r},function(t,e,i){(function(e,r){function n(t,e,r){w=w||i(55),t=t||{},"boolean"!=typeof r&&(r=e instanceof w),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=I(this,t,"readableHighWaterMark",r),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.reading=this.endEmitted=this.ended=!1,this.sync=!0,this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.encoding=this.decoder=null,t.encoding&&(x||(x=i(50).StringDecoder),this.decoder=new x(t.encoding),this.encoding=t.encoding)}function o(t){if(w=w||i(55),!(this instanceof o))return new o(t);this._readableState=new n(t,this,this instanceof w),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),_.call(this)}function s(t,e,i,r,n){A("readableAddChunk",e);var o=t._readableState;if(null===e)o.reading=!1,A("onEofChunk"),o.ended||(o.decoder&&(e=o.decoder.end())&&e.length&&(o.buffer.push(e),o.length+=o.objectMode?1:e.length),o.ended=!0,o.sync?u(t):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,f(t))));else{if(!n){var s;n=e,S.isBuffer(n)||n instanceof k||"string"==typeof n||void 0===n||o.objectMode||(s=new P("chunk",["string","Buffer","Uint8Array"],n));var a=s}if(a)O(t,a);else if(o.objectMode||e&&0<e.length)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===S.prototype||(e=S.from(e)),r)o.endEmitted?O(t,new C):h(t,o,e,!0);else if(o.ended)O(t,new j);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(e=o.decoder.write(e),o.objectMode||0!==e.length?h(t,o,e,!1):l(t,o)):h(t,o,e,!1)}else r||(o.reading=!1,l(t,o))}return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function h(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&u(t)),l(t,e)}function a(t,e){if(0>=t||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var i=t;1073741824<=i?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),e.highWaterMark=i}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function u(t){var e=t._readableState;A("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(A("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(f,t))}function f(t){var e=t._readableState;A("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,g(t)}function l(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(d,t,e))}function d(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(A("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function c(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function p(t){A("readable nexttick read 0"),t.read(0)}function m(t,e){A("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),g(t),e.flowing&&!e.reading&&t.read(0)}function g(t){var e=t._readableState;for(A("flow",e.flowing);e.flowing&&null!==t.read(););}function b(t,e){return 0===e.length?null:(e.objectMode?t=e.buffer.shift():!t||t>=e.length?(t=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(t,e.decoder),t)}function v(t){var e=t._readableState;A("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(y,e,t))}function y(t,e){A("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy&&((!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy()))}function M(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}var w;t.exports=o,o.ReadableState=n,i(49);var _=i(95),S=i(41).Buffer,k=e.Uint8Array||function(){},A=(e=i(150))&&e.debuglog?e.debuglog("stream"):function(){},E=i(151);e=i(96);var x,R,B,I=i(97).getHighWaterMark,T=i(54).codes,P=T.ERR_INVALID_ARG_TYPE,j=T.ERR_STREAM_PUSH_AFTER_EOF,L=T.ERR_METHOD_NOT_IMPLEMENTED,C=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(38)(o,_);var O=e.errorOrDestroy,N=["error","close","destroy","pause","resume"];Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),o.prototype.destroy=e.destroy,o.prototype._undestroy=e.undestroy,o.prototype._destroy=function(t,e){e(t)},o.prototype.push=function(t,e){var i=this._readableState;if(i.objectMode)var r=!0;else"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=S.from(t,e),e=""),r=!0);return s(this,t,e,!1,r)},o.prototype.unshift=function(t){return s(this,t,null,!0,!1)},o.prototype.isPaused=function(){return!1===this._readableState.flowing},o.prototype.setEncoding=function(t){x||(x=i(50).StringDecoder),t=new x(t),this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var e=this._readableState.buffer.head,r="";null!==e;)r+=t.write(e.data),e=e.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},o.prototype.read=function(t){A("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:0<e.length)||e.ended))return A("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?v(this):u(this),null;if(0===(t=a(t,e))&&e.ended)return 0===e.length&&v(this),null;var r=e.needReadable;return A("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&A("length less than watermark",r=!0),e.ended||e.reading?A("reading or ended",!1):r&&(A("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=a(i,e))),null===(r=0<t?b(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&v(this)),null!==r&&this.emit("data",r),r},o.prototype._read=function(t){O(this,new L("_read()"))},o.prototype.pipe=function(t,e){function i(){A("onend"),t.end()}function n(e){A("ondata"),e=t.write(e),A("dest.write",e),!1===e&&((1===f.pipesCount&&f.pipes===t||1<f.pipesCount&&-1!==M(f.pipes,t))&&!d&&(A("false write response, pause",f.awaitDrain),f.awaitDrain++),u.pause())}function o(e){A("onerror",e),a(),t.removeListener("error",o),0===t.listeners("error").length&&O(t,e)}function s(){t.removeListener("finish",h),a()}function h(){A("onfinish"),t.removeListener("close",s),a()}function a(){A("unpipe"),u.unpipe(t)}var u=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,A("pipe count=%d opts=%j",f.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?a:i,f.endEmitted?r.nextTick(e):u.once("end",e),t.on("unpipe",(function e(r,c){A("onunpipe"),r===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,A("cleanup"),t.removeListener("close",s),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",o),t.removeListener("unpipe",e),u.removeListener("end",i),u.removeListener("end",a),u.removeListener("data",n),d=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;A("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,g(t))}}(u);t.on("drain",l);var d=!1;return u.on("data",n),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",o),t.once("close",s),t.once("finish",h),t.emit("pipe",u),f.flowing||(A("pipe resume"),u.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){for(t=e.pipes,i=e.pipesCount,e.pipes=null,e.pipesCount=0,e.flowing=!1,e=0;e<i;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}var r=M(e.pipes,t);return-1===r||(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},o.prototype.on=function(t,e){e=_.prototype.on.call(this,t,e);var i=this._readableState;return"data"===t?(i.readableListening=0<this.listenerCount("readable"),!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,A("on readable",i.length,i.reading),i.length?u(this):i.reading||r.nextTick(p,this)),e},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(t,e){return e=_.prototype.removeListener.call(this,t,e),"readable"===t&&r.nextTick(c,this),e},o.prototype.removeAllListeners=function(t){var e=_.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(c,this),e},o.prototype.resume=function(){var t=this._readableState;return t.flowing||(A("resume"),t.flowing=!t.readableListening,t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(m,this,t))),t.paused=!1,this},o.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},o.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var n in t.on("end",(function(){if(A("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(n){A("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||!(i.objectMode||n&&n.length)||e.push(n)||(r=!0,t.pause())})),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(n=0;n<N.length;n++)t.on(N[n],this.emit.bind(this,N[n]));return this._read=function(e){A("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(o.prototype[Symbol.asyncIterator]=function(){return void 0===R&&(R=i(153)),R(this)}),Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(o.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(o.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),o._fromList=b,Object.defineProperty(o.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(o.from=function(t,e){return void 0===B&&(B=i(154)),B(o,t,e)})}).call(this,i(2),i(6))},function(t,e,i){t.exports=i(49).EventEmitter},function(t,e,i){(function(e){function i(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var s=this,h=this._writableState&&this._writableState.destroyed;return this._readableState&&this._readableState.destroyed||h?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,t)):e.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(i,s,t)):e.nextTick(i,s,t):o?(e.nextTick(r,s),o(t)):e.nextTick(r,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,r=t._writableState;i&&i.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i(6))},function(t,e,i){var r=i(54).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,n){if(null!=(e=null!=e.highWaterMark?e.highWaterMark:n?e[i]:null)){if(!isFinite(e)||Math.floor(e)!==e||0>e)throw new r(n?i:"highWaterMark",e);return Math.floor(e)}return t.objectMode?16:16384}}},function(t,e,i){(function(e,r){function n(t){var e=this;this.entry=this.next=null,this.finish=function(){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(void 0),i=i.next}t.corkedRequestsFree.next=e}}function o(){}function s(t,e,o){p=p||i(55),t=t||{},"boolean"!=typeof o&&(o=e instanceof p),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",o),this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var i=e._writableState,n=i.sync,o=i.writecb;if("function"!=typeof o)throw new S;i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,t?(--i.pendingcb,n?(r.nextTick(o,t),r.nextTick(c,e,i),e._writableState.errorEmitted=!0,B(e,t)):(o(t),e._writableState.errorEmitted=!0,B(e,t),c(e,i))):((t=l(i)||e.destroyed)||i.corked||i.bufferProcessing||!i.bufferedRequest||f(e,i),n?r.nextTick(u,e,i,t,o):u(e,i,t,o))},this.writecb=null,this.writelen=0,this.lastBufferedRequest=this.bufferedRequest=null,this.pendingcb=0,this.errorEmitted=this.prefinished=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function h(t){var e=this instanceof(p=p||i(55));if(!e&&!I.call(h,this))return new h(t);this._writableState=new s(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),g.call(this)}function a(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new A("write")):i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function u(t,e,i,r){!i&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain")),e.pendingcb--,r(),c(t,e)}function f(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=Array(e.bufferedRequestCount),o=e.corkedRequestsFree;o.entry=i;for(var s=0,h=!0;i;)r[s]=i,i.isBuf||(h=!1),i=i.next,s+=1;r.allBuffers=h,a(t,e,!0,e.length,r,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i&&(r=i.chunk,a(t,e,!1,e.objectMode?1:r.length,r,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,!e.writing););null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function l(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function d(t,e){t._final((function(i){e.pendingcb--,i&&B(t,i),e.prefinished=!0,t.emit("prefinish"),c(t,e)}))}function c(t,e){var i=l(e);return i&&(e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(d,t,e))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy&&((!(e=t._readableState)||e.autoDestroy&&e.endEmitted)&&t.destroy()))),i}var p;t.exports=h,h.WritableState=s;var m={deprecate:i(74)},g=i(95),b=i(41).Buffer,v=e.Uint8Array||function(){};e=i(96);var y=i(97).getHighWaterMark,M=i(54).codes,w=M.ERR_INVALID_ARG_TYPE,_=M.ERR_METHOD_NOT_IMPLEMENTED,S=M.ERR_MULTIPLE_CALLBACK,k=M.ERR_STREAM_CANNOT_PIPE,A=M.ERR_STREAM_DESTROYED,E=M.ERR_STREAM_NULL_VALUES,x=M.ERR_STREAM_WRITE_AFTER_END,R=M.ERR_UNKNOWN_ENCODING,B=e.errorOrDestroy;if(i(38)(h,g),s.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(s.prototype,"buffer",{get:m.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){var I=Function.prototype[Symbol.hasInstance];Object.defineProperty(h,Symbol.hasInstance,{value:function(t){return!!I.call(this,t)||this===h&&(t&&t._writableState instanceof s)}})}else I=function(t){return t instanceof this};h.prototype.pipe=function(){B(this,new k)},h.prototype.write=function(t,e,i){var n,s=this._writableState,h=!1;if((n=!s.objectMode)&&(n=t,n=b.isBuffer(n)||n instanceof v),n&&!b.isBuffer(t)&&(t=b.from(t)),"function"==typeof e&&(i=e,e=null),n?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof i&&(i=o),s.ending)s=i,i=new x,B(this,i),r.nextTick(s,i);else{var u;if(!(u=n)){var f,l=i;null===(u=t)?f=new E:"string"==typeof u||s.objectMode||(f=new w("chunk",["string","Buffer"],u)),f?(B(this,f),r.nextTick(l,f),u=!1):u=!0}u&&(s.pendingcb++,(h=n)||(f=t,s.objectMode||!1===s.decodeStrings||"string"!=typeof f||(f=b.from(f,e)),t!==f&&(h=!0,e="buffer",t=f)),n=s.objectMode?1:t.length,s.length+=n,(f=s.length<s.highWaterMark)||(s.needDrain=!0),s.writing||s.corked?(n=s.lastBufferedRequest,s.lastBufferedRequest={chunk:t,encoding:e,isBuf:h,callback:i,next:null},n?n.next=s.lastBufferedRequest:s.bufferedRequest=s.lastBufferedRequest,s.bufferedRequestCount+=1):a(this,s,!1,n,t,e,i),h=f)}return h},h.prototype.cork=function(){this._writableState.corked++},h.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||f(this,t))},h.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((t+"").toLowerCase())))throw new R(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(t,e,i){i(new _("_write()"))},h.prototype._writev=null,h.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||(t=i,n.ending=!0,c(this,n),t&&(n.finished?r.nextTick(t):this.once("finish",t)),n.ended=!0,this.writable=!1),this},Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),h.prototype.destroy=e.destroy,h.prototype._undestroy=e.undestroy,h.prototype._destroy=function(t,e){e(t)}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(null===r)return this.emit("error",new a);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);l.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?s(this,null,null):this._flush((function(e,i){s(t,e,i)}))}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new f;if(t._transformState.transforming)throw new u;return t.push(null)}t.exports=n;var h=(t=i(54).codes).ERR_METHOD_NOT_IMPLEMENTED,a=t.ERR_MULTIPLE_CALLBACK,u=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=t.ERR_TRANSFORM_WITH_LENGTH_0,l=i(55);i(38)(n,l),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){i(new h("_transform()"))},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,r.transforming||(t=this._readableState,(r.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},n.prototype._read=function(t){null===(t=this._transformState).writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},n.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,i){function r(){this.init(),this._w=h,n.call(this,64,56)}e=i(38);var n=i(56),o=i(39).Buffer,s=[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],h=Array(64);e(r,n),r.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},r.prototype._update=function(t){for(var e=this._w,i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,a=0|this._f,u=0|this._g,f=0|this._h,l=0;16>l;++l)e[l]=t.readInt32BE(4*l);for(;64>l;++l){t=e[l-2];var d=e[l-15];e[l]=((t>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+e[l-7]+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)+e[l-16]|0}for(l=0;64>l;++l)t=f+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(u^h&(a^u))+s[l]+e[l]|0,d=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&r|n&(i|r))|0,f=u,u=a,a=h,h=o+t|0,o=n,n=r,r=i,i=t+d|0;this._a=i+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0,this._f=a+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},r.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=a,o.call(this,128,112)}function n(t,e){return t>>>0<e>>>0?1:0}e=i(38);var o=i(56),s=i(39).Buffer,h=[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],a=Array(160);e(r,o),r.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},r.prototype._update=function(t){for(var e,i=this._w,r=0|this._ah,o=0|this._bh,s=0|this._ch,a=0|this._dh,u=0|this._eh,f=0|this._fh,l=0|this._gh,d=0|this._hh,c=0|this._al,p=0|this._bl,m=0|this._cl,g=0|this._dl,b=0|this._el,v=0|this._fl,y=0|this._gl,M=0|this._hl,w=0;32>w;w+=2)i[w]=t.readInt32BE(4*w),i[w+1]=t.readInt32BE(4*w+4);for(;160>w;w+=2){t=i[w-30];var _=i[w-30+1];e=(t>>>1|_<<31)^(t>>>8|_<<24)^t>>>7;var S=(_>>>1|t<<31)^(_>>>8|t<<24)^(_>>>7|t<<25),k=((t=i[w-4])>>>19|(_=i[w-4+1])<<13)^(_>>>29|t<<3)^t>>>6;_=(_>>>19|t<<13)^(t>>>29|_<<3)^(_>>>6|t<<26);var A=i[w-14],E=i[w-32],x=i[w-32+1];e=(e=(e=e+A+n(t=S+i[w-14+1]|0,S)|0)+k+n(t=t+_|0,_)|0)+E+n(t=t+x|0,x)|0,i[w]=e,i[w+1]=t}for(w=0;160>w;w+=2){e=i[w],t=i[w+1],_=r&o|s&(r|o),A=c&p|m&(c|p),E=(r>>>28|c<<4)^(c>>>2|r<<30)^(c>>>7|r<<25),x=(c>>>28|r<<4)^(r>>>2|c<<30)^(r>>>7|c<<25);var R=h[w],B=h[w+1],I=l^u&(f^l),T=y^b&(v^y);S=(S=(S=(S=d+((u>>>14|b<<18)^(u>>>18|b<<14)^(b>>>9|u<<23))+n(k=M+((b>>>14|u<<18)^(b>>>18|u<<14)^(u>>>9|b<<23))|0,M)|0)+I+n(k=k+T|0,T)|0)+R+n(k=k+B|0,B)|0)+e+n(k=k+t|0,t)|0,e=E+_+n(t=x+A|0,x)|0,d=l,M=y,l=f,y=v,f=u,v=b,u=a+S+n(b=g+k|0,g)|0,a=s,g=m,s=o,m=p,o=r,p=c,r=S+e+n(c=k+t|0,k)|0}this._al=this._al+c|0,this._bl=this._bl+p|0,this._cl=this._cl+m|0,this._dl=this._dl+g|0,this._el=this._el+b|0,this._fl=this._fl+v|0,this._gl=this._gl+y|0,this._hl=this._hl+M|0,this._ah=this._ah+r+n(this._al,c)|0,this._bh=this._bh+o+n(this._bl,p)|0,this._ch=this._ch+s+n(this._cl,m)|0,this._dh=this._dh+a+n(this._dl,g)|0,this._eh=this._eh+u+n(this._el,b)|0,this._fh=this._fh+f+n(this._fl,v)|0,this._gh=this._gh+l+n(this._gl,y)|0,this._hh=this._hh+d+n(this._hl,M)|0},r.prototype._hash=function(){function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}var e=s.allocUnsafe(64);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},t.exports=r},function(t,e,i){(function(e,r){function n(t,e){t=t||{},e=e instanceof(M=M||i(51)),this.objectMode=!!t.objectMode,e&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:e&&(n||0===n)?n:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new R,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.reading=this.endEmitted=this.ended=!1,this.sync=!0,this.destroyed=this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.encoding=this.decoder=null,t.encoding&&(x||(x=i(50).StringDecoder),this.decoder=new x(t.encoding),this.encoding=t.encoding)}function o(t){if(M=M||i(51),!(this instanceof o))return new o(t);this._readableState=new n(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),_.call(this)}function s(t,e,i,r,n){var o=t._readableState;if(null===e)o.reading=!1,o.ended||(o.decoder&&(e=o.decoder.end())&&e.length&&(o.buffer.push(e),o.length+=o.objectMode?1:e.length),o.ended=!0,u(t));else{if(!n){var s;n=e,S.isBuffer(n)||n instanceof k||"string"==typeof n||void 0===n||o.objectMode||(s=new TypeError("Invalid non-string/buffer chunk"));var a=s}a?t.emit("error",a):o.objectMode||e&&0<e.length?("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===S.prototype||(e=S.from(e)),r?o.endEmitted?t.emit("error",Error("stream.unshift() after end event")):h(t,o,e,!0):o.ended?t.emit("error",Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!i?(e=o.decoder.write(e),o.objectMode||0!==e.length?h(t,o,e,!1):o.readingMore||(o.readingMore=!0,y.nextTick(l,t,o))):h(t,o,e,!1))):r||(o.reading=!1)}return!o.ended&&(o.needReadable||o.length<o.highWaterMark||0===o.length)}function h(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",i),t.read(0)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&u(t)),e.readingMore||(e.readingMore=!0,y.nextTick(l,t,e))}function a(t,e){if(0>=t||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var i=t;8388608<=i?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),e.highWaterMark=i}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function u(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(E("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?y.nextTick(f,t):f(t))}function f(t){E("emit readable"),t.emit("readable"),p(t)}function l(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(E("maybeReadMore read 0"),t.read(0),i!==e.length);)i=e.length;e.readingMore=!1}function d(t){E("readable nexttick read 0"),t.read(0)}function c(t,e){e.reading||(E("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),p(t),e.flowing&&!e.reading&&t.read(0)}function p(t){var e=t._readableState;for(E("flow",e.flowing);e.flowing&&null!==t.read(););}function m(t,e){if(0===e.length)return null;if(e.objectMode)var i=e.buffer.shift();else if(!t||t>=e.length)i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear();else{if(i=e.buffer,e=e.decoder,t<i.head.data.length)e=i.head.data.slice(0,t),i.head.data=i.head.data.slice(t);else{if(t===i.head.data.length)i=i.shift();else if(e){var r=1,n=(e=i.head).data;for(t-=n.length;e=e.next;){var o=e.data,s=t>o.length?o.length:t;if(n=s===o.length?n+o:n+o.slice(0,t),0===(t-=s)){s===o.length?(++r,i.head=e.next?e.next:i.tail=null):(i.head=e,e.data=o.slice(s));break}++r}i.length-=r,i=n}else{for(e=S.allocUnsafe(t),n=1,(r=i.head).data.copy(e),t-=r.data.length;r=r.next;){if(s=t>(o=r.data).length?o.length:t,o.copy(e,e.length-t,0,s),0===(t-=s)){s===o.length?(++n,i.head=r.next?r.next:i.tail=null):(i.head=r,r.data=o.slice(s));break}++n}i.length-=n,i=e}e=i}i=e}return i}function g(t){var e=t._readableState;if(0<e.length)throw Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,y.nextTick(b,e,t))}function b(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function v(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}var y=i(67);t.exports=o;var M,w=i(92);o.ReadableState=n,i(49);var _=i(103),S=i(39).Buffer,k=e.Uint8Array||function(){};(e=i(62)).inherits=i(38);var A=i(162),E=void 0;E=A&&A.debuglog?A.debuglog("stream"):function(){};var x,R=i(163);A=i(104),e.inherits(o,_);var B=["error","close","destroy","pause","resume"];Object.defineProperty(o.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),o.prototype.destroy=A.destroy,o.prototype._undestroy=A.undestroy,o.prototype._destroy=function(t,e){this.push(null),e(t)},o.prototype.push=function(t,e){var i=this._readableState;if(i.objectMode)var r=!0;else"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=S.from(t,e),e=""),r=!0);return s(this,t,e,!1,r)},o.prototype.unshift=function(t){return s(this,t,null,!0,!1)},o.prototype.isPaused=function(){return!1===this._readableState.flowing},o.prototype.setEncoding=function(t){return x||(x=i(50).StringDecoder),this._readableState.decoder=new x(t),this._readableState.encoding=t,this},o.prototype.read=function(t){E("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return E("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?g(this):u(this),null;if(0===(t=a(t,e))&&e.ended)return 0===e.length&&g(this),null;var r=e.needReadable;return E("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&E("length less than watermark",r=!0),e.ended||e.reading?E("reading or ended",!1):r&&(E("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=a(i,e))),null===(r=0<t?m(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&g(this)),null!==r&&this.emit("data",r),r},o.prototype._read=function(t){this.emit("error",Error("_read() is not implemented"))},o.prototype.pipe=function(t,e){function i(){E("onend"),t.end()}function n(e){E("ondata"),c=!1,!1!==t.write(e)||c||((1===f.pipesCount&&f.pipes===t||1<f.pipesCount&&-1!==v(f.pipes,t))&&!d&&(E("false write response, pause",u._readableState.awaitDrain),u._readableState.awaitDrain++,c=!0),u.pause())}function o(e){E("onerror",e),a(),t.removeListener("error",o),0===t.listeners("error").length&&t.emit("error",e)}function s(){t.removeListener("finish",h),a()}function h(){E("onfinish"),t.removeListener("close",s),a()}function a(){E("unpipe"),u.unpipe(t)}var u=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,E("pipe count=%d opts=%j",f.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?a:i,f.endEmitted?y.nextTick(e):u.once("end",e),t.on("unpipe",(function e(r,c){E("onunpipe"),r===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,E("cleanup"),t.removeListener("close",s),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",o),t.removeListener("unpipe",e),u.removeListener("end",i),u.removeListener("end",a),u.removeListener("data",n),d=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;E("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,p(t))}}(u);t.on("drain",l);var d=!1,c=!1;return u.on("data",n),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?w(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",o),t.once("close",s),t.once("finish",h),t.emit("pipe",u),f.flowing||(E("pipe resume"),u.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){t=e.pipes;var r=e.pipesCount;for(e.pipes=null,e.pipesCount=0,e.flowing=!1,e=0;e<r;e++)t[e].emit("unpipe",this,i);return this}return-1===(r=v(e.pipes,t))||(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},o.prototype.on=function(t,e){return e=_.prototype.on.call(this,t,e),"data"===t?!1!==this._readableState.flowing&&this.resume():"readable"===t&&((t=this._readableState).endEmitted||t.readableListening||(t.readableListening=t.needReadable=!0,t.emittedReadable=!1,t.reading?t.length&&u(this):y.nextTick(d,this))),e},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){var t=this._readableState;return t.flowing||(E("resume"),t.flowing=!0,t.resumeScheduled||(t.resumeScheduled=!0,y.nextTick(c,this,t))),this},o.prototype.pause=function(){return E("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(E("pause"),this._readableState.flowing=!1,this.emit("pause")),this},o.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var n in t.on("end",(function(){if(E("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(n){E("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||!(i.objectMode||n&&n.length)||e.push(n)||(r=!0,t.pause())})),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(n=0;n<B.length;n++)t.on(B[n],this.emit.bind(this,B[n]));return this._read=function(e){E("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),o._fromList=m}).call(this,i(2),i(6))},function(t,e,i){t.exports=i(49).EventEmitter},function(t,e,i){function r(t,e){t.emit("error",e)}var n=i(67);t.exports={destroy:function(t,e){var i=this,o=this._writableState&&this._writableState.destroyed;return this._readableState&&this._readableState.destroyed||o?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(r,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(r,i,t),i._writableState&&(i._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,i){function r(t,e){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(!r)return this.emit("error",Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);h.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"==typeof this._flush?this._flush((function(e,i){s(t,e,i)})):s(this,null,null)}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw Error("Calling transform done when still transforming");return t.push(null)}t.exports=n;var h=i(51);(t=i(62)).inherits=i(38),t.inherits(n,h),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,h.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){throw Error("_transform() is not implemented")},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,r.transforming||(t=this._readableState,(r.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},n.prototype._read=function(t){null!==(t=this._transformState).writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},n.prototype._destroy=function(t,e){var i=this;h.prototype._destroy.call(this,t,(function(t){e(t),i.emit("close")}))}},function(t,e,i){function r(t,e){o.call(this,"digest"),"string"==typeof e&&(e=s.from(e));var i="sha512"===t||"sha384"===t?128:64;this._alg=t,this._key=e,e.length>i?e=("rmd160"===t?new a:u(t)).update(e).digest():e.length<i&&(e=s.concat([e,f],i));for(var r=this._ipad=s.allocUnsafe(i),n=this._opad=s.allocUnsafe(i),h=0;h<i;h++)r[h]=54^e[h],n[h]=92^e[h];this._hash="rmd160"===t?new a:u(t),this._hash.update(r)}e=i(38);var n=i(170),o=i(48),s=i(39).Buffer,h=i(107),a=i(76),u=i(77),f=s.alloc(128);e(r,o),r.prototype._update=function(t){this._hash.update(t)},r.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new a:u(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new r("rmd160",e):"md5"===t?new n(h,e):new r(t,e)}},function(t,e,i){var r=i(73);t.exports=function(t){return(new r).update(t).digest()}},function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(t,e,i){e.pbkdf2=i(172),e.pbkdf2Sync=i(112)},function(t,e,i){(function(e){function i(t,i){if("string"!=typeof t&&!e.isBuffer(t))throw new TypeError(i+" must be a buffer or string")}var r=Math.pow(2,30)-1;t.exports=function(t,e,n,o){if(i(t,"Password"),i(e,"Salt"),"number"!=typeof n)throw new TypeError("Iterations not a number");if(0>n)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(0>o||o>r||o!=o)throw new TypeError("Bad key length")}}).call(this,i(41).Buffer)},function(t,e,i){e=(e=i(6)).browser||6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary",t.exports=e},function(t,e,i){function r(t,e,i){var r=n(t),o="sha512"===t||"sha384"===t?128:64;e.length>o?e=r(e):e.length<o&&(e=f.concat([e,l],o));for(var s=f.allocUnsafe(o+d[t]),h=f.allocUnsafe(o+d[t]),a=0;a<o;a++)s[a]=54^e[a],h[a]=92^e[a];e=f.allocUnsafe(o+i+4),s.copy(e,0,0,o),this.ipad1=e,this.ipad2=s,this.opad=h,this.alg=t,this.blocksize=o,this.hash=r,this.size=d[t]}function n(t){return"rmd160"===t||"ripemd160"===t?function(t){return(new s).update(t).digest()}:"md5"===t?o:function(e){return h(t).update(e).digest()}}var o=i(107),s=i(76),h=i(77),a=i(110),u=i(111),f=i(39).Buffer,l=f.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};r.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,i,n,o){a(t,e,i,n),f.isBuffer(t)||(t=f.from(t,u)),f.isBuffer(e)||(e=f.from(e,u)),t=new r(o=o||"sha1",t,e.length);var s=f.allocUnsafe(n),h=f.allocUnsafe(e.length+4);e.copy(h,0,0,e.length);var l=0;o=d[o],n=Math.ceil(n/o);for(var c=1;c<=n;c++){h.writeUInt32BE(c,e.length);for(var p=t.run(h,t.ipad1),m=p,g=1;g<i;g++){m=t.run(m,t.ipad2);for(var b=0;b<o;b++)p[b]^=m[b]}p.copy(s,l),l+=o}return s}},function(t,e,i){e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,i){t[0+i]=e>>>24,t[1+i]=e>>>16&255,t[2+i]=e>>>8&255,t[3+i]=255&e},e.ip=function(t,e,i,r){for(var n=0,o=0,s=6;0<=s;s-=2){for(var h=0;24>=h;h+=8)n<<=1,n|=e>>>h+s&1;for(h=0;24>=h;h+=8)n<<=1,n|=t>>>h+s&1}for(s=6;0<=s;s-=2){for(h=1;25>=h;h+=8)o<<=1,o|=e>>>h+s&1;for(h=1;25>=h;h+=8)o<<=1,o|=t>>>h+s&1}i[r+0]=n>>>0,i[r+1]=o>>>0},e.rip=function(t,e,i,r){for(var n=0,o=0,s=0;4>s;s++)for(var h=24;0<=h;h-=8)n<<=1,n|=e>>>h+s&1,n<<=1,n|=t>>>h+s&1;for(s=4;8>s;s++)for(h=24;0<=h;h-=8)o<<=1,o|=e>>>h+s&1,o<<=1,o|=t>>>h+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.pc1=function(t,e,i,r){for(var n=0,o=0,s=7;5<=s;s--){for(var h=0;24>=h;h+=8)n<<=1,n|=e>>h+s&1;for(h=0;24>=h;h+=8)n<<=1,n|=t>>h+s&1}for(h=0;24>=h;h+=8)n<<=1,n|=e>>h+s&1;for(s=1;3>=s;s++){for(h=0;24>=h;h+=8)o<<=1,o|=e>>h+s&1;for(h=0;24>=h;h+=8)o<<=1,o|=t>>h+s&1}for(h=0;24>=h;h+=8)o<<=1,o|=t>>h+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,i,n){for(var o=0,s=0,h=r.length>>>1,a=0;a<h;a++)o<<=1,o|=t>>>r[a]&1;for(a=h;a<r.length;a++)s<<=1,s|=e>>>r[a]&1;i[n+0]=o>>>0,i[n+1]=s>>>0},e.expand=function(t,e,i){for(var r=0,n=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)n<<=6,n|=t>>>o&63;for(o=11;3<=o;o-=4)r|=t>>>o&63,r<<=6;e[i+0]=n>>>0,e[i+1]=(r|(31&t)<<1|t>>>31)>>>0};var n=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var i=0,r=0;4>r;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;4>r;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,i=0;i<o.length;i++)e<<=1,e|=t>>>o[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(t=t.toString(2);t.length<e;)t="0"+t;for(var r=[],n=0;n<e;n+=i)r.push(t.slice(n,n+i));return r.join(" ")}},function(t,e,i){function r(){this.tmp=Array(2),this.keys=null}function n(t){h.call(this,t);var e=new r;this._desState=e,this.deriveKeys(e,t.key)}var o=i(43);e=i(38);var s=i(113),h=i(80);e(n,h),t.exports=n,n.create=function(t){return new n(t)};var a=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];n.prototype.deriveKeys=function(t,e){t.keys=Array(32),o.equal(e.length,this.blockSize,"Invalid key length");var i=s.readUInt32BE(e,0);e=s.readUInt32BE(e,4),s.pc1(i,e,t.tmp,0),i=t.tmp[0],e=t.tmp[1];for(var r=0;r<t.keys.length;r+=2){var n=a[r>>>1];i=s.r28shl(i,n),e=s.r28shl(e,n),s.pc2(i,e,t.keys,r)}},n.prototype._update=function(t,e,i,r){var n=this._desState,o=s.readUInt32BE(t,e);t=s.readUInt32BE(t,e+4),s.ip(o,t,n.tmp,0),o=n.tmp[0],t=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,t,n.tmp,0):this._decrypt(n,o,t,n.tmp,0),o=n.tmp[0],t=n.tmp[1],s.writeUInt32BE(i,o,r),s.writeUInt32BE(i,t,r+4)},n.prototype._pad=function(t,e){for(var i=t.length-e;e<t.length;e++)t[e]=i;return!0},n.prototype._unpad=function(t){for(var e=t[t.length-1],i=t.length-e;i<t.length;i++)o.equal(t[i],e);return t.slice(0,t.length-e)},n.prototype._encrypt=function(t,e,i,r,n){for(var o=0;o<t.keys.length;o+=2){var h=t.keys[o],a=t.keys[o+1];s.expand(i,t.tmp,0),h^=t.tmp[0],a^=t.tmp[1],h=s.substitute(h,a),a=i,i=(e^(h=s.permute(h)))>>>0,e=a}s.rip(i,e,r,n)},n.prototype._decrypt=function(t,e,i,r,n){for(var o=t.keys.length-2;0<=o;o-=2){var h=t.keys[o],a=t.keys[o+1];s.expand(i,t.tmp,0),h^=t.tmp[0],a^=t.tmp[1],h=s.substitute(h,a),a=i,i=(e^(h=s.permute(h)))>>>0,e=a}s.rip(i,e,r,n)}},function(t,e,i){var r=i(63),n=i(39).Buffer,o=i(116);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),s=t._cache.length;t._cache=n.concat([t._cache,n.allocUnsafe(16*i)]);for(var h=0;h<i;h++){var a=t,u=a._cipher.encryptBlockRaw(a._prev);o(a._prev),a=u,u=s+16*h,t._cache.writeUInt32BE(a[0],u+0),t._cache.writeUInt32BE(a[1],u+4),t._cache.writeUInt32BE(a[2],u+8),t._cache.writeUInt32BE(a[3],u+12)}return i=t._cache.slice(0,e.length),t._cache=t._cache.slice(e.length),r(e,i)}},function(t,e){t.exports=function(t){for(var e,i=t.length;i--;){if(255!==(e=t.readUInt8(i))){e++,t.writeUInt8(e,i);break}t.writeUInt8(0,i)}}},function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(t,e,i){function r(t,e,i,r){s.call(this);var a=o.alloc(4,0);if(this._cipher=new n.AES(e),a=this._cipher.encryptBlock(a),this._ghash=new h(a),12===(e=i).length)this._finID=o.concat([e,o.from([0,0,0,1])]),i=o.concat([e,o.from([0,0,0,2])]);else{i=new h(a);var f=(a=e.length)%16;i.update(e),f&&i.update(o.alloc(16-f,0)),i.update(o.alloc(8,0)),e=8*a,(a=o.alloc(8)).writeUIntBE(e,0,8),i.update(a),this._finID=i.state,i=o.from(this._finID),u(i)}this._prev=o.from(i),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=r,this._len=this._alen=0,this._mode=t,this._authTag=null,this._called=!1}var n=i(68),o=i(39).Buffer,s=i(48);e=i(38);var h=i(185),a=i(63),u=i(116);e(r,s),r.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;16>e&&(e=o.alloc(e,0),this._ghash.update(e))}return this._called=!0,e=this._mode.encrypt(this,t),this._decrypt?this._ghash.update(t):this._ghash.update(e),this._len+=t.length,e},r.prototype._final=function(){if(this._decrypt&&!this._authTag)throw Error("Unsupported state or unable to authenticate data");var t,e=a(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(t=this._decrypt){t=this._authTag;var i=0;e.length!==t.length&&i++;for(var r=Math.min(e.length,t.length),n=0;n<r;++n)i+=e[n]^t[n];t=i}if(t)throw Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},r.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw Error("Attempting to get auth tag in unsupported state");return this._authTag},r.prototype.setAuthTag=function(t){if(!this._decrypt)throw Error("Attempting to set auth tag in unsupported state");this._authTag=t},r.prototype.setAAD=function(t){if(this._called)throw Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=r},function(t,e,i){function r(t,e,i,r){s.call(this),this._cipher=new n.AES(e),this._prev=o.from(i),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=r,this._mode=t}var n=i(68),o=i(39).Buffer,s=i(48);i(38)(r,s),r.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},r.prototype._final=function(){this._cipher.scrub()},t.exports=r},function(t,e,i){function r(t){if(null!==b)var e=b;else{e=[2];for(var i=1,r=3;1048576>r;r+=2){for(var n=Math.ceil(Math.sqrt(r)),o=0;o<i&&e[o]<=n&&0!=r%e[o];o++);i!==o&&e[o]<=n||(e[i++]=r)}b=e}for(i=0;i<e.length;i++)if(0===t.modn(e[i])){if(0===t.cmpn(e[i]))break;return!1}return!0}function n(t){var e=h.mont(t);return 0===l.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function o(t,e){if(16>t)return new h(2===e||5===e?[140,123]:[140,39]);e=new h(e);for(var i,o;;){for(i=new h(s(Math.ceil(t/8)));i.bitLength()>t;)i.ishrn(1);if(i.isEven()&&i.iadd(f),i.testn(1)||i.iadd(l),e.cmp(l)){if(!e.cmp(d))for(;i.mod(c).cmp(p);)i.iadd(g)}else for(;i.mod(a).cmp(m);)i.iadd(g);if(r(o=i.shrn(1))&&r(i)&&n(o)&&n(i)&&u.test(o)&&u.test(i))return i}}var s=i(53);t.exports=o,o.simpleSieve=r,o.fermatTest=n;var h=i(121),a=new h(24),u=new(i(122)),f=new h(1),l=new h(2),d=new h(5);new h(16),new h(8);var c=new h(10),p=new h(3);new h(7);var m=new h(11),g=new h(4);new h(12);var b=null},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(189).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){function r(t){this.rand=t||new o.Rand}var n=i(190),o=i(83);t.exports=r,r.create=function(t){return new r(t)},r.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{e=new n(this.rand.generate(i))}while(0<=e.cmp(t));return e},r.prototype._randrange=function(t,e){return e=e.sub(t),t.add(this._randbelow(e))},r.prototype.test=function(t,e,i){var r=t.bitLength(),o=n.mont(t),s=new n(1).toRed(o);e||(e=Math.max(1,r/48|0)),r=t.subn(1);for(var h=0;!r.testn(h);h++);t=t.shrn(h);for(var a=r.toRed(o);0<e;e--){var u=this._randrange(new n(2),r);if(i&&i(u),0!==(u=u.toRed(o).redPow(t)).cmp(s)&&0!==u.cmp(a)){for(var f=1;f<h;f++){if(0===(u=u.redSqr()).cmp(s))return!1;if(0===u.cmp(a))break}if(f===h)return!1}}return!0},r.prototype.getDivisor=function(t,e){var i=t.bitLength(),r=n.mont(t),o=new n(1).toRed(r);e||(e=Math.max(1,i/48|0)),i=t.subn(1);for(var s=0;!i.testn(s);s++);for(var h=t.shrn(s),a=i.toRed(r);0<e;e--){var u=this._randrange(new n(2),i),f=t.gcd(u);if(0!==f.cmpn(1))return f;if(0!==(u=u.toRed(r).redPow(h)).cmp(o)&&0!==u.cmp(a)){for(f=1;f<s;f++){if(0===(u=u.redSqr()).cmp(o))return u.fromRed().subn(1).gcd(t);if(0===u.cmp(a))break}if(f===s)return(u=u.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,i){(function(e,r){function n(t,e,r){w=w||i(58),t=t||{},"boolean"!=typeof r&&(r=e instanceof w),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=I(this,t,"readableHighWaterMark",r),this.buffer=new E,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.reading=this.endEmitted=this.ended=!1,this.sync=!0,this.resumeScheduled=this.readableListening=this.emittedReadable=this.needReadable=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.encoding=this.decoder=null,t.encoding&&(x||(x=i(50).StringDecoder),this.decoder=new x(t.encoding),this.encoding=t.encoding)}function o(t){if(w=w||i(58),!(this instanceof o))return new o(t);this._readableState=new n(t,this,this instanceof w),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),_.call(this)}function s(t,e,i,r,n){A("readableAddChunk",e);var o=t._readableState;if(null===e)o.reading=!1,A("onEofChunk"),o.ended||(o.decoder&&(e=o.decoder.end())&&e.length&&(o.buffer.push(e),o.length+=o.objectMode?1:e.length),o.ended=!0,o.sync?u(t):(o.needReadable=!1,o.emittedReadable||(o.emittedReadable=!0,f(t))));else{if(!n){var s;n=e,S.isBuffer(n)||n instanceof k||"string"==typeof n||void 0===n||o.objectMode||(s=new P("chunk",["string","Buffer","Uint8Array"],n));var a=s}if(a)O(t,a);else if(o.objectMode||e&&0<e.length)if("string"==typeof e||o.objectMode||Object.getPrototypeOf(e)===S.prototype||(e=S.from(e)),r)o.endEmitted?O(t,new C):h(t,o,e,!0);else if(o.ended)O(t,new j);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!i?(e=o.decoder.write(e),o.objectMode||0!==e.length?h(t,o,e,!1):l(t,o)):h(t,o,e,!1)}else r||(o.reading=!1,l(t,o))}return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function h(t,e,i,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",i)):(e.length+=e.objectMode?1:i.length,r?e.buffer.unshift(i):e.buffer.push(i),e.needReadable&&u(t)),l(t,e)}function a(t,e){if(0>=t||0===e.length&&e.ended)return 0;if(e.objectMode)return 1;if(t!=t)return e.flowing&&e.length?e.buffer.head.data.length:e.length;if(t>e.highWaterMark){var i=t;1073741824<=i?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),e.highWaterMark=i}return t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0)}function u(t){var e=t._readableState;A("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(A("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(f,t))}function f(t){var e=t._readableState;A("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,g(t)}function l(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(d,t,e))}function d(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var i=e.length;if(A("maybeReadMore read 0"),t.read(0),i===e.length)break}e.readingMore=!1}function c(t){var e=t._readableState;e.readableListening=0<t.listenerCount("readable"),e.resumeScheduled&&!e.paused?e.flowing=!0:0<t.listenerCount("data")&&t.resume()}function p(t){A("readable nexttick read 0"),t.read(0)}function m(t,e){A("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),g(t),e.flowing&&!e.reading&&t.read(0)}function g(t){var e=t._readableState;for(A("flow",e.flowing);e.flowing&&null!==t.read(););}function b(t,e){return 0===e.length?null:(e.objectMode?t=e.buffer.shift():!t||t>=e.length?(t=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):t=e.buffer.consume(t,e.decoder),t)}function v(t){var e=t._readableState;A("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(y,e,t))}function y(t,e){A("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy&&((!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy()))}function M(t,e){for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}var w;t.exports=o,o.ReadableState=n,i(49);var _=i(124),S=i(41).Buffer,k=e.Uint8Array||function(){},A=(e=i(197))&&e.debuglog?e.debuglog("stream"):function(){},E=i(198);e=i(125);var x,R,B,I=i(126).getHighWaterMark,T=i(57).codes,P=T.ERR_INVALID_ARG_TYPE,j=T.ERR_STREAM_PUSH_AFTER_EOF,L=T.ERR_METHOD_NOT_IMPLEMENTED,C=T.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;i(38)(o,_);var O=e.errorOrDestroy,N=["error","close","destroy","pause","resume"];Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),o.prototype.destroy=e.destroy,o.prototype._undestroy=e.undestroy,o.prototype._destroy=function(t,e){e(t)},o.prototype.push=function(t,e){var i=this._readableState;if(i.objectMode)var r=!0;else"string"==typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=S.from(t,e),e=""),r=!0);return s(this,t,e,!1,r)},o.prototype.unshift=function(t){return s(this,t,null,!0,!1)},o.prototype.isPaused=function(){return!1===this._readableState.flowing},o.prototype.setEncoding=function(t){x||(x=i(50).StringDecoder),t=new x(t),this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var e=this._readableState.buffer.head,r="";null!==e;)r+=t.write(e.data),e=e.next;return this._readableState.buffer.clear(),""!==r&&this._readableState.buffer.push(r),this._readableState.length=r.length,this},o.prototype.read=function(t){A("read",t),t=parseInt(t,10);var e=this._readableState,i=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:0<e.length)||e.ended))return A("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?v(this):u(this),null;if(0===(t=a(t,e))&&e.ended)return 0===e.length&&v(this),null;var r=e.needReadable;return A("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&A("length less than watermark",r=!0),e.ended||e.reading?A("reading or ended",!1):r&&(A("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=a(i,e))),null===(r=0<t?b(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),i!==t&&e.ended&&v(this)),null!==r&&this.emit("data",r),r},o.prototype._read=function(t){O(this,new L("_read()"))},o.prototype.pipe=function(t,e){function i(){A("onend"),t.end()}function n(e){A("ondata"),e=t.write(e),A("dest.write",e),!1===e&&((1===f.pipesCount&&f.pipes===t||1<f.pipesCount&&-1!==M(f.pipes,t))&&!d&&(A("false write response, pause",f.awaitDrain),f.awaitDrain++),u.pause())}function o(e){A("onerror",e),a(),t.removeListener("error",o),0===t.listeners("error").length&&O(t,e)}function s(){t.removeListener("finish",h),a()}function h(){A("onfinish"),t.removeListener("close",s),a()}function a(){A("unpipe"),u.unpipe(t)}var u=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,A("pipe count=%d opts=%j",f.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?a:i,f.endEmitted?r.nextTick(e):u.once("end",e),t.on("unpipe",(function e(r,c){A("onunpipe"),r===u&&c&&!1===c.hasUnpiped&&(c.hasUnpiped=!0,A("cleanup"),t.removeListener("close",s),t.removeListener("finish",h),t.removeListener("drain",l),t.removeListener("error",o),t.removeListener("unpipe",e),u.removeListener("end",i),u.removeListener("end",a),u.removeListener("data",n),d=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||l())}));var l=function(t){return function(){var e=t._readableState;A("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&t.listeners("data").length&&(e.flowing=!0,g(t))}}(u);t.on("drain",l);var d=!1;return u.on("data",n),function(t,e,i){if("function"==typeof t.prependListener)return t.prependListener(e,i);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(i):t._events[e]=[i,t._events[e]]:t.on(e,i)}(t,"error",o),t.once("close",s),t.once("finish",h),t.emit("pipe",u),f.flowing||(A("pipe resume"),u.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState,i={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,i)),this;if(!t){for(t=e.pipes,i=e.pipesCount,e.pipes=null,e.pipesCount=0,e.flowing=!1,e=0;e<i;e++)t[e].emit("unpipe",this,{hasUnpiped:!1});return this}var r=M(e.pipes,t);return-1===r||(e.pipes.splice(r,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,i)),this},o.prototype.on=function(t,e){e=_.prototype.on.call(this,t,e);var i=this._readableState;return"data"===t?(i.readableListening=0<this.listenerCount("readable"),!1!==i.flowing&&this.resume()):"readable"!==t||i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,A("on readable",i.length,i.reading),i.length?u(this):i.reading||r.nextTick(p,this)),e},o.prototype.addListener=o.prototype.on,o.prototype.removeListener=function(t,e){return e=_.prototype.removeListener.call(this,t,e),"readable"===t&&r.nextTick(c,this),e},o.prototype.removeAllListeners=function(t){var e=_.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(c,this),e},o.prototype.resume=function(){var t=this._readableState;return t.flowing||(A("resume"),t.flowing=!t.readableListening,t.resumeScheduled||(t.resumeScheduled=!0,r.nextTick(m,this,t))),t.paused=!1,this},o.prototype.pause=function(){return A("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(A("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},o.prototype.wrap=function(t){var e=this,i=this._readableState,r=!1;for(var n in t.on("end",(function(){if(A("wrapped end"),i.decoder&&!i.ended){var t=i.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(n){A("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||!(i.objectMode||n&&n.length)||e.push(n)||(r=!0,t.pause())})),t)void 0===this[n]&&"function"==typeof t[n]&&(this[n]=function(e){return function(){return t[e].apply(t,arguments)}}(n));for(n=0;n<N.length;n++)t.on(N[n],this.emit.bind(this,N[n]));return this._read=function(e){A("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(o.prototype[Symbol.asyncIterator]=function(){return void 0===R&&(R=i(200)),R(this)}),Object.defineProperty(o.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(o.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(o.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),o._fromList=b,Object.defineProperty(o.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(o.from=function(t,e){return void 0===B&&(B=i(201)),B(o,t,e)})}).call(this,i(2),i(6))},function(t,e,i){t.exports=i(49).EventEmitter},function(t,e,i){(function(e){function i(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var s=this,h=this._writableState&&this._writableState.destroyed;return this._readableState&&this._readableState.destroyed||h?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(n,this,t)):e.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?s._writableState?s._writableState.errorEmitted?e.nextTick(r,s):(s._writableState.errorEmitted=!0,e.nextTick(i,s,t)):e.nextTick(i,s,t):o?(e.nextTick(r,s),o(t)):e.nextTick(r,s)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var i=t._readableState,r=t._writableState;i&&i.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,i(6))},function(t,e,i){var r=i(57).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,i,n){if(null!=(e=null!=e.highWaterMark?e.highWaterMark:n?e[i]:null)){if(!isFinite(e)||Math.floor(e)!==e||0>e)throw new r(n?i:"highWaterMark",e);return Math.floor(e)}return t.objectMode?16:16384}}},function(t,e,i){(function(e,r){function n(t){var e=this;this.entry=this.next=null,this.finish=function(){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(void 0),i=i.next}t.corkedRequestsFree.next=e}}function o(){}function s(t,e,o){p=p||i(58),t=t||{},"boolean"!=typeof o&&(o=e instanceof p),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=y(this,t,"writableHighWaterMark",o),this.destroyed=this.finished=this.ended=this.ending=this.needDrain=this.finalCalled=!1,this.decodeStrings=!1!==t.decodeStrings,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){var i=e._writableState,n=i.sync,o=i.writecb;if("function"!=typeof o)throw new S;i.writing=!1,i.writecb=null,i.length-=i.writelen,i.writelen=0,t?(--i.pendingcb,n?(r.nextTick(o,t),r.nextTick(c,e,i),e._writableState.errorEmitted=!0,B(e,t)):(o(t),e._writableState.errorEmitted=!0,B(e,t),c(e,i))):((t=l(i)||e.destroyed)||i.corked||i.bufferProcessing||!i.bufferedRequest||f(e,i),n?r.nextTick(u,e,i,t,o):u(e,i,t,o))},this.writecb=null,this.writelen=0,this.lastBufferedRequest=this.bufferedRequest=null,this.pendingcb=0,this.errorEmitted=this.prefinished=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function h(t){var e=this instanceof(p=p||i(58));if(!e&&!I.call(h,this))return new h(t);this._writableState=new s(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),g.call(this)}function a(t,e,i,r,n,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new A("write")):i?t._writev(n,e.onwrite):t._write(n,o,e.onwrite),e.sync=!1}function u(t,e,i,r){!i&&0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain")),e.pendingcb--,r(),c(t,e)}function f(t,e){e.bufferProcessing=!0;var i=e.bufferedRequest;if(t._writev&&i&&i.next){var r=Array(e.bufferedRequestCount),o=e.corkedRequestsFree;o.entry=i;for(var s=0,h=!0;i;)r[s]=i,i.isBuf||(h=!1),i=i.next,s+=1;r.allBuffers=h,a(t,e,!0,e.length,r,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;i&&(r=i.chunk,a(t,e,!1,e.objectMode?1:r.length,r,i.encoding,i.callback),i=i.next,e.bufferedRequestCount--,!e.writing););null===i&&(e.lastBufferedRequest=null)}e.bufferedRequest=i,e.bufferProcessing=!1}function l(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function d(t,e){t._final((function(i){e.pendingcb--,i&&B(t,i),e.prefinished=!0,t.emit("prefinish"),c(t,e)}))}function c(t,e){var i=l(e);return i&&(e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(d,t,e))),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy&&((!(e=t._readableState)||e.autoDestroy&&e.endEmitted)&&t.destroy()))),i}var p;t.exports=h,h.WritableState=s;var m={deprecate:i(74)},g=i(124),b=i(41).Buffer,v=e.Uint8Array||function(){};e=i(125);var y=i(126).getHighWaterMark,M=i(57).codes,w=M.ERR_INVALID_ARG_TYPE,_=M.ERR_METHOD_NOT_IMPLEMENTED,S=M.ERR_MULTIPLE_CALLBACK,k=M.ERR_STREAM_CANNOT_PIPE,A=M.ERR_STREAM_DESTROYED,E=M.ERR_STREAM_NULL_VALUES,x=M.ERR_STREAM_WRITE_AFTER_END,R=M.ERR_UNKNOWN_ENCODING,B=e.errorOrDestroy;if(i(38)(h,g),s.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(s.prototype,"buffer",{get:m.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]){var I=Function.prototype[Symbol.hasInstance];Object.defineProperty(h,Symbol.hasInstance,{value:function(t){return!!I.call(this,t)||this===h&&(t&&t._writableState instanceof s)}})}else I=function(t){return t instanceof this};h.prototype.pipe=function(){B(this,new k)},h.prototype.write=function(t,e,i){var n,s=this._writableState,h=!1;if((n=!s.objectMode)&&(n=t,n=b.isBuffer(n)||n instanceof v),n&&!b.isBuffer(t)&&(t=b.from(t)),"function"==typeof e&&(i=e,e=null),n?e="buffer":e||(e=s.defaultEncoding),"function"!=typeof i&&(i=o),s.ending)s=i,i=new x,B(this,i),r.nextTick(s,i);else{var u;if(!(u=n)){var f,l=i;null===(u=t)?f=new E:"string"==typeof u||s.objectMode||(f=new w("chunk",["string","Buffer"],u)),f?(B(this,f),r.nextTick(l,f),u=!1):u=!0}u&&(s.pendingcb++,(h=n)||(f=t,s.objectMode||!1===s.decodeStrings||"string"!=typeof f||(f=b.from(f,e)),t!==f&&(h=!0,e="buffer",t=f)),n=s.objectMode?1:t.length,s.length+=n,(f=s.length<s.highWaterMark)||(s.needDrain=!0),s.writing||s.corked?(n=s.lastBufferedRequest,s.lastBufferedRequest={chunk:t,encoding:e,isBuf:h,callback:i,next:null},n?n.next=s.lastBufferedRequest:s.bufferedRequest=s.lastBufferedRequest,s.bufferedRequestCount+=1):a(this,s,!1,n,t,e,i),h=f)}return h},h.prototype.cork=function(){this._writableState.corked++},h.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||f(this,t))},h.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<"hex utf8 utf-8 ascii binary base64 ucs2 ucs-2 utf16le utf-16le raw".split(" ").indexOf((t+"").toLowerCase())))throw new R(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),h.prototype._write=function(t,e,i){i(new _("_write()"))},h.prototype._writev=null,h.prototype.end=function(t,e,i){var n=this._writableState;return"function"==typeof t?(i=t,e=t=null):"function"==typeof e&&(i=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||(t=i,n.ending=!0,c(this,n),t&&(n.finished?r.nextTick(t):this.once("finish",t)),n.ended=!0,this.writable=!1),this},Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),h.prototype.destroy=e.destroy,h.prototype._undestroy=e.undestroy,h.prototype._destroy=function(t,e){e(t)}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(null===r)return this.emit("error",new a);i.writechunk=null,i.writecb=null,null!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}function n(t){if(!(this instanceof n))return new n(t);l.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",o)}function o(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?s(this,null,null):this._flush((function(e,i){s(t,e,i)}))}function s(t,e,i){if(e)return t.emit("error",e);if(null!=i&&t.push(i),t._writableState.length)throw new f;if(t._transformState.transforming)throw new u;return t.push(null)}t.exports=n;var h=(t=i(57).codes).ERR_METHOD_NOT_IMPLEMENTED,a=t.ERR_MULTIPLE_CALLBACK,u=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,f=t.ERR_TRANSFORM_WITH_LENGTH_0,l=i(58);i(38)(n,l),n.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},n.prototype._transform=function(t,e,i){i(new h("_transform()"))},n.prototype._write=function(t,e,i){var r=this._transformState;r.writecb=i,r.writechunk=t,r.writeencoding=e,r.transforming||(t=this._readableState,(r.needTransform||t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark))},n.prototype._read=function(t){null===(t=this._transformState).writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},n.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,i){function r(t){return 1===t.length?"0"+t:t}function n(t){for(var e="",i=0;i<t.length;i++)e+=r(t[i].toString(16));return e}e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i=[];if("string"!=typeof t){for(e=0;e<t.length;e++)i[e]=0|t[e];return i}if("hex"===e)for(0!=(t=t.replace(/[^a-z0-9]+/gi,"")).length%2&&(t="0"+t),e=0;e<t.length;e+=2)i.push(parseInt(t[e]+t[e+1],16));else for(e=0;e<t.length;e++){var r=t.charCodeAt(e),n=r>>8;r&=255,n?i.push(n,r):i.push(r)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){e.base=i(70),e.short=i(209),e.mont=i(210),e.edwards=i(211)},function(t,e,i){function r(t,e,i){return t&e^t&i^e&i}var n=i(46).rotr32;e.ft_1=function(t,e,i,n){return 0===t?e&i^~e&n:1===t||3===t?e^i^n:2===t?r(e,i,n):void 0},e.ch32=function(t,e,i){return t&e^~t&i},e.maj32=r,e.p32=function(t,e,i){return t^e^i},e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},function(t,e,i){function r(){if(!(this instanceof r))return new r;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=Array(64)}var n=i(46);e=i(64);var o=i(131),s=i(43),h=n.sum32,a=n.sum32_4,u=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,c=o.s1_256,p=o.g0_256,m=o.g1_256,g=e.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];n.inherits(r,g),t.exports=r,r.blockSize=512,r.outSize=256,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var i=this.W,r=0;16>r;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=a(m(i[r-2]),i[r-7],p(i[r-15]),i[r-16]);t=this.h[0],e=this.h[1];var n=this.h[2],o=this.h[3],g=this.h[4],b=this.h[5],v=this.h[6],y=this.h[7];for(s(this.k.length===i.length),r=0;r<i.length;r++){var M=u(y,c(g),f(g,b,v),this.k[r],i[r]),w=h(d(t),l(t,e,n));y=v,v=b,b=g,g=h(o,M),o=n,n=e,e=t,t=h(M,w)}this.h[0]=h(this.h[0],t),this.h[1]=h(this.h[1],e),this.h[2]=h(this.h[2],n),this.h[3]=h(this.h[3],o),this.h[4]=h(this.h[4],g),this.h[5]=h(this.h[5],b),this.h[6]=h(this.h[6],v),this.h[7]=h(this.h[7],y)},r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;b.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=Array(160)}var n=i(46);e=i(64);var o=i(43),s=n.rotr64_hi,h=n.rotr64_lo,a=n.shr64_hi,u=n.shr64_lo,f=n.sum64,l=n.sum64_hi,d=n.sum64_lo,c=n.sum64_4_hi,p=n.sum64_4_lo,m=n.sum64_5_hi,g=n.sum64_5_lo,b=e.BlockHash,v=[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];n.inherits(r,b),t.exports=r,r.blockSize=1024,r.outSize=512,r.hmacStrength=192,r.padLength=128,r.prototype._prepareBlock=function(t,e){for(var i=this.W,r=0;32>r;r++)i[r]=t[e+r];for(;r<i.length;r+=2){var n=i[r-4],o=i[r-3];0>(t=(t=s(n,o,19))^(e=s(o,n,29))^(n=a(n,o,6)))&&(t+=4294967296),o=i[r-4];var f=i[r-3];0>(e=(e=h(o,f,19))^(n=h(f,o,29))^(o=u(o,f,6)))&&(e+=4294967296),n=i[r-14],o=i[r-13];var l=i[r-30],d=i[r-29];f=s(l,d,1);var m=s(l,d,8);0>(f=f^m^(l=a(l,d,7)))&&(f+=4294967296),d=i[r-30];var g=i[r-29];0>(m=(m=h(d,g,1))^(l=h(d,g,8))^(d=u(d,g,7)))&&(m+=4294967296),l=i[r-32],d=i[r-31],i[r]=c(t,e,n,o,f,m,l,d),i[r+1]=p(t,e,n,o,f,m,l,d)}},r.prototype._update=function(t,e){this._prepareBlock(t,e),t=this.W,e=this.h[0];var i=this.h[1],r=this.h[2],n=this.h[3],a=this.h[4],u=this.h[5],c=this.h[6],p=this.h[7],b=this.h[8],v=this.h[9],y=this.h[10],M=this.h[11],w=this.h[12],_=this.h[13],S=this.h[14],k=this.h[15];o(this.k.length===t.length);for(var A=0;A<t.length;A+=2){var E=b,x=v,R=s(E,x,14),B=s(E,x,18);0>(R=R^B^(E=s(x,E,9)))&&(R+=4294967296),E=R;var I=v;0>(R=(R=h(x=b,I,14))^(B=h(x,I,18))^(x=h(I,x,9)))&&(R+=4294967296),x=R,0>(R=b&y^~b&w)&&(R+=4294967296),B=R,0>(R=v&M^~v&_)&&(R+=4294967296),I=R;var T=this.k[A],P=this.k[A+1],j=t[A],L=t[A+1];R=m(S,k,E,x,B,I,T,P,j,L),B=g(S,k,E,x,B,I,T,P,j,L),0>(S=(S=s(E=e,x=i,28))^(k=s(x,E,2))^(E=s(x,E,7)))&&(S+=4294967296),0>(k=(k=h(x=e,I=i,28))^(E=h(I,x,2))^(x=h(I,x,7)))&&(k+=4294967296),0>(E=e&r^e&a^r&a)&&(E+=4294967296),0>(x=i&n^i&u^n&u)&&(x+=4294967296),I=l(S,k,E,x),E=d(S,k,E,x),S=w,k=_,w=y,_=M,y=b,M=v,b=l(c,p,R,B),v=d(p,p,R,B),c=a,p=u,a=r,u=n,r=e,n=i,e=l(R,B,I,E),i=d(R,B,I,E)}f(this.h,0,e,i),f(this.h,2,r,n),f(this.h,4,a,u),f(this.h,6,c,p),f(this.h,8,b,v),f(this.h,10,y,M),f(this.h,12,w,_),f(this.h,14,S,k)},r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var n=0;i=Math.min(t.length,i);for(var o=0;e<i;e++){var s=t.charCodeAt(e)-48;n<<=4,n|=s=49<=s&&54>=s?s-49+10:17<=s&&22>=s?s-17+10:s,o|=s}return r(!(240&o),"Invalid character in "+t),n}function h(t,e,i,n){var o=0;i=Math.min(t.length,i);for(var s=e;s<i;s++){var h=t.charCodeAt(s)-48;o*=n,e=49<=h?h-49+10:17<=h?h-17+10:h,r(0<=h&&e<n,"Invalid character"),o+=e}return o}function a(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}function f(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i._strip()}function l(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o<i.length-1;o++){var s=n;n=0,r&=67108863;for(var h=Math.min(o,e.length-1),a=Math.max(0,o-t.length+1);a<=h;a++){var u=(0|t.words[o-a])*(0|e.words[a]),f=67108863&u;r=67108863&(f=f+r|0),n+=(s=(s=s+(u/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}i.words[o]=r,r=s}return 0!==r?i.words[o]=r:i.length--,i._strip()}function d(t,e){this.x=t,this.y=e}function c(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function p(){c.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){c.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function g(){c.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){c.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function y(t){v.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var M=i(226).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this._strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this._strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){a(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=u:o.prototype.inspect=u;var w=" 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".split(" "),_=[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],S=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?w[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=_[t],o=S[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modrn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:w[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},M&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(M,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){this._strip();var n=this.byteLength();return r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),t=t.allocUnsafe?t.allocUnsafe(i):new t(i),this["_toArrayLike"+("le"===e?"LE":"BE")](t,n),t},o.prototype._toArrayLikeLE=function(t,e){for(var i=e=0,r=0,n=0;r<this.length;r++)i|=this.words[r]<<n,t[e++]=255&i,e<t.length&&(t[e++]=i>>8&255),e<t.length&&(t[e++]=i>>16&255),6===n?(e<t.length&&(t[e++]=i>>24&255),n=i=0):(i>>>=24,n+=2);if(e<t.length)for(t[e++]=i;e<t.length;)t[e++]=0},o.prototype._toArrayLikeBE=function(t,e){e=t.length-1;for(var i=0,r=0,n=0;r<this.length;r++)i|=this.words[r]<<n,t[e--]=255&i,0<=e&&(t[e--]=i>>8&255),0<=e&&(t[e--]=i>>16&255),6===n?(0<=e&&(t[e--]=i>>24&255),n=i=0):(i>>>=24,n+=2);if(0<=e)for(t[e--]=i;0<=e;)t[e--]=0},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this._strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var k=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(k=f),o.prototype.mulTo=function(t,e){var i=this.length+t.length;return 10===this.length&&10===t.length?k(this,t,e):63>i?f(this,t,e):l(this,t,e)},d.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},d.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},d.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},d.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},d.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},d.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},d.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},d.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},d.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},d.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),l(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=0>t;e&&(t=-t),r("number"==typeof t),r(67108864>t);for(var i=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,s=(67108863&o)+(67108863&i);i>>=26,i+=o/67108864|0,i+=s>>>26,this.words[n]=67108863&s}return 0!==i&&(this.words[n]=i,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++)e[i]=t.words[i/26|0]>>>i%26&1;if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(var r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this._strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this._strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h._strip(),i._strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=0>t;e&&(t=-t),r(67108863>=t);for(var i=67108864%t,n=0,o=this.length-1;0<=o;o--)n=(i*n+(0|this.words[o]))%t;return e?-n:n},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=0>t;e&&(t=-t),r(67108863>=t);for(var i=0,n=this.length-1;0<=n;n--)i=(0|this.words[n])+67108864*i,this.words[n]=i/t|0,i%=t;return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new v(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var A={k256:null,p224:null,p192:null,p25519:null};c.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},c.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t._strip(),t},c.prototype.split=function(t,e){t.iushrn(this.n,0,e)},c.prototype.imulK=function(t){return t.imul(this.k)},n(p,c),p.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},p.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(m,c),n(g,c),n(b,c),b.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(A[t])return A[t];if("k256"===t)var e=new p;else if("p224"===t)e=new m;else if("p192"===t)e=new g;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new b}return A[t]=e},v.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},v.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},v.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},v.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},v.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},v.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},v.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},v.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},v.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},v.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},v.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},v.prototype.isqr=function(t){return this.imul(t,t.clone())},v.prototype.sqr=function(t){return this.mul(t,t)},v.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},v.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},v.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},v.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},v.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new y(t)},n(y,v),y.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},y.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},y.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},y.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},y.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},function(t,e,i){function r(t,e){o.call(this,e),s.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function n(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof n||(t=new n(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&255>=t))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=s.byteLength(t);else{if(!s.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}t=i(38);var o=i(66).Reporter,s=i(41).Buffer;t(r,o),e.DecoderBuffer=r,r.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},r.prototype.restore=function(t){var e=new r(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},r.prototype.isEmpty=function(){return this.offset===this.length},r.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},r.prototype.skip=function(t,e){return this.offset+t<=this.length?((e=new r(this.base))._reporterState=this._reporterState,e.offset=this.offset,e.length=this.offset+t,this.offset+=t,e):this.error(e||"DecoderBuffer overrun")},r.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=n,n.prototype.join=function(t,e){return t||(t=new s(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(i){i.join(t,e),e+=i.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):s.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,i){e._reverse=function(t){var e={};return Object.keys(t).forEach((function(i){(0|i)==i&&(i|=0),e[t[i]]=i})),e},e.der=i(234)},function(t,e,i){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new n,this.tree._init(t.body)}function n(t){h.Node.call(this,"der",t)}function o(t,e){var i=t.readUInt8(e);if(t.isError(i))return i;var r=u.tagClass[i>>6],n=0==(32&i);if(31==(31&i)){var o=i;for(i=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;i<<=7,i|=127&o}}else i&=31;return{cls:r,primitive:n,tag:i,tagStr:u.tag[i]}}function s(t,e,i){var r=t.readUInt8(i);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;if(4<(e=127&r))return t.error("length octect is too long");for(var n=r=0;n<e;n++){r<<=8;var o=t.readUInt8(i);if(t.isError(o))return o;r|=o}return r}e=i(38);var h=(i=i(65)).base,a=i.bignum,u=i.constants.der;t.exports=r,r.prototype.decode=function(t,e){return t instanceof h.DecoderBuffer||(t=new h.DecoderBuffer(t,e)),this.tree._decode(t,e)},e(n,h.Node),n.prototype._peekTag=function(t,e,i){if(t.isEmpty())return!1;var r=t.save(),n=o(t,'Failed to peek tag: "'+e+'"');return t.isError(n)?n:(t.restore(r),n.tag===e||n.tagStr===e||n.tagStr+"of"===e||i)},n.prototype._decodeTag=function(t,e,i){var r=o(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;var n=s(t,r.primitive,'Failed to get length of "'+e+'"');return t.isError(n)?n:i||r.tag===e||r.tagStr===e||r.tagStr+"of"===e?r.primitive||null!==n?t.skip(n,'Failed to match body of: "'+e+'"'):(i=t.save(),n=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"'),t.isError(n)?n:(n=t.offset-i.offset,t.restore(i),t.skip(n,'Failed to match body of: "'+e+'"'))):t.error('Failed to match tag: "'+e+'"')},n.prototype._skipUntilEnd=function(t,e){for(;;){var i=o(t,e);if(t.isError(i))return i;var r=s(t,i.primitive,e);if(t.isError(r))return r;if(r=i.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(r))return r;if("end"===i.tagStr)break}},n.prototype._decodeList=function(t,e,i,r){for(e=[];!t.isEmpty();){var n=this._peekTag(t,"end");if(t.isError(n))return n;var o=i.decode(t,"der",r);if(t.isError(o)&&n)break;e.push(o)}return e},n.prototype._decodeStr=function(t,e){if("bitstr"===e)return e=t.readUInt8(),t.isError(e)?e:{unused:e,data:t.raw()};if("bmpstr"===e){if(1==(e=t.raw()).length%2)return t.error("Decoding of string type: bmpstr length mismatch");t="";for(var i=0;i<e.length/2;i++)t+=String.fromCharCode(e.readUInt16BE(2*i));return t}return"numstr"===e?(e=t.raw().toString("ascii"),this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")):"octstr"===e||"objDesc"===e?t.raw():"printstr"===e?(e=t.raw().toString("ascii"),this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")):/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},n.prototype._decodeObjid=function(t,e,i){for(var r,n=[],o=0;!t.isEmpty();)o<<=7,o|=127&(r=t.readUInt8()),0==(128&r)&&(n.push(o),o=0);return 128&r&&n.push(o),t=n[0]/40|0,r=n[0]%40,i=i?n:[t,r].concat(n.slice(1)),e&&(void 0===(n=e[i.join(" ")])&&(n=e[i.join(".")]),void 0!==n&&(i=n)),i},n.prototype._decodeTime=function(t,e){var i=t.raw().toString();if("gentime"===e){var r=0|i.slice(0,4),n=0|i.slice(4,6),o=0|i.slice(6,8);e=0|i.slice(8,10),t=0|i.slice(10,12),i=0|i.slice(12,14)}else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|i.slice(0,2),n=0|i.slice(2,4),o=0|i.slice(4,6),e=0|i.slice(6,8),t=0|i.slice(8,10),i=0|i.slice(10,12),r=70>r?2e3+r:1900+r}return Date.UTC(r,n-1,o,e,t,i,0)},n.prototype._decodeNull=function(t){return null},n.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},n.prototype._decodeInt=function(t,e){return t=t.raw(),t=new a(t),e&&(t=e[t.toString(10)]||t),t},n.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t,e,i){function r(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new n,this.tree._init(t.body)}function n(t){h.Node.call(this,"der",t)}function o(t){return 10>t?"0"+t:t}e=i(38);var s=i(41).Buffer,h=(i=i(65)).base,a=i.constants.der;t.exports=r,r.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},e(n,h.Node),n.prototype._encodeComposite=function(t,e,i,r){t:{var n=t;if(t=this.reporter,"seqof"===n?n="seq":"setof"===n&&(n="set"),a.tagByName.hasOwnProperty(n))n=a.tagByName[n];else if("number"!=typeof n||(0|n)!==n){t=t.error("Unknown tag: "+n);break t}31<=n?t=t.error("Multi-octet tag encoding unsupported"):(e||(n|=32),t=n|=a.tagClassByName[i||"universal"]<<6)}if(128>r.length)return(e=new s(2))[0]=t,e[1]=r.length,this._createEncoderBuffer([e,r]);for(n=1,i=r.length;256<=i;i>>=8)n++;for((e=new s(2+n))[0]=t,e[1]=128|n,i=1+n,t=r.length;0<t;i--,t>>=8)e[i]=255&t;return this._createEncoderBuffer([e,r])},n.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){e=new s(2*t.length);for(var i=0;i<t.length;i++)e.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},n.prototype._encodeObjid=function(t,e,i){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");for(t=e[t].split(/[\s\.]+/g),e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t))for(t=t.slice(),e=0;e<t.length;e++)t[e]|=0;if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!i){if(40<=t[1])return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var r=0;for(e=0;e<t.length;e++)for(i=t[e],r++;128<=i;i>>=7)r++;var n=(r=new s(r)).length-1;for(e=t.length-1;0<=e;e--)for(i=t[e],r[n--]=127&i;0<(i>>=7);)r[n--]=128|127&i;return this._createEncoderBuffer(r)},n.prototype._encodeTime=function(t,e){var i;return t=new Date(t),"gentime"===e?i=[o(t.getFullYear()),o(t.getUTCMonth()+1),o(t.getUTCDate()),o(t.getUTCHours()),o(t.getUTCMinutes()),o(t.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[o(t.getFullYear()%100),o(t.getUTCMonth()+1),o(t.getUTCDate()),o(t.getUTCHours()),o(t.getUTCMinutes()),o(t.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},n.prototype._encodeNull=function(){return this._createEncoderBuffer("")},n.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"==typeof t||s.isBuffer(t)||(e=t.toArray(),!t.sign&&128&e[0]&&e.unshift(0),t=new s(e)),s.isBuffer(t)){var i=t.length;return 0===t.length&&i++,i=new s(i),t.copy(i),0===t.length&&(i[0]=0),this._createEncoderBuffer(i)}if(128>t)return this._createEncoderBuffer(t);if(256>t)return this._createEncoderBuffer([0,t]);for(i=1,e=t;256<=e;e>>=8)i++;for(e=(i=Array(i)).length-1;0<=e;e--)i[e]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new s(i))},n.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},n.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},n.prototype._skipDefault=function(t,e,i){var r=this._baseState;if(null===r.default)return!1;if(t=t.join(),void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),t.length!==r.defaultBuffer.length)return!1;for(e=0;e<t.length;e++)if(t[e]!==r.defaultBuffer[e])return!1;return!0}},function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(t,e,i){var r=i(61),n=i(39).Buffer;t.exports=function(t,e){for(var i,o=n.alloc(0),s=0;o.length<e;){i=s++;var h=n.allocUnsafe(4);h.writeUInt32BE(i,0),i=h,o=n.concat([o,r("sha1").update(t).update(i).digest()])}return o.slice(0,e)}},function(t,e){t.exports=function(t,e){for(var i=t.length,r=-1;++r<i;)t[r]^=e[r];return t}},function(t,e,i){var r=i(89),n=i(39).Buffer;t.exports=function(t,e){return n.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},function(t,e,i){var r;t.exports=(r=i(40),function(t){var e=r.lib,i=e.WordArray,n=e.Hasher;e=r.algo;var o=[],s=[];!function(){function e(e){for(var i=t.sqrt(e),r=2;r<=i;r++)if(!(e%r))return!1;return!0}function i(t){return 4294967296*(t-(0|t))|0}for(var r=2,n=0;64>n;)e(r)&&(8>n&&(o[n]=i(t.pow(r,.5))),s[n]=i(t.pow(r,1/3)),n++),r++}();var h=[];e=e.SHA256=n.extend({_doReset:function(){this._hash=new i.init(o.slice(0))},_doProcessBlock:function(t,e){for(var i=this._hash.words,r=i[0],n=i[1],o=i[2],a=i[3],u=i[4],f=i[5],l=i[6],d=i[7],c=0;64>c;c++){if(16>c)h[c]=0|t[e+c];else{var p=h[c-15],m=h[c-2];h[c]=((p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3)+h[c-7]+((m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10)+h[c-16]}p=d+((u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25))+(u&f^~u&l)+s[c]+h[c],m=((r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22))+(r&n^r&o^n&o),d=l,l=f,f=u,u=a+p|0,a=o,o=n,n=r,r=p+m|0}i[0]=i[0]+r|0,i[1]=i[1]+n|0,i[2]=i[2]+o|0,i[3]=i[3]+a|0,i[4]=i[4]+u|0,i[5]=i[5]+f|0,i[6]=i[6]+l|0,i[7]=i[7]+d|0},_doFinalize:function(){var e=this._data,i=e.words,r=8*this._nDataBytes,n=8*e.sigBytes;return i[n>>>5]|=128<<24-n%32,i[14+(n+64>>>9<<4)]=t.floor(r/4294967296),i[15+(n+64>>>9<<4)]=r,e.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),r.SHA256=n._createHelper(e),r.HmacSHA256=n._createHmacHelper(e)}(Math),r.SHA256)},function(t,e,i){var r;t.exports=(r=i(40),i(72),function(){function t(){return n.create.apply(n,arguments)}var e=r.lib.Hasher,i=r.x64,n=i.Word,o=i.WordArray;i=r.algo;var s=[t(1116352408,3609767458),t(1899447441,602891725),t(3049323471,3964484399),t(3921009573,2173295548),t(961987163,4081628472),t(1508970993,3053834265),t(2453635748,2937671579),t(2870763221,3664609560),t(3624381080,2734883394),t(310598401,1164996542),t(607225278,1323610764),t(1426881987,3590304994),t(1925078388,4068182383),t(2162078206,991336113),t(2614888103,633803317),t(3248222580,3479774868),t(3835390401,2666613458),t(4022224774,944711139),t(264347078,2341262773),t(604807628,2007800933),t(770255983,1495990901),t(1249150122,1856431235),t(1555081692,3175218132),t(1996064986,2198950837),t(2554220882,3999719339),t(2821834349,766784016),t(2952996808,2566594879),t(3210313671,3203337956),t(3336571891,1034457026),t(3584528711,2466948901),t(113926993,3758326383),t(338241895,168717936),t(666307205,1188179964),t(773529912,1546045734),t(1294757372,1522805485),t(1396182291,2643833823),t(1695183700,2343527390),t(1986661051,1014477480),t(2177026350,1206759142),t(2456956037,344077627),t(2730485921,1290863460),t(2820302411,3158454273),t(3259730800,3505952657),t(3345764771,106217008),t(3516065817,3606008344),t(3600352804,1432725776),t(4094571909,1467031594),t(275423344,851169720),t(430227734,3100823752),t(506948616,1363258195),t(659060556,3750685593),t(883997877,3785050280),t(958139571,3318307427),t(1322822218,3812723403),t(1537002063,2003034995),t(1747873779,3602036899),t(1955562222,1575990012),t(2024104815,1125592928),t(2227730452,2716904306),t(2361852424,442776044),t(2428436474,593698344),t(2756734187,3733110249),t(3204031479,2999351573),t(3329325298,3815920427),t(3391569614,3928383900),t(3515267271,566280711),t(3940187606,3454069534),t(4118630271,4000239992),t(116418474,1914138554),t(174292421,2731055270),t(289380356,3203993006),t(460393269,320620315),t(685471733,587496836),t(852142971,1086792851),t(1017036298,365543100),t(1126000580,2618297676),t(1288033470,3409855158),t(1501505948,4234509866),t(1607167915,987167468),t(1816402316,1246189591)],h=[];!function(){for(var e=0;80>e;e++)h[e]=t()}(),i=i.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(t,e){var i=this._hash.words,r=i[0],n=i[1],o=i[2],a=i[3],u=i[4],f=i[5],l=i[6];i=i[7];for(var d=r.high,c=r.low,p=n.high,m=n.low,g=o.high,b=o.low,v=a.high,y=a.low,M=u.high,w=u.low,_=f.high,S=f.low,k=l.high,A=l.low,E=i.high,x=i.low,R=d,B=c,I=p,T=m,P=g,j=b,L=v,C=y,O=M,N=w,q=_,D=S,z=k,U=A,H=E,F=x,Z=0;80>Z;Z++){var K=h[Z];if(16>Z)var W=K.high=0|t[e+2*Z],Y=K.low=0|t[e+2*Z+1];else{Y=(W=h[Z-15]).high;var V=W.low;W=(Y>>>1|V<<31)^(Y>>>8|V<<24)^Y>>>7,V=(V>>>1|Y<<31)^(V>>>8|Y<<24)^(V>>>7|Y<<25);var X=h[Z-2];Y=X.high;var $=X.low;X=(Y>>>19|$<<13)^(Y<<3|$>>>29)^Y>>>6,$=($>>>19|Y<<13)^($<<3|Y>>>29)^($>>>6|Y<<26);var G=(Y=h[Z-7]).high,J=h[Z-16],Q=J.high;J=J.low,W=(W=(W=W+G+((Y=V+Y.low)>>>0<V>>>0?1:0))+X+((Y+=$)>>>0<$>>>0?1:0))+Q+((Y+=J)>>>0<J>>>0?1:0),K.high=W,K.low=Y}G=O&q^~O&z,J=N&D^~N&U,K=R&I^R&P^I&P;var tt=B&T^B&j^T&j;V=(R>>>28|B<<4)^(R<<30|B>>>2)^(R<<25|B>>>7),X=(B>>>28|R<<4)^(B<<30|R>>>2)^(B<<25|R>>>7);var et=($=s[Z]).high,it=$.low;Q=H+((O>>>14|N<<18)^(O>>>18|N<<14)^(O<<23|N>>>9))+(($=F+((N>>>14|O<<18)^(N>>>18|O<<14)^(N<<23|O>>>9)))>>>0<F>>>0?1:0),H=z,F=U,z=q,U=D,q=O,D=N,O=L+(Q=(Q=(Q=Q+G+(($+=J)>>>0<J>>>0?1:0))+et+(($+=it)>>>0<it>>>0?1:0))+W+(($+=Y)>>>0<Y>>>0?1:0))+((N=C+$|0)>>>0<C>>>0?1:0)|0,L=P,C=j,P=I,j=T,I=R,T=B,R=Q+(W=V+K+((Y=X+tt)>>>0<X>>>0?1:0))+((B=$+Y|0)>>>0<$>>>0?1:0)|0}c=r.low=c+B,r.high=d+R+(c>>>0<B>>>0?1:0),m=n.low=m+T,n.high=p+I+(m>>>0<T>>>0?1:0),b=o.low=b+j,o.high=g+P+(b>>>0<j>>>0?1:0),y=a.low=y+C,a.high=v+L+(y>>>0<C>>>0?1:0),w=u.low=w+N,u.high=M+O+(w>>>0<N>>>0?1:0),S=f.low=S+D,f.high=_+q+(S>>>0<D>>>0?1:0),A=l.low=A+U,l.high=k+z+(A>>>0<U>>>0?1:0),x=i.low=x+F,i.high=E+H+(x>>>0<F>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(i/4294967296),e[31+(r+128>>>10<<5)]=i,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32}),r.SHA512=e._createHelper(i),r.HmacSHA512=e._createHmacHelper(i)}(),r.SHA512)},function(t,e,i){e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=i(53),e.createHash=e.Hash=i(61),e.createHmac=e.Hmac=i(106),t=i(171),t=Object.keys(t);var r="sha1 sha224 sha256 sha384 sha512 md5 rmd160".split(" ").concat(t);e.getHashes=function(){return r},t=i(109),e.pbkdf2=t.pbkdf2,e.pbkdf2Sync=t.pbkdf2Sync,t=i(173),e.Cipher=t.Cipher,e.createCipher=t.createCipher,e.Cipheriv=t.Cipheriv,e.createCipheriv=t.createCipheriv,e.Decipher=t.Decipher,e.createDecipher=t.createDecipher,e.Decipheriv=t.Decipheriv,e.createDecipheriv=t.createDecipheriv,e.getCiphers=t.getCiphers,e.listCiphers=t.listCiphers,t=i(188),e.DiffieHellmanGroup=t.DiffieHellmanGroup,e.createDiffieHellmanGroup=t.createDiffieHellmanGroup,e.getDiffieHellman=t.getDiffieHellman,e.createDiffieHellman=t.createDiffieHellman,e.DiffieHellman=t.DiffieHellman,t=i(195),e.createSign=t.createSign,e.Sign=t.Sign,e.createVerify=t.createVerify,e.Verify=t.Verify,e.createECDH=i(243),t=i(246),e.publicEncrypt=t.publicEncrypt,e.privateEncrypt=t.privateEncrypt,e.publicDecrypt=t.publicDecrypt,e.privateDecrypt=t.privateDecrypt,i=i(250),e.randomFill=i.randomFill,e.randomFillSync=i.randomFillSync,e.createCredentials=function(){throw Error("sorry, createCredentials is not implemented yet\nwe accept pull requests\nhttps://github.com/crypto-browserify/crypto-browserify")},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,i){function r(t){var e=t.length;if(0<e%4)throw Error("Invalid string. Length must be a multiple of 4");return-1===(t=t.indexOf("="))&&(t=e),[t,t===e?0:4-t%4]}function n(t,e,i){for(var r=[],n=e;n<i;n+=3)e=(t[n]<<16&16711680)+(t[n+1]<<8&65280)+(255&t[n+2]),r.push(o[e>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]);return r.join("")}e.byteLength=function(t){var e=(t=r(t))[1];return 3*(t[0]+e)/4-e},e.toByteArray=function(t){var e=r(t),i=e[0];e=e[1];var n,o=new h(3*(i+e)/4-e),a=0,u=0<e?i-4:i;for(n=0;n<u;n+=4)i=s[t.charCodeAt(n)]<<18|s[t.charCodeAt(n+1)]<<12|s[t.charCodeAt(n+2)]<<6|s[t.charCodeAt(n+3)],o[a++]=i>>16&255,o[a++]=i>>8&255,o[a++]=255&i;return 2===e&&(i=s[t.charCodeAt(n)]<<2|s[t.charCodeAt(n+1)]>>4,o[a++]=255&i),1===e&&(i=s[t.charCodeAt(n)]<<10|s[t.charCodeAt(n+1)]<<4|s[t.charCodeAt(n+2)]>>2,o[a++]=i>>8&255,o[a++]=255&i),o},e.fromByteArray=function(t){for(var e=t.length,i=e%3,r=[],s=0,h=e-i;s<h;s+=16383)r.push(n(t,s,s+16383>h?h:s+16383));return 1===i?(t=t[e-1],r.push(o[t>>2]+o[t<<4&63]+"==")):2===i&&(t=(t[e-2]<<8)+t[e-1],r.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"=")),r.join("")};var o=[],s=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array;for(t=0;64>t;++t)o[t]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[t],s["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(t)]=t;s[45]=62,s[95]=63},function(t,e){e.read=function(t,e,i,r,n){var o=8*n-r-1,s=(1<<o)-1,h=s>>1,a=-7,u=i?-1:1,f=t[e+(n=i?n-1:0)];for(n+=u,i=f&(1<<-a)-1,f>>=-a,a+=o;0<a;i=256*i+t[e+n],n+=u,a-=8);for(o=i&(1<<-a)-1,i>>=-a,a+=r;0<a;o=256*o+t[e+n],n+=u,a-=8);if(0===i)i=1-h;else{if(i===s)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,r),i-=h}return(f?-1:1)*o*Math.pow(2,i-r)},e.write=function(t,e,i,r,n,o){var s,h=8*o-n-1,a=(1<<h)-1,u=a>>1,f=23===n?Math.pow(2,-24)-Math.pow(2,-77):0;o=r?0:o-1;var l=r?1:-1,d=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(e=isNaN(e)?1:0,r=a):(r=Math.floor(Math.log(e)/Math.LN2),1>e*(s=Math.pow(2,-r))&&(r--,s*=2),2<=(e=1<=r+u?e+f/s:e+f*Math.pow(2,1-u))*s&&(r++,s/=2),r+u>=a?(e=0,r=a):1<=r+u?(e=(e*s-1)*Math.pow(2,n),r+=u):(e=e*Math.pow(2,u-1)*Math.pow(2,n),r=0));8<=n;t[i+o]=255&e,o+=l,e/=256,n-=8);for(r=r<<n|e,h+=n;0<h;t[i+o]=255&r,o+=l,r/=256,h-=8);t[i+o-l]|=128*d}},function(t,e,i){function r(t,e){for(var i in t)e[i]=t[i]}function n(t,e,i){return s(t,e,i)}var o=i(41),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=n),n.prototype=Object.create(s.prototype),r(s,n),n.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,i)},n.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=s(t),void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},n.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},n.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},function(t,e,i){(e=t.exports=i(94)).Stream=e,e.Readable=e,e.Writable=i(98),e.Duplex=i(55),e.Transform=i(99),e.PassThrough=i(155),e.finished=i(75),e.pipeline=i(156)},,function(t,e,i){function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function n(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=i(41).Buffer,s=i(152).inspect,h=s&&s.custom||"inspect";t.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null,this.length=0}return function(t,e,i){e&&n(t.prototype,e),i&&n(t,i)}(t,[{key:"push",value:function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);t=o.allocUnsafe(t>>>0);for(var e=this.head,i=0;e;)o.prototype.copy.call(e.data,t,i),i+=e.data.length,e=e.next;return t}},{key:"consume",value:function(t,e){return t<this.head.data.length?(e=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):e=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),e}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,r=e.data;for(t-=r.length;e=e.next;){var n=e.data,o=t>n.length?n.length:t;if(r=o===n.length?r+n:r+n.slice(0,t),0===(t-=o)){o===n.length?(++i,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=n.slice(o));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,s=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,s),0===(t-=s)){s===n.length?(++r,this.head=i.next?i.next:this.tail=null):(this.head=i,i.data=n.slice(s));break}++r}return this.length-=r,e}},{key:h,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){var r=i[e];e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}]),t}()},,function(t,e,i){(function(e){function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e){return{value:t,done:e}}function o(t){var e=t[u];if(null!==e){var i=t[m].read();null!==i&&(t[c]=null,t[u]=null,t[f]=null,e(n(i,!1)))}}function s(t){e.nextTick(o,t)}var h,a=i(75),u=Symbol("lastResolve"),f=Symbol("lastReject"),l=Symbol("error"),d=Symbol("ended"),c=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream"),g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r(h={get stream(){return this[m]},next:function(){var t=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[d])return Promise.resolve(n(void 0,!0));if(this[m].destroyed)return new Promise((function(i,r){e.nextTick((function(){t[l]?r(t[l]):i(n(void 0,!0))}))}));if(i=this[c])i=new Promise(function(t,e){return function(i,r){t.then((function(){e[d]?i(n(void 0,!0)):e[p](i,r)}),r)}}(i,this));else{if(null!==(i=this[m].read()))return Promise.resolve(n(i,!1));i=new Promise(this[p])}return this[c]=i}},Symbol.asyncIterator,(function(){return this})),r(h,"return",(function(){var t=this;return new Promise((function(e,i){t[m].destroy(null,(function(t){t?i(t):e(n(void 0,!0))}))}))})),h),g);t.exports=function(t){var e,i=Object.create(b,(r(e={},m,{value:t,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,f,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,d,{value:t._readableState.endEmitted,writable:!0}),r(e,p,{value:function(t,e){var r=i[m].read();r?(i[c]=null,i[u]=null,i[f]=null,t(n(r,!1))):(i[u]=t,i[f]=e)},writable:!0}),e));return i[c]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[f];null!==e&&(i[c]=null,i[u]=null,i[f]=null,e(t)),i[l]=t}else null!==(t=i[u])&&(i[c]=null,i[u]=null,i[f]=null,t(n(void 0,!0))),i[d]=!0})),t.on("readable",s.bind(null,i)),i}}).call(this,i(6))},function(t,e){t.exports=function(){throw Error("Readable.from is not available in the browser")}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}t.exports=r;var n=i(99);i(38)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){function r(t){if(t)throw t}function n(t,e,r,n){n=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(n);var o=!1;t.on("close",(function(){o=!0})),void 0===h&&(h=i(75)),h(t,{readable:e,writable:r},(function(t){if(t)return n(t);o=!0,n()}));var s=!1;return function(e){if(!o&&!s){if(s=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();n(e||new u("pipe"))}}}function o(t){t()}function s(t,e){return t.pipe(e)}var h,a=(e=i(54).codes).ERR_MISSING_ARGS,u=e.ERR_STREAM_DESTROYED;t.exports=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var h=e.length?"function"!=typeof e[e.length-1]?r:e.pop():r;if(Array.isArray(e[0])&&(e=e[0]),2>e.length)throw new a("streams");var u,f=e.map((function(t,i){var r=i<e.length-1;return n(t,r,0<i,(function(t){u||(u=t),t&&f.forEach(o),r||(f.forEach(o),h(u))}))}));return e.reduce(s)}},function(t,e,i){function r(){this.init(),this._w=h,n.call(this,64,56)}e=i(38);var n=i(56),o=i(39).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],h=Array(80);e(r,n),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,a=0;16>a;++a)e[a]=t.readInt32BE(4*a);for(;80>a;++a)e[a]=e[a-3]^e[a-8]^e[a-14]^e[a-16];for(t=0;80>t;++t){a=(i<<5|i>>>27)+(0===(a=~~(t/20))?r&n|~r&o:2===a?r&n|r&o|n&o:r^n^o)+h+e[t]+s[a]|0,h=o,o=n,n=r<<30|r>>>2,r=i,i=a}this._a=i+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=h,n.call(this,64,56)}e=i(38);var n=i(56),o=i(39).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],h=Array(80);e(r,n),r.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},r.prototype._update=function(t){for(var e=this._w,i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,h=0|this._e,a=0;16>a;++a)e[a]=t.readInt32BE(4*a);for(;80>a;++a)t=e[a-3]^e[a-8]^e[a-14]^e[a-16],e[a]=t<<1|t>>>31;for(a=0;80>a;++a){t=(i<<5|i>>>27)+(0===(t=~~(a/20))?r&n|~r&o:2===t?r&n|r&o|n&o:r^n^o)+h+e[a]+s[t]|0,h=o,o=n,n=r<<30|r>>>2,r=i,i=t}this._a=i+this._a|0,this._b=r+this._b|0,this._c=n+this._c|0,this._d=o+this._d|0,this._e=h+this._e|0},r.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=h,o.call(this,64,56)}e=i(38);var n=i(100),o=i(56),s=i(39).Buffer,h=Array(64);e(r,n),r.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},r.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=r},function(t,e,i){function r(){this.init(),this._w=h,o.call(this,128,112)}e=i(38);var n=i(101),o=i(56),s=i(39).Buffer,h=Array(160);e(r,n),r.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},r.prototype._hash=function(){function t(t,i,r){e.writeInt32BE(t,r),e.writeInt32BE(i,r+4)}var e=s.allocUnsafe(48);return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},t.exports=r},function(t,e,i){function r(){n.call(this)}t.exports=r;var n=i(49).EventEmitter;i(38)(r,n),r.Readable=i(78),r.Writable=i(166),r.Duplex=i(167),r.Transform=i(168),r.PassThrough=i(169),r.Stream=r,r.prototype.pipe=function(t,e){function i(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function r(){u.readable&&u.resume&&u.resume()}function o(){f||(f=!0,t.end())}function s(){f||(f=!0,"function"==typeof t.destroy&&t.destroy())}function h(t){if(a(),0===n.listenerCount(this,"error"))throw t}function a(){u.removeListener("data",i),t.removeListener("drain",r),u.removeListener("end",o),u.removeListener("close",s),u.removeListener("error",h),t.removeListener("error",h),u.removeListener("end",a),u.removeListener("close",a),t.removeListener("close",a)}var u=this;u.on("data",i),t.on("drain",r),t._isStdio||e&&!1===e.end||(u.on("end",o),u.on("close",s));var f=!1;return u.on("error",h),t.on("error",h),u.on("end",a),u.on("close",a),t.on("close",a),t.emit("pipe",u),t}},,function(t,e,i){var r=i(39).Buffer,n=i(164);t.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null,this.length=0}return t.prototype.push=function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},t.prototype.unshift=function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;t=r.allocUnsafe(t>>>0);for(var e=this.head,i=0;e;)e.data.copy(t,i),i+=e.data.length,e=e.next;return t},t}(),n&&n.inspect&&n.inspect.custom&&(t.exports.prototype[n.inspect.custom]=function(){var t=n.inspect({length:this.length});return this.constructor.name+" "+t})},,function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}t.exports=r;var n=i(105);(t=i(62)).inherits=i(38),t.inherits(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){t.exports=i(79)},function(t,e,i){t.exports=i(51)},function(t,e,i){t.exports=i(78).Transform},function(t,e,i){t.exports=i(78).PassThrough},function(t,e,i){function r(t,e){o.call(this,"digest"),"string"==typeof e&&(e=n.from(e)),this._alg=t,this._key=e,64<e.length?e=t(e):64>e.length&&(e=n.concat([e,s],64)),t=this._ipad=n.allocUnsafe(64);for(var i=this._opad=n.allocUnsafe(64),r=0;64>r;r++)t[r]=54^e[r],i[r]=92^e[r];this._hash=[t]}e=i(38);var n=i(39).Buffer,o=i(48),s=n.alloc(128);e(r,o),r.prototype._update=function(t){this._hash.push(t)},r.prototype._final=function(){var t=this._alg(n.concat(this._hash));return this._alg(n.concat([this._opad,t]))},t.exports=r},function(t,e,i){t.exports=i(108)},function(t,e,i){(function(e,r){function n(t){if(e.process&&!e.process.browser||!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==c[t])return c[t];var i=o(s=s||f.alloc(8),s,10,128,t).then((function(){return!0})).catch((function(){return!1}));return c[t]=i}function o(t,e,i,r,n){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:i,hash:{name:n}},t,r<<3)})).then((function(t){return f.from(t)}))}var s,h=i(110),a=i(111),u=i(112),f=i(39).Buffer,l=e.crypto&&e.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},c=[];t.exports=function(t,i,s,l,c,p){"function"==typeof c&&(p=c,c=void 0);var m=d[(c=c||"sha1").toLowerCase()];if(!m||"function"!=typeof e.Promise)return r.nextTick((function(){try{var e=u(t,i,s,l,c)}catch(t){return p(t)}p(null,e)}));if(h(t,i,s,l),"function"!=typeof p)throw Error("No callback provided to pbkdf2");f.isBuffer(t)||(t=f.from(t,a)),f.isBuffer(i)||(i=f.from(i,a)),function(t,e){t.then((function(t){r.nextTick((function(){e(null,t)}))}),(function(t){r.nextTick((function(){e(t)}))}))}(n(m).then((function(e){return e?o(t,i,s,l,m):u(t,i,s,l,c)})),p)}}).call(this,i(2),i(6))},function(t,e,i){function r(t,e,i){if(t=t.toLowerCase(),h[t])return s.createCipheriv(t,e,i);if(a[t])return new o({key:e,iv:i,mode:t});throw new TypeError("invalid suite type")}function n(t,e,i){if(t=t.toLowerCase(),h[t])return s.createDecipheriv(t,e,i);if(a[t])return new o({key:e,iv:i,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}var o=i(174),s=i(81),h=i(82),a=i(187),u=i(69);e.createCipher=e.Cipher=function(t,e){if(t=t.toLowerCase(),h[t])var i=h[t].key,n=h[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");i=8*a[t].key,n=a[t].iv}return r(t,(e=u(e,!1,i,n)).key,e.iv)},e.createCipheriv=e.Cipheriv=r,e.createDecipher=e.Decipher=function(t,e){if(t=t.toLowerCase(),h[t])var i=h[t].key,r=h[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");i=8*a[t].key,r=a[t].iv}return n(t,(e=u(e,!1,i,r)).key,e.iv)},e.createDecipheriv=e.Decipheriv=n,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(s.getCiphers())}},function(t,e,i){function r(t){n.call(this);var e=t.mode.toLowerCase(),i=h[e],r=t.decrypt?"decrypt":"encrypt",o=t.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==e&&"des-ede-cbc"!==e||(o=s.concat([o,o.slice(0,8)])),t=t.iv,s.isBuffer(t)||(t=s.from(t)),this._des=i.create({key:o,iv:t,type:r})}var n=i(48);e=i(175);var o=i(38),s=i(39).Buffer,h={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};h.des=h["des-cbc"],h.des3=h["des-ede3-cbc"],t.exports=r,o(r,n),r.prototype._update=function(t){return s.from(this._des.update(t))},r.prototype._final=function(){return s.from(this._des.final())}},function(t,e,i){e.utils=i(113),e.Cipher=i(80),e.DES=i(114),e.CBC=i(176),e.EDE=i(177)},function(t,e,i){function r(t){n.equal(t.length,8,"Invalid IV length"),this.iv=Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}var n=i(43),o=i(38),s={};e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}o(e,t);for(var i=Object.keys(s),r=0;r<i.length;r++){var n=i[r];e.prototype[n]=s[n]}return e.create=function(t){return new e(t)},e},s._cbcInit=function(){this._cbcState=new r(this.options.iv)},s._update=function(t,e,i,r){var n=this.constructor.super_.prototype,o=this._cbcState.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)o[s]^=t[e+s];for(n._update.call(this,o,0,i,r),s=0;s<this.blockSize;s++)o[s]=i[r+s]}else{for(n._update.call(this,t,e,i,r),s=0;s<this.blockSize;s++)i[r+s]^=o[s];for(s=0;s<this.blockSize;s++)o[s]=t[e+s]}}},function(t,e,i){function r(t,e){o.equal(e.length,24,"Invalid key length");var i=e.slice(0,8),r=e.slice(8,16);e=e.slice(16,24),this.ciphers="encrypt"===t?[h.create({type:"encrypt",key:i}),h.create({type:"decrypt",key:r}),h.create({type:"encrypt",key:e})]:[h.create({type:"decrypt",key:e}),h.create({type:"encrypt",key:r}),h.create({type:"decrypt",key:i})]}function n(t){s.call(this,t),this._edeState=new r(this.type,this.options.key)}var o=i(43);e=i(38);var s=i(80),h=i(114);e(n,s),t.exports=n,n.create=function(t){return new n(t)},n.prototype._update=function(t,e,i,r){var n=this._edeState;n.ciphers[0]._update(t,e,i,r),n.ciphers[1]._update(i,r,i,r),n.ciphers[2]._update(i,r,i,r)},n.prototype._pad=h.prototype._pad,n.prototype._unpad=h.prototype._unpad},function(t,e,i){function r(t,e,i){f.call(this),this._cache=new n,this._cipher=new l.AES(e),this._prev=a.from(i),this._mode=t,this._autopadding=!0}function n(){this.cache=a.allocUnsafe(0)}function o(t,e,i){if(!(t=s[t.toLowerCase()]))throw new TypeError("invalid suite type");if("string"==typeof e&&(e=a.from(e)),e.length!==t.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof i&&(i=a.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===t.type?new u(t.module,e,i):"auth"===t.type?new h(t.module,e,i):new r(t.module,e,i)}var s=i(82),h=i(118),a=i(39).Buffer,u=i(119),f=i(48),l=i(68),d=i(69);i(38)(r,f),r.prototype._update=function(t){var e;for(this._cache.add(t),t=[];e=this._cache.get();)e=this._mode.encrypt(this,e),t.push(e);return a.concat(t)};var c=a.alloc(16,16);r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(c))throw this._cipher.scrub(),Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},n.prototype.add=function(t){this.cache=a.concat([this.cache,t])},n.prototype.get=function(){if(15<this.cache.length){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},n.prototype.flush=function(){for(var t=16-this.cache.length,e=a.allocUnsafe(t),i=-1;++i<t;)e.writeUInt8(t,i);return a.concat([this.cache,e])},e.createCipheriv=o,e.createCipher=function(t,e){var i=s[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");return o(t,(e=d(e,!1,i.key,i.iv)).key,e.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,i){var r=i(63);e.encrypt=function(t,e){return e=r(e,t._prev),t._prev=t._cipher.encryptBlock(e),t._prev},e.decrypt=function(t,e){var i=t._prev;return t._prev=e,t=t._cipher.decryptBlock(e),r(t,i)}},function(t,e,i){function r(t,e,i){var r=e.length,s=o(e,t._cache);return t._cache=t._cache.slice(r),t._prev=n.concat([t._prev,i?e:s]),s}var n=i(39).Buffer,o=i(63);e.encrypt=function(t,e,i){for(var o,s=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){s=n.concat([s,r(t,e,i)]);break}o=t._cache.length,s=n.concat([s,r(t,e.slice(0,o),i)]),e=e.slice(o)}return s}},function(t,e,i){var r=i(39).Buffer;e.encrypt=function(t,e,i){for(var n=e.length,o=r.allocUnsafe(n),s=-1;++s<n;){var h=s,a=t,u=e[s],f=i,l=a._cipher.encryptBlock(a._prev)[0]^u;a._prev=r.concat([a._prev.slice(1),r.from([f?u:l])]),o[h]=l}return o}},function(t,e,i){var r=i(39).Buffer;e.encrypt=function(t,e,i){for(var n=e.length,o=r.allocUnsafe(n),s=-1;++s<n;){for(var h,a,u,f=s,l=t,d=e[s],c=i,p=-1,m=0;8>++p;){a=d&1<<7-p?128:0,m+=(128&(h=(u=l._cipher.encryptBlock(l._prev))[0]^a))>>p%8,u=l;var g=l._prev;a=c?a:h,h=g.length;var b=-1,v=r.allocUnsafe(g.length);for(g=r.concat([g,r.from([a])]);++b<h;)v[b]=g[b]<<1|g[b+1]>>7;u._prev=v}o[f]=m}return o}},function(t,e,i){(function(t){function r(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}var n=i(63);e.encrypt=function(e,i){for(;e._cache.length<i.length;)e._cache=t.concat([e._cache,r(e)]);var o=e._cache.slice(0,i.length);return e._cache=e._cache.slice(i.length),n(i,o)}}).call(this,i(41).Buffer)},function(t,e,i){function r(t){var e=o.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function n(t){this.h=t,this.state=o.alloc(16,0),this.cache=o.allocUnsafe(0)}var o=i(39).Buffer,s=o.alloc(16,0);n.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},n.prototype._multiply=function(){var t=this.h;t=[t.readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)];for(var e,i,n=[0,0,0,0],o=-1;128>++o;){for((e=0!=(this.state[~~(o/8)]&1<<7-o%8))&&(n[0]^=t[0],n[1]^=t[1],n[2]^=t[2],n[3]^=t[3]),i=0!=(1&t[3]),e=3;0<e;e--)t[e]=t[e]>>>1|(1&t[e-1])<<31;t[0]>>>=1,i&&(t[0]^=-520093696)}this.state=r(n)},n.prototype.update=function(t){for(this.cache=o.concat([this.cache,t]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},n.prototype.final=function(t,e){return this.cache.length&&this.ghash(o.concat([this.cache,s],16)),this.ghash(r([0,t,0,e])),this.state},t.exports=n},function(t,e,i){function r(t,e,i){f.call(this),this._cache=new n,this._last=void 0,this._cipher=new l.AES(e),this._prev=h.from(i),this._mode=t,this._autopadding=!0}function n(){this.cache=h.allocUnsafe(0)}function o(t,e,i){if(!(t=a[t.toLowerCase()]))throw new TypeError("invalid suite type");if("string"==typeof i&&(i=h.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof e&&(e=h.from(e)),e.length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new u(t.module,e,i,!0):"auth"===t.type?new s(t.module,e,i,!0):new r(t.module,e,i)}var s=i(118),h=i(39).Buffer,a=i(82),u=i(119),f=i(48),l=i(68),d=i(69);i(38)(r,f),r.prototype._update=function(t){var e;for(this._cache.add(t),t=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),t.push(e);return h.concat(t)},r.prototype._final=function(){var t=this._cache.flush();if(this._autopadding){var e=(t=this._mode.decrypt(this,t))[15];if(1>e||16<e)throw Error("unable to decrypt data");for(var i=-1;++i<e;)if(t[i+(16-e)]!==e)throw Error("unable to decrypt data");return t=16===e?void 0:t.slice(0,16-e)}if(t)throw Error("data not multiple of block length")},r.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},n.prototype.add=function(t){this.cache=h.concat([this.cache,t])},n.prototype.get=function(t){if(t){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},n.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var i=a[t.toLowerCase()];if(!i)throw new TypeError("invalid suite type");return o(t,(e=d(e,!1,i.key,i.iv)).key,e.iv)},e.createDecipheriv=o},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,i){(function(t){var r=i(120),n=i(193),o=i(194),s={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var i=new t(n[e].prime,"hex");return e=new t(n[e].gen,"hex"),new o(i,e)},e.createDiffieHellman=e.DiffieHellman=function e(i,n,h,a){return t.isBuffer(n)||void 0===s[n]?e(i,"binary",n,h):(n=n||"binary",a=a||"binary",h=h||new t([2]),t.isBuffer(h)||(h=new t(h,a)),"number"==typeof i?new o(r(i,h),h,!0):(t.isBuffer(i)||(i=new t(i,n)),new o(i,h,!0)))}}).call(this,i(41).Buffer)},,function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(191).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,,function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,i){(function(e){function r(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._pub=new h(t),this}function n(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this._priv=new h(t),this}function o(t,e,i){this.setGenerator(e),this.__prime=new h(t),this._prime=h.mont(this.__prime),this._primeLen=t.length,this._primeCode=this._priv=this._pub=void 0,i?(this.setPublicKey=r,this.setPrivateKey=n):this._primeCode=8}function s(t,i){return t=new e(t.toArray()),i?t.toString(i):t}var h=i(121),a=new(i(122)),u=new h(24),f=new h(11),l=new h(10),d=new h(3),c=new h(7),p=i(120),m=i(53);t.exports=o;var g={};Object.defineProperty(o.prototype,"verifyError",{enumerable:!0,get:function(){if("number"!=typeof this._primeCode){var t=this.__prime,e=this.__gen.toString("hex"),i=[e,t.toString(16)].join("_");if(i in g)i=g[i];else{var r=0;if(!t.isEven()&&p.simpleSieve&&p.fermatTest(t)&&a.test(t))switch(a.test(t.shrn(1))||(r+=2),e){case"02":t.mod(u).cmp(f)&&(r+=8);break;case"05":(t=t.mod(l)).cmp(d)&&t.cmp(c)&&(r+=8);break;default:r+=4}else r+=1,r="02"===e||"05"===e?r+8:r+4;i=g[i]=r}this._primeCode=i}return this._primeCode}}),o.prototype.generateKeys=function(){return this._priv||(this._priv=new h(m(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},o.prototype.computeSecret=function(t){t=(t=(t=new h(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new e(t.toArray());var i=this.getPrime();return t.length<i.length&&((i=new e(i.length-t.length)).fill(0),t=e.concat([i,t])),t},o.prototype.getPublicKey=function(t){return s(this._pub,t)},o.prototype.getPrivateKey=function(t){return s(this._priv,t)},o.prototype.getPrime=function(t){return s(this.__prime,t)},o.prototype.getGenerator=function(t){return s(this._gen,t)},o.prototype.setGenerator=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.__gen=t,this._gen=new h(t),this}}).call(this,i(41).Buffer)},function(t,e,i){function r(t){if(u.Writable.call(this),!(t=d[t]))throw Error("Unknown message digest");this._hashType=t.hash,this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function n(t){if(u.Writable.call(this),!(t=d[t]))throw Error("Unknown message digest");this._hash=a(t.hash),this._tag=t.id,this._signType=t.sign}function o(t){return new r(t)}function s(t){return new n(t)}var h=i(41).Buffer,a=i(61),u=i(196);e=i(38);var f=i(204),l=i(242),d=i(108);Object.keys(d).forEach((function(t){d[t].id=h.from(d[t].id,"hex"),d[t.toLowerCase()]=d[t]})),e(r,u.Writable),r.prototype._write=function(t,e,i){this._hash.update(t),i()},r.prototype.update=function(t,e){return"string"==typeof t&&(t=h.from(t,e)),this._hash.update(t),this},r.prototype.sign=function(t,e){this.end();var i=this._hash.digest();return t=f(i,t,this._hashType,this._signType,this._tag),e?t.toString(e):t},e(n,u.Writable),n.prototype._write=function(t,e,i){this._hash.update(t),i()},n.prototype.update=function(t,e){return"string"==typeof t&&(t=h.from(t,e)),this._hash.update(t),this},n.prototype.verify=function(t,e,i){return"string"==typeof e&&(e=h.from(e,i)),this.end(),i=this._hash.digest(),l(e,i,t,this._signType,this._tag)},t.exports={Sign:o,Verify:s,createSign:o,createVerify:s}},function(t,e,i){(e=t.exports=i(123)).Stream=e,e.Readable=e,e.Writable=i(127),e.Duplex=i(58),e.Transform=i(128),e.PassThrough=i(202),e.finished=i(84),e.pipeline=i(203)},,function(t,e,i){function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,r)}return i}function n(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var o=i(41).Buffer,s=i(199).inspect,h=s&&s.custom||"inspect";t.exports=function(){function t(){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function");this.tail=this.head=null,this.length=0}return function(t,e,i){e&&n(t.prototype,e),i&&n(t,i)}(t,[{key:"push",value:function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,i=""+e.data;e=e.next;)i+=t+e.data;return i}},{key:"concat",value:function(t){if(0===this.length)return o.alloc(0);t=o.allocUnsafe(t>>>0);for(var e=this.head,i=0;e;)o.prototype.copy.call(e.data,t,i),i+=e.data.length,e=e.next;return t}},{key:"consume",value:function(t,e){return t<this.head.data.length?(e=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):e=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),e}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,i=1,r=e.data;for(t-=r.length;e=e.next;){var n=e.data,o=t>n.length?n.length:t;if(r=o===n.length?r+n:r+n.slice(0,t),0===(t-=o)){o===n.length?(++i,this.head=e.next?e.next:this.tail=null):(this.head=e,e.data=n.slice(o));break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,s=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,s),0===(t-=s)){s===n.length?(++r,this.head=i.next?i.next:this.tail=null):(this.head=i,i.data=n.slice(s));break}++r}return this.length-=r,e}},{key:h,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){var r=i[e];e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}]),t}()},,function(t,e,i){(function(e){function r(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function n(t,e){return{value:t,done:e}}function o(t){var e=t[u];if(null!==e){var i=t[m].read();null!==i&&(t[c]=null,t[u]=null,t[f]=null,e(n(i,!1)))}}function s(t){e.nextTick(o,t)}var h,a=i(84),u=Symbol("lastResolve"),f=Symbol("lastReject"),l=Symbol("error"),d=Symbol("ended"),c=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream"),g=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((r(h={get stream(){return this[m]},next:function(){var t=this,i=this[l];if(null!==i)return Promise.reject(i);if(this[d])return Promise.resolve(n(void 0,!0));if(this[m].destroyed)return new Promise((function(i,r){e.nextTick((function(){t[l]?r(t[l]):i(n(void 0,!0))}))}));if(i=this[c])i=new Promise(function(t,e){return function(i,r){t.then((function(){e[d]?i(n(void 0,!0)):e[p](i,r)}),r)}}(i,this));else{if(null!==(i=this[m].read()))return Promise.resolve(n(i,!1));i=new Promise(this[p])}return this[c]=i}},Symbol.asyncIterator,(function(){return this})),r(h,"return",(function(){var t=this;return new Promise((function(e,i){t[m].destroy(null,(function(t){t?i(t):e(n(void 0,!0))}))}))})),h),g);t.exports=function(t){var e,i=Object.create(b,(r(e={},m,{value:t,writable:!0}),r(e,u,{value:null,writable:!0}),r(e,f,{value:null,writable:!0}),r(e,l,{value:null,writable:!0}),r(e,d,{value:t._readableState.endEmitted,writable:!0}),r(e,p,{value:function(t,e){var r=i[m].read();r?(i[c]=null,i[u]=null,i[f]=null,t(n(r,!1))):(i[u]=t,i[f]=e)},writable:!0}),e));return i[c]=null,a(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=i[f];null!==e&&(i[c]=null,i[u]=null,i[f]=null,e(t)),i[l]=t}else null!==(t=i[u])&&(i[c]=null,i[u]=null,i[f]=null,t(n(void 0,!0))),i[d]=!0})),t.on("readable",s.bind(null,i)),i}}).call(this,i(6))},function(t,e){t.exports=function(){throw Error("Readable.from is not available in the browser")}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);n.call(this,t)}t.exports=r;var n=i(128);i(38)(r,n),r.prototype._transform=function(t,e,i){i(null,t)}},function(t,e,i){function r(t){if(t)throw t}function n(t,e,r,n){n=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(n);var o=!1;t.on("close",(function(){o=!0})),void 0===h&&(h=i(84)),h(t,{readable:e,writable:r},(function(t){if(t)return n(t);o=!0,n()}));var s=!1;return function(e){if(!o&&!s){if(s=!0,t.setHeader&&"function"==typeof t.abort)return t.abort();if("function"==typeof t.destroy)return t.destroy();n(e||new u("pipe"))}}}function o(t){t()}function s(t,e){return t.pipe(e)}var h,a=(e=i(57).codes).ERR_MISSING_ARGS,u=e.ERR_STREAM_DESTROYED;t.exports=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var h=e.length?"function"!=typeof e[e.length-1]?r:e.pop():r;if(Array.isArray(e[0])&&(e=e[0]),2>e.length)throw new a("streams");var u,f=e.map((function(t,i){var r=i<e.length-1;return n(t,r,0<i,(function(t){u||(u=t),t&&f.forEach(o),r||(f.forEach(o),h(u))}))}));return e.reduce(s)}},function(t,e,i){function r(t,e,i,r){if((t=s.from(t.toArray())).length<e.byteLength()){var o=s.alloc(e.byteLength()-t.length);t=s.concat([o,t])}return o=i.length,i=(i=n(i,e)).mod(e),(i=s.from(i.toArray())).length<e.byteLength()&&(e=s.alloc(e.byteLength()-i.length),i=s.concat([e,i])),e=i,(i=s.alloc(o)).fill(1),o=s.alloc(o),o=h(r,o).update(i).update(s.from([0])).update(t).update(e).digest(),i=h(r,o).update(i).digest(),{k:o=h(r,o).update(i).update(s.from([1])).update(t).update(e).digest(),v:i=h(r,o).update(i).digest()}}function n(t,e){var i=new f(t);return 0<(t=(t.length<<3)-e.bitLength())&&i.ishrn(t),i}function o(t,e,i){var r;do{for(r=s.alloc(0);8*r.length<t.bitLength();)e.v=h(i,e.k).update(e.v).digest(),r=s.concat([r,e.v]);r=n(r,t),e.k=h(i,e.k).update(e.v).update(s.from([0])).digest(),e.v=h(i,e.k).update(e.v).digest()}while(-1!==r.cmp(t));return r}var s=i(41).Buffer,h=i(106),a=i(85),u=i(86).ec,f=i(134),l=i(71),d=i(139);t.exports=function(t,e,i,h,c){if((e=l(e)).curve){if("ecdsa"!==h&&"ecdsa/rsa"!==h)throw Error("wrong private key type");if(i=t,!(t=d[e.curve.join(".")]))throw Error("unknown curve "+e.curve.join("."));return i=new u(t).keyFromPrivate(e.privateKey).sign(i),s.from(i.toDER())}if("dsa"===e.type){if("dsa"!==h)throw Error("wrong private key type");var p=t;t=e.params.priv_key,h=e.params.p,c=e.params.q,e=e.params.g;var m=new f(0),g=n(p,c).mod(c),b=!1;for(p=r(t,c,p,i);!1===b;){m=b=o(c,p,i);var v=c;m=e.toRed(f.mont(h)).redPow(m).fromRed().mod(v),0===(b=b.invm(c).imul(g.add(t.mul(m))).mod(c)).cmpn(0)&&(b=!1,m=new f(0))}return i=b,e=m.toArray(),i=i.toArray(),128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),t=(t=[48,e.length+i.length+4,2,e.length]).concat(e,[2,i.length],i),s.from(t)}if("rsa"!==h&&"ecdsa/rsa"!==h)throw Error("wrong private key type");for(t=s.concat([c,t]),h=e.modulus.byteLength(),i=[0,1];t.length+i.length+1<h;)i.push(255);for(i.push(0),h=-1;++h<t.length;)i.push(t[h]);return a(i,e)},t.exports.getKey=r,t.exports.makeKey=o},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(206).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,function(t){t.exports=JSON.parse('{"_args":[["[email protected]","C:\\\\Users\\\\scarr\\\\Desktop\\\\SCISRC"]],"_development":true,"_from":"[email protected]","_id":"[email protected]","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"[email protected]","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.2","saveSpec":null,"fetchSpec":"6.5.2"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_spec":"6.5.2","_where":"C:\\\\Users\\\\scarr\\\\Desktop\\\\SCISRC","author":{"name":"Fedor Indutny","email":"[email protected]"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://[email protected]/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},,function(t,e,i){function r(t){a.call(this,"short",t),this.a=new s(t.a,16).toRed(this.red),this.b=new s(t.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(t),this._endoWnafT1=Array(4),this._endoWnafT2=Array(4)}function n(t,e,i,r){a.BasePoint.call(this,t,"affine"),null===e&&null===i?(this.y=this.x=null,this.inf=!0):(this.x=new s(e,16),this.y=new s(i,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function o(t,e,i,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===i&&null===r?(this.y=this.x=this.curve.one,this.z=new s(0)):(this.x=new s(e,16),this.y=new s(i,16),this.z=new s(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}e=i(44);var s=i(47),h=i(38),a=i(70),u=e.assert;h(r,a),t.exports=r,r.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(t.beta)var e=new s(t.beta,16).toRed(this.red);else e=(e=0>(e=this._getEndoRoots(this.p))[0].cmp(e[1])?e[0]:e[1]).toRed(this.red);if(t.lambda)var i=new s(t.lambda,16);else i=this._getEndoRoots(this.n),0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(e))?i=i[0]:(i=i[1],u(0===this.g.mul(i).x.cmp(this.g.x.redMul(e))));return{beta:e,lambda:i,basis:t=t.basis?t.basis.map((function(t){return{a:new s(t.a,16),b:new s(t.b,16)}})):this._getEndoBasis(i)}}},r.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:s.mont(t),i=new s(2).toRed(e).redInvm();return t=i.redNeg(),i=new s(3).toRed(e).redNeg().redSqrt().redMul(i),[e=t.redAdd(i).fromRed(),t=t.redSub(i).fromRed()]},r.prototype._getEndoBasis=function(t){for(var e,i,r,n,o,h,a,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=this.n.clone(),l=new s(1),d=new s(0),c=new s(0),p=new s(1),m=0;0!==t.cmpn(0);){var g=f.div(t);if(a=f.sub(g.mul(t)),o=c.sub(g.mul(l)),g=p.sub(g.mul(d)),!r&&0>a.cmp(u))e=h.neg(),i=l,r=a.neg(),n=o;else if(r&&2==++m)break;h=a,f=t,t=a,c=l,l=o,p=d,d=g}return u=a.neg(),h=r.sqr().add(n.sqr()),0<=u.sqr().add(o.sqr()).cmp(h)&&(u=e,o=i),r.negative&&(r=r.neg(),n=n.neg()),u.negative&&(u=u.neg(),o=o.neg()),[{a:r,b:n},{a:u,b:o}]},r.prototype._endoSplit=function(t){var e=this.endo.basis,i=e[0],r=e[1],n=r.b.mul(t).divRound(this.n),o=i.b.neg().mul(t).divRound(this.n);e=n.mul(i.a);var s=o.mul(r.a);return i=n.mul(i.b),r=o.mul(r.b),{k1:t=t.sub(e).sub(s),k2:e=i.add(r).neg()}},r.prototype.pointFromX=function(t,e){(t=new s(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=i.redSqrt();if(0!==r.redSqr().redSub(i).cmp(this.zero))throw Error("invalid point");return i=r.fromRed().isOdd(),(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},r.prototype.validate=function(t){if(t.inf)return!0;var e=t.x;t=t.y;var i=this.a.redMul(e);return e=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b),0===t.redSqr().redISub(e).cmpn(0)},r.prototype._endoWnafMulAdd=function(t,e,i){for(var r=this._endoWnafT1,n=this._endoWnafT2,o=0;o<t.length;o++){var s=this._endoSplit(e[o]),h=t[o],a=h._getBeta();s.k1.negative&&(s.k1.ineg(),h=h.neg(!0)),s.k2.negative&&(s.k2.ineg(),a=a.neg(!0)),r[2*o]=h,r[2*o+1]=a,n[2*o]=s.k1,n[2*o+1]=s.k2}for(t=this._wnafMulAdd(1,r,n,2*o,i),e=0;e<2*o;e++)r[e]=null,n[e]=null;return t},h(n,a.BasePoint),r.prototype.point=function(t,e,i){return new n(this,t,e,i)},r.prototype.pointFromJSON=function(t,e){return n.fromJSON(this,t,e)},n.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var i=this.curve,r=function(t){return i.point(t.x.redMul(i.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},n.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]},n.fromJSON=function(t,e,i){function r(e){return t.point(e[0],e[1],i)}"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],i);return e[2]?(e=e[2],n.precomputed={beta:null,doubles:e.doubles&&{step:e.doubles.step,points:[n].concat(e.doubles.points.map(r))},naf:e.naf&&{wnd:e.naf.wnd,points:[n].concat(e.naf.points.map(r))}},n):n},n.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)+">"},n.prototype.isInfinity=function(){return this.inf},n.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t)||0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);return 0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm())),t=e.redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y),this.curve.point(t,e)},n.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,i=this.x.redSqr();return t=t.redInvm(),e=(i=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t)).redSqr().redISub(this.x.redAdd(this.x)),i=i.redMul(this.x.redSub(e)).redISub(this.y),this.curve.point(e,i)},n.prototype.getX=function(){return this.x.fromRed()},n.prototype.getY=function(){return this.y.fromRed()},n.prototype.mul=function(t){return t=new s(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},n.prototype.mulAdd=function(t,e,i){return e=[this,e],t=[t,i],this.curve.endo?this.curve._endoWnafMulAdd(e,t):this.curve._wnafMulAdd(1,e,t,2)},n.prototype.jmulAdd=function(t,e,i){return e=[this,e],t=[t,i],this.curve.endo?this.curve._endoWnafMulAdd(e,t,!0):this.curve._wnafMulAdd(1,e,t,2,!0)},n.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},n.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){t=this.precomputed;var i=function(t){return t.neg()};e.precomputed={naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e},n.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},h(o,a.BasePoint),r.prototype.jpoint=function(t,e,i){return new o(this,t,e,i)},o.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),i=this.x.redMul(e);return t=this.y.redMul(e).redMul(t),this.curve.point(i,t)},o.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},o.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),i=this.z.redSqr(),r=this.x.redMul(e),n=t.x.redMul(i);if(e=this.y.redMul(e.redMul(t.z)),i=t.y.redMul(i.redMul(this.z)),n=r.redSub(n),i=e.redSub(i),0===n.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var o=n.redSqr(),s=o.redMul(n);return o=r.redMul(o),r=i.redSqr().redIAdd(s).redISub(o).redISub(o),e=i.redMul(o.redISub(r)).redISub(e.redMul(s)),t=this.z.redMul(t.z).redMul(n),this.curve.jpoint(r,e,t)},o.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),i=this.x,r=t.x.redMul(e),n=this.y;if(t=t.y.redMul(e).redMul(this.z),r=i.redSub(r),t=n.redSub(t),0===r.cmpn(0))return 0!==t.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var o=r.redSqr();return e=o.redMul(r),o=i.redMul(o),i=t.redSqr().redIAdd(e).redISub(o).redISub(o),n=t.redMul(o.redISub(i)).redISub(n.redMul(e)),r=this.z.redMul(r),this.curve.jpoint(i,n,r)},o.prototype.dblp=function(t){if(0===t||this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i<t;i++)e=e.dbl();return e}e=this.curve.a;var r=this.curve.tinv,n=this.x;i=this.y;var o=this.z,s=o.redSqr().redSqr(),h=i.redAdd(i);for(i=0;i<t;i++){var a=n.redSqr(),u=h.redSqr(),f=u.redSqr();a=a.redAdd(a).redIAdd(a).redIAdd(e.redMul(s)),u=n.redMul(u),n=a.redSqr().redISub(u.redAdd(u)),u=u.redISub(n),a=(a=a.redMul(u)).redIAdd(a).redISub(f),o=h.redMul(o),i+1<t&&(s=s.redMul(f)),h=a}return this.curve.jpoint(n,h.redMul(r),o)},o.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},o.prototype._zeroDbl=function(){if(this.zOne){var t=this.x.redSqr(),e=this.y.redSqr(),i=e.redSqr();e=(e=this.x.redAdd(e).redSqr().redISub(t).redISub(i)).redIAdd(e);var r=(t=t.redAdd(t).redIAdd(t)).redSqr().redISub(e).redISub(e),n=i.redIAdd(i);n=(n=n.redIAdd(n)).redIAdd(n),i=r,e=t.redMul(e.redISub(r)).redISub(n),t=this.y.redAdd(this.y)}else t=this.x.redSqr(),i=(e=this.y.redSqr()).redSqr(),e=(e=this.x.redAdd(e).redSqr().redISub(t).redISub(i)).redIAdd(e),r=(t=t.redAdd(t).redIAdd(t)).redSqr(),n=(n=(n=i.redIAdd(i)).redIAdd(n)).redIAdd(n),i=r.redISub(e).redISub(e),e=t.redMul(e.redISub(i)).redISub(n),t=(t=this.y.redMul(this.z)).redIAdd(t);return this.curve.jpoint(i,e,t)},o.prototype._threeDbl=function(){var t;if(this.zOne){var e=this.x.redSqr(),i=this.y.redSqr(),r=i.redSqr();i=(i=this.x.redAdd(i).redSqr().redISub(e).redISub(r)).redIAdd(i);var n=e.redAdd(e).redIAdd(e).redIAdd(this.curve.a);e=t=n.redSqr().redISub(i).redISub(i),r=(r=(r=r.redIAdd(r)).redIAdd(r)).redIAdd(r),r=n.redMul(i.redISub(t)).redISub(r),t=this.y.redAdd(this.y)}else t=this.z.redSqr(),i=this.y.redSqr(),e=this.x.redMul(i),r=(r=this.x.redSub(t).redMul(this.x.redAdd(t))).redAdd(r).redIAdd(r),n=e.redIAdd(e),e=(n=n.redIAdd(n)).redAdd(n),e=r.redSqr().redISub(e),t=this.y.redAdd(this.z).redSqr().redISub(i).redISub(t),i=(i=(i=(i=i.redSqr()).redIAdd(i)).redIAdd(i)).redIAdd(i),r=r.redMul(n.redISub(e)).redISub(i);return this.curve.jpoint(e,r,t)},o.prototype._dbl=function(){var t=this.curve.a,e=this.x,i=this.y,r=this.z,n=r.redSqr().redSqr(),o=e.redSqr(),s=i.redSqr();return t=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(n)),n=(e=(e=e.redAdd(e)).redIAdd(e)).redMul(s),e=t.redSqr().redISub(n.redAdd(n)),n=n.redISub(e),s=(s=(s=(s=s.redSqr()).redIAdd(s)).redIAdd(s)).redIAdd(s),s=t.redMul(n).redISub(s),i=i.redAdd(i).redMul(r),this.curve.jpoint(e,s,i)},o.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr(),r=e.redSqr(),n=t.redAdd(t).redIAdd(t),o=n.redSqr(),s=(t=(t=(t=(t=this.x.redAdd(e).redSqr().redISub(t).redISub(r)).redIAdd(t)).redAdd(t).redIAdd(t)).redISub(o)).redSqr();return r=(r=(r=(r=r.redIAdd(r)).redIAdd(r)).redIAdd(r)).redIAdd(r),n=n.redIAdd(t).redSqr().redISub(o).redISub(s).redISub(r),e=(e=(e=e.redMul(n)).redIAdd(e)).redIAdd(e),e=(e=(e=this.x.redMul(s).redISub(e)).redIAdd(e)).redIAdd(e),r=(r=(r=(r=this.y.redMul(n.redMul(r.redISub(n)).redISub(t.redMul(s)))).redIAdd(r)).redIAdd(r)).redIAdd(r),i=this.z.redAdd(t).redSqr().redISub(i).redISub(s),this.curve.jpoint(e,r,i)},o.prototype.mul=function(t,e){return t=new s(t,e),this.curve._wnafMul(this,t)},o.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),i=t.z.redSqr();return 0===this.x.redMul(i).redISub(t.x.redMul(e)).cmpn(0)&&(e=e.redMul(this.z),i=i.redMul(t.z),0===this.y.redMul(i).redISub(t.y.redMul(e)).cmpn(0))},o.prototype.eqXToP=function(t){var e=this.z.redSqr(),i=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(i))return!0;for(t=t.clone(),e=this.curve.redN.redMul(e);;){if(t.iadd(this.curve.n),0<=t.cmp(this.curve.p))return!1;if(i.redIAdd(e),0===this.x.cmp(i))return!0}},o.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)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){function r(t){s.call(this,"mont",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.i4=new o(4).toRed(this.red).redInvm(),this.two=new o(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function n(t,e,i){s.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new o(e,16),this.z=new o(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}var o=i(47);e=i(38);var s=i(70),h=i(44);e(r,s),t.exports=r,r.prototype.validate=function(t){var e=(t=t.normalize().x).redSqr();return 0===(t=e.redMul(t).redAdd(e.redMul(this.a)).redAdd(t)).redSqrt().redSqr().cmp(t)},e(n,s.BasePoint),r.prototype.decodePoint=function(t,e){return this.point(h.toArray(t,e),1)},r.prototype.point=function(t,e){return new n(this,t,e)},r.prototype.pointFromJSON=function(t){return n.fromJSON(this,t)},n.prototype.precompute=function(){},n.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},n.fromJSON=function(t,e){return new n(t,e[0],e[1]||t.one)},n.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},n.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e);return t=t.redMul(e),e=i.redMul(e.redAdd(this.curve.a24.redMul(i))),this.curve.point(t,e)},n.prototype.add=function(){throw Error("Not supported on Montgomery curve")},n.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z);return t=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(t.redAdd(n).redSqr()),e=e.x.redMul(t.redISub(n).redSqr()),this.curve.point(r,e)},n.prototype.mul=function(t){var e=t.clone();t=this;for(var i=this.curve.point(null,null),r=[];0!==e.cmpn(0);e.iushrn(1))r.push(e.andln(1));for(e=r.length-1;0<=e;e--)0===r[e]?(t=t.diffAdd(i,this),i=i.dbl()):(i=t.diffAdd(i,this),t=t.dbl());return i},n.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},n.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},n.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},n.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){function r(t){this.extended=this.mOneA=(this.twisted=1!=(0|t.a))&&-1==(0|t.a),h.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function n(t,e,i,r,n){h.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.z=this.y=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(e,16),this.y=new o(i,16),this.z=r?new o(r,16):this.curve.one,this.t=n&&new o(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.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}e=i(44);var o=i(47),s=i(38),h=i(70),a=e.assert;s(r,h),t.exports=r,r.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},r.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},r.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},r.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),r=this.c2.redSub(this.a.redMul(i));if(i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),i=r.redMul(i.redInvm()),0!==(r=i.redSqrt()).redSqr().redSub(i).cmp(this.zero))throw Error("invalid point");return i=r.fromRed().isOdd(),(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},r.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var i=t.redSqr(),r=i.redSub(this.c2);if(i=i.redMul(this.d).redMul(this.c2).redSub(this.a),0===(r=r.redMul(i.redInvm())).cmp(this.zero)){if(e)throw Error("invalid point");return this.point(this.zero,t)}if(0!==(i=r.redSqrt()).redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},r.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr();return t=e.redMul(this.a).redAdd(i),e=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i))),0===t.cmp(e)},s(n,h.BasePoint),r.prototype.pointFromJSON=function(t){return n.fromJSON(this,t)},r.prototype.point=function(t,e,i,r){return new n(this,t,e,i,r)},n.fromJSON=function(t,e){return new n(t,e[0],e[1],e[2])},n.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)+" z: "+this.z.fromRed().toString(16,2)+">"},n.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},n.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=this.z.redSqr();i=i.redIAdd(i);var r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e);i=(t=r.redAdd(e)).redSub(i);var o=r.redSub(e);return e=n.redMul(i),r=t.redMul(o),n=n.redMul(o),t=i.redMul(t),this.curve.point(e,r,t,n)},n.prototype._projDbl=function(){var t=this.x.redAdd(this.y).redSqr(),e=this.x.redSqr(),i=this.y.redSqr();if(this.curve.twisted){var r=this.curve._mulA(e),n=r.redAdd(i);if(this.zOne)t=t.redSub(e).redSub(i).redMul(n.redSub(this.curve.two)),e=n.redMul(r.redSub(i)),r=n.redSqr().redSub(n).redSub(n);else{var o=this.z.redSqr();o=n.redSub(o).redISub(o),t=t.redSub(e).redISub(i).redMul(o),e=n.redMul(r.redSub(i)),r=n.redMul(o)}}else r=e.redAdd(i),o=this.curve._mulC(this.z).redSqr(),o=r.redSub(o).redSub(o),t=this.curve._mulC(t.redISub(r)).redMul(o),e=this.curve._mulC(r).redMul(e.redISub(i)),r=r.redMul(o);return this.curve.point(t,e,r)},n.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},n.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),i=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),n=this.z.redMul(t.z.redAdd(t.z)),o=i.redSub(e);return t=n.redSub(r),r=n.redAdd(r),n=i.redAdd(e),e=o.redMul(t),i=r.redMul(n),o=o.redMul(n),t=t.redMul(r),this.curve.point(e,i,t,o)},n.prototype._projAdd=function(t){var e=this.z.redMul(t.z),i=e.redSqr(),r=this.x.redMul(t.x),n=this.y.redMul(t.y),o=this.curve.d.redMul(r).redMul(n),s=i.redSub(o);return i=i.redAdd(o),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(r).redISub(n),t=e.redMul(s).redMul(t),this.curve.twisted?(e=e.redMul(i).redMul(n.redSub(this.curve._mulA(r))),s=s.redMul(i)):(e=e.redMul(i).redMul(n.redSub(r)),s=this.curve._mulC(s).redMul(i)),this.curve.point(t,e,s)},n.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},n.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},n.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},n.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},n.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},n.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},n.prototype.getX=function(){return this.normalize(),this.x.fromRed()},n.prototype.getY=function(){return this.normalize(),this.y.fromRed()},n.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},n.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;t=t.clone();for(var i=this.curve.redN.redMul(this.z);;){if(t.iadd(this.curve.n),0<=t.cmp(this.curve.p))return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},n.prototype.toP=n.prototype.normalize,n.prototype.mixedAdd=n.prototype.add},function(t,e,i){e.sha1=i(213),e.sha224=i(214),e.sha256=i(132),e.sha384=i(215),e.sha512=i(133)},function(t,e,i){function r(){if(!(this instanceof r))return new r;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}var n=i(46);e=i(64),i=i(131);var o=n.rotl32,s=n.sum32,h=n.sum32_5,a=i.ft_1,u=e.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];n.inherits(r,u),t.exports=r,r.blockSize=512,r.outSize=160,r.hmacStrength=80,r.padLength=64,r.prototype._update=function(t,e){for(var i=this.W,r=0;16>r;r++)i[r]=t[e+r];for(;r<i.length;r++)i[r]=o(i[r-3]^i[r-8]^i[r-14]^i[r-16],1);t=this.h[0],e=this.h[1];var n=this.h[2],u=this.h[3],l=this.h[4];for(r=0;r<i.length;r++){var d=~~(r/20);d=h(o(t,5),a(d,e,n,u),l,i[r],f[d]),l=u,u=n,n=o(e,30),e=t,t=d}this.h[0]=s(this.h[0],t),this.h[1]=s(this.h[1],e),this.h[2]=s(this.h[2],n),this.h[3]=s(this.h[3],u),this.h[4]=s(this.h[4],l)},r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}var n=i(46),o=i(132);n.inherits(r,o),t.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}var n=i(46),o=i(133);n.inherits(r,o),t.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(t){return"hex"===t?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(t,e,i){function r(){if(!(this instanceof r))return new r;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function n(t,e,i,r){return 15>=t?e^i^r:31>=t?e&i|~e&r:47>=t?(e|~i)^r:63>=t?e&r|i&~r:e^(i|~r)}var o=i(46);t=i(64);var s=o.rotl32,h=o.sum32,a=o.sum32_3,u=o.sum32_4,f=t.BlockHash;o.inherits(r,f),e.ripemd160=r,r.blockSize=512,r.outSize=160,r.hmacStrength=192,r.padLength=64,r.prototype._update=function(t,e){for(var i,r=this.h[0],o=this.h[1],f=this.h[2],m=this.h[3],g=this.h[4],b=r,v=o,y=f,M=m,w=g,_=0;80>_;_++)i=h(s(u(r,n(_,o,f,m),t[l[_]+e],15>=_?0:31>=_?1518500249:47>=_?1859775393:63>=_?2400959708:2840853838),c[_]),g),r=g,g=m,m=s(f,10),f=o,o=i,i=h(s(u(b,n(79-_,v,y,M),t[d[_]+e],15>=_?1352829926:31>=_?1548603684:47>=_?1836072691:63>=_?2053994217:0),p[_]),w),b=w,w=M,M=s(y,10),y=v,v=i;i=a(this.h[1],f,M),this.h[1]=a(this.h[2],m,w),this.h[2]=a(this.h[3],g,b),this.h[3]=a(this.h[4],r,v),this.h[4]=a(this.h[0],o,y),this.h[0]=i},r.prototype._digest=function(t){return"hex"===t?o.toHex32(this.h,"little"):o.split32(this.h,"little")};var l=[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],d=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],c=[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],p=[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(t,e,i){function r(t,e,i){if(!(this instanceof r))return new r(t,e,i);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.outer=this.inner=null,this._init(n.toArray(e,i))}var n=i(46),o=i(43);t.exports=r,r.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},r.prototype.update=function(t,e){return this.inner.update(t,e),this},r.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);"string"==typeof t&&(a(s.hasOwnProperty(t),"Unknown curve "+t),t=s[t]),t instanceof s.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var n=i(47),o=i(220);e=i(44);var s=i(87),h=i(83),a=e.assert,u=i(221),f=i(222);t.exports=r,r.prototype.keyPair=function(t){return new u(this,t)},r.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},r.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},r.prototype.genKeyPair=function(t){t||(t={}),t=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||h(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()});for(var e=this.n.byteLength(),i=this.n.sub(new n(2));;){var r=new n(t.generate(e));if(!(0<r.cmp(i)))return r.iaddn(1),this.keyFromPrivate(r)}},r.prototype._truncateToN=function(t,e){var i=8*t.byteLength()-this.n.bitLength();return 0<i&&(t=t.ushrn(i)),!e&&0<=t.cmp(this.n)?t.sub(this.n):t},r.prototype.sign=function(t,e,i,r){"object"==typeof i&&(r=i,i=null),r||(r={}),e=this.keyFromPrivate(e,i),t=this._truncateToN(new n(t,16));var s=this.n.byteLength();i=e.getPrivate().toArray("be",s),s=t.toArray("be",s),s=new o({hash:this.hash,entropy:i,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"});for(var h=this.n.sub(new n(1)),a=0;;a++){var u=r.k?r.k(a):new n(s.generate(this.n.byteLength()));if(!(0>=(u=this._truncateToN(u,!0)).cmpn(1)||0<=u.cmp(h))){var l=this.g.mul(u);if(!l.isInfinity()){var d=l.getX();if(0!==(i=d.umod(this.n)).cmpn(0)&&0!==(u=(u=u.invm(this.n).mul(i.mul(e.getPrivate()).iadd(t))).umod(this.n)).cmpn(0))return t=(l.getY().isOdd()?1:0)|(0!==d.cmp(i)?2:0),r.canonical&&0<u.cmp(this.nh)&&(u=this.n.sub(u),t^=1),new f({r:i,s:u,recoveryParam:t})}}}},r.prototype.verify=function(t,e,i,r){return t=this._truncateToN(new n(t,16)),i=this.keyFromPublic(i,r),r=(e=new f(e,"hex")).r,e=e.s,!(0>r.cmpn(1)||0<=r.cmp(this.n)||0>e.cmpn(1)||0<=e.cmp(this.n))&&(t=(e=e.invm(this.n)).mul(t).umod(this.n),e=e.mul(r).umod(this.n),this.curve._maxwellTrick?!(i=this.g.jmulAdd(t,i.getPublic(),e)).isInfinity()&&i.eqXToP(r):!(i=this.g.mulAdd(t,i.getPublic(),e)).isInfinity()&&0===i.getX().umod(this.n).cmp(r))},r.prototype.recoverPubKey=function(t,e,i,r){a((3&i)===i,"The recovery param is more than two bits"),e=new f(e,r),r=this.n;var o=new n(t);t=e.r;var s=e.s,h=1&i;if(i>>=1,0<=t.cmp(this.curve.p.umod(this.curve.n))&&i)throw Error("Unable to find sencond key candinate");return t=i?this.curve.pointFromX(t.add(this.curve.n),h):this.curve.pointFromX(t,h),e=e.r.invm(r),i=r.sub(o).mul(e).umod(r),r=s.mul(e).umod(r),this.g.mulAdd(i,t,r)},r.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new f(e,r)).recoveryParam)return e.recoveryParam;for(r=0;4>r;r++){try{var n=this.recoverPubKey(t,e,r)}catch(t){continue}if(n.eq(i))return r}throw Error("Unable to find valid recovery factor")}},function(t,e,i){function r(t){if(!(this instanceof r))return new r(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this.V=this.K=this.reseedInterval=this._reseed=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex");t=o.toArray(t.pers,t.persEnc||"hex"),s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}var n=i(88),o=i(129),s=i(43);t.exports=r,r.prototype._init=function(t,e,i){for(t=t.concat(e).concat(i),this.K=Array(this.outLen/8),this.V=Array(this.outLen/8),e=0;e<this.V.length;e++)this.K[e]=0,this.V[e]=1;this._update(t),this._reseed=1,this.reseedInterval=281474976710656},r.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},r.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},r.prototype.reseed=function(t,e,i,r){"string"!=typeof e&&(r=i,i=e,e=null),t=o.toArray(t,e),i=o.toArray(i,r),s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},r.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");for("string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i)),r=[];r.length<t;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V);return t=r.slice(0,t),this._update(i),this._reseed++,o.encode(t,e)}},function(t,e,i){function r(t,e){this.ec=t,this.pub=this.priv=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var n=i(47),o=i(44).assert;t.exports=r,r.fromPublic=function(t,e,i){return e instanceof r?e:new r(t,{pub:e,pubEnc:i})},r.fromPrivate=function(t,e,i){return e instanceof r?e:new r(t,{priv:e,privEnc:i})},r.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.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"}},r.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},r.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(t,e){t.x||t.y?("mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(t.x,t.y)):this.pub=this.ec.curve.decodePoint(t,e)},r.prototype.derive=function(t){return t.mul(this.priv).getX()},r.prototype.sign=function(t,e,i){return this.ec.sign(t,this,e,i)},r.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,i){function r(t,e){if(t instanceof r)return t;this._importDER(t,e)||(f(t.r&&t.s,"Signature without r or s"),this.r=new a(t.r,16),this.s=new a(t.s,16),this.recoveryParam=void 0===t.recoveryParam?null:t.recoveryParam)}function n(){this.place=0}function o(t,e){var i=t[e.place++];if(!(128&i))return i;i&=15;for(var r=0,n=0,o=e.place;n<i;n++,o++)r<<=8,r|=t[o];return e.place=o,r}function s(t){for(var e=0,i=t.length-1;!(t[e]||128&t[e+1])&&e<i;)e++;return 0===e?t:t.slice(e)}function h(t,e){if(!(128>e)){var i=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255)}t.push(e)}var a=i(47),u=i(44),f=u.assert;t.exports=r,r.prototype._importDER=function(t,e){t=u.toArray(t,e);var i=new n;if(48!==t[i.place++]||o(t,i)+i.place!==t.length||2!==t[i.place++])return!1;var r=o(t,i);return e=t.slice(i.place,r+i.place),i.place+=r,2===t[i.place++]&&(r=o(t,i),t.length===r+i.place&&(t=t.slice(i.place,r+i.place),0===e[0]&&128&e[1]&&(e=e.slice(1)),0===t[0]&&128&t[1]&&(t=t.slice(1)),this.r=new a(e),this.s=new a(t),this.recoveryParam=null,!0))},r.prototype.toDER=function(t){var e=this.r.toArray(),i=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&i[0]&&(i=[0].concat(i)),e=s(e),i=s(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];return h(r,e.length),(r=r.concat(e)).push(2),h(r,i.length),e=r.concat(i),h(i=[48],e.length),i=i.concat(e),u.encode(i,t)}},function(t,e,i){function r(t){if(h("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof r))return new r(t);this.curve=t=o[t].curve,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}var n=i(88),o=i(87),s=i(44),h=s.assert,a=s.parseBytes,u=i(224),f=i(225);t.exports=r,r.prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t);e=this.g.mul(r);var n=this.encodePoint(e);return t=this.hashInt(n,i.pubBytes(),t).mul(i.priv()),t=r.add(t).umod(this.curve.n),this.makeSignature({R:e,S:t,Rencoded:n})},r.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e),i=this.keyFromPublic(i),t=this.hashInt(e.Rencoded(),i.pubBytes(),t);var r=this.g.mul(e.S());return e.R().add(i.pub().mul(t)).eq(r)},r.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return s.intFromLE(t.digest()).umod(this.curve.n)},r.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},r.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},r.prototype.makeSignature=function(t){return t instanceof f?t:new f(this,t)},r.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},r.prototype.decodePoint=function(t){var e=(t=s.parseBytes(t)).length-1,i=t.slice(0,e).concat(-129&t[e]);return t=0!=(128&t[e]),i=s.intFromLE(i),this.curve.pointFromY(i,t)},r.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},r.prototype.decodeInt=function(t){return s.intFromLE(t)},r.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,i){function r(t,e){this.eddsa=t,this._secret=s(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=s(e.pub)}var n=i(44),o=n.assert,s=n.parseBytes;e=n.cachedProperty,r.fromPublic=function(t,e){return e instanceof r?e:new r(t,{pub:e})},r.fromSecret=function(t,e){return e instanceof r?e:new r(t,{secret:e})},r.prototype.secret=function(){return this._secret},e(r,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),e(r,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),e(r,"privBytes",(function(){var t=this.eddsa,e=this.hash(),i=t.encodingLength-1;return(t=e.slice(0,t.encodingLength))[0]&=248,t[i]&=127,t[i]|=64,t})),e(r,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),e(r,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),e(r,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),r.prototype.sign=function(t){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},r.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},r.prototype.getSecret=function(t){return o(this._secret,"KeyPair is public only"),n.encode(this.secret(),t)},r.prototype.getPublic=function(t){return n.encode(this.pubBytes(),t)},t.exports=r},function(t,e,i){function r(t,e){this.eddsa=t,"object"!=typeof e&&(e=h(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),s(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof n&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}var n=i(47),o=i(44),s=o.assert;e=o.cachedProperty;var h=o.parseBytes;e(r,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),e(r,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),e(r,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),e(r,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),r.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},r.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=r},,function(t,e,i){t=i(65),e.certificate=i(239),i=t.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())})),e.RSAPrivateKey=i,i=t.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())})),e.RSAPublicKey=i,i=t.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(r),this.key("subjectPublicKey").bitstr())})),e.PublicKey=i;var r=t.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}));i=t.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(r),this.key("subjectPrivateKey").octstr())})),e.PrivateKey=i,i=t.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())})),e.EncryptedPrivateKey=i,i=t.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())})),e.DSAPrivateKey=i,e.DSAparam=t.define("DSAparam",(function(){this.int()})),i=t.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(n),this.key("publicKey").optional().explicit(1).bitstr())})),e.ECPrivateKey=i;var n=t.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=t.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(229).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,function(t,e,i){function r(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}var n=i(65),o=i(38);e.define=function(t,e){return new r(t,e)},r.prototype._createNamed=function(t){try{var e=i(231).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(t){e=function(t){this._initNamed(t)}}return o(e,t),e.prototype._initNamed=function(e){t.call(this,e)},new e(this)},r.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(n.decoders[t])),this.decoders[t]},r.prototype.decode=function(t,e,i){return this._getDecoder(e).decode(t,i)},r.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(n.encoders[t])),this.encoders[t]},r.prototype.encode=function(t,e,i){return this._getEncoder(e).encode(t,i)}},function(v,q){function m(){}var k=function(t){if(Object.keys)return Object.keys(t);var e,i=[];for(e in t)i.push(e);return i},h=function(t,e){if(t.forEach)return t.forEach(e);for(var i=0;i<t.length;i++)e(t[i],i,t)},w=function(){try{return Object.defineProperty({},"_",{}),function(t,e,i){Object.defineProperty(t,e,{writable:!0,enumerable:!1,configurable:!0,value:i})}}catch(t){return function(t,e,i){t[e]=i}}}(),d="Array Boolean Date Error EvalError Function Infinity JSON Math NaN Number Object RangeError ReferenceError RegExp String SyntaxError TypeError URIError decodeURI decodeURIComponent encodeURI encodeURIComponent escape eval isFinite isNaN parseFloat parseInt undefined unescape".split(" ");m.prototype={};var g=q.Script=function(t){if(!(this instanceof g))return new g(t);this.code=t};g.prototype.runInContext=function(t){if(!(t instanceof m))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var i=e.contentWindow,r=i.eval,n=i.execScript;!r&&n&&(n.call(i,"null"),r=i.eval),h(k(t),(function(e){i[e]=t[e]})),h(d,(function(e){t[e]&&(i[e]=t[e])}));var o=k(i);return r=r.call(i,this.code),h(k(i),(function(e){var r;if(!(r=e in t)){t:if(o.indexOf)r=o.indexOf(e);else{for(r=0;r<o.length;r++)if(o[r]===e)break t;r=-1}r=-1===r}r&&(t[e]=i[e])})),h(d,(function(e){e in t||w(t,e,i[e])})),document.body.removeChild(e),r},g.prototype.runInThisContext=function(){return eval(this.code)},g.prototype.runInNewContext=function(t){var e=g.createContext(t),i=this.runInContext(e);return t&&h(k(e),(function(i){t[i]=e[i]})),i},h(k(g.prototype),(function(t){q[t]=g[t]=function(e){var i=g(e);return i[t].apply(i,[].slice.call(arguments,1))}})),q.isContext=function(t){return t instanceof m},q.createScript=function(t){return q.Script(t)},q.createContext=g.createContext=function(t){var e=new m;return"object"==typeof t&&h(k(t),(function(i){e[i]=t[i]})),e}},function(t,e,i){function r(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function n(t,e){this.path=t,this.rethrow(e)}t=i(38),e.Reporter=r,r.prototype.isError=function(t){return t instanceof n},r.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},r.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},r.prototype.enterKey=function(t){return this._reporterState.path.push(t)},r.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},r.prototype.leaveKey=function(t,e,i){var r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},r.prototype.path=function(){return this._reporterState.path.join("/")},r.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},r.prototype.leaveObject=function(t){var e=this._reporterState,i=e.obj;return e.obj=t,i},r.prototype.error=function(t){var e=this._reporterState,i=t instanceof n;if(t=i?t:new n(e.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!e.options.partial)throw t;return i||e.errors.push(t),t},r.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},t(n,Error),n.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,n),!this.stack)try{throw Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){function r(t,e){var i={};this._baseState=i,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}var n=i(66).Reporter,o=i(66).EncoderBuffer,s=i(66).DecoderBuffer,h=i(43);e="seq seqof set setof objid bool gentime utctime null_ enum int objDesc bitstr bmpstr charstr genstr graphstr ia5str iso646str numstr octstr printstr t61str unistr utf8str videostr".split(" ");var a="key obj use optional explicit implicit def choice any contains".split(" ").concat(e);t.exports=r;var u="enc parent children tag args reverseArgs choice optional any obj use alteredUse key default explicit implicit contains".split(" ");r.prototype.clone=function(){var t=this._baseState,e={};u.forEach((function(i){e[i]=t[i]}));var i=new this.constructor(e.parent);return i._baseState=e,i},r.prototype._wrap=function(){var t=this._baseState;a.forEach((function(e){this[e]=function(){var i=new this.constructor(this);return t.children.push(i),i[e].apply(i,arguments)}}),this)},r.prototype._init=function(t){var e=this._baseState;h(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),h.equal(e.children.length,1,"Root node can have only one child")},r.prototype._useArgs=function(t){var e=this._baseState,i=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==i.length&&(h(null===e.children),e.children=i,i.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(h(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(i){i==(0|i)&&(i|=0),e[t[i]]=i})),e})))},"_peekTag _decodeTag _use _decodeStr _decodeObjid _decodeTime _decodeNull _decodeInt _decodeBool _decodeList _encodeComposite _encodeStr _encodeObjid _encodeTime _encodeNull _encodeInt _encodeBool".split(" ").forEach((function(t){r.prototype[t]=function(){throw Error(t+" not implemented for encoding: "+this._baseState.enc)}})),e.forEach((function(t){r.prototype[t]=function(){var e=this._baseState,i=Array.prototype.slice.call(arguments);return h(null===e.tag),e.tag=t,this._useArgs(i),this}})),r.prototype.use=function(t){h(t);var e=this._baseState;return h(null===e.use),e.use=t,this},r.prototype.optional=function(){return this._baseState.optional=!0,this},r.prototype.def=function(t){var e=this._baseState;return h(null===e.default),e.default=t,e.optional=!0,this},r.prototype.explicit=function(t){var e=this._baseState;return h(null===e.explicit&&null===e.implicit),e.explicit=t,this},r.prototype.implicit=function(t){var e=this._baseState;return h(null===e.explicit&&null===e.implicit),e.implicit=t,this},r.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},r.prototype.key=function(t){var e=this._baseState;return h(null===e.key),e.key=t,this},r.prototype.any=function(){return this._baseState.any=!0,this},r.prototype.choice=function(t){var e=this._baseState;return h(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},r.prototype.contains=function(t){var e=this._baseState;return h(null===e.use),e.contains=t,this},r.prototype._decode=function(t,e){var i=this._baseState;if(null===i.parent)return t.wrapResult(i.children[0]._decode(t,e));var r,n=i.default,o=!0,h=null;if(null!==i.key&&(h=t.enterKey(i.key)),i.optional){var a=null;if(null!==i.explicit?a=i.explicit:null!==i.implicit?a=i.implicit:null!==i.tag&&(a=i.tag),null!==a||i.any){if(o=this._peekTag(t,a,i.any),t.isError(o))return o}else{var u=t.save();try{null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e),o=!0}catch(t){o=!1}t.restore(u)}}if(i.obj&&o&&(r=t.enterObject()),o){if(null!==i.explicit){if(a=this._decodeTag(t,i.explicit),t.isError(a))return a;t=a}if(a=t.offset,null===i.use&&null===i.choice){i.any&&(u=t.save());var f=this._decodeTag(t,null!==i.implicit?i.implicit:i.tag,i.any);if(t.isError(f))return f;i.any?n=t.raw(u):t=f}if(e&&e.track&&null!==i.tag&&e.track(t.path(),a,t.length,"tagged"),e&&e.track&&null!==i.tag&&e.track(t.path(),t.offset,t.length,"content"),i.any||(n=null===i.choice?this._decodeGeneric(i.tag,t,e):this._decodeChoice(t,e)),t.isError(n))return n;i.any||null!==i.choice||null===i.children||i.children.forEach((function(i){i._decode(t,e)})),!i.contains||"octstr"!==i.tag&&"bitstr"!==i.tag||(u=new s(n),n=this._getUse(i.contains,t._reporterState.obj)._decode(u,e))}return i.obj&&o&&(n=t.leaveObject(r)),null===i.key||null===n&&!0!==o?null!==h&&t.exitKey(h):t.leaveKey(h,i.key,n),n},r.prototype._decodeGeneric=function(t,e,i){var r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],i):/str$/.test(t)?this._decodeStr(e,t,i):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],i):"objid"===t?this._decodeObjid(e,null,null,i):"gentime"===t||"utctime"===t?this._decodeTime(e,t,i):"null_"===t?this._decodeNull(e,i):"bool"===t?this._decodeBool(e,i):"objDesc"===t?this._decodeStr(e,t,i):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],i):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,i):e.error("unknown tag: "+t)},r.prototype._getUse=function(t,e){var i=this._baseState;return i.useDecoder=this._use(t,e),h(null===i.useDecoder._baseState.parent),i.useDecoder=i.useDecoder._baseState.children[0],i.implicit!==i.useDecoder._baseState.implicit&&(i.useDecoder=i.useDecoder.clone(),i.useDecoder._baseState.implicit=i.implicit),i.useDecoder},r.prototype._decodeChoice=function(t,e){var i=this._baseState,r=null,n=!1;return Object.keys(i.choice).some((function(o){var s=t.save(),h=i.choice[o];try{var a=h._decode(t,e);if(t.isError(a))return!1;r={type:o,value:a},n=!0}catch(e){return t.restore(s),!1}return!0}),this),n?r:t.error("Choice not matched")},r.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},r.prototype._encode=function(t,e,i){var r=this._baseState;if((null===r.default||r.default!==t)&&(void 0!==(t=this._encodeValue(t,e,i))&&!this._skipDefault(t,e,i)))return t},r.prototype._encodeValue=function(t,e,i){var r=this._baseState;if(null===r.parent)return r.children[0]._encode(t,e||new n);var o=null;if(this.reporter=e,r.optional&&void 0===t){if(null===r.default)return;t=r.default}var s=null,h=!1;if(r.any)o=this._createEncoderBuffer(t);else if(r.choice)o=this._encodeChoice(t,e);else if(r.contains)s=this._getUse(r.contains,i)._encode(t,e),h=!0;else if(r.children)s=r.children.map((function(i){if("null_"===i._baseState.tag)return i._encode(null,e,t);if(null===i._baseState.key)return e.error("Child should have a key");var r=e.enterKey(i._baseState.key);return"object"!=typeof t?e.error("Child expected, but input is not object"):(i=i._encode(t[i._baseState.key],e,t),e.leaveKey(r),i)}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===r.tag||"setof"===r.tag){if(!r.args||1!==r.args.length)return e.error("Too many args for : "+r.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");(s=this.clone())._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(i){return this._getUse(this._baseState.args[0],t)._encode(i,e)}),s))}else null!==r.use?o=this._getUse(r.use,i)._encode(t,e):(s=this._encodePrimitive(r.tag,t),h=!0);if(!r.any&&null===r.choice){i=null!==r.implicit?r.implicit:r.tag;var a=null===r.implicit?"universal":"context";null===i?null===r.use&&e.error("Tag could be omitted only for .use()"):null===r.use&&(o=this._encodeComposite(i,h,a,s))}return null!==r.explicit&&(o=this._encodeComposite(r.explicit,!1,"context",o)),o},r.prototype._encodeChoice=function(t,e){var i=this._baseState,r=i.choice[t.type];return r||h(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},r.prototype._encodePrimitive=function(t,e){var i=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&i.args)return this._encodeObjid(e,i.reverseArgs[0],i.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,i.args&&i.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw Error("Unsupported tag: "+t)},r.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},r.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(t)}},function(t,e,i){t=i(136),e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=t._reverse(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=t._reverse(e.tag)},function(t,e,i){e.der=i(137),e.pem=i(236)},function(t,e,i){function r(t){o.call(this,t),this.enc="pem"}e=i(38);var n=i(41).Buffer,o=i(137);e(r,o),t.exports=r,r.prototype.decode=function(t,e){t=t.toString().split(/[\r\n]+/g);for(var i=e.label.toUpperCase(),r=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,h=-1,a=0;a<t.length;a++){var u=t[a].match(r);if(null!==u&&u[2]===i){if(-1!==s){if("END"!==u[1])break;h=a;break}if("BEGIN"!==u[1])break;s=a}}if(-1===s||-1===h)throw Error("PEM section not found for: "+i);return(t=t.slice(s+1,h).join("")).replace(/[^a-z0-9\+\/=]+/gi,""),t=new n(t,"base64"),o.prototype.decode.call(this,t,e)}},function(t,e,i){e.der=i(138),e.pem=i(238)},function(t,e,i){function r(t){n.call(this,t),this.enc="pem"}e=i(38);var n=i(138);e(r,n),t.exports=r,r.prototype.encode=function(t,e){t=n.prototype.encode.call(this,t).toString("base64");for(var i=["-----BEGIN "+e.label+"-----"],r=0;r<t.length;r+=64)i.push(t.slice(r,r+64));return i.push("-----END "+e.label+"-----"),i.join("\n")}},function(t,e,i){var r=(e=i(65)).define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),n=e.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=e.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=e.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),h=e.define("RelativeDistinguishedName",(function(){this.setof(n)})),a=e.define("RDNSequence",(function(){this.seqof(h)})),u=e.define("Name",(function(){this.choice({rdnSequence:this.use(a)})})),f=e.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(r),this.key("notAfter").use(r))})),l=e.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=e.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(f),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())}));e=e.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())})),t.exports=e},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,i){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,n=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,s=i(69),h=i(81),a=i(39).Buffer;t.exports=function(t,e){var i=(t=t.toString()).match(r);if(i){var u="aes"+i[1],f=a.from(i[2],"hex"),l=a.from(i[3].replace(/[\r\n]/g,""),"base64");i=s(e,f.slice(0,8),parseInt(i[1],10)).key,e=[],u=h.createDecipheriv(u,i,f),e.push(u.update(l)),e.push(u.final()),l=a.concat(e)}else l=t.match(o),l=new a(l[2].replace(/[\r\n]/g,""),"base64");return{tag:t.match(n)[1],data:l}}},function(t,e,i){function r(t,e){if(0>=t.cmpn(0))throw Error("invalid sig");if(t.cmp(e)>=e)throw Error("invalid sig")}var n=i(41).Buffer,o=i(134),s=i(86).ec,h=i(71),a=i(139);t.exports=function(t,e,i,u,f){if("ec"===(i=h(i)).type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw Error("wrong public key type");if(!(u=a[i.data.algorithm.curve.join(".")]))throw Error("unknown curve "+i.data.algorithm.curve.join("."));return new s(u).verify(e,t,i.data.subjectPrivateKey.data)}if("dsa"===i.type){if("dsa"!==u)throw Error("wrong public key type");u=i.data.p,f=i.data.q;var l=i.data.g;i=i.data.pub_key;var d=h.signature.decode(t,"der");t=d.s,d=d.r,r(t,f),r(d,f);var c=o.mont(u);return t=t.invm(f),0===l.toRed(c).redPow(new o(e).mul(t).mod(f)).fromRed().mul(i.toRed(c).redPow(d.mul(t).mod(f)).fromRed()).mod(u).mod(f).cmp(d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw Error("wrong public key type");for(e=n.concat([f,e]),f=i.modulus.byteLength(),u=[1],l=0;e.length+u.length+2<f;)u.push(255),l++;for(u.push(0),d=-1;++d<e.length;)u.push(e[d]);for(u=n.from(u),e=o.mont(i.modulus),t=(t=new o(t).toRed(e)).redPow(new o(i.publicExponent)),t=n.from(t.fromRed().toArray()),i=8>l?1:0,f=Math.min(t.length,u.length),t.length!==u.length&&(i=1),d=-1;++d<f;)i|=t[d]^u[d];return 0===i}},function(t,e,i){(function(e){function r(t){this.curveType=h[t],this.curveType||(this.curveType={name:t}),this.curve=new o.ec(this.curveType.name),this.keys=void 0}function n(t,i,r){return Array.isArray(t)||(t=t.toArray()),t=new e(t),r&&t.length<r&&((r=new e(r-t.length)).fill(0),t=e.concat([r,t])),i?t.toString(i):t}var o=i(86),s=i(244);t.exports=function(t){return new r(t)};var h={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};h.p224=h.secp224r1,h.p256=h.secp256r1=h.prime256v1,h.p192=h.secp192r1=h.prime192v1,h.p384=h.secp384r1,h.p521=h.secp521r1,r.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},r.prototype.computeSecret=function(t,i,r){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),n(t=this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},r.prototype.getPublicKey=function(t,e){var i=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(i[0]=i[i.length-1]%2?7:6),n(i,t)},r.prototype.getPrivateKey=function(t){return n(this.keys.getPrivate(),t)},r.prototype.setPublicKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),this.keys._importPublic(t),this},r.prototype.setPrivateKey=function(t,i){return i=i||"utf8",e.isBuffer(t)||(t=new e(t,i)),t=(t=new s(t)).toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(t),this}}).call(this,i(41).Buffer)},function(t,e,i){(function(t){!function(t,e){function r(t,e){if(!t)throw Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function o(t,e,i){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}function s(t,e,i){var r=0;for(i=Math.min(t.length,i);e<i;e++){var n=t.charCodeAt(e)-48;r<<=4,r=49<=n&&54>=n?r|n-49+10:17<=n&&22>=n?r|n-17+10:r|15&n}return r}function h(t,e,i,r){var n=0;for(i=Math.min(t.length,i);e<i;e++){var o=t.charCodeAt(e)-48;n*=r,n=49<=o?n+(o-49+10):17<=o?n+(o-17+10):n+o}return n}function a(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],o=0|e.words[0],s=(n*=o)/67108864|0;i.words[0]=67108863&n;for(var h=1;h<r;h++){var a=s>>>26,u=67108863&s;s=Math.min(h,e.length-1);for(var f=Math.max(0,h-t.length+1);f<=s;f++)a+=(n=(n=0|t.words[h-f|0])*(o=0|e.words[f])+u)/67108864|0,u=67108863&n;i.words[h]=0|u,s=0|a}return 0!==s?i.words[h]=0|s:i.length--,i.strip()}function u(t,e){this.x=t,this.y=e}function f(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function l(){f.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function d(){f.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function c(){f.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function p(){f.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function m(t){"string"==typeof t?(t=o._prime(t),this.m=t.p,this.prime=t):(r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null)}function g(t){m.call(this,t),this.shift=this.m.bitLength(),0!=this.shift%26&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{var b=i(245).Buffer}catch(t){}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return 0<t.cmp(e)?t:e},o.min=function(t,e){return 0>t.cmp(e)?t:e},o.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&2<=e&&36>=e);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initNumber=function(t,e,i){0>t&&(this.negative=1,t=-t),67108864>t?(this.words=[67108863&t],this.length=1):4503599627370496>t?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(9007199254740992>t),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},o.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),0>=t.length)return this.words=[0],this.length=1,this;for(this.length=Math.ceil(t.length/3),this.words=Array(this.length),e=0;e<this.length;e++)this.words[e]=0;var n=0;if("be"===i)for(e=t.length-1,i=0;0<=e;e-=3){var o=t[e]|t[e-1]<<8|t[e-2]<<16;this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++)}else if("le"===i)for(i=e=0;e<t.length;e+=3)o=t[e]|t[e+1]<<8|t[e+2]<<16,this.words[i]|=o<<n&67108863,this.words[i+1]=o>>>26-n&67108863,26<=(n+=24)&&(n-=26,i++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var r,n=0;for(i=t.length-6,r=0;i>=e;i-=6){var o=s(t,i,i+6);this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303,26<=(n+=24)&&(n-=26,r++)}i+6!==e&&(o=s(t,e,i+6),this.words[r]|=o<<n&67108863,this.words[r+1]|=o>>>26-n&4194303),this.strip()},o.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;67108863>=n;n*=e)r++;r--,n=n/e|0;var o=t.length-i,s=o%r;o=Math.min(o,o-s)+i;for(var a=i;a<o;a+=r)i=h(t,a,a+r,e),this.imuln(n),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i);if(0!==s){for(r=1,i=h(t,a,t.length,e),a=0;a<s;a++)r*=e;this.imuln(r),67108864>this.words[0]+i?this.words[0]+=i:this._iaddn(i)}},o.prototype.copy=function(t){t.words=Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var v=" 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".split(" "),y=[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],M=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var i="",n=t=0,o=0;o<this.length;o++){var s=this.words[o],h=(16777215&(s<<t|n)).toString(16);i=0!==(n=s>>>24-t&16777215)||o!==this.length-1?v[6-h.length]+h+i:h+i,26<=(t+=2)&&(t-=26,o--)}for(0!==n&&(i=n.toString(16)+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&2<=t&&36>=t){for(n=y[t],o=M[t],i="",(s=this.clone()).negative=0;!s.isZero();)h=s.modn(o).toString(t),i=(s=s.idivn(o)).isZero()?h+i:v[n-h.length]+h+i;for(this.isZero()&&(i="0"+i);0!=i.length%e;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2<this.length&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==b),this.toArrayLike(b,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,i){var n=this.byteLength();r(n<=(i=i||Math.max(1,n)),"byte array longer than desired length"),r(0<i,"Requested array length <= 0"),this.strip();var o="le"===e;if(t=new t(i),e=this.clone(),o){for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[o]=n;for(;o<i;o++)t[o]=0}else{for(o=0;o<i-n;o++)t[o]=0;for(o=0;!e.isZero();o++)n=e.andln(255),e.iushrn(8),t[i-o-1]=n}return t},o.prototype._countBits=Math.clz32?function(t){return 32-Math.clz32(t)}:function(t){var e=0;return 4096<=t&&(e+=13,t>>>=13),64<=t&&(e+=7,t>>>=7),8<=t&&(e+=4,t>>>=4),2<=t&&(e+=2,t>>>=2),e+t},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=0;return 0==(8191&t)&&(e+=13,t>>>=13),0==(127&t)&&(e+=7,t>>>=7),0==(15&t)&&(e+=4,t>>>=4),0==(3&t)&&(e+=2,t>>>=2),0==(1&t)&&e++,e},o.prototype.bitLength=function(){var t=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var i=this._zeroBits(this.words[e]);if(t+=i,26!==i)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]|=t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;i<e.length;i++)this.words[i]&=t.words[i];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){if(this.length>t.length)var e=this;else e=t,t=this;for(var i=0;i<t.length;i++)this.words[i]=e.words[i]^t.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0<t&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return 0<t&&(this.words[i]=~this.words[i]&67108863>>26-t),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&0<=t);var i=t/26|0;return t%=26,this._expand(i+1),this.words[i]=e?this.words[i]|1<<t:this.words[i]&~(1<<t),this.strip()},o.prototype.iadd=function(t){if(0!==this.negative&&0===t.negative)return this.negative=0,this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative){t.negative=0;var e=this.isub(t);return t.negative=1,e._normSign()}if(this.length>t.length)var i=this;else i=t,t=this;for(var r=e=0;r<t.length;r++)e=(0|i.words[r])+(0|t.words[r])+e,this.words[r]=67108863&e,e>>>=26;for(;0!==e&&r<i.length;r++)e=(0|i.words[r])+e,this.words[r]=67108863&e,e>>>=26;if(this.length=i.length,0!==e)this.words[this.length]=e,this.length++;else if(i!==this)for(;r<i.length;r++)this.words[r]=i.words[r];return this},o.prototype.add=function(t){if(0!==t.negative&&0===this.negative){t.negative=0;var e=this.sub(t);return t.negative^=1,e}return 0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();if(0===(e=this.cmp(t)))return this.negative=0,this.length=1,this.words[0]=0,this;if(0<e)var i=this;else i=t,t=this;for(var r=0,n=0;n<t.length;n++)r=(e=(0|i.words[n])-(0|t.words[n])+r)>>26,this.words[n]=67108863&e;for(;0!==r&&n<i.length;n++)r=(e=(0|i.words[n])+r)>>26,this.words[n]=67108863&e;if(0===r&&n<i.length&&i!==this)for(;n<i.length;n++)this.words[n]=i.words[n];return this.length=Math.max(this.length,n),i!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var w=function(t,e,i){var r=t.words,n=e.words,o=i.words,s=0,h=0|r[0],a=8191&h,u=h>>>13,f=0|r[1];h=8191&f;var l=f>>>13,d=0|r[2];f=8191&d;var c=d>>>13,p=0|r[3];d=8191&p;var m=p>>>13,g=0|r[4];p=8191&g;var b=g>>>13,v=0|r[5];g=8191&v;var y=v>>>13,M=0|r[6];v=8191&M;var w=M>>>13,_=0|r[7];M=8191&_;var S=_>>>13,k=0|r[8];_=8191&k,k>>>=13;var A=0|r[9];r=8191&A,A>>>=13;var E=0|n[0],x=8191&E,R=E>>>13,B=0|n[1];E=8191&B;var I=B>>>13,T=0|n[2];B=8191&T;var P=T>>>13,j=0|n[3];T=8191&j;var L=j>>>13,C=0|n[4];j=8191&C;var O=C>>>13,N=0|n[5];C=8191&N;var q=N>>>13,D=0|n[6];N=8191&D;var z=D>>>13,U=0|n[7];D=8191&U;var H=U>>>13,F=0|n[8];U=8191&F,F>>>=13;var Z=0|n[9];n=8191&Z,Z>>>=13,i.negative=t.negative^e.negative,i.length=19;var K=Math.imul(a,x),W=(s+K|0)+((8191&(t=(t=Math.imul(a,R))+Math.imul(u,x)|0))<<13)|0;s=((e=Math.imul(u,R))+(t>>>13)|0)+(W>>>26)|0,W&=67108863,K=Math.imul(h,x),t=(t=Math.imul(h,R))+Math.imul(l,x)|0,e=Math.imul(l,R);var Y=(s+(K=K+Math.imul(a,E)|0)|0)+((8191&(t=(t=t+Math.imul(a,I)|0)+Math.imul(u,E)|0))<<13)|0;s=((e=e+Math.imul(u,I)|0)+(t>>>13)|0)+(Y>>>26)|0,Y&=67108863,K=Math.imul(f,x),t=(t=Math.imul(f,R))+Math.imul(c,x)|0,e=Math.imul(c,R),K=K+Math.imul(h,E)|0,t=(t=t+Math.imul(h,I)|0)+Math.imul(l,E)|0,e=e+Math.imul(l,I)|0;var V=(s+(K=K+Math.imul(a,B)|0)|0)+((8191&(t=(t=t+Math.imul(a,P)|0)+Math.imul(u,B)|0))<<13)|0;s=((e=e+Math.imul(u,P)|0)+(t>>>13)|0)+(V>>>26)|0,V&=67108863,K=Math.imul(d,x),t=(t=Math.imul(d,R))+Math.imul(m,x)|0,e=Math.imul(m,R),K=K+Math.imul(f,E)|0,t=(t=t+Math.imul(f,I)|0)+Math.imul(c,E)|0,e=e+Math.imul(c,I)|0,K=K+Math.imul(h,B)|0,t=(t=t+Math.imul(h,P)|0)+Math.imul(l,B)|0,e=e+Math.imul(l,P)|0;var X=(s+(K=K+Math.imul(a,T)|0)|0)+((8191&(t=(t=t+Math.imul(a,L)|0)+Math.imul(u,T)|0))<<13)|0;s=((e=e+Math.imul(u,L)|0)+(t>>>13)|0)+(X>>>26)|0,X&=67108863,K=Math.imul(p,x),t=(t=Math.imul(p,R))+Math.imul(b,x)|0,e=Math.imul(b,R),K=K+Math.imul(d,E)|0,t=(t=t+Math.imul(d,I)|0)+Math.imul(m,E)|0,e=e+Math.imul(m,I)|0,K=K+Math.imul(f,B)|0,t=(t=t+Math.imul(f,P)|0)+Math.imul(c,B)|0,e=e+Math.imul(c,P)|0,K=K+Math.imul(h,T)|0,t=(t=t+Math.imul(h,L)|0)+Math.imul(l,T)|0,e=e+Math.imul(l,L)|0;var $=(s+(K=K+Math.imul(a,j)|0)|0)+((8191&(t=(t=t+Math.imul(a,O)|0)+Math.imul(u,j)|0))<<13)|0;s=((e=e+Math.imul(u,O)|0)+(t>>>13)|0)+($>>>26)|0,$&=67108863,K=Math.imul(g,x),t=(t=Math.imul(g,R))+Math.imul(y,x)|0,e=Math.imul(y,R),K=K+Math.imul(p,E)|0,t=(t=t+Math.imul(p,I)|0)+Math.imul(b,E)|0,e=e+Math.imul(b,I)|0,K=K+Math.imul(d,B)|0,t=(t=t+Math.imul(d,P)|0)+Math.imul(m,B)|0,e=e+Math.imul(m,P)|0,K=K+Math.imul(f,T)|0,t=(t=t+Math.imul(f,L)|0)+Math.imul(c,T)|0,e=e+Math.imul(c,L)|0,K=K+Math.imul(h,j)|0,t=(t=t+Math.imul(h,O)|0)+Math.imul(l,j)|0,e=e+Math.imul(l,O)|0;var G=(s+(K=K+Math.imul(a,C)|0)|0)+((8191&(t=(t=t+Math.imul(a,q)|0)+Math.imul(u,C)|0))<<13)|0;s=((e=e+Math.imul(u,q)|0)+(t>>>13)|0)+(G>>>26)|0,G&=67108863,K=Math.imul(v,x),t=(t=Math.imul(v,R))+Math.imul(w,x)|0,e=Math.imul(w,R),K=K+Math.imul(g,E)|0,t=(t=t+Math.imul(g,I)|0)+Math.imul(y,E)|0,e=e+Math.imul(y,I)|0,K=K+Math.imul(p,B)|0,t=(t=t+Math.imul(p,P)|0)+Math.imul(b,B)|0,e=e+Math.imul(b,P)|0,K=K+Math.imul(d,T)|0,t=(t=t+Math.imul(d,L)|0)+Math.imul(m,T)|0,e=e+Math.imul(m,L)|0,K=K+Math.imul(f,j)|0,t=(t=t+Math.imul(f,O)|0)+Math.imul(c,j)|0,e=e+Math.imul(c,O)|0,K=K+Math.imul(h,C)|0,t=(t=t+Math.imul(h,q)|0)+Math.imul(l,C)|0,e=e+Math.imul(l,q)|0;var J=(s+(K=K+Math.imul(a,N)|0)|0)+((8191&(t=(t=t+Math.imul(a,z)|0)+Math.imul(u,N)|0))<<13)|0;s=((e=e+Math.imul(u,z)|0)+(t>>>13)|0)+(J>>>26)|0,J&=67108863,K=Math.imul(M,x),t=(t=Math.imul(M,R))+Math.imul(S,x)|0,e=Math.imul(S,R),K=K+Math.imul(v,E)|0,t=(t=t+Math.imul(v,I)|0)+Math.imul(w,E)|0,e=e+Math.imul(w,I)|0,K=K+Math.imul(g,B)|0,t=(t=t+Math.imul(g,P)|0)+Math.imul(y,B)|0,e=e+Math.imul(y,P)|0,K=K+Math.imul(p,T)|0,t=(t=t+Math.imul(p,L)|0)+Math.imul(b,T)|0,e=e+Math.imul(b,L)|0,K=K+Math.imul(d,j)|0,t=(t=t+Math.imul(d,O)|0)+Math.imul(m,j)|0,e=e+Math.imul(m,O)|0,K=K+Math.imul(f,C)|0,t=(t=t+Math.imul(f,q)|0)+Math.imul(c,C)|0,e=e+Math.imul(c,q)|0,K=K+Math.imul(h,N)|0,t=(t=t+Math.imul(h,z)|0)+Math.imul(l,N)|0,e=e+Math.imul(l,z)|0;var Q=(s+(K=K+Math.imul(a,D)|0)|0)+((8191&(t=(t=t+Math.imul(a,H)|0)+Math.imul(u,D)|0))<<13)|0;s=((e=e+Math.imul(u,H)|0)+(t>>>13)|0)+(Q>>>26)|0,Q&=67108863,K=Math.imul(_,x),t=(t=Math.imul(_,R))+Math.imul(k,x)|0,e=Math.imul(k,R),K=K+Math.imul(M,E)|0,t=(t=t+Math.imul(M,I)|0)+Math.imul(S,E)|0,e=e+Math.imul(S,I)|0,K=K+Math.imul(v,B)|0,t=(t=t+Math.imul(v,P)|0)+Math.imul(w,B)|0,e=e+Math.imul(w,P)|0,K=K+Math.imul(g,T)|0,t=(t=t+Math.imul(g,L)|0)+Math.imul(y,T)|0,e=e+Math.imul(y,L)|0,K=K+Math.imul(p,j)|0,t=(t=t+Math.imul(p,O)|0)+Math.imul(b,j)|0,e=e+Math.imul(b,O)|0,K=K+Math.imul(d,C)|0,t=(t=t+Math.imul(d,q)|0)+Math.imul(m,C)|0,e=e+Math.imul(m,q)|0,K=K+Math.imul(f,N)|0,t=(t=t+Math.imul(f,z)|0)+Math.imul(c,N)|0,e=e+Math.imul(c,z)|0,K=K+Math.imul(h,D)|0,t=(t=t+Math.imul(h,H)|0)+Math.imul(l,D)|0,e=e+Math.imul(l,H)|0;var tt=(s+(K=K+Math.imul(a,U)|0)|0)+((8191&(t=(t=t+Math.imul(a,F)|0)+Math.imul(u,U)|0))<<13)|0;return s=((e=e+Math.imul(u,F)|0)+(t>>>13)|0)+(tt>>>26)|0,tt&=67108863,K=Math.imul(r,x),t=(t=Math.imul(r,R))+Math.imul(A,x)|0,e=Math.imul(A,R),K=K+Math.imul(_,E)|0,t=(t=t+Math.imul(_,I)|0)+Math.imul(k,E)|0,e=e+Math.imul(k,I)|0,K=K+Math.imul(M,B)|0,t=(t=t+Math.imul(M,P)|0)+Math.imul(S,B)|0,e=e+Math.imul(S,P)|0,K=K+Math.imul(v,T)|0,t=(t=t+Math.imul(v,L)|0)+Math.imul(w,T)|0,e=e+Math.imul(w,L)|0,K=K+Math.imul(g,j)|0,t=(t=t+Math.imul(g,O)|0)+Math.imul(y,j)|0,e=e+Math.imul(y,O)|0,K=K+Math.imul(p,C)|0,t=(t=t+Math.imul(p,q)|0)+Math.imul(b,C)|0,e=e+Math.imul(b,q)|0,K=K+Math.imul(d,N)|0,t=(t=t+Math.imul(d,z)|0)+Math.imul(m,N)|0,e=e+Math.imul(m,z)|0,K=K+Math.imul(f,D)|0,t=(t=t+Math.imul(f,H)|0)+Math.imul(c,D)|0,e=e+Math.imul(c,H)|0,K=K+Math.imul(h,U)|0,t=(t=t+Math.imul(h,F)|0)+Math.imul(l,U)|0,e=e+Math.imul(l,F)|0,K=K+Math.imul(a,n)|0,t=(t=t+Math.imul(a,Z)|0)+Math.imul(u,n)|0,s=((e=e+Math.imul(u,Z)|0)+(t>>>13)|0)+((a=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,a&=67108863,K=Math.imul(r,E),t=(t=Math.imul(r,I))+Math.imul(A,E)|0,e=Math.imul(A,I),K=K+Math.imul(_,B)|0,t=(t=t+Math.imul(_,P)|0)+Math.imul(k,B)|0,e=e+Math.imul(k,P)|0,K=K+Math.imul(M,T)|0,t=(t=t+Math.imul(M,L)|0)+Math.imul(S,T)|0,e=e+Math.imul(S,L)|0,K=K+Math.imul(v,j)|0,t=(t=t+Math.imul(v,O)|0)+Math.imul(w,j)|0,e=e+Math.imul(w,O)|0,K=K+Math.imul(g,C)|0,t=(t=t+Math.imul(g,q)|0)+Math.imul(y,C)|0,e=e+Math.imul(y,q)|0,K=K+Math.imul(p,N)|0,t=(t=t+Math.imul(p,z)|0)+Math.imul(b,N)|0,e=e+Math.imul(b,z)|0,K=K+Math.imul(d,D)|0,t=(t=t+Math.imul(d,H)|0)+Math.imul(m,D)|0,e=e+Math.imul(m,H)|0,K=K+Math.imul(f,U)|0,t=(t=t+Math.imul(f,F)|0)+Math.imul(c,U)|0,e=e+Math.imul(c,F)|0,K=K+Math.imul(h,n)|0,t=(t=t+Math.imul(h,Z)|0)+Math.imul(l,n)|0,s=((e=e+Math.imul(l,Z)|0)+(t>>>13)|0)+((h=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,h&=67108863,K=Math.imul(r,B),t=(t=Math.imul(r,P))+Math.imul(A,B)|0,e=Math.imul(A,P),K=K+Math.imul(_,T)|0,t=(t=t+Math.imul(_,L)|0)+Math.imul(k,T)|0,e=e+Math.imul(k,L)|0,K=K+Math.imul(M,j)|0,t=(t=t+Math.imul(M,O)|0)+Math.imul(S,j)|0,e=e+Math.imul(S,O)|0,K=K+Math.imul(v,C)|0,t=(t=t+Math.imul(v,q)|0)+Math.imul(w,C)|0,e=e+Math.imul(w,q)|0,K=K+Math.imul(g,N)|0,t=(t=t+Math.imul(g,z)|0)+Math.imul(y,N)|0,e=e+Math.imul(y,z)|0,K=K+Math.imul(p,D)|0,t=(t=t+Math.imul(p,H)|0)+Math.imul(b,D)|0,e=e+Math.imul(b,H)|0,K=K+Math.imul(d,U)|0,t=(t=t+Math.imul(d,F)|0)+Math.imul(m,U)|0,e=e+Math.imul(m,F)|0,K=K+Math.imul(f,n)|0,t=(t=t+Math.imul(f,Z)|0)+Math.imul(c,n)|0,s=((e=e+Math.imul(c,Z)|0)+(t>>>13)|0)+((f=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,f&=67108863,K=Math.imul(r,T),t=(t=Math.imul(r,L))+Math.imul(A,T)|0,e=Math.imul(A,L),K=K+Math.imul(_,j)|0,t=(t=t+Math.imul(_,O)|0)+Math.imul(k,j)|0,e=e+Math.imul(k,O)|0,K=K+Math.imul(M,C)|0,t=(t=t+Math.imul(M,q)|0)+Math.imul(S,C)|0,e=e+Math.imul(S,q)|0,K=K+Math.imul(v,N)|0,t=(t=t+Math.imul(v,z)|0)+Math.imul(w,N)|0,e=e+Math.imul(w,z)|0,K=K+Math.imul(g,D)|0,t=(t=t+Math.imul(g,H)|0)+Math.imul(y,D)|0,e=e+Math.imul(y,H)|0,K=K+Math.imul(p,U)|0,t=(t=t+Math.imul(p,F)|0)+Math.imul(b,U)|0,e=e+Math.imul(b,F)|0,K=K+Math.imul(d,n)|0,t=(t=t+Math.imul(d,Z)|0)+Math.imul(m,n)|0,s=((e=e+Math.imul(m,Z)|0)+(t>>>13)|0)+((d=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,d&=67108863,K=Math.imul(r,j),t=(t=Math.imul(r,O))+Math.imul(A,j)|0,e=Math.imul(A,O),K=K+Math.imul(_,C)|0,t=(t=t+Math.imul(_,q)|0)+Math.imul(k,C)|0,e=e+Math.imul(k,q)|0,K=K+Math.imul(M,N)|0,t=(t=t+Math.imul(M,z)|0)+Math.imul(S,N)|0,e=e+Math.imul(S,z)|0,K=K+Math.imul(v,D)|0,t=(t=t+Math.imul(v,H)|0)+Math.imul(w,D)|0,e=e+Math.imul(w,H)|0,K=K+Math.imul(g,U)|0,t=(t=t+Math.imul(g,F)|0)+Math.imul(y,U)|0,e=e+Math.imul(y,F)|0,K=K+Math.imul(p,n)|0,t=(t=t+Math.imul(p,Z)|0)+Math.imul(b,n)|0,s=((e=e+Math.imul(b,Z)|0)+(t>>>13)|0)+((p=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,p&=67108863,K=Math.imul(r,C),t=(t=Math.imul(r,q))+Math.imul(A,C)|0,e=Math.imul(A,q),K=K+Math.imul(_,N)|0,t=(t=t+Math.imul(_,z)|0)+Math.imul(k,N)|0,e=e+Math.imul(k,z)|0,K=K+Math.imul(M,D)|0,t=(t=t+Math.imul(M,H)|0)+Math.imul(S,D)|0,e=e+Math.imul(S,H)|0,K=K+Math.imul(v,U)|0,t=(t=t+Math.imul(v,F)|0)+Math.imul(w,U)|0,e=e+Math.imul(w,F)|0,K=K+Math.imul(g,n)|0,t=(t=t+Math.imul(g,Z)|0)+Math.imul(y,n)|0,s=((e=e+Math.imul(y,Z)|0)+(t>>>13)|0)+((g=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,g&=67108863,K=Math.imul(r,N),t=(t=Math.imul(r,z))+Math.imul(A,N)|0,e=Math.imul(A,z),K=K+Math.imul(_,D)|0,t=(t=t+Math.imul(_,H)|0)+Math.imul(k,D)|0,e=e+Math.imul(k,H)|0,K=K+Math.imul(M,U)|0,t=(t=t+Math.imul(M,F)|0)+Math.imul(S,U)|0,e=e+Math.imul(S,F)|0,K=K+Math.imul(v,n)|0,t=(t=t+Math.imul(v,Z)|0)+Math.imul(w,n)|0,s=((e=e+Math.imul(w,Z)|0)+(t>>>13)|0)+((v=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,v&=67108863,K=Math.imul(r,D),t=(t=Math.imul(r,H))+Math.imul(A,D)|0,e=Math.imul(A,H),K=K+Math.imul(_,U)|0,t=(t=t+Math.imul(_,F)|0)+Math.imul(k,U)|0,e=e+Math.imul(k,F)|0,K=K+Math.imul(M,n)|0,t=(t=t+Math.imul(M,Z)|0)+Math.imul(S,n)|0,s=((e=e+Math.imul(S,Z)|0)+(t>>>13)|0)+((M=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,M&=67108863,K=Math.imul(r,U),t=(t=Math.imul(r,F))+Math.imul(A,U)|0,e=Math.imul(A,F),K=K+Math.imul(_,n)|0,t=(t=t+Math.imul(_,Z)|0)+Math.imul(k,n)|0,s=((e=e+Math.imul(k,Z)|0)+(t>>>13)|0)+((_=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,_&=67108863,K=Math.imul(r,n),t=(t=Math.imul(r,Z))+Math.imul(A,n)|0,s=((e=Math.imul(A,Z))+(t>>>13)|0)+((u=(s+K|0)+((8191&t)<<13)|0)>>>26)|0,o[0]=W,o[1]=Y,o[2]=V,o[3]=X,o[4]=$,o[5]=G,o[6]=J,o[7]=Q,o[8]=tt,o[9]=a,o[10]=h,o[11]=f,o[12]=d,o[13]=p,o[14]=g,o[15]=v,o[16]=M,o[17]=_,o[18]=67108863&u,0!==s&&(o[19]=s,i.length++),i};Math.imul||(w=a),o.prototype.mulTo=function(t,e){var i=this.length+t.length;if(10===this.length&&10===t.length)t=w(this,t,e);else if(63>i)t=a(this,t,e);else if(1024>i){e.negative=t.negative^this.negative,e.length=this.length+t.length;for(var r=0,n=i=0;n<e.length-1;n++){var o=i;i=0,r&=67108863;for(var s=Math.min(n,t.length-1),h=Math.max(0,n-this.length+1);h<=s;h++){var f=(0|this.words[n-h])*(0|t.words[h]),l=67108863&f;r=67108863&(l=l+r|0),i+=(o=(o=o+(f/67108864|0)|0)+(l>>>26)|0)>>>26,o&=67108863}e.words[n]=r,r=o}0!==r?e.words[n]=r:e.length--,t=e.strip()}else t=(new u).mulp(this,t,e);return t},u.prototype.makeRBT=function(t){for(var e=Array(t),i=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,i,t);return e},u.prototype.revBin=function(t,e,i){if(0===t||t===i-1)return t;for(var r=i=0;r<e;r++)i|=(1&t)<<e-r-1,t>>=1;return i},u.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s<o;s++)r[s]=e[t[s]],n[s]=i[t[s]]},u.prototype.transform=function(t,e,i,r,n,o){for(this.permute(o,t,e,i,r,n),t=1;t<n;t<<=1){e=t<<1,o=Math.cos(2*Math.PI/e);for(var s=Math.sin(2*Math.PI/e),h=0;h<n;h+=e)for(var a=o,u=s,f=0;f<t;f++){var l=i[h+f],d=r[h+f],c=i[h+f+t],p=r[h+f+t],m=a*c-u*p;p=a*p+u*c,c=m,i[h+f]=l+c,r[h+f]=d+p,i[h+f+t]=l-c,r[h+f+t]=d-p,f!==e&&(m=o*a-s*u,u=o*u+s*a,a=m)}}},u.prototype.guessLen13b=function(t,e){e=1&(t=1|Math.max(e,t));var i=0;for(t=t/2|0;t;t>>>=1)i++;return 1<<i+1+e},u.prototype.conjugate=function(t,e,i){if(!(1>=i))for(var r=0;r<i/2;r++){var n=t[r];t[r]=t[i-r-1],t[i-r-1]=n,n=e[r],e[r]=-e[i-r-1],e[i-r-1]=-n}},u.prototype.normalize13b=function(t,e){for(var i=0,r=0;r<e/2;r++)i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+i,t[r]=67108863&i,i=67108864>i?0:i/67108864|0;return t},u.prototype.convert13b=function(t,e,i,n){for(var o=0,s=0;s<e;s++)o+=0|t[s],i[2*s]=8191&o,o>>>=13,i[2*s+1]=8191&o,o>>>=13;for(s=2*e;s<n;++s)i[s]=0;r(0===o),r(0==(-8192&o))},u.prototype.stub=function(t){for(var e=Array(t),i=0;i<t;i++)e[i]=0;return e},u.prototype.mulp=function(t,e,i){var r=2*this.guessLen13b(t.length,e.length),n=this.makeRBT(r),o=this.stub(r),s=Array(r),h=Array(r),a=Array(r),u=Array(r),f=Array(r),l=Array(r),d=i.words;for(d.length=r,this.convert13b(t.words,t.length,s,r),this.convert13b(e.words,e.length,u,r),this.transform(s,o,h,a,r,n),this.transform(u,o,f,l,r,n),s=0;s<r;s++)u=h[s]*f[s]-a[s]*l[s],a[s]=h[s]*l[s]+a[s]*f[s],h[s]=u;return this.conjugate(h,a,r),this.transform(h,a,d,o,r,n),this.conjugate(d,o,r),this.normalize13b(d,r),i.negative=t.negative^e.negative,i.length=t.length+e.length,i.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=Array(this.length+t.length),(new u).mulp(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(67108864>t);for(var e=0,i=0;i<this.length;i++){var n=(0|this.words[i])*t,o=(67108863&n)+(67108863&e);e>>=26,e+=n/67108864|0,e+=o>>>26,this.words[i]=67108863&o}return 0!==e&&(this.words[i]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){for(var e=Array(t.bitLength()),i=0;i<e.length;i++){var r=i%26;e[i]=(t.words[i/26|0]&1<<r)>>>r}if(0===e.length)return new o(1);for(t=this,i=0;i<e.length&&0===e[i];i++,t=t.sqr());if(++i<e.length)for(r=t.sqr();i<e.length;i++,r=r.sqr())0!==e[i]&&(t=t.mul(r));return t},o.prototype.iushln=function(t){r("number"==typeof t&&0<=t);var e=t%26;t=(t-e)/26;var i,n=67108863>>>26-e<<26-e;if(0!==e){var o=0;for(i=0;i<this.length;i++){var s=this.words[i]&n;this.words[i]=(0|this.words[i])-s<<e|o,o=s>>>26-e}o&&(this.words[i]=o,this.length++)}if(0!==t){for(i=this.length-1;0<=i;i--)this.words[i+t]=this.words[i];for(i=0;i<t;i++)this.words[i]=0;this.length+=t}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,i){r("number"==typeof t&&0<=t);var n=t%26,o=Math.min((t-n)/26,this.length);if(t=67108863^67108863>>>n<<n,e=Math.max(0,(e?(e-e%26)/26:0)-o),i){for(var s=0;s<o;s++)i.words[s]=this.words[s];i.length=o}if(0!==o)if(this.length>o)for(this.length-=o,s=0;s<this.length;s++)this.words[s]=this.words[s+o];else this.words[0]=0,this.length=1;for(o=0,s=this.length-1;0<=s&&(0!==o||s>=e);s--){var h=0|this.words[s];this.words[s]=o<<26-n|h>>>n,o=h&t}return i&&0!==o&&(i.words[i.length++]=o),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t)&&!!(this.words[t]&1<<e)},o.prototype.imaskn=function(t){r("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,r(0===this.negative,"imaskn works only with positive numbers"),this.length<=t?this:(0!==e&&t++,this.length=Math.min(t,this.length),0!==e&&(this.words[this.length-1]&=67108863^67108863>>>e<<e),this.strip())},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(67108864>t),0>t?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){for(this.words[0]+=t,t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(67108864>t),0>t)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&0>this.words[0])this.words[0]=-this.words[0],this.negative=1;else for(t=0;t<this.length&&0>this.words[t];t++)this.words[t]+=67108864,--this.words[t+1];return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,i){var n;this._expand(t.length+i);var o=0;for(n=0;n<t.length;n++){var s=(0|this.words[n+i])+o;o=((s-=67108863&(o=(0|t.words[n])*e))>>26)-(o/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this.strip();for(r(-1===o),n=o=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var i=this.clone(),r=t,n=0|r.words[r.length-1];0!==(t=26-this._countBits(n))&&(r=r.ushln(t),i.iushln(t),n=0|r.words[r.length-1]);var s=i.length-r.length;if("mod"!==e){var h=new o(null);h.length=s+1,h.words=Array(h.length);for(var a=0;a<h.length;a++)h.words[a]=0}for(0===(a=i.clone()._ishlnsubmul(r,1,s)).negative&&(i=a,h&&(h.words[s]=1)),--s;0<=s;s--){for(a=67108864*(0|i.words[r.length+s])+(0|i.words[r.length+s-1]),a=Math.min(a/n|0,67108863),i._ishlnsubmul(r,a,s);0!==i.negative;)a--,i.negative=0,i._ishlnsubmul(r,1,s),i.isZero()||(i.negative^=1);h&&(h.words[s]=a)}return h&&h.strip(),i.strip(),"div"!==e&&0!==t&&i.iushrn(t),{div:h||null,mod:i}},o.prototype.divmod=function(t,e,i){if(r(!t.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var n;if(0!==this.negative&&0===t.negative){var s=this.neg().divmod(t,e);if("mod"!==e&&(n=s.div.neg()),"div"!==e){var h=s.mod.neg();i&&0!==h.negative&&h.iadd(t)}return{div:n,mod:h}}return 0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(n=s.div.neg()),{div:n,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(h=s.mod.neg(),i&&0!==h.negative&&h.isub(t)),{div:s.div,mod:h}):t.length>this.length||0>this.cmp(t)?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e)},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),0>(i=i.cmp(r))||1===t&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(67108863>=t);for(var e=67108864%t,i=0,n=this.length-1;0<=n;n--)i=(e*i+(0|this.words[n]))%t;return i},o.prototype.idivn=function(t){r(67108863>=t);for(var e=0,i=this.length-1;0<=i;i--)e=(0|this.words[i])+67108864*e,this.words[i]=e/t|0,e%=t;return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone(),t=new o(1);for(var n=new o(0),s=new o(0),h=new o(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var u=i.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(e.iushrn(l);0<l--;)(t.isOdd()||n.isOdd())&&(t.iadd(u),n.isub(f)),t.iushrn(1),n.iushrn(1);for(l=0,d=1;0==(i.words[0]&d)&&26>l;++l,d<<=1);if(0<l)for(i.iushrn(l);0<l--;)(s.isOdd()||h.isOdd())&&(s.iadd(u),h.isub(f)),s.iushrn(1),h.iushrn(1);0<=e.cmp(i)?(e.isub(i),t.isub(s),n.isub(h)):(i.isub(e),s.isub(t),h.isub(n))}return{a:s,b:h,gcd:i.iushln(a)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new o(1),s=new o(0),h=i.clone();0<e.cmpn(1)&&0<i.cmpn(1);){for(var a=0,u=1;0==(e.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(e.iushrn(a);0<a--;)n.isOdd()&&n.iadd(h),n.iushrn(1);for(a=0,u=1;0==(i.words[0]&u)&&26>a;++a,u<<=1);if(0<a)for(i.iushrn(a);0<a--;)s.isOdd()&&s.iadd(h),s.iushrn(1);0<=e.cmp(i)?(e.isub(i),n.isub(s)):(i.isub(e),s.isub(n))}return 0>(e=0===e.cmpn(1)?n:s).cmpn(0)&&e.iadd(t),e},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone();t=t.clone(),e.negative=0;for(var i=t.negative=0;e.isEven()&&t.isEven();i++)e.iushrn(1),t.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;t.isEven();)t.iushrn(1);var r=e.cmp(t);if(0>r)r=e,e=t,t=r;else if(0===r||0===t.cmpn(1))break;e.isub(t)}return t.iushln(i)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26;if(t=(t-e)/26,e=1<<e,this.length<=t)return this._expand(t+1),this.words[t]|=e,this;for(;0!==e&&t<this.length;t++){var i=0|this.words[t];e=(i+=e)>>>26,i&=67108863,this.words[t]=i}return 0!==e&&(this.words[t]=e,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e=0>t;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),1<this.length?t=1:(e&&(t=-t),r(67108863>=t,"Number is too big"),t=(e=0|this.words[0])===t?0:e<t?-1:1),0!==this.negative?0|-t:t):-1},o.prototype.cmp=function(t){return 0!==this.negative&&0===t.negative?-1:0===this.negative&&0!==t.negative?1:(t=this.ucmp(t),0!==this.negative?0|-t:t)},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,i=this.length-1;0<=i;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){r<n?e=-1:r>n&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return 0<=this.cmpn(t)},o.prototype.gte=function(t){return 0<=this.cmp(t)},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return 0>=this.cmpn(t)},o.prototype.lte=function(t){return 0>=this.cmp(t)},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new m(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};f.prototype._tmp=function(){var t=new o(null);return t.words=Array(Math.ceil(this.n/13)),t},f.prototype.ireduce=function(t){do{this.split(t,this.tmp);var e=(t=(t=this.imulK(t)).iadd(this.tmp)).bitLength()}while(e>this.n);return 0===(e=e<this.n?-1:t.ucmp(this.p))?(t.words[0]=0,t.length=1):0<e?t.isub(this.p):t.strip(),t},f.prototype.split=function(t,e){t.iushrn(this.n,0,e)},f.prototype.imulK=function(t){return t.imul(this.k)},n(l,f),l.prototype.split=function(t,e){for(var i=Math.min(t.length,9),r=0;r<i;r++)e.words[r]=t.words[r];if(e.length=i,9>=t.length)t.words[0]=0,t.length=1;else{for(i=t.words[9],e.words[e.length++]=4194303&i,r=10;r<t.length;r++)e=0|t.words[r],t.words[r-10]=(4194303&e)<<4|i>>>22,i=e;i>>>=22,t.words[r-10]=i,t.length=0===i&&10<t.length?t.length-10:t.length-9}},l.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i<t.length;i++){var r=0|t.words[i];e+=977*r,t.words[i]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},n(d,f),n(c,f),n(p,f),p.prototype.imulK=function(t){for(var e=0,i=0;i<t.length;i++){var r=67108863&(e=19*(0|t.words[i])+e);e>>>=26,t.words[i]=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(_[t])return _[t];if("k256"===t)var e=new l;else if("p224"===t)e=new d;else if("p192"===t)e=new c;else{if("p25519"!==t)throw Error("Unknown prime "+t);e=new p}return _[t]=e},m.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},m.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},m.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},m.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},m.prototype.add=function(t,e){return this._verify2(t,e),0<=(t=t.add(e)).cmp(this.m)&&t.isub(this.m),t._forceRed(this)},m.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(t=t.iadd(e)).cmp(this.m)&&t.isub(this.m),t},m.prototype.sub=function(t,e){return this._verify2(t,e),0>(t=t.sub(e)).cmpn(0)&&t.iadd(this.m),t._forceRed(this)},m.prototype.isub=function(t,e){return this._verify2(t,e),0>(t=t.isub(e)).cmpn(0)&&t.iadd(this.m),t},m.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},m.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},m.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},m.prototype.isqr=function(t){return this.imul(t,t.clone())},m.prototype.sqr=function(t){return this.mul(t,t)},m.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(1==e%2),3===e)return e=this.m.add(new o(1)).iushrn(2),this.pow(t,e);for(var i=this.m.subn(1),n=0;!i.isZero()&&0===i.andln(1);)n++,i.iushrn(1);r(!i.isZero());var s=(e=new o(1).toRed(this)).redNeg(),h=this.m.subn(1).iushrn(1),a=this.m.bitLength();for(a=new o(2*a*a).toRed(this);0!==this.pow(a,h).cmp(s);)a.redIAdd(s);for(h=this.pow(a,i),s=this.pow(t,i.addn(1).iushrn(1)),t=this.pow(t,i),i=n;0!==t.cmp(e);){for(a=t,n=0;0!==a.cmp(e);n++)a=a.redSqr();r(n<i),h=this.pow(h,new o(1).iushln(i-n-1)),s=s.redMul(h),h=h.redSqr(),t=t.redMul(h),i=n}return s},m.prototype.invm=function(t){return 0!==(t=t._invmp(this.m)).negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},m.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var i=Array(16);i[0]=new o(1).toRed(this),i[1]=t;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],t);t=i[0];var n=0,s=0,h=e.bitLength()%26;for(0===h&&(h=26),r=e.length-1;0<=r;r--){var a=e.words[r];for(--h;0<=h;h--){var u=a>>h&1;t!==i[0]&&(t=this.sqr(t)),0===u&&0===n?s=0:(n<<=1,n|=u,(4===++s||0===r&&0===h)&&(t=this.mul(t,i[n]),n=s=0))}h=26}return t},m.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},m.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},o.mont=function(t){return new g(t)},n(g,m),g.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},g.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},g.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new o(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=t=t.isub(e).iushrn(this.shift),0<=t.cmp(this.m)?e=t.isub(this.m):0>t.cmpn(0)&&(e=t.iadd(this.m)),e._forceRed(this))},g.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,i(45)(t))},,function(t,e,i){e.publicEncrypt=i(247),e.privateDecrypt=i(249),e.privateEncrypt=function(t,i){return e.publicEncrypt(t,i,!0)},e.publicDecrypt=function(t,i){return e.privateDecrypt(t,i,!0)}},function(t,e,i){var r=i(71),n=i(53),o=i(61),s=i(140),h=i(141),a=i(89),u=i(142),f=i(85),l=i(39).Buffer;t.exports=function(t,e,i){var d=t.padding?t.padding:i?1:4;if(t=r(t),4===d){d=t.modulus.byteLength();var c=e.length,p=o("sha1").update(l.alloc(0)).digest(),m=p.length,g=2*m;if(c>d-g-2)throw Error("message too long");g=l.alloc(d-c-g-2);var b=d-m-1;c=n(m),e=h(l.concat([p,g,l.alloc(1,1),e],b),s(c,b)),m=h(c,s(e,m)),e=new a(l.concat([l.alloc(1),m,e],d))}else if(1===d){if((m=e.length)>(d=t.modulus.byteLength())-11)throw Error("message too long");if(i)m=l.alloc(d-m-3,255);else{m=d-m-3,p=l.allocUnsafe(m),c=0,g=n(2*m),b=0;for(var v;c<m;)b===g.length&&(g=n(2*m),b=0),(v=g[b++])&&(p[c++]=v);m=p}e=new a(l.concat([l.from([0,i?1:2]),m,l.alloc(1),e],d))}else{if(3!==d)throw Error("unknown padding");if(0<=(e=new a(e)).cmp(t.modulus))throw Error("data too long for modulus")}return i?f(e,t):u(e,t)}},,function(t,e,i){var r=i(71),n=i(140),o=i(141),s=i(89),h=i(85),a=i(61),u=i(142),f=i(39).Buffer;t.exports=function(t,e,i){var l=t.padding?t.padding:i?1:4,d=(t=r(t)).modulus.byteLength();if(e.length>d||0<=new s(e).cmp(t.modulus))throw Error("decryption error");e=i?u(new s(e),t):h(e,t);var c=f.alloc(d-e.length);if(e=f.concat([c,e],d),4===l){if(d=e,l=t.modulus.byteLength(),i=(t=a("sha1").update(f.alloc(0)).digest()).length,0!==d[0])throw Error("decryption error");e=d.slice(1,i+1),d=d.slice(i+1),e=o(e,n(d,i)),d=(l=o(d,n(e,l-i-1))).slice(0,i),t=f.from(t),d=f.from(d),e=0,c=t.length,t.length!==d.length&&(e++,c=Math.min(t.length,d.length));for(var p=-1;++p<c;)e+=t[p]^d[p];if(e)throw Error("decryption error");for(;0===l[i];)i++;if(1!==l[i++])throw Error("decryption error");return l.slice(i)}if(1===l){for(t=(l=e).slice(0,2),d=2,e=0;0!==l[d++];)if(d>=l.length){e++;break}if(c=l.slice(2,d-1),("0002"!==t.toString("hex")&&!i||"0001"!==t.toString("hex")&&i)&&e++,8>c.length&&e++,e)throw Error("decryption error");return l.slice(d)}if(3===l)return e;throw Error("unknown padding")}},function(t,e,i){(function(t,r){function n(){throw Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}function o(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||0>t)throw new TypeError("offset must be a uint32");if(t>l||t>e)throw new RangeError("offset out of range")}function s(t,e,i){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||0>t)throw new TypeError("size must be a uint32");if(t+e>i||t>l)throw new RangeError("buffer too small")}function h(t,e,i,n){return r.browser?(i=new Uint8Array(t.buffer,e,i),d.getRandomValues(i),n?void r.nextTick((function(){n(null,t)})):t):n?void u(i,(function(i,r){if(i)return n(i);r.copy(t,e),n(null,t)})):(u(i).copy(t,e),t)}var a=i(39),u=i(53),f=a.Buffer,l=a.kMaxLength,d=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;d&&d.getRandomValues||!r.browser?(e.randomFill=function(e,i,r,n){if(!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof i)n=i,i=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-i;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return o(i,e.length),s(r,i,e.length),h(e,i,r,n)},e.randomFillSync=function(e,i,r){if(void 0===i&&(i=0),!(f.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return o(i,e.length),void 0===r&&(r=e.length-i),s(r,i,e.length),h(e,i,r)}):(e.randomFill=n,e.randomFillSync=n)}).call(this,i(2),i(6))},function(t,e,i){var r;t.exports=(r=i(40),function(){if("function"==typeof ArrayBuffer){var t=r.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var i=t.byteLength,r=[],n=0;n<i;n++)r[n>>>2]|=t[n]<<24-n%4*8;e.call(this,r,i)}else e.apply(this,arguments)}).prototype=t}}(),r.lib.WordArray)},function(t,e,i){var r;t.exports=(r=i(40),function(){function t(t){return t<<8&4278255360|t>>>8&16711935}var e=r.lib.WordArray,i=r.enc;i.Utf16=i.Utf16BE={stringify:function(t){var e=t.words;t=t.sigBytes;for(var i=[],r=0;r<t;r+=2)i.push(String.fromCharCode(e[r>>>2]>>>16-r%4*8&65535));return i.join("")},parse:function(t){for(var i=t.length,r=[],n=0;n<i;n++)r[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return e.create(r,2*i)}},i.Utf16LE={stringify:function(e){var i=e.words;e=e.sigBytes;for(var r=[],n=0;n<e;n+=2){var o=t(i[n>>>2]>>>16-n%4*8&65535);r.push(String.fromCharCode(o))}return r.join("")},parse:function(i){for(var r=i.length,n=[],o=0;o<r;o++)n[o>>>1]|=t(i.charCodeAt(o)<<16-o%2*16);return e.create(n,2*r)}}}(),r.enc.Utf16)},function(t,e,i){var r;t.exports=(r=i(40),i(143),function(){var t=r.lib.WordArray,e=r.algo,i=e.SHA256;e=e.SHA224=i.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}}),r.SHA224=i._createHelper(e),r.HmacSHA224=i._createHmacHelper(e)}(),r.SHA224)},function(t,e,i){var r;t.exports=(r=i(40),i(72),i(144),function(){var t=r.x64,e=t.Word,i=t.WordArray,n=(t=r.algo).SHA512;t=t.SHA384=n.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=n._doFinalize.call(this);return t.sigBytes-=16,t}}),r.SHA384=n._createHelper(t),r.HmacSHA384=n._createHmacHelper(t)}(),r.SHA384)},function(t,e,i){var r;t.exports=(r=i(40),i(72),function(t){var e=r.lib,i=e.WordArray,n=e.Hasher,o=r.x64.Word;e=r.algo;var s=[],h=[],a=[];!function(){for(var t=1,e=0,i=0;24>i;i++){s[t+5*e]=(i+1)*(i+2)/2%64;var r=(2*t+3*e)%5;t=e%5,e=r}for(t=0;5>t;t++)for(e=0;5>e;e++)h[t+5*e]=e+(2*t+3*e)%5*5;for(t=1,e=0;24>e;e++){for(var n=r=i=0;7>n;n++){if(1&t){var u=(1<<n)-1;32>u?r^=1<<u:i^=1<<u-32}t=128&t?t<<1^113:t<<1}a[e]=o.create(i,r)}}();var u=[];!function(){for(var t=0;25>t;t++)u[t]=o.create()}(),e=e.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;25>e;e++)t[e]=new o.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){var i,r=this._state,n=this.blockSize/2;for(i=0;i<n;i++){var o=t[e+2*i],f=t[e+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8);var l=r[i];l.high^=f,l.low^=o}for(t=0;24>t;t++){for(n=0;5>n;n++){for(o=f=e=0;5>o;o++)e^=(l=r[n+5*o]).high,f^=l.low;(l=u[n]).high=e,l.low=f}for(n=0;5>n;n++)for(l=u[(n+4)%5],i=(e=u[(n+1)%5]).high,o=e.low,e=l.high^(i<<1|o>>>31),f=l.low^(o<<1|i>>>31),o=0;5>o;o++)(l=r[n+5*o]).high^=e,l.low^=f;for(i=1;25>i;i++)n=(l=r[i]).high,l=l.low,32>(o=s[i])?(e=n<<o|l>>>32-o,f=l<<o|n>>>32-o):(e=l<<o-32|n>>>64-o,f=n<<o-32|l>>>64-o),(l=u[h[i]]).high=e,l.low=f;for(l=u[0],e=r[0],l.high=e.high,l.low=e.low,n=0;5>n;n++)for(o=0;5>o;o++)l=r[i=n+5*o],e=u[i],i=u[(n+1)%5+5*o],f=u[(n+2)%5+5*o],l.high=e.high^~i.high&f.high,l.low=e.low^~i.low&f.low;l=r[0],e=a[t],l.high^=e.high,l.low^=e.low}},_doFinalize:function(){var e=this._data,r=e.words,n=8*e.sigBytes,o=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(t.ceil((n+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*r.length,this._process(),e=this._state,n=(r=this.cfg.outputLength/8)/8,o=[];for(var s=0;s<n;s++){var h=e[s],a=h.high;a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),h=16711935&((h=h.low)<<8|h>>>24)|4278255360&(h<<24|h>>>8),o.push(h),o.push(a)}return new i.init(o,r)},clone:function(){for(var t=n.clone.call(this),e=t._state=this._state.slice(0),i=0;25>i;i++)e[i]=e[i].clone();return t}}),r.SHA3=n._createHelper(e),r.HmacSHA3=n._createHmacHelper(e)}(Math),r.SHA3)},function(t,e,i){var r;t.exports=(r=i(40),function(t){function e(t,e){return t<<e|t>>>32-e}var i=(t=r.lib).WordArray,n=t.Hasher;t=r.algo;var o=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),u=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]);t=t.RIPEMD160=n.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,i){for(var r=0;16>r;r++){var n=i+r,l=t[n];t[n]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}n=this._hash.words,l=u.words;var d,c,p,m,g,b=f.words,v=o.words,y=s.words,M=h.words,w=a.words,_=d=n[0],S=c=n[1],k=p=n[2],A=m=n[3],E=g=n[4];for(r=0;80>r;r+=1){var x=d+t[i+v[r]]|0;x=16>r?x+((c^p^m)+l[0]):32>r?x+((c&p|~c&m)+l[1]):48>r?x+(((c|~p)^m)+l[2]):64>r?x+((c&m|p&~m)+l[3]):x+((c^(p|~m))+l[4]),x=(x=e(x|=0,M[r]))+g|0,d=g,g=m,m=e(p,10),p=c,c=x,x=_+t[i+y[r]]|0,x=16>r?x+((S^(k|~A))+b[0]):32>r?x+((S&A|k&~A)+b[1]):48>r?x+(((S|~k)^A)+b[2]):64>r?x+((S&k|~S&A)+b[3]):x+((S^k^A)+b[4]),x=(x=e(x|=0,w[r]))+E|0,_=E,E=A,A=e(k,10),k=S,S=x}x=n[1]+p+A|0,n[1]=n[2]+m+E|0,n[2]=n[3]+g+_|0,n[3]=n[4]+d+S|0,n[4]=n[0]+c+k|0,n[0]=x},_doFinalize:function(){var t=this._data,e=t.words,i=8*this._nDataBytes,r=8*t.sigBytes;for(e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),t.sigBytes=4*(e.length+1),this._process(),e=(t=this._hash).words,i=0;5>i;i++)r=e[i],e[i]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8);return t},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t}}),r.RIPEMD160=n._createHelper(t),r.HmacRIPEMD160=n._createHmacHelper(t)}(Math),r.RIPEMD160)},function(t,e,i){var r;t.exports=(r=i(40),i(90),i(91),function(){var t=r.lib,e=t.Base,i=t.WordArray,n=(t=r.algo).HMAC,o=t.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:t.SHA1,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg;t=n.create(r.hasher,t);var o=i.create(),s=i.create([1]),h=o.words,a=s.words,u=r.keySize;for(r=r.iterations;h.length<u;){var f=t.update(e).finalize(s);t.reset();for(var l=f.words,d=l.length,c=f,p=1;p<r;p++){c=t.finalize(c),t.reset();for(var m=c.words,g=0;g<d;g++)l[g]^=m[g]}o.concat(f),a[0]++}return o.sigBytes=4*u,o}});r.PBKDF2=function(t,e,i){return o.create(i).compute(t,e)}}(),r.PBKDF2)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.CFB=function(){function t(t,e,i,r){var n;for((n=this._iv)?(n=n.slice(0),this._iv=void 0):n=this._prevBlock,r.encryptBlock(n,0),r=0;r<i;r++)t[e+r]^=n[r]}var e=r.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize;t.call(this,e,i,n,r),this._prevBlock=e.slice(i,i+n)}}),e.Decryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize,o=e.slice(i,i+n);t.call(this,e,i,n,r),this._prevBlock=o}}),e}(),r.mode.CFB)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.CTR=function(){var t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,n=this._iv,o=this._counter;for(n&&(o=this._counter=n.slice(0),this._iv=void 0),n=o.slice(0),i.encryptBlock(n,0),o[r-1]=o[r-1]+1|0,i=0;i<r;i++)t[e+i]^=n[i]}});return t.Decryptor=e,t}(),r.mode.CTR)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.CTRGladman=function(){function t(t){if(255==(t>>24&255)){var e=t>>16&255,i=t>>8&255;t&=255,255===e?(e=0,255===i?(i=0,255===t?t=0:++t):++i):++e,t=0+(e<<16)+(i<<8)+t}else t+=16777216;return t}var e=r.lib.BlockCipherMode.extend(),i=e.Encryptor=e.extend({processBlock:function(e,i){var r=this._cipher,n=r.blockSize,o=this._iv,s=this._counter;for(o&&(s=this._counter=o.slice(0),this._iv=void 0),0===((o=s)[0]=t(o[0]))&&(o[1]=t(o[1])),s=s.slice(0),r.encryptBlock(s,0),r=0;r<n;r++)e[i+r]^=s[r]}});return e.Decryptor=i,e}(),r.mode.CTRGladman)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.mode.OFB=function(){var t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,r=i.blockSize,n=this._iv,o=this._keystream;for(n&&(o=this._keystream=n.slice(0),this._iv=void 0),i.encryptBlock(o,0),i=0;i<r;i++)t[e+i]^=o[i]}});return t.Decryptor=e,t}(),r.mode.OFB)},function(t,e,i){var r,n;t.exports=(n=i(40),i(42),n.mode.ECB=((r=n.lib.BlockCipherMode.extend()).Encryptor=r.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),r.Decryptor=r.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),r),n.mode.ECB)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.AnsiX923={pad:function(t,e){var i=t.sigBytes;e*=4,i=i+(e-=i%e)-1,t.clamp(),t.words[i>>>2]|=e<<24-i%4*8,t.sigBytes+=e},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},r.pad.Ansix923)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.Iso10126={pad:function(t,e){e*=4,e-=t.sigBytes%e,t.concat(r.lib.WordArray.random(e-1)).concat(r.lib.WordArray.create([e<<24],1))},unpad:function(t){t.sigBytes-=255&t.words[t.sigBytes-1>>>2]}},r.pad.Iso10126)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.Iso97971={pad:function(t,e){t.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(t,e)},unpad:function(t){r.pad.ZeroPadding.unpad(t),t.sigBytes--}},r.pad.Iso97971)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.ZeroPadding={pad:function(t,e){e*=4,t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var e,i=t.words;for(e=t.sigBytes-1;0<=e;e--)if(i[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},r.pad.ZeroPadding)},function(t,e,i){var r;t.exports=(r=i(40),i(42),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)},function(t,e,i){var r;t.exports=(r=i(40),i(42),function(t){var e=r.lib.CipherParams,i=r.enc.Hex;r.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){return t=i.parse(t),e.create({ciphertext:t})}}}(),r.format.Hex)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){var t=r.lib.BlockCipher,e=r.algo,i=[],n=[],o=[],s=[],h=[],a=[],u=[],f=[],l=[],d=[];!function(){for(var t=[],e=0;256>e;e++)t[e]=128>e?e<<1:e<<1^283;var r=0,c=0;for(e=0;256>e;e++){var p=c^c<<1^c<<2^c<<3^c<<4;p=p>>>8^255&p^99,i[r]=p,n[p]=r;var m=t[r],g=t[m],b=t[g],v=257*t[p]^16843008*p;o[r]=v<<24|v>>>8,s[r]=v<<16|v>>>16,h[r]=v<<8|v>>>24,a[r]=v,v=16843009*b^65537*g^257*m^16843008*r,u[p]=v<<24|v>>>8,f[p]=v<<16|v>>>16,l[p]=v<<8|v>>>24,d[p]=v,r?(r=m^t[t[t[b^m]]],c^=t[t[c]]):r=c=1}}();var c=[0,1,2,4,8,16,32,64,128,27,54];e=e.AES=t.extend({_doReset:function(){var t;if(!this._nRounds||this._keyPriorReset!==this._key){var e=this._keyPriorReset=this._key,r=e.words,n=e.sigBytes/4,o=4*((this._nRounds=n+6)+1),s=this._keySchedule=[];for(t=0;t<o;t++)t<n?s[t]=r[t]:(e=s[t-1],t%n?6<n&&4==t%n&&(e=i[e>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[255&e]):(e=i[(e=e<<8|e>>>24)>>>24]<<24|i[e>>>16&255]<<16|i[e>>>8&255]<<8|i[255&e],e^=c[t/n|0]<<24),s[t]=s[t-n]^e);for(r=this._invKeySchedule=[],n=0;n<o;n++)t=o-n,e=n%4?s[t]:s[t-4],r[n]=4>n||4>=t?e:u[i[e>>>24]]^f[i[e>>>16&255]]^l[i[e>>>8&255]]^d[i[255&e]]}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,h,a,i)},decryptBlock:function(t,e){var i=t[e+1];t[e+1]=t[e+3],t[e+3]=i,this._doCryptBlock(t,e,this._invKeySchedule,u,f,l,d,n),i=t[e+1],t[e+1]=t[e+3],t[e+3]=i},_doCryptBlock:function(t,e,i,r,n,o,s,h){for(var a=this._nRounds,u=t[e]^i[0],f=t[e+1]^i[1],l=t[e+2]^i[2],d=t[e+3]^i[3],c=4,p=1;p<a;p++){var m=r[u>>>24]^n[f>>>16&255]^o[l>>>8&255]^s[255&d]^i[c++],g=r[f>>>24]^n[l>>>16&255]^o[d>>>8&255]^s[255&u]^i[c++],b=r[l>>>24]^n[d>>>16&255]^o[u>>>8&255]^s[255&f]^i[c++];d=r[d>>>24]^n[u>>>16&255]^o[f>>>8&255]^s[255&l]^i[c++],u=m,f=g,l=b}m=(h[u>>>24]<<24|h[f>>>16&255]<<16|h[l>>>8&255]<<8|h[255&d])^i[c++],g=(h[f>>>24]<<24|h[l>>>16&255]<<16|h[d>>>8&255]<<8|h[255&u])^i[c++],b=(h[l>>>24]<<24|h[d>>>16&255]<<16|h[u>>>8&255]<<8|h[255&f])^i[c++],d=(h[d>>>24]<<24|h[u>>>16&255]<<16|h[f>>>8&255]<<8|h[255&l])^i[c++],t[e]=m,t[e+1]=g,t[e+2]=b,t[e+3]=d},keySize:8}),r.AES=t._createHelper(e)}(),r.AES)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(t,e){e&=this._lBlock>>>t^this._rBlock,this._rBlock^=e,this._lBlock^=e<<t}function e(t,e){e&=this._rBlock>>>t^this._lBlock,this._lBlock^=e,this._rBlock^=e<<t}var i=r.lib,n=i.WordArray;i=i.BlockCipher;var o=r.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],h=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],i=0;56>i;i++){var r=s[i]-1;e[i]=t[r>>>5]>>>31-r%32&1}for(t=this._subKeys=[],r=0;16>r;r++){var n=t[r]=[],o=a[r];for(i=0;24>i;i++)n[i/6|0]|=e[(h[i]-1+o)%28]<<31-i%6,n[4+(i/6|0)]|=e[28+(h[i+24]-1+o)%28]<<31-i%6;for(n[0]=n[0]<<1|n[0]>>>31,i=1;7>i;i++)n[i]>>>=4*(i-1)+3;n[7]=n[7]<<5|n[7]>>>27}for(e=this._invSubKeys=[],i=0;16>i;i++)e[i]=t[15-i]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(i,r,n){this._lBlock=i[r],this._rBlock=i[r+1],t.call(this,4,252645135),t.call(this,16,65535),e.call(this,2,858993459),e.call(this,8,16711935),t.call(this,1,1431655765);for(var o=0;16>o;o++){for(var s=n[o],h=this._lBlock,a=this._rBlock,l=0,d=0;8>d;d++)l|=u[d][((a^s[d])&f[d])>>>0];this._lBlock=a,this._rBlock=h^l}n=this._lBlock,this._lBlock=this._rBlock,this._rBlock=n,t.call(this,1,1431655765),e.call(this,8,16711935),e.call(this,2,858993459),t.call(this,16,65535),t.call(this,4,252645135),i[r]=this._lBlock,i[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=i._createHelper(l),o=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&6>t.length)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),i=4>t.length?t.slice(0,2):t.slice(2,4);t=6>t.length?t.slice(0,2):t.slice(4,6),this._des1=l.createEncryptor(n.create(e)),this._des2=l.createEncryptor(n.create(i)),this._des3=l.createEncryptor(n.create(t))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2}),r.TripleDES=i._createHelper(o)}(),r.TripleDES)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(){for(var t=this._S,e=this._i,i=this._j,r=0,n=0;4>n;n++){i=(i+t[e=(e+1)%256])%256;var o=t[e];t[e]=t[i],t[i]=o,r|=t[(t[e]+t[i])%256]<<24-8*n}return this._i=e,this._j=i,r}var e=r.lib.StreamCipher,i=r.algo,n=i.RC4=e.extend({_doReset:function(){var t=this._key,e=t.words;t=t.sigBytes;for(var i=this._S=[],r=0;256>r;r++)i[r]=r;for(var n=r=0;256>r;r++){var o=r%t;n=(n+i[r]+(e[o>>>2]>>>24-o%4*8&255))%256,o=i[r],i[r]=i[n],i[n]=o}this._i=this._j=0},_doProcessBlock:function(e,i){e[i]^=t.call(this)},keySize:8,ivSize:0});r.RC4=e._createHelper(n),i=i.RC4Drop=n.extend({cfg:n.cfg.extend({drop:192}),_doReset:function(){n._doReset.call(this);for(var e=this.cfg.drop;0<e;e--)t.call(this)}}),r.RC4Drop=e._createHelper(i)}(),r.RC4)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(){for(var t=this._X,e=this._C,i=0;8>i;i++)n[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,i=0;8>i;i++){var r=t[i]+e[i],s=65535&r,h=r>>>16;o[i]=((s*s>>>17)+s*h>>>15)+h*h^((4294901760&r)*r|0)+((65535&r)*r|0)}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}var e=r.lib.StreamCipher,i=[],n=[],o=[],s=r.algo.Rabbit=e.extend({_doReset:function(){for(var e=this._key.words,i=this.cfg.iv,r=0;4>r;r++)e[r]=16711935&(e[r]<<8|e[r]>>>24)|4278255360&(e[r]<<24|e[r]>>>8);var n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];for(e=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]],r=this._b=0;4>r;r++)t.call(this);for(r=0;8>r;r++)e[r]^=n[r+4&7];if(i){n=(i=16711935&((i=(r=i.words)[0])<<8|i>>>24)|4278255360&(i<<24|i>>>8))>>>16|4294901760&(r=16711935&((r=r[1])<<8|r>>>24)|4278255360&(r<<24|r>>>8));var o=r<<16|65535&i;for(e[0]^=i,e[1]^=n,e[2]^=r,e[3]^=o,e[4]^=i,e[5]^=n,e[6]^=r,e[7]^=o,r=0;4>r;r++)t.call(this)}},_doProcessBlock:function(e,r){var n=this._X;for(t.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16,n=0;4>n;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});r.Rabbit=e._createHelper(s)}(),r.Rabbit)},function(t,e,i){var r;t.exports=(r=i(40),i(59),i(60),i(52),i(42),function(){function t(){for(var t=this._X,e=this._C,i=0;8>i;i++)n[i]=e[i];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,i=0;8>i;i++){var r=t[i]+e[i],s=65535&r,h=r>>>16;o[i]=((s*s>>>17)+s*h>>>15)+h*h^((4294901760&r)*r|0)+((65535&r)*r|0)}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}var e=r.lib.StreamCipher,i=[],n=[],o=[],s=r.algo.RabbitLegacy=e.extend({_doReset:function(){var e=this._key.words,i=this.cfg.iv,r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16];e=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(var n=this._b=0;4>n;n++)t.call(this);for(n=0;8>n;n++)e[n]^=r[n+4&7];if(i){n=(i=16711935&((i=(r=i.words)[0])<<8|i>>>24)|4278255360&(i<<24|i>>>8))>>>16|4294901760&(r=16711935&((r=r[1])<<8|r>>>24)|4278255360&(r<<24|r>>>8));var o=r<<16|65535&i;for(e[0]^=i,e[1]^=n,e[2]^=r,e[3]^=o,e[4]^=i,e[5]^=n,e[6]^=r,e[7]^=o,n=0;4>n;n++)t.call(this)}},_doProcessBlock:function(e,r){var n=this._X;for(t.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16,n=0;4>n;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),e[r+n]^=i[n]},blockSize:4,ivSize:2});r.RabbitLegacy=e._createHelper(s)}(),r.RabbitLegacy)}]]);

Function Calls

None

Variables

None

Stats

MD5 221c9ac3d8bdcf0b7864130e1222e3f6
Eval Count 0
Decode Time 745 ms