diff --git a/module/Cms/Docs/release/2.3.0.md b/module/Cms/Docs/release/2.3.0.md index c66b88aa93bb2cf2579540b3eeb271f8f82fc8c3..361eb8abfa779d6c546a249b30c83f1584c76481 100644 --- a/module/Cms/Docs/release/2.3.0.md +++ b/module/Cms/Docs/release/2.3.0.md @@ -1,3 +1,5 @@ +栏目内容详情访问权限控制 +--- - 新增:栏目内容详情访问权限控制 diff --git a/module/Cms/config.json b/module/Cms/config.json index df8fc149eecfbb6e65a953578c153ce40402a5ca..aa374af8b678d4f537fcbc034ef8098f11879099 100644 --- a/module/Cms/config.json +++ b/module/Cms/config.json @@ -6,7 +6,7 @@ "Member", "Banner:>=1.1.0" ], - "version": "2.2.0", + "version": "2.3.0", "modstartVersion": ">=2.4.0", "author": "ModStart", "description": "提供通用的动态模型内容管理系统", diff --git a/module/ModuleStore/Asset/entry/moduleStore.js b/module/ModuleStore/Asset/entry/moduleStore.js index 81bee1204ece315a3813b3ced29ad9facd405b64..98cdb5cb205a935bc9d1f1798e19c9a6af918995 100644 --- a/module/ModuleStore/Asset/entry/moduleStore.js +++ b/module/ModuleStore/Asset/entry/moduleStore.js @@ -1 +1 @@ -!function(i){var r={};function n(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=i,n.c=r,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=window.__msCDN+"vendor/ModuleStore/",n(n.s=252)}([function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){var i;e&&(t.super_=e,(i=function(){}).prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t)}},function(t,e,i){var r=i(4),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");t=n(t);return void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e){var i,r,t=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===n||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:n}catch(t){i=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var a,h=[],u=!1,f=-1;function l(){u&&a&&(u=!1,a.length?h=a.concat(h):f=-1,h.length&&d())}function d(){if(!u){var t=s(l);u=!0;for(var e=h.length;e;){for(a=h,h=[];++f=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function c(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t: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 A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return R(t).length;default:if(r)return A(t).length;e=(""+e).toLowerCase(),r=!0}}function e(t,e,i){var r,n,o,s=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!i||i<0||r=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:b(t,e,i,r,n);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):b(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,r,n){var o=1,s=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n)for(var u=-1,f=i;f>>10&1023|55296),f=56320|1023&f),r.push(f),n+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;rt.length)throw new RangeError("Index out of range")}function M(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n>>8*(r?n:1-n)}function _(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n>>8*(r?n:3-n)&255}function S(t,e,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function k(t,e,i,r,n){return n||S(t,0,i,4),o.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,n){return n||S(t,0,i,8),o.write(t,e,i,r,52,8),i+8}I.Buffer=l,I.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},I.INSPECT_MAX_BYTES=50,l.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}}(),I.kMaxLength=i(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,i){return r(null,t,e,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,i){return r=null,e=e,i=i,h(t=t),!(t<=0)&&void 0!==e?"string"==typeof i?n(r,t).fill(e,i):n(r,t).fill(e):n(r,t);var r},l.allocUnsafe=function(t){return u(null,t)},l.allocUnsafeSlow=function(t){return u(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);ne&&(t+=" ... ")),""},l.prototype.compare=function(t,e,i,r,n){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),(e=void 0===e?0:e)<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),h=this.slice(r,n),u=t.slice(e,i),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,s,a,h,u,f,l=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;if((!r||(r=Number(r))>n)&&(r=n),(n=e.length)%2!=0)throw new TypeError("Invalid hex string");n/2>8,n.push(i%256),n.push(r);return n}(t,(a=this).length-o),a,o,s);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i=(n*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||w(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):_(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=0,o=1,s=0;for(this[e]=255&t;++n>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=i-1,o=1,s=0;for(this[e+n]=255&t;0<=--n&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):_(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return k(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return k(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,r){if(i=i||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var n,o=(r=t.length-e>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function R(t){return a.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(x,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,i,r){for(var n=0;n=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}.call(this,C(5))},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}(t.exports=i).equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){"use strict";var r=e,n=i(9),e=i(6),i=i(98);r.assert=e,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(t,e,i){var r=new Array(Math.max(t.bitLength(),i)+1);r.fill(0);for(var n=1<>1)-1>1)-h:h):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r,n=0,o=0;0>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function r(t){return 1===t.length?"0"+t:t}function s(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}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i,r,n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s>6|192,n[o++]=63&a|128):(r=s,55296!=(64512&(i=t).charCodeAt(r))||r<0||r+1>=i.length||56320!=(64512&i.charCodeAt(r+1))?n[o++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++s)),n[o++]=a>>18|240,n[o++]=a>>12&63|128),n[o++]=a>>6&63|128,n[o++]=63&a|128)}else for(s=0;s>>0}return n},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r>>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<>>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=t[e],o=r+t[e+1]>>>0;t[e]=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,r){return(e+r>>>0>>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,a){var h,u=0;return u+=(h=e+r>>>0)>>0)>>0>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,a,h,u){var f,l=0;return l+=(f=e+r>>>0)>>0)>>0)>>0>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,a,h,u){return e+r+o+a+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,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(186).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var r=i(1).Buffer,n=i(138).Transform,o=i(13).StringDecoder;function s(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(0)(s,n),s.prototype.update=function(t,e,i){"string"==typeof t&&(t=r.from(t,e));t=this._update(t);return this.hashMode?this:t=i?this._toString(t,i):t},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,i){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{i(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return e=t?this._toString(e,t,!0):e},s.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");t=this._decoder.write(t);return i&&(t+=this._decoder.end()),t},t.exports=s},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return h}),i.d(e,"a",function(){return u}),i(119),i(120);const r=i(225),n=(i(113),i(230),i(233).sprintf),o={specialchars:function(t){var e=[];if(!t)return"";if(0==t.length)return"";for(var i=0;i":e.push(">");break;case"&":e.push("&");break;case" ":e.push(" ");break;case'"':e.push(""");break;default:e.push(t.substr(i,1))}return e.join("")}},s={randomString(e){e=e||32;var i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=i.length,n="";for(let t=0;t(e="^"+e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*")+"$",new RegExp(e).test(t)),keywordsMatchWildcard:(t,e)=>(e=e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*"),new RegExp(e).test(t)),sprintf(){var t=Array.from(arguments);return n.call(null,...t)}};function a(t){return String.fromCharCode(t)}const h={domainUrl(t){t=t||"";var e=window.location.protocol+"//"+window.location.host;return t?e+"/"+t:e},urlencode(r){let n="",o="";for(let i=0;i?[]^`{|}~%".indexOf(t)?n+="%"+e.toString(16):n+=t}return n},urldecode(e){let i="";e+="";for(let t=0;th.parseQuery(t),getQuery(t,e=null,i){i=h.parseQuery(i);return t in i?i[t]:e},parseQuery:t=>(t=t||window.location.search,r.parse(t)),buildQuery:t=>r.stringify(t)},u={assign(e,i){e&&i&&Object.keys(e).map(t=>{e[t]=i[t]})},update(e,i){e&&i&&Object.keys(i).map(t=>{e[t]=i[t]})},equal:(t,e)=>JSON.stringify(t)===JSON.stringify(e),notEqual:(t,e)=>!u.equal(t,e),clone:t=>JSON.parse(JSON.stringify(t))};i(234)},function(t,e,i){"use strict";var r="object"==typeof Reflect?Reflect:null,h=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(n,o){return new Promise(function(t,e){function i(){void 0!==r&&n.removeListener("error",r),t([].slice.call(arguments))}var r;"error"!==o&&(r=function(t){n.removeListener(o,i),e(t)},n.once("error",r)),n.once(o,i)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){var n,o;return u(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener||i),n=t._events),o=n[e]),void 0===o?(o=n[e]=i,++t._eventsCount):("function"==typeof o?o=n[e]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),0<(i=f(t))&&o.length>i&&!o.warned&&(o.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,console&&console.warn&&console.warn(i))),t}function d(t,e,i){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},e=function(){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)}.bind(t);return e.listener=i,t.wrapFn=e}function c(t,e,i){t=t._events;if(void 0===t)return[];e=t[e];return void 0===e?[]:"function"==typeof e?i?[e.listener||e]:[e]:i?function(t){for(var e=new Array(t.length),i=0;i>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,i,r=this.lastTotal-this.lastNeed,e=(e=this,128!=(192&(i=t)[0])?(e.lastNeed=0,"�"):1o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(62),r=l(66);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));e=8*this._len;e<=4294967295?this._block.writeUInt32BE(e,this._blockSize-4):(this._block.writeUInt32BE((e-(i=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)),this._update(this._block);var i=this._hash();return t?i.toString(t):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){"use strict";var a={};function r(t,r,e){e=e||Error;var n,i,o,o=(o=n=e,(i=s).prototype=Object.create(o.prototype),(i.prototype.constructor=i).__proto__=o,s);function s(t,e,i){return n.call(this,"string"==typeof r?r:r(t,e,i))||this}o.prototype.name=e.name,o.prototype.code=t,a[t]=o}function h(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),2o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(92),r=l(96);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._delta8){e=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var i=0;i>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o>>24]^f[p>>>16&255]^l[m>>>8&255]^d[255&b]^e[g++],s=u[p>>>24]^f[m>>>16&255]^l[b>>>8&255]^d[255&c]^e[g++],a=u[m>>>24]^f[b>>>16&255]^l[c>>>8&255]^d[255&p]^e[g++],h=u[b>>>24]^f[c>>>16&255]^l[p>>>8&255]^d[255&m]^e[g++],c=o,p=s,m=a,b=h;return o=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^e[g++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&c])^e[g++],a=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[g++],h=(r[b>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4;i[s]=u=u>>>8^255&u^99;var f=t[r[u]=s],l=t[f],d=t[l],c=257*t[u]^16843008*u;n[0][s]=c<<24|c>>>8,n[1][s]=c<<16|c>>>16,n[2][s]=c<<8|c>>>24,n[3][s]=c,o[0][u]=(c=16843009*d^65537*l^257*f^16843008*s)<<24|c>>>8,o[1][u]=c<<16|c>>>16,o[2][u]=c<<8|c>>>24,o[3][u]=c,0===s?s=a=1:(s=f^t[t[t[d^f]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:o}}();function a(t){this._key=r(t),this._reset()}a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o>>24)>>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s],s^=l[o/e|0]<<24):6>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s]),n[o]=n[o-e]^s}for(var a=[],h=0;h>>24]]^d.INV_SUB_MIX[1][d.SBOX[f>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[f>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&f]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=a},a.prototype.encryptBlockRaw=function(t){return s(t=r(t),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},a.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;e=s(t,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},a.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=a},function(t,e,i){var l=i(1).Buffer,d=i(35);t.exports=function(t,e,i,r){if(l.isBuffer(t)||(t=l.from(t,"binary")),e&&8!==(e=!l.isBuffer(e)?l.from(e,"binary"):e).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var n=i/8,o=l.alloc(n),s=l.alloc(r||0),a=l.alloc(0);0>1]):s.mixedAdd(n[-u-1>>1].neg()):0>1]):s.add(n[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},o.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,a=this._wnafT2,h=this._wnafT3,u=0,f=0;f>1]:k<0&&(o=a[S][-k-1>>1].neg()),y="affine"===o.type?y.mixedAdd(o):y.add(o))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n({loading:!0,search:{tab:"store",priceType:"all",isRecommend:!1,categoryId:0,type:"",keywords:""},commandDialogMsgs:[],commandDialogRunStart:0,commandDialogRunElapse:0,commandDialogShow:!1,commandDialogFinish:!1,commandDialogTitle:"",memberUserShow:!1,memberUserLoading:!1,memberLoginCaptchaImage:null,memberLoginInfo:{username:"",password:"",captcha:"",agree:!1},storeApiToken:i.a.get("storeApiToken",""),memberUser:{id:0,username:"",avatar:""},categories:[],types:[],modules:[],storeConfig:{disable:!1},installVersionDialogShow:!1,installVersionReleases:[],installVersionModule:null}),watch:{memberUser:{handler(t,e){this.doLoad()},deep:!0}},computed:{filterModules(){return this.modules.filter(t=>{switch(this.search.tab){case"store":if(t._isLocal)return!1;break;case"installed":if(!t._isInstalled)return!1;break;case"enabled":if(!t._isEnabled)return!1;break;case"disabled":if(!t._isInstalled||t._isEnabled)return!1}if(this.search.isRecommend&&!t.isRecommend)return!1;if(this.search.type&&!t.types.includes(this.search.type))return!1;switch(this.search.priceType){case"free":if(t.isFee)return!1;break;case"fee":if(!t.isFee)return!1}return!(this.search.categoryId&&t.categoryId!==this.search.categoryId||this.search.keywords&&!t.title.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.name.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.description.toLowerCase().includes(this.search.keywords.toLowerCase()))})}},mounted(){this.doLoad(),this.doLoadStore(),setInterval(()=>{this.commandDialogRunElapse=parseInt(((new Date).getTime()-this.commandDialogRunStart)/1e3)},1e3)},methods:{versionCompare(t,e){var i=t.split("."),r=e.split(".");for(let t=0,e=Math.max(i.length,r.length);tparseInt(r[t]))return 1;if(r[t]&&!i[t]&&0{this.$dialog.tipError(t.msg)};r=r||n,o.ajax({url:`${window.__data.apiBase}/api/${t}`,dataType:"jsonp",timeout:1e4,data:Object.assign(e,{api_token:this.storeApiToken,modstartParam:JSON.stringify(window.__data.modstartParam)}),success:t=>{t.code?(1002===t.code&&this.doMemberLoginCaptchaRefresh(),!0!==r(t)&&n(t)):i(t)},error:t=>{!0!==r({code:-1,msg:"请求出现错误"})&&n({code:-1,msg:"请求出现错误"})},jsonp:"callback"})},doMemberUserLogout(){this.$dialog.confirm("确认退出?",()=>{this.storeApiToken="",i.a.set("storeApiToken",""),this.memberUserShow=!1,this.doLoadStore()})},doSubmitCheck(t){13===t.keyCode&&this.doMemberLoginSubmit()},doMemberLoginSubmit(){this.memberLoginInfo.agree?(this.$dialog.loadingOn(),this.doStoreRequest("store/login",this.memberLoginInfo,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("登录成功"),this.doLoadStoreMember(),this.memberLoginInfo.username="",this.memberLoginInfo.password="",this.memberLoginInfo.captcha="",this.memberUserShow=!1},t=>{this.$dialog.loadingOff()})):this.$dialog.tipError("请先同意使用协议")},doMemberLoginCaptchaRefresh(e){this.doStoreRequest("store/login_captcha",{},t=>{this.memberLoginCaptchaImage=t.data.image,e&&e()})},doMemberLoginShow(){0{this.$dialog.loadingOff(),this.memberUserShow=!0}))},doLoadStoreMember(){this.memberUserLoading=!0,this.doStoreRequest("store/member",{},t=>{this.memberUserLoading=!1,e.a.update(this.memberUser,t.data)},t=>{this.memberUserLoading=!1})},doLoadStore(){this.storeApiToken?this.doLoadStoreMember():this.doStoreRequest("store/config",{},t=>{this.storeApiToken=t.data.apiToken,i.a.set("storeApiToken",t.data.apiToken),this.doLoadStoreMember()})},doLoad(){this.$api.post(this.$url.admin("module_store/all"),{memberUserId:this.memberUser.id,apiToken:this.storeApiToken},t=>{this.loading=!1,this.categories=t.data.categories,this.types=t.data.types,this.modules=t.data.modules,this.storeConfig=t.data.storeConfig})},doCommand(t,e,i,r){r=r||null,null===(i=i||null)&&(this.commandDialogMsgs=[],this.commandDialogShow=!0,this.commandDialogFinish=!1),r&&(this.commandDialogTitle=r,this.commandDialogMsgs.push(' '+r)),this.commandDialogRunStart=(new Date).getTime(),this.commandDialogRunElapse=0,this.$api.post(this.$url.admin("module_store/"+t),{token:this.storeApiToken,step:i,data:JSON.stringify(e)},t=>(Array.isArray(t.data.msg)?this.commandDialogMsgs=this.commandDialogMsgs.concat(t.data.msg):this.commandDialogMsgs.push(t.data.msg),t.data.finish?(this.commandDialogFinish=!0,void this.doLoad()):void setTimeout(()=>{this.doCommand(t.data.command,t.data.data,t.data.step)},1e3)),t=>(this.commandDialogMsgs.push(' '+t.msg+""),this.commandDialogFinish=!0))},doInstallVersion(e){this.$dialog.loadingOn(),this.doStoreRequest("store/module_releases",{module:e.name},t=>{this.$dialog.loadingOff(),this.installVersionModule=e,this.installVersionReleases=t.data.releases,this.installVersionDialogShow=!0},t=>{this.$dialog.loadingOff()})},doInstall(t){this.doCommand("install",{module:t.name,version:t.latestVersion,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${t.latestVersion}`)},doInstallVersionSubmit(t,e){this.doCommand("install",{module:t.name,version:e,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${e}`)},doDisable(t){this.doCommand("disable",{module:t.name,version:t._localVersion},null,`禁用模块 ${t.title}(${t.name})`)},doEnable(t){this.doCommand("enable",{module:t.name,version:t._localVersion},null,`启用模块 ${t.title}(${t.name})`)},doUninstall(t){this.$dialog.confirm("确认卸载?",()=>{this.doCommand("uninstall",{module:t.name,version:t._localVersion,isLocal:t._isLocal},null,`卸载模块 ${t.title}(${t.name})`)})},doUpgrade(t){this.$dialog.confirm("确认升级?",()=>{this.doCommand("upgrade",{module:t.name,version:t.latestVersion},null,`升级模块 ${t.title}(${t.name}) V${t.latestVersion}`)})},doConfig(t){this.$dialog.dialog(this.$url.admin("module_store/config/"+t.name))}}}}.call(this,n(113))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});const r={set:function(t,e){window.localStorage.setItem(t,JSON.stringify(e))},get:function(t,e){var i=window.localStorage.getItem(t);try{return JSON.parse(i)}catch(t){}return e},getArray:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)?i:e}catch(t){}return e},getObject:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)||"object"!=typeof i?e:i}catch(t){}return e}}},function(t,e,i){"use strict";var r=i(0),n=i(61),o=i(1).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<>>32-e}function u(t,e,i,r,n,o,s){return h(t+(e&i|~e&r)+n+o|0,s)+e|0}function f(t,e,i,r,n,o,s){return h(t+(e&r|i&~r)+n+o|0,s)+e|0}function l(t,e,i,r,n,o,s){return h(t+(e^i^r)+n+o|0,s)+e|0}function d(t,e,i,r,n,o,s){return h(t+(i^(e|~r))+n+o|0,s)+e|0}r(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=u(i=this._a,o=this._b,n=this._c,r=this._d,t[0],3614090360,7),r=u(r,i,o,n,t[1],3905402710,12),n=u(n,r,i,o,t[2],606105819,17),o=u(o,n,r,i,t[3],3250441966,22);i=u(i,o,n,r,t[4],4118548399,7),r=u(r,i,o,n,t[5],1200080426,12),n=u(n,r,i,o,t[6],2821735955,17),o=u(o,n,r,i,t[7],4249261313,22),i=u(i,o,n,r,t[8],1770035416,7),r=u(r,i,o,n,t[9],2336552879,12),n=u(n,r,i,o,t[10],4294925233,17),o=u(o,n,r,i,t[11],2304563134,22),i=u(i,o,n,r,t[12],1804603682,7),r=u(r,i,o,n,t[13],4254626195,12),n=u(n,r,i,o,t[14],2792965006,17),i=f(i,o=u(o,n,r,i,t[15],1236535329,22),n,r,t[1],4129170786,5),r=f(r,i,o,n,t[6],3225465664,9),n=f(n,r,i,o,t[11],643717713,14),o=f(o,n,r,i,t[0],3921069994,20),i=f(i,o,n,r,t[5],3593408605,5),r=f(r,i,o,n,t[10],38016083,9),n=f(n,r,i,o,t[15],3634488961,14),o=f(o,n,r,i,t[4],3889429448,20),i=f(i,o,n,r,t[9],568446438,5),r=f(r,i,o,n,t[14],3275163606,9),n=f(n,r,i,o,t[3],4107603335,14),o=f(o,n,r,i,t[8],1163531501,20),i=f(i,o,n,r,t[13],2850285829,5),r=f(r,i,o,n,t[2],4243563512,9),n=f(n,r,i,o,t[7],1735328473,14),i=l(i,o=f(o,n,r,i,t[12],2368359562,20),n,r,t[5],4294588738,4),r=l(r,i,o,n,t[8],2272392833,11),n=l(n,r,i,o,t[11],1839030562,16),o=l(o,n,r,i,t[14],4259657740,23),i=l(i,o,n,r,t[1],2763975236,4),r=l(r,i,o,n,t[4],1272893353,11),n=l(n,r,i,o,t[7],4139469664,16),o=l(o,n,r,i,t[10],3200236656,23),i=l(i,o,n,r,t[13],681279174,4),r=l(r,i,o,n,t[0],3936430074,11),n=l(n,r,i,o,t[3],3572445317,16),o=l(o,n,r,i,t[6],76029189,23),i=l(i,o,n,r,t[9],3654602809,4),r=l(r,i,o,n,t[12],3873151461,11),n=l(n,r,i,o,t[15],530742520,16),i=d(i,o=l(o,n,r,i,t[2],3299628645,23),n,r,t[0],4096336452,6),r=d(r,i,o,n,t[7],1126891415,10),n=d(n,r,i,o,t[14],2878612391,15),o=d(o,n,r,i,t[5],4237533241,21),i=d(i,o,n,r,t[12],1700485571,6),r=d(r,i,o,n,t[3],2399980690,10),n=d(n,r,i,o,t[10],4293915773,15),o=d(o,n,r,i,t[1],2240044497,21),i=d(i,o,n,r,t[8],1873313359,6),r=d(r,i,o,n,t[15],4264355552,10),n=d(n,r,i,o,t[6],2734768916,15),o=d(o,n,r,i,t[13],1309151649,21),i=d(i,o,n,r,t[4],4149444226,6),r=d(r,i,o,n,t[11],3174756917,10),n=d(n,r,i,o,t[2],718787259,15),o=d(o,n,r,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-e}function k(t,e,i,r,n,o,s,a){return S(t+(e^i^r)+o+s|0,a)+n|0}function E(t,e,i,r,n,o,s,a){return S(t+(e&i|~e&r)+o+s|0,a)+n|0}function x(t,e,i,r,n,o,s,a){return S(t+((e|~i)^r)+o+s|0,a)+n|0}function A(t,e,i,r,n,o,s,a){return S(t+(e&r|i&~r)+o+s|0,a)+n|0}function R(t,e,i,r,n,o,s,a){return S(t+(e^(i|~r))+o+s|0,a)+n|0}n(s,o),s.prototype._update=function(){for(var t=b,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,s=0|this._e,a=0|this._a,h=0|this._b,u=0|this._c,f=0|this._d,l=0|this._e,d=0;d<80;d+=1)var c,p=d<16?(c=k(i,r,n,o,s,t[g[d]],M[0],y[d]),R(a,h,u,f,l,t[v[d]],_[0],w[d])):d<32?(c=E(i,r,n,o,s,t[g[d]],M[1],y[d]),A(a,h,u,f,l,t[v[d]],_[1],w[d])):d<48?(c=x(i,r,n,o,s,t[g[d]],M[2],y[d]),x(a,h,u,f,l,t[v[d]],_[2],w[d])):d<64?(c=A(i,r,n,o,s,t[g[d]],M[3],y[d]),E(a,h,u,f,l,t[v[d]],_[3],w[d])):(c=R(i,r,n,o,s,t[g[d]],M[4],y[d]),k(a,h,u,f,l,t[v[d]],_[4],w[d])),i=s,s=o,o=S(n,10),n=r,r=c,a=l,l=f,f=S(u,10),u=h,h=p;var m=this._b+n+f|0;this._b=this._c+o+l|0,this._c=this._d+s+a|0,this._d=this._e+i+h|0,this._e=this._a+r+u|0,this._a=m},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this._strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this._strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function o(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i._strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modrn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>8&255),i>16&255),6===o?(i>24&255),o=r=0):(r=s>>>24,o+=2)}if(i>8&255),0<=i&&(t[i--]=s>>16&255),6===o?(0<=i&&(t[i--]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(0<=i)for(t[i--]=r;0<=i;)t[i--]=0},Math.clz32?b.prototype._countBits=function(t){return 32-Math.clz32(t)}:b.prototype._countBits=function(t){var e=t,t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this._strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function h(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i._strip()}function u(t,e,i){return h(t,e,i)}Math.imul||(a=o),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?a:i<63?o:i<1024?h:u)(this,t,e)},b.prototype.mul=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},b.prototype.mulf=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),u(this,t,e)},b.prototype.imul=function(t){return this.clone().mulTo(t,this)},b.prototype.imuln=function(t){var e=t<0;m("number"==typeof(t=e?-t:t)),m(t<67108864);for(var i=0,r=0;r>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this._strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modrn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(i*r+(0|this.words[n]))%t;return e?-r:r},b.prototype.modn=function(t){return this.modrn(t)},b.prototype.idivn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/t|0,i=n%t}return this._strip(),e?this.ineg():this},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return f[t]=e},_.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(r(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},_.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new S(t)},e(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,E(15)(t))},function(t,e,i){"use strict";e.version=i(185).version,e.utils=i(7),e.rand=i(45),e.curve=i(99),e.curves=i(51),e.ec=i(197),e.eddsa=i(201)},function(t,e,i){"use strict";var r,n=e,e=i(52),o=i(99),s=i(7).assert;function a(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,i){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var t=new a(i);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t}),t}})}n.PresetCurve=a,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(196)}catch(t){r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,i){e.utils=i(8),e.common=i(26),e.sha=i(190),e.ripemd=i(194),e.hmac=i(195),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(s,t,a){"use strict";!function(t){var e,i=a(4),r=i.Buffer,n={};for(e in i)i.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(n[e]=i[e]);var o=n.Buffer={};for(e in r)r.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(o[e]=r[e]);if(n.Buffer.prototype=r.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,i)}),o.alloc||(o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||2*(1<<30)<=t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=r(t);return e&&0!==e.length?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t}),!n.kStringMaxLength)try{n.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(t){}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),s.exports=n}.call(this,a(2))},function(t,e,i){"use strict";const a=i(55).Reporter,r=i(27).EncoderBuffer,h=i(27).DecoderBuffer,n=i(6),o=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(t,e,i){const r={};this._baseState=r,r.name=i,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,i={};f.forEach(function(t){i[t]=e[t]});const t=new this.constructor(i.parent);return t._baseState=i,t},u.prototype._wrap=function(){const i=this._baseState;s.forEach(function(e){this[e]=function(){const t=new this.constructor(this);return i.children.push(t),t[e].apply(t,arguments)}},this)},u.prototype._init=function(t){const e=this._baseState;n(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),n.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){const 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&&(n(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(n(null===e.args),e.args=t,e.reverseArgs=t.map(function(i){if("object"!=typeof i||i.constructor!==Object)return i;const r={};return Object.keys(i).forEach(function(t){t==(0|t)&&(t|=0);var e=i[t];r[e]=t}),r}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(i){u.prototype[i]=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return n(null===t.tag),t.tag=i,this._useArgs(e),this}}),u.prototype.use=function(t){n(t);const e=this._baseState;return n(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){const e=this._baseState;return n(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){const e=this._baseState;return n(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return n(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(t){const e=this._baseState;return n(null===e.use),e.contains=t,this},u.prototype._decode=function(e,i){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,i));let n,o=r.default,s=!0,t=null;if(null!==r.key&&(t=e.enterKey(r.key)),r.optional){let t=null;if(null!==r.explicit?t=r.explicit:null!==r.implicit?t=r.implicit:null!==r.tag&&(t=r.tag),null!==t||r.any){if(s=this._peekTag(e,t,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const i=this._decodeTag(e,r.explicit);if(e.isError(i))return i;e=i}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(i&&i.track&&null!==r.tag&&i.track(e.path(),n,e.length,"tagged"),i&&i.track&&null!==r.tag&&i.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(t){t._decode(e,i)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new h(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,i)}}return r.obj&&s&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==s?null!==t&&e.exitKey(t):e.leaveKey(t,r.key,o),o},u.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)},u.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),n(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},u.prototype._decodeChoice=function(r,n){const o=this._baseState;let s=null,a=!1;return Object.keys(o.choice).some(function(t){const e=r.save(),i=o.choice[t];try{const o=i._decode(r,n);if(r.isError(o))return!1;s={type:t,value:o},a=!0}catch(t){return r.restore(e),!1}return!0},this),a?s:r.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},u.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){t=this._encodeValue(t,e,i);return void 0===t||this._skipDefault(t,e,i)?void 0:t}},u.prototype._encodeValue=function(i,r,t){const e=this._baseState;if(null===e.parent)return e.children[0]._encode(i,r||new a);let n=null;if(this.reporter=r,e.optional&&void 0===i){if(null===e.default)return;i=e.default}let o=null,s=!1;if(e.any)n=this._createEncoderBuffer(i);else if(e.choice)n=this._encodeChoice(i,r);else if(e.contains)o=this._getUse(e.contains,t)._encode(i,r),s=!0;else if(e.children)o=e.children.map(function(t){if("null_"===t._baseState.tag)return t._encode(null,r,i);if(null===t._baseState.key)return r.error("Child should have a key");var e=r.enterKey(t._baseState.key);if("object"!=typeof i)return r.error("Child expected, but input is not object");t=t._encode(i[t._baseState.key],r,i);return r.leaveKey(e),t},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return r.error("Too many args for : "+e.tag);if(!Array.isArray(i))return r.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,o=this._createEncoderBuffer(i.map(function(t){var e=this._baseState;return this._getUse(e.args[0],i)._encode(t,r)},t))}else null!==e.use?n=this._getUse(e.use,t)._encode(i,r):(o=this._encodePrimitive(e.tag,i),s=!0);if(!e.any&&null===e.choice){const i=null!==e.implicit?e.implicit:e.tag,t=null===e.implicit?"universal":"context";null===i?null===e.use&&r.error("Tag could be omitted only for .use()"):null===e.use&&(n=this._encodeComposite(i,s,t,o))}return null!==e.explicit&&(n=this._encodeComposite(e.explicit,!1,"context",n)),n},u.prototype._encodeChoice=function(t,e){const i=this._baseState,r=i.choice[t.type];return r||n(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},u.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 new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,i){"use strict";const r=i(0);function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}(e.Reporter=n).prototype.isError=function(t){return t instanceof o},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){const e=this._reporterState,i=t instanceof o;if(t=i?t:new o(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},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){"use strict";function r(i){const r={};return Object.keys(i).forEach(function(t){(0|t)==t&&(t|=0);var e=i[t];r[e]=t}),r}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(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=r(e.tag)},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(220).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){t.exports=function(t){function n(t,e){this.name=e,this.path=t,this.keys=[],this.fns=[],this.params={},this.regex=i(this.path,this.keys,!1,!1)}var o,s=[],a={},e=t.routie;n.prototype.addHandler=function(t){this.fns.push(t)},n.prototype.removeHandler=function(t){for(var e=0,i=this.fns.length;e=this._blockSize;){for(var n=this._blockOffset;ne.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[l-7]+(((e=i[l-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+i[l-16];for(var d=0;d<64;++d)var c=f+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(u^a&(h^u))+m[d]+i[d]|0,p=0|((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n|o&(r|n)),f=u,u=h,h=a,a=s+c|0,s=o,o=n,n=r,r=c+p|0;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=h+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}function U(t,e,i){return i^t&(e^i)}function z(t,e,i){return t&e|i&(t|e)}function F(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function H(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function Z(t,e){return t>>>0>>0?1:0}r(a,n),a.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},a.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,a=0|this._fh,h=0|this._gh,u=0|this._hh,f=0|this._al,l=0|this._bl,d=0|this._cl,c=0|this._dl,p=0|this._el,m=0|this._fl,b=0|this._gl,g=0|this._hl,v=0;v<32;v+=2)e[v]=t.readInt32BE(4*v),e[v+1]=t.readInt32BE(4*v+4);for(;v<160;v+=2){var y=e[v-30],w=e[v-30+1],M=(y>>>1|w<<31)^(y>>>8|w<<24)^y>>>7,_=(w>>>1|y<<31)^(w>>>8|y<<24)^(w>>>7|y<<25),S=(y=e[v-4],w=e[v-4+1],(y>>>19|w<<13)^(w>>>29|y<<3)^y>>>6),k=(w>>>19|y<<13)^(y>>>29|w<<3)^(w>>>6|y<<26),E=e[v-14],x=e[v-14+1],w=e[v-32],y=e[v-32+1],A=_+x|0,R=(R=(R=M+E+Z(A,_)|0)+S+Z(A=A+k|0,k)|0)+w+Z(A=A+y|0,y)|0;e[v]=R,e[v+1]=A}for(var T=0;T<160;T+=2){R=e[T];var A=e[T+1],I=z(i,r,n),C=z(f,l,d),B=F(i,f),L=F(f,i),O=H(s,p),j=H(p,s),P=q[T+1],D=U(s,a,h),N=U(p,m,b),j=g+j|0,O=(O=(O=(O=u+O+Z(j,g)|0)+D+Z(j=j+N|0,N)|0)+q[T]+Z(j=j+P|0,P)|0)+R+Z(j=j+A|0,A)|0,C=L+C|0,L=B+I+Z(C,L)|0,u=h,g=b,h=a,b=m,a=s,m=p,s=o+O+Z(p=c+j|0,c)|0,o=n,c=d,n=r,d=l,r=i,l=f,i=O+L+Z(f=j+C|0,j)|0}this._al=this._al+f|0,this._bl=this._bl+l|0,this._cl=this._cl+d|0,this._dl=this._dl+c|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+b|0,this._hl=this._hl+g|0,this._ah=this._ah+i+Z(this._al,f)|0,this._bh=this._bh+r+Z(this._bl,l)|0,this._ch=this._ch+n+Z(this._cl,d)|0,this._dh=this._dh+o+Z(this._dl,c)|0,this._eh=this._eh+s+Z(this._el,p)|0,this._fh=this._fh+a+Z(this._fl,m)|0,this._gh=this._gh+h+Z(this._gl,b)|0,this._hh=this._hh+u+Z(this._hl,g)|0},a.prototype._hash=function(){var r=o.allocUnsafe(64);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=a},function(I,t,C){"use strict";!function(t,b){var g=C(28);I.exports=n;var o,v=C(60);n.ReadableState=r,C(12).EventEmitter;function y(t,e){return t.listeners(e).length}var i=C(71),l=C(1).Buffer,d=t.Uint8Array||function(){},e=Object.create(C(24));e.inherits=C(0);var s,t=C(139),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},a=C(140),t=C(72);e.inherits(n,i);var h=["error","close","destroy","pause","resume"];function r(t,e){t=t||{};var i=e instanceof(o=o||C(14));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,e=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||C(13).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function n(t){if(o=o||C(14),!(this instanceof n))return new n(t);this._readableState=new r(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function u(t,e,i,r,n){var o,s,a,h,u,f=t._readableState;return null===e?(f.reading=!1,a=t,(h=f).ended||(!h.decoder||(u=h.decoder.end())&&u.length&&(h.buffer.push(u),h.length+=h.objectMode?1:u.length),h.ended=!0,p(a))):(n||(o=f,n=a=e,o=s=l.isBuffer(n)||n instanceof d||"string"==typeof a||void 0===a||o.objectMode?s:new TypeError("Invalid non-string/buffer chunk")),o?t.emit("error",o):f.objectMode||e&&0e.highWaterMark&&(e.highWaterMark=(8388608<=(i=t)?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function p(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(m,t):m(t))}function m(t){w("emit readable"),t.emit("readable"),E(t)}function M(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(_,t,e))}function _(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):(i=t,t=e.buffer,e=e.decoder,io.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=l.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(i,t),n=r),n);var i,r,n}function A(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?A:p)(this),null;if(0===(t=f(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;return w("need readable",r),(0===e.length||e.length-ti?e=("rmd160"===t?new h:u(t)).update(e).digest():e.lengtho?e=n(e):e.length>>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 a=0;a<=24;a+=8)n<<=1,n|=e>>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+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;s<4;s++)for(var a=24;0<=a;a-=8)n<<=1,n|=e>>>a+s&1,n<<=1,n|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+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 a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+s&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var h=[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,r){for(var n=0,o=0,s=h.length>>>1,a=0;a>>h[a]&1;for(a=s;a>>h[a]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.expand=function(t,e,i){for(var r=0,n=0,r=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)r<<=6,r|=t>>>o&63;for(o=11;3<=o;o-=4)n|=t>>>o&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>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;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[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>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.length>>1],i=f.r28shl(i,o),r=f.r28shl(r,o);f.pc2(i,r,t.keys,n)}},a.prototype._update=function(t,e,i,r){var n=this._desState,o=f.readUInt32BE(t,e),e=f.readUInt32BE(t,e+4);f.ip(o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,e,n.tmp,0):this._decrypt(n,o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],f.writeUInt32BE(i,o,r),f.writeUInt32BE(i,e,r+4)},a.prototype._pad=function(t,e){for(var i=t.length-e,r=e;r>>0,o=u}f.rip(s,o,r,n)},a.prototype._decrypt=function(t,e,i,r,n){for(var o=i,s=e,a=t.keys.length-2;0<=a;a-=2){var h=t.keys[a],u=t.keys[a+1];f.expand(o,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];h=f.substitute(h,u),u=o,o=(s^f.permute(h))>>>0,s=u}f.rip(o,s,r,n)}},function(t,e,i){var h=i(25),u=i(1).Buffer,f=i(85);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),r=t._cache.length;t._cache=u.concat([t._cache,u.allocUnsafe(16*i)]);for(var n=0;nt;)i.ishrn(1);if(i.isEven()&&i.iadd(h),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(f))for(;i.mod(l).cmp(d);)i.iadd(p)}else for(;i.mod(s).cmp(c);)i.iadd(p);if(b(r=i.shrn(1))&&b(i)&&g(r)&&g(i)&&a.test(r)&&a.test(i))return i}}},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(168).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var c=i(169),r=i(45);function n(t){this.rand=t||new r.Rand}(t.exports=n).create=function(t){return new n(t)},n.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new c(this.rand.generate(i))}while(0<=r.cmp(t));return r},n.prototype._randrange=function(t,e){e=e.sub(t);return t.add(this._randbelow(e))},n.prototype.test=function(t,e,i){var r=t.bitLength(),n=c.mont(t),o=new c(1).toRed(n);e=e||Math.max(1,r/48|0);for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);0e.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>8,n=255&n;o?i.push(o,n):i.push(n)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){"use strict";e.base=i(31),e.short=i(187),e.mont=i(188),e.edwards=i(189)},function(t,e,i){"use strict";var r=i(8).rotr32;function n(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}function s(t,e,i){return t^e^i}e.ft_1=function(t,e,i,r){return 0===t?n(e,i,r):1===t||3===t?e^i^r:2===t?o(e,i,r):void 0},e.ch32=n,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,i){"use strict";var r=i(8),n=i(26),o=i(100),p=i(6),m=r.sum32,b=r.sum32_4,g=r.sum32_5,v=o.ch32,y=o.maj32,w=o.s0_256,M=o.s1_256,_=o.g0_256,S=o.g1_256,s=n.BlockHash,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function h(){if(!(this instanceof h))return new h;s.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=a,this.W=new Array(64)}r.inherits(h,s),(t.exports=h).blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){"use strict";const r=e;r.der=i(106),r.pem=i(207)},function(t,e,i){"use strict";const r=i(0),s=i(53).Buffer,n=i(54),a=i(56);function o(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){n.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(t.exports=o).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(h,n),h.prototype._encodeComposite=function(t,e,i,r){i=function(t,e,i,r){let n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return 31<=n?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=a.tagClassByName[i||"universal"]<<6,n)}(t,e,i,this.reporter);if(r.length<128){const t=s.alloc(2);return t[0]=i,t[1]=r.length,this._createEncoderBuffer([t,r])}let n=1;for(let t=r.length;256<=t;t>>=8)n++;const o=s.alloc(2+n);o[0]=i,o[1]=128|n;for(let t=1+n,e=r.length;0>=8)o[t]=255&e;return this._createEncoderBuffer([o,r])},h.prototype._encodeStr=function(e,i){if("bitstr"===i)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==i)return"numstr"===i?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===i?this._isPrintstr(e)?this._createEncoderBuffer(e):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(i)||"objDesc"===i?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+i+" unsupported");{const i=s.alloc(2*e.length);for(let t=0;t>=7)r++}const n=s.alloc(r);let o=n.length-1;for(let e=i.length-1;0<=e;e--){let t=i[e];for(n[o--]=127&t;0<(t>>=7);)n[o--]=128|127&t}return this._createEncoderBuffer(n)},h.prototype._encodeTime=function(t,e){let i;const r=new Date(t);return"gentime"===e?i=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=s.from(t)}if(s.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=s.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;256<=t;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;0<=t;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(s.from(r))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,i){const r=this._baseState;let n;if(null===r.default)return!1;var o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n>6],n=0==(32&r);if(31==(31&r)){let t=r;for(r=0;128==(128&t);){if(t=e.readUInt8(i),e.isError(t))return t;r<<=7,r|=127&t}}else r&=31;return{cls:t,primitive:n,tag:r,tagStr:a.tag[r]}}function l(e,i,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!i&&128===n)return null;if(0==(128&n))return n;var o=127&n;if(4>16&255,n[o++]=e>>8&255,n[o++]=255&e;return 2===i&&(e=h[t.charCodeAt(a)]<<2|h[t.charCodeAt(a+1)]>>4,n[o++]=255&e),1===i&&(e=h[t.charCodeAt(a)]<<10|h[t.charCodeAt(a+1)]<<4|h[t.charCodeAt(a+2)]>>2,n[o++]=e>>8&255,n[o++]=255&e),n},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,n=[],o=0,s=i-r;o>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return n.join("")}(t,o,s>2]+a[e<<4&63]+"==")):2==r&&(e=(t[i-2]<<8)+t[i-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),n.join("")};for(var a=[],h=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n>1,f=-7,l=i?n-1:0,d=i?-1:1,i=t[e+l];for(l+=d,o=i&(1<<-f)-1,i>>=-f,f+=a;0>=-f,f+=r;0>1,l=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,c=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(e+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),u<=s+f?(a=0,s=u):1<=s+f?(a=(e*r-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=c,a/=256,n-=8);for(s=s<>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t>>27)+(u=r,f=n,l=o,0===(h=c)?u&f|~u&l:2===h?u&f|u&l|f&l:u^f^l)+s+e[d]+p[c],s=o,o=n,n=r<<30|r>>>2,r=i,i=c;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=s+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,m=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,n.call(this,64,56)}r(a,n),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,a=0|this._e,h=0;h<16;++h)i[h]=t.readInt32BE(4*h);for(;h<80;++h)i[h]=(e=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|e>>>31;for(var u,f,l,d,c=0;c<80;++c)var p=~~(c/20),p=0|(r<<5|r>>>27)+(f=n,l=o,d=s,0===(u=p)?f&l|~f&d:2===u?f&l|f&d|l&d:f^l^d)+a+i[c]+m[p],a=s,s=o,o=n<<30|n>>>2,n=r,r=p;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(68),o=i(19),s=i(1).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}r(h,n),h.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},h.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=h},function(t,e,i){var r=i(0),n=i(69),o=i(19),s=i(1).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}r(h,n),h.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},h.prototype._hash=function(){var r=s.allocUnsafe(48);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=h},function(t,e,i){t.exports=r;var f=i(12).EventEmitter;function r(){f.call(this)}i(0)(r,f),r.Readable=i(40),r.Writable=i(145),r.Duplex=i(146),r.Transform=i(147),r.PassThrough=i(148),(r.Stream=r).prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function h(t){if(u(),0===f.listenerCount(this,"error"))throw t}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",s),i.removeListener("close",a),i.removeListener("error",h),e.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",h),e.on("error",h),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},function(t,e){},function(t,e,i){"use strict";var o=i(1).Buffer,r=i(141);function n(){!function(t){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}t.exports=(n.prototype.push=function(t){t={data:t,next:null};0>>0),r=this.head,n=0;r;)e=n,r.data.copy(i,e),n+=r.data.length,r=r.next;return i},n),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,n,o){!function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new r(i.call(setTimeout,e,arguments),clearTimeout)},n.setInterval=function(){return new r(i.call(setInterval,e,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(e,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(143),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}.call(this,o(5))},function(t,e,i){!function(t,c){!function(i){"use strict";var r,e,n,t,o,s,a,h,u,f;function l(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var i=s[t];if(i){a=!0;try{!function(){var t=i.callback,e=i.args;switch(e.length){case 0:t();break;case 1:t(e[0]);break;case 2:t(e[0],e[1]);break;case 3:t(e[0],e[1],e[2]);break;default:t.apply(void 0,e)}}()}finally{l(t),a=!1}}}}i.setImmediate||(o=1,a=!(s={}),h=i.document,u=(u=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&u.setTimeout?u:i,f="[object process]"==={}.toString.call(i.process)?function(t){c.nextTick(function(){d(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(n="setImmediate$"+Math.random()+"$",t=function(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(n)&&d(+t.data.slice(n.length))},i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),function(t){i.postMessage(n+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){e.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var e=h.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i>o%8,t._prev=function(t,e){var i=t.length,r=-1,n=a.allocUnsafe(t.length);for(t=a.concat([t,a.from([e])]);++r>7;return n}(t._prev,i?r:n);return s}e.encrypt=function(t,e,i){for(var r=e.length,n=a.allocUnsafe(r),o=-1;++o>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},function(t,e,i){var r=i(87),n=i(1).Buffer,o=i(44),s=i(88),a=i(10),h=i(29),u=i(30);function f(t,e,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(i),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function d(t,e,i){t=o[t.toLowerCase()];if(!t)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if((e="string"==typeof e?n.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new s(t.module,e,i,!0):"auth"===t.type?new r(t.module,e,i,!0):new f(t.module,e,i)}i(0)(f,a),f.prototype._update=function(t){var e;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),i.push(e);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,e){},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(m,t,b){!function(i){var r=b(90),o=new(b(91)),s=new r(24),a=new r(11),h=new r(10),u=new r(3),f=new r(7),l=b(89),t=b(16);function n(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new r(t),this}function d(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new r(t),this}m.exports=e;var c={};function e(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=n,this.setPrivateKey=d):this._primeCode=8}function p(t,e){t=new i(t.toArray());return e?t.toString(e):t}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),e=[i,t.toString(16)].join("_");if(e in c)return c[e];var r,n=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return n+=1,c[e]=n+="02"===i||"05"===i?8:4;switch(o.test(t.shrn(1))||(n+=2),i){case"02":t.mod(s).cmp(a)&&(n+=8);break;case"05":(r=t.mod(h)).cmp(u)&&r.cmp(f)&&(n+=8);break;default:n+=4}return c[e]=n}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new r(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new i(e.toArray()),e=this.getPrime();return t.length>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y),t=(e=0!==e.cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.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(),t=t.redInvm(),e=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t),t=e.redSqr().redISub(this.x.redAdd(this.x)),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new y(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)},h.prototype.mulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i):this.curve._wnafMulAdd(1,e,i,2)},h.prototype.jmulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i,!0):this.curve._wnafMulAdd(1,e,i,2,!0)},h.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))},h.prototype.neg=function(t){if(this.inf)return this;var e,i=this.curve.point(this.x,this.y.redNeg());return t&&this.precomputed&&(e=this.precomputed,t=function(t){return t.neg()},i.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}),i},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(u,o.BasePoint),a.prototype.jpoint=function(t,e,i){return new u(this,t,e,i)},u.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),t=this.y.redMul(e).redMul(t);return this.curve.point(i,t)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(i.redMul(this.z)),e=r.redSub(n),i=o.redSub(s);if(0===e.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();n=e.redSqr(),s=n.redMul(e),r=r.redMul(n),n=i.redSqr().redIAdd(s).redISub(r).redISub(r),s=i.redMul(r.redISub(n)).redISub(o.redMul(s)),e=this.z.redMul(t.z).redMul(e);return this.curve.jpoint(n,s,e)},u.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,o=t.y.redMul(e).redMul(this.z),t=i.redSub(r),e=n.redSub(o);if(0===t.cmpn(0))return 0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();r=t.redSqr(),o=r.redMul(t),i=i.redMul(r),r=e.redSqr().redIAdd(o).redISub(i).redISub(i),o=e.redMul(i.redISub(r)).redISub(n.redMul(o)),t=this.z.redMul(t);return this.curve.jpoint(r,o,t)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){"use strict";var r=i(9),n=i(0),o=i(31),s=i(7);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),(t.exports=a).prototype.validate=function(t){var e=t.normalize().x,t=e.redSqr(),e=t.redMul(e).redAdd(t.redMul(this.a)).redAdd(e);return 0===e.redSqrt().redSqr().cmp(e)},n(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),t=t.redMul(e),i=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(t,i)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(i.redAdd(n).redSqr()),n=e.x.redMul(i.redISub(n).redSqr());return this.curve.point(r,n)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var o=n.length-1;0<=o;o--)0===n[o]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){"use strict";var r=i(7),o=i(9),n=i(0),s=i(31),a=r.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.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 u(t,e,i,r,n){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=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()))))}n(h,s),(t.exports=h).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},h.prototype.pointFromX=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=this.c2.redSub(this.a.redMul(i)),i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=r.redMul(i.redInvm()),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},h.prototype.pointFromY=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=i.redSub(this.c2),i=i.redMul(this.d).redMul(this.c2).redSub(this.a),r=r.redMul(i.redInvm());if(0===r.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),t=e.redMul(this.a).redAdd(i),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===t.cmp(i)},n(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,i,r){return new u(this,t,e,i,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=(i=this.z.redSqr()).redIAdd(i),r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),t=o.redSub(i),i=r.redSub(e),r=n.redMul(t),e=o.redMul(i),i=n.redMul(i),o=t.redMul(o);return this.curve.point(r,e,o,i)},u.prototype._projDbl=function(){var t,e,i,r,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();return o=this.curve.twisted?(n=(i=this.curve._mulA(a)).redAdd(h),this.zOne?(t=s.redSub(a).redSub(h).redMul(n.redSub(this.curve.two)),e=n.redMul(i.redSub(h)),n.redSqr().redSub(n).redSub(n)):(r=this.z.redSqr(),o=n.redSub(r).redISub(r),t=s.redSub(a).redISub(h).redMul(o),e=n.redMul(i.redSub(h)),n.redMul(o))):(i=a.redAdd(h),r=this.curve._mulC(this.z).redSqr(),o=i.redSub(r).redSub(r),t=this.curve._mulC(s.redISub(i)).redMul(o),e=this.curve._mulC(i).redMul(a.redISub(h)),i.redMul(o)),this.curve.point(t,e,o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),t=n.redSub(r),n=n.redAdd(r),r=i.redAdd(e),i=o.redMul(t),e=n.redMul(r),r=o.redMul(r),n=t.redMul(n);return this.curve.point(i,e,n,r)},u.prototype._projAdd=function(t){var e,i=this.z.redMul(t.z),r=i.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(n).redMul(o),a=r.redSub(s),s=r.redAdd(s),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),t=i.redMul(a).redMul(t),s=this.curve.twisted?(e=i.redMul(s).redMul(o.redSub(this.curve._mulA(n))),a.redMul(s)):(e=i.redMul(s).redMul(o.redSub(n)),this.curve._mulC(a).redMul(s));return this.curve.point(t,e,s)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,i){"use strict";e.sha1=i(191),e.sha224=i(192),e.sha256=i(101),e.sha384=i(193),e.sha512=i(102)},function(t,e,i){"use strict";var r=i(8),n=i(26),i=i(100),f=r.rotl32,l=r.sum32,d=r.sum32_5,c=i.ft_1,o=n.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&i)throw new Error("Unable to find sencond key candinate");s=i?this.curve.pointFromX(s.add(this.curve.n),t):this.curve.pointFromX(s,t),e=e.r.invm(n),o=n.sub(o).mul(e).umod(n),n=r.mul(e).umod(n);return this.g.mulAdd(o,s,n)},h.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new p(e,r)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch(t){continue}if(n.eq(i))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,i){"use strict";var r=i(52),o=i(98),n=i(6);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex"),t=o.toArray(t.pers,t.persEnc||"hex");n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}(t.exports=s).prototype._init=function(t,e,i){i=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length"}},function(t,e,i){"use strict";var n=i(9),o=i(7),r=o.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0==r||4>>=0;return!(n<=127)&&(e.place=s,n)}function u(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}(t.exports=s).prototype._importDER=function(t,e){t=o.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var r=h(t,i);if(!1===r)return!1;if(r+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;r=t.slice(i.place,e+i.place);if(i.place+=e,2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;if(t.length!==e+i.place)return!1;i=t.slice(i.place,e+i.place);if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}return this.r=new n(r),this.s=new n(i),!(this.recoveryParam=null)},s.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=u(e),i=u(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];f(r,e.length),(r=r.concat(e)).push(2),f(r,i.length);e=r.concat(i),r=[48];return f(r,e.length),r=r.concat(e),o.encode(r,t)}},function(t,e,i){"use strict";var r=i(52),n=i(51),o=i(7),s=o.assert,a=o.parseBytes,h=i(202),u=i(203);function f(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=n[t].curve,this.curve=t,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=r.sha512}(t.exports=f).prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t),n=this.g.mul(r),e=this.encodePoint(n),i=this.hashInt(e,i.pubBytes(),t).mul(i.priv()),i=r.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:i,Rencoded:e})},f.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(i),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),t=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(t)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,i,r,n){var h=p(i);if("ec"===h.type){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");return function(t,e,i){var r=m[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));r=new c(r),i=i.data.subjectPrivateKey.data;return r.verify(e,t,i)}(t,e,h)}if("dsa"===h.type){if("dsa"!==r)throw new Error("wrong public key type");return function(t,e){var i=h.data.p,r=h.data.q,n=h.data.g,o=h.data.pub_key,s=p.signature.decode(t,"der"),a=s.s,t=s.r;b(a,r),b(t,r);s=d.mont(i),a=a.invm(r);return 0===n.toRed(s).redPow(new d(e).mul(a).mod(r)).fromRed().mul(o.toRed(s).redPow(t.mul(a).mod(r)).fromRed()).mod(i).mod(r).cmp(t)}(t,e)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");e=l.concat([n,e]);for(var o=h.modulus.byteLength(),s=[1],a=0;e.length+s.length+2>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,i,e){i.publicEncrypt=e(219),i.privateDecrypt=e(221),i.privateEncrypt=function(t,e){return i.publicEncrypt(t,e,!0)},i.publicDecrypt=function(t,e){return i.privateDecrypt(t,e,!0)}},function(t,e,i){var o=i(32),h=i(16),u=i(23),f=i(110),l=i(111),d=i(57),s=i(112),c=i(48),p=i(1).Buffer;t.exports=function(t,e,i){var r,n=t.padding||(i?1:4),a=o(t);if(4===n)r=function(t){var e=a.modulus.byteLength(),i=t.length,r=u("sha1").update(p.alloc(0)).digest(),n=r.length,o=2*n;if(e-o-2n||0<=new s(e).cmp(a.modulus))throw new Error("decryption error");t=i?d(new s(e),a):f(e,a),e=c.alloc(n-t.length);if(t=c.concat([e,t],n),4===r)return function(t){var e=a.modulus.byteLength(),i=l("sha1").update(c.alloc(0)).digest(),r=i.length;if(0!==t[0])throw new Error("decryption error");var n=t.slice(1,r+1),t=t.slice(r+1),n=u(n,h(t,r)),o=u(t,h(n,e-r-1));if(function(t,e){t=c.from(t),e=c.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));for(var n=-1;++n=t.length){n++;break}var o=t.slice(2,r-1);if(("0002"!==i.toString("hex")&&!e||"0001"!==i.toString("hex")&&e)&&n++,o.length<8&&n++,n)throw new Error("decryption error");return t.slice(r)}(t,i);if(3===r)return t;throw new Error("unknown padding")}},function(t,i,c){"use strict";!function(n,o){function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=c(1),s=c(16),a=e.Buffer,r=e.kMaxLength,h=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(u{r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===i[t]&&(i[t]={}),i[t][r[1]]=e):i[t]=e};case"bracket":return(t,e,i)=>{r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=[e]:i[t]=e};case"comma":case"separator":return(t,e,i)=>{var r="string"==typeof e&&e.includes(o.arrayFormatSeparator),n="string"==typeof e&&!r&&f(e,o).includes(o.arrayFormatSeparator);e=n?f(e,o):e;e=r||n?e.split(o.arrayFormatSeparator).map(t=>f(t,o)):null===e?e:f(e,o);i[t]=e};default:return(t,e,i)=>{void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(i),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const o of t.split("&"))if(""!==o){let[t,e]=a(i.decode?o.replace(/\+/g," "):o,"=");e=void 0===e?null:["comma","separator"].includes(i.arrayFormat)?e:f(e,i),r(f(t,i),e,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=d(r[t],i);else n[t]=d(r,i)}return!1===i.sort?n:(!0===i.sort?Object.keys(n).sort():Object.keys(n).sort(i.sort)).reduce((t,e)=>{var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(i):t[e]=i,t},Object.create(null))}s.extract=n,s.parse=c,s.stringify=(i,r)=>{if(!i)return"";h((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>r.skipNull&&null==i[t]||r.skipEmptyString&&""===i[t],n=function(n){switch(n.arrayFormat){case"index":return r=>(t,e)=>{const i=t.length;return void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(r,n),"[",i,"]"].join("")]:[...t,[u(r,n),"[",u(i,n),"]=",u(e,n)].join("")]};case"bracket":return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(i,n),"[]"].join("")]:[...t,[u(i,n),"[]=",u(e,n)].join("")];case"comma":case"separator":return i=>(t,e)=>null==e||0===e.length?t:0===t.length?[[u(i,n),"=",u(e,n)].join("")]:[[t,u(e,n)].join(n.arrayFormatSeparator)];default:return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,u(i,n)]:[...t,[u(i,n),"=",u(e,n)].join("")]}}(r),e={};for(const r of Object.keys(i))t(r)||(e[r]=i[r]);const o=Object.keys(e);return!1!==r.sort&&o.sort(r.sort),o.map(t=>{const e=i[t];return void 0===e?"":null===e?u(t,r):Array.isArray(e)?e.reduce(n(t),[]).join("&"):u(t,r)+"="+u(e,r)}).filter(t=>0{e=Object.assign({decode:!0},e);const[i,r]=a(t,"#");return Object.assign({url:i.split("?")[0]||"",query:c(n(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,e)}:{})},s.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);var i=l(t.url).split("?")[0]||"",r=s.extract(t.url),r=s.parse(r,{sort:!1}),r=Object.assign(r,t.query);let n=s.stringify(r,e);n=n&&"?"+n;let o=function(t){let e="";var i=t.indexOf("#");return-1!==i&&(e=t.slice(i)),e}(t.url);return t.fragmentIdentifier&&(o="#"+u(t.fragmentIdentifier,e)),`${i}${n}${o}`},s.pick=(t,e,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);var{url:r,query:n,fragmentIdentifier:t}=s.parseUrl(t,i);return s.stringifyUrl({url:r,query:o(n,e),fragmentIdentifier:t},i)},s.exclude=(t,i,e)=>{var r=Array.isArray(i)?t=>!i.includes(t):(t,e)=>!i(t,e);return s.pick(t,r,e)}},function(t,e,i){"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())},function(t,e,i){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function h(e){try{return decodeURIComponent(e)}catch(t){for(var i=e.match(n),r=1;r{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var i=t.indexOf(e);return-1===i?[t]:[t.slice(0,i),t.slice(i+e.length)]}},function(t,e,i){"use strict";t.exports=function(t,e){for(var i={},r=Object.keys(t),n=Array.isArray(e),o=0;o>>24)|4278255360&(i[a]<<24|i[a]>>>8);i[t>>>5]|=128<>>9<<4)]=t;for(var h=b._ff,u=b._gg,f=b._hh,l=b._ii,a=0;a>>0,n=n+c>>>0,o=o+p>>>0,s=s+m>>>0}return g.endian([r,n,o,s])})._ff=function(t,e,i,r,n,o,s){s=t+(e&i|~e&r)+(n>>>0)+s;return(s<>>32-o)+e},b._gg=function(t,e,i,r,n,o,s){s=t+(e&r|i&~r)+(n>>>0)+s;return(s<>>32-o)+e},b._hh=function(t,e,i,r,n,o,s){s=t+(e^i^r)+(n>>>0)+s;return(s<>>32-o)+e},b._ii=function(t,e,i,r,n,o,s){s=t+(i^(e|~r))+(n>>>0)+s;return(s<>>32-o)+e},b._blocksize=16,b._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=g.wordsToBytes(b(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):g.bytesToHex(t)}},function(t,e){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e>>5]|=t[i]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i>>6*(3-n)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],i=0,r=0;i>>6-2*r);return e}};t.exports=i},function(t,e){function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(i(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&i(e.slice(0,0))||!!t._isBuffer);var e}},function(e,i,r){var n;!function(){"use strict";var c={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(t){return function(t,e){var i,r,n,o,s,a,h,u,f=1,l=t.length,d="";for(r=0;r>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}c.json.test(o.type)?d+=i:(!c.number.test(o.type)||h&&!o.sign?u="":(u=h?"+":"-",i=i.toString().replace(c.sign,"")),s=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",a=o.width-(u+i).length,a=o.width&&0{t in h.$onOnceListeners||(h.$onOnceListeners[t]=[]),h.$onOnceListeners[t].includes(e)||(h.$onOnceListeners[t].push(e),h.$on(t,i))};var o=i(58),u=i.n(o);i(59);const f=window.api.dialog,l=window.api.base;a.a.config.productionTip=!1,a.a.use(e.a,{size:"mini",zIndex:3e3}),a.a.use(function(t,e){var i,r,n;t.prototype.$timeago||(i={locale:e.locale},t.prototype.$timeago=t.observable?t.observable(i):new t({data:i}),n=(r=void 0===(r=e)?{}:r).locales||{},e={name:r.name||"Timeago",props:{datetime:{required:!0},title:{type:[String,Boolean]},locale:{type:String},autoUpdate:{type:[Number,Boolean]},converter:{type:Function},converterOptions:{type:Object}},data:function(){return{timeago:this.getTimeago()}},computed:{localeName:function(){return this.locale||this.$timeago.locale}},mounted:function(){this.startUpdater()},beforeDestroy:function(){this.stopUpdater()},render:function(t){return t("time",{attrs:{datetime:new Date(this.datetime).toISOString(),title:"string"==typeof this.title?this.title:!1===this.title?null:this.timeago}},[this.timeago])},methods:{getTimeago:function(t){return(this.converter||r.converter||function(t,e,i){var r=i.includeSeconds,i=i.addSuffix;return void 0===i&&(i=!0),s()(t,{locale:e,includeSeconds:r,addSuffix:i})})(t||this.datetime,n[this.locale||this.$timeago.locale],this.converterOptions||{})},convert:function(t){this.timeago=this.getTimeago(t)},startUpdater:function(){var t,e=this;this.autoUpdate&&(t=!0===this.autoUpdate?60:this.autoUpdate,this.updater=setInterval(function(){e.convert()},1e3*t))},stopUpdater:function(){this.updater&&(clearInterval(this.updater),this.updater=null)}},watch:{autoUpdate:function(t){this.stopUpdater(),t&&this.startUpdater()},datetime:function(){this.convert()},localeName:function(){this.convert()},converter:function(){this.convert()},converterOptions:{handler:function(){this.convert()},deep:!0}}},t.component(e.name,e))},{name:"TimeAgo",locale:"zh-CN",locales:{"zh-CN":i(248)}}),a.a.use(r.a),a.a.prototype.$onCopySuccess=()=>{f.tipSuccess(window.lang&&window.lang["Copy Success"]?window.lang["Copy Success"]:"Copy Success")},a.a.prototype.$onCopyError=()=>{f.tipError(window.lang&&window.lang["Copy Fail"]?window.lang["Copy Fail"]:"Copy Fail")},a.a.prototype.$highlight=(t,e)=>{if(t=n.b.specialchars(t),!e)return t;e=new RegExp(e,"ig");return t.toString().replace(e,function(t,e,i){return''+t+""})},a.a.prototype.$hashRouter={init(t){u()(t)},to(t){u()(t)}};r={post(t,e,i,r){i=i||l.defaultFormCallback,r=r||l.defaultFormCallback,l.post(t,e,function(t){l.defaultFormCallback(t,{success:function(t){!0===i(t)&&l.defaultFormCallback(t)},error:function(t){!0!==r(t)&&l.defaultFormCallback(t)}})})},postRaw(t,e,i){l.post(t,e,function(t){i&&i(t)})}};a.a.prototype.$api=r,a.a.prototype.$url={buildParam(e){if(e=e||null){let t=[];for(var i in e)t.push(n.d.urlencode(i)+"="+n.d.urldecode(e[i]));e="?"+t.join("&")}return e||""},current(){var t=window.location;return`${t.pathname}${t.search}${t.hash}`},admin(t,e){return`${window.__msAdminRoot}${t}${this.buildParam(e)}`},web(t,e){return`${window.__msRoot}${t}${this.buildParam(e)}`},api(t,e){return`${window.__msRoot}api/${t}${this.buildParam(e)}`},cdn:t=>(t&&t.startsWith("/")&&(t=t.replace(/^[ \/]+/g,"")),`${window.__msCDN}${t}`)},a.a.prototype.$r={to(t){window.location.href=t},replace(t){window.location.replace=t}},a.a.prototype.$dialog=f,a.a.prototype.L=function(){let t=arguments[0],e=Array.from(arguments);return e.splice(0,1),window.lang&&window.lang[t]?e.length?n.c.sprintf(t,...e):window.lang[t]:e.length?n.c.sprintf(t,...e):t},a.a,h,function(t,e,i,r,n){if(r=r||{},!document.querySelector(t))return;Array.isArray(i)||(i=[i]);let o={};i.forEach(t=>{o[t.name]=t});let s=null;r&&"Bootstrap"in r&&(s=r.Bootstrap);e=new a.a({el:t,...r,data:()=>({loading:!0}),created(){s&&s.created(this)},mounted(){this.loading=!1,h.$emit("EventAppMounted"),s&&s.mounted(this)},components:o,template:e});n&&n(e)}("#app","",i(251).default)}]); \ No newline at end of file +!function(i){var r={};function n(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=i,n.c=r,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=window.__msCDN+"vendor/ModuleStore/",n(n.s=252)}([function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){var i;e&&(t.super_=e,(i=function(){}).prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t)}},function(t,e,i){var r=i(4),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");t=n(t);return void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e){var i,r,t=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===n||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:n}catch(t){i=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var a,h=[],u=!1,f=-1;function l(){u&&a&&(u=!1,a.length?h=a.concat(h):f=-1,h.length&&d())}function d(){if(!u){var t=s(l);u=!0;for(var e=h.length;e;){for(a=h,h=[];++f=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function c(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t: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 A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return R(t).length;default:if(r)return A(t).length;e=(""+e).toLowerCase(),r=!0}}function e(t,e,i){var r,n,o,s=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!i||i<0||r=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:b(t,e,i,r,n);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):b(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,r,n){var o=1,s=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n)for(var u=-1,f=i;f>>10&1023|55296),f=56320|1023&f),r.push(f),n+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;rt.length)throw new RangeError("Index out of range")}function M(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n>>8*(r?n:1-n)}function _(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n>>8*(r?n:3-n)&255}function S(t,e,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function k(t,e,i,r,n){return n||S(t,0,i,4),o.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,n){return n||S(t,0,i,8),o.write(t,e,i,r,52,8),i+8}I.Buffer=l,I.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},I.INSPECT_MAX_BYTES=50,l.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}}(),I.kMaxLength=i(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,i){return r(null,t,e,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,i){return r=null,e=e,i=i,h(t=t),!(t<=0)&&void 0!==e?"string"==typeof i?n(r,t).fill(e,i):n(r,t).fill(e):n(r,t);var r},l.allocUnsafe=function(t){return u(null,t)},l.allocUnsafeSlow=function(t){return u(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);ne&&(t+=" ... ")),""},l.prototype.compare=function(t,e,i,r,n){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),(e=void 0===e?0:e)<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),h=this.slice(r,n),u=t.slice(e,i),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,s,a,h,u,f,l=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;if((!r||(r=Number(r))>n)&&(r=n),(n=e.length)%2!=0)throw new TypeError("Invalid hex string");n/2>8,n.push(i%256),n.push(r);return n}(t,(a=this).length-o),a,o,s);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i=(n*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||w(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):_(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=0,o=1,s=0;for(this[e]=255&t;++n>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=i-1,o=1,s=0;for(this[e+n]=255&t;0<=--n&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):_(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return k(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return k(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,r){if(i=i||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var n,o=(r=t.length-e>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function R(t){return a.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(x,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,i,r){for(var n=0;n=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}.call(this,C(5))},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}(t.exports=i).equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){"use strict";var r=e,n=i(9),e=i(6),i=i(98);r.assert=e,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(t,e,i){var r=new Array(Math.max(t.bitLength(),i)+1);r.fill(0);for(var n=1<>1)-1>1)-h:h):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r,n=0,o=0;0>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function r(t){return 1===t.length?"0"+t:t}function s(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}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i,r,n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s>6|192,n[o++]=63&a|128):(r=s,55296!=(64512&(i=t).charCodeAt(r))||r<0||r+1>=i.length||56320!=(64512&i.charCodeAt(r+1))?n[o++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++s)),n[o++]=a>>18|240,n[o++]=a>>12&63|128),n[o++]=a>>6&63|128,n[o++]=63&a|128)}else for(s=0;s>>0}return n},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r>>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<>>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=t[e],o=r+t[e+1]>>>0;t[e]=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,r){return(e+r>>>0>>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,a){var h,u=0;return u+=(h=e+r>>>0)>>0)>>0>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,a,h,u){var f,l=0;return l+=(f=e+r>>>0)>>0)>>0)>>0>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,a,h,u){return e+r+o+a+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,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(186).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var r=i(1).Buffer,n=i(138).Transform,o=i(13).StringDecoder;function s(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(0)(s,n),s.prototype.update=function(t,e,i){"string"==typeof t&&(t=r.from(t,e));t=this._update(t);return this.hashMode?this:t=i?this._toString(t,i):t},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,i){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{i(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return e=t?this._toString(e,t,!0):e},s.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");t=this._decoder.write(t);return i&&(t+=this._decoder.end()),t},t.exports=s},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return h}),i.d(e,"a",function(){return u}),i(119),i(120);const r=i(225),n=(i(113),i(230),i(233).sprintf),o={specialchars:function(t){var e=[];if(!t)return"";if(0==t.length)return"";for(var i=0;i":e.push(">");break;case"&":e.push("&");break;case" ":e.push(" ");break;case'"':e.push(""");break;default:e.push(t.substr(i,1))}return e.join("")}},s={randomString(e){e=e||32;var i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=i.length,n="";for(let t=0;t(e="^"+e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*")+"$",new RegExp(e).test(t)),keywordsMatchWildcard:(t,e)=>(e=e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*"),new RegExp(e).test(t)),sprintf(){var t=Array.from(arguments);return n.call(null,...t)}};function a(t){return String.fromCharCode(t)}const h={domainUrl(t){t=t||"";var e=window.location.protocol+"//"+window.location.host;return t?e+"/"+t:e},urlencode(r){let n="",o="";for(let i=0;i?[]^`{|}~%".indexOf(t)?n+="%"+e.toString(16):n+=t}return n},urldecode(e){let i="";e+="";for(let t=0;th.parseQuery(t),getQuery(t,e=null,i){i=h.parseQuery(i);return t in i?i[t]:e},parseQuery:t=>(t=t||window.location.search,r.parse(t)),buildQuery:t=>r.stringify(t)},u={assign(e,i){e&&i&&Object.keys(e).map(t=>{e[t]=i[t]})},update(e,i){e&&i&&Object.keys(i).map(t=>{e[t]=i[t]})},equal:(t,e)=>JSON.stringify(t)===JSON.stringify(e),notEqual:(t,e)=>!u.equal(t,e),clone:t=>JSON.parse(JSON.stringify(t))};i(234)},function(t,e,i){"use strict";var r="object"==typeof Reflect?Reflect:null,h=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(n,o){return new Promise(function(t,e){function i(){void 0!==r&&n.removeListener("error",r),t([].slice.call(arguments))}var r;"error"!==o&&(r=function(t){n.removeListener(o,i),e(t)},n.once("error",r)),n.once(o,i)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){var n,o;return u(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener||i),n=t._events),o=n[e]),void 0===o?(o=n[e]=i,++t._eventsCount):("function"==typeof o?o=n[e]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),0<(i=f(t))&&o.length>i&&!o.warned&&(o.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,console&&console.warn&&console.warn(i))),t}function d(t,e,i){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},e=function(){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)}.bind(t);return e.listener=i,t.wrapFn=e}function c(t,e,i){t=t._events;if(void 0===t)return[];e=t[e];return void 0===e?[]:"function"==typeof e?i?[e.listener||e]:[e]:i?function(t){for(var e=new Array(t.length),i=0;i>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,i,r=this.lastTotal-this.lastNeed,e=(e=this,128!=(192&(i=t)[0])?(e.lastNeed=0,"�"):1o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(62),r=l(66);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));e=8*this._len;e<=4294967295?this._block.writeUInt32BE(e,this._blockSize-4):(this._block.writeUInt32BE((e-(i=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)),this._update(this._block);var i=this._hash();return t?i.toString(t):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){"use strict";var a={};function r(t,r,e){e=e||Error;var n,i,o,o=(o=n=e,(i=s).prototype=Object.create(o.prototype),(i.prototype.constructor=i).__proto__=o,s);function s(t,e,i){return n.call(this,"string"==typeof r?r:r(t,e,i))||this}o.prototype.name=e.name,o.prototype.code=t,a[t]=o}function h(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),2o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(92),r=l(96);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._delta8){e=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var i=0;i>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o>>24]^f[p>>>16&255]^l[m>>>8&255]^d[255&b]^e[g++],s=u[p>>>24]^f[m>>>16&255]^l[b>>>8&255]^d[255&c]^e[g++],a=u[m>>>24]^f[b>>>16&255]^l[c>>>8&255]^d[255&p]^e[g++],h=u[b>>>24]^f[c>>>16&255]^l[p>>>8&255]^d[255&m]^e[g++],c=o,p=s,m=a,b=h;return o=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^e[g++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&c])^e[g++],a=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[g++],h=(r[b>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4;i[s]=u=u>>>8^255&u^99;var f=t[r[u]=s],l=t[f],d=t[l],c=257*t[u]^16843008*u;n[0][s]=c<<24|c>>>8,n[1][s]=c<<16|c>>>16,n[2][s]=c<<8|c>>>24,n[3][s]=c,o[0][u]=(c=16843009*d^65537*l^257*f^16843008*s)<<24|c>>>8,o[1][u]=c<<16|c>>>16,o[2][u]=c<<8|c>>>24,o[3][u]=c,0===s?s=a=1:(s=f^t[t[t[d^f]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:o}}();function a(t){this._key=r(t),this._reset()}a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o>>24)>>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s],s^=l[o/e|0]<<24):6>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s]),n[o]=n[o-e]^s}for(var a=[],h=0;h>>24]]^d.INV_SUB_MIX[1][d.SBOX[f>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[f>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&f]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=a},a.prototype.encryptBlockRaw=function(t){return s(t=r(t),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},a.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;e=s(t,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},a.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=a},function(t,e,i){var l=i(1).Buffer,d=i(35);t.exports=function(t,e,i,r){if(l.isBuffer(t)||(t=l.from(t,"binary")),e&&8!==(e=!l.isBuffer(e)?l.from(e,"binary"):e).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var n=i/8,o=l.alloc(n),s=l.alloc(r||0),a=l.alloc(0);0>1]):s.mixedAdd(n[-u-1>>1].neg()):0>1]):s.add(n[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},o.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,a=this._wnafT2,h=this._wnafT3,u=0,f=0;f>1]:k<0&&(o=a[S][-k-1>>1].neg()),y="affine"===o.type?y.mixedAdd(o):y.add(o))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n({loading:!0,search:{tab:"store",priceType:"all",isRecommend:!1,categoryId:0,type:"",keywords:""},commandDialogMsgs:[],commandDialogRunStart:0,commandDialogRunElapse:0,commandDialogShow:!1,commandDialogFinish:!1,commandDialogTitle:"",memberUserShow:!1,memberUserLoading:!1,memberLoginCaptchaImage:null,memberLoginInfo:{username:"",password:"",captcha:"",agree:!1},storeApiToken:i.a.get("storeApiToken",""),memberUser:{id:0,username:"",avatar:""},categories:[],types:[],modules:[],storeConfig:{disable:!1},installVersionDialogShow:!1,installVersionReleases:[],installVersionModule:null}),watch:{memberUser:{handler(t,e){this.doLoad()},deep:!0}},computed:{filterModules(){var t=this.modules.filter(t=>{switch(this.search.tab){case"store":if(t._isLocal)return!1;break;case"installed":if(!t._isInstalled)return!1;break;case"enabled":if(!t._isEnabled)return!1;break;case"disabled":if(!t._isInstalled||t._isEnabled)return!1;break;case"local":if(!t._isLocal)return!1;break;case"upgradeable":if(!t._isInstalled||t._isLocal||t.latestVersion===t._localVersion)return!1}if(this.search.isRecommend&&!t.isRecommend)return!1;if(this.search.type&&!t.types.includes(this.search.type))return!1;switch(this.search.priceType){case"free":if(t.isFee)return!1;break;case"fee":if(!t.isFee)return!1}return!(this.search.categoryId&&t.categoryId!==this.search.categoryId||this.search.keywords&&!t.title.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.name.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.description.toLowerCase().includes(this.search.keywords.toLowerCase()))});return console.log("xxx",t,this.modules),t}},mounted(){this.doLoad(),this.doLoadStore(),setInterval(()=>{this.commandDialogRunElapse=parseInt(((new Date).getTime()-this.commandDialogRunStart)/1e3)},1e3)},methods:{versionCompare(t,e){var i=t.split("."),r=e.split(".");for(let t=0,e=Math.max(i.length,r.length);tparseInt(r[t]))return 1;if(r[t]&&!i[t]&&0{this.$dialog.tipError(t.msg)};r=r||n,o.ajax({url:`${window.__data.apiBase}/api/${t}`,dataType:"jsonp",timeout:1e4,data:Object.assign(e,{api_token:this.storeApiToken,modstartParam:JSON.stringify(window.__data.modstartParam)}),success:t=>{t.code?(1002===t.code&&this.doMemberLoginCaptchaRefresh(),!0!==r(t)&&n(t)):i(t)},error:t=>{!0!==r({code:-1,msg:"请求出现错误"})&&n({code:-1,msg:"请求出现错误"})},jsonp:"callback"})},doMemberUserLogout(){this.$dialog.confirm("确认退出?",()=>{this.storeApiToken="",i.a.set("storeApiToken",""),this.memberUserShow=!1,this.doLoadStore()})},doSubmitCheck(t){13===t.keyCode&&this.doMemberLoginSubmit()},doMemberLoginSubmit(){this.memberLoginInfo.agree?(this.$dialog.loadingOn(),this.doStoreRequest("store/login",this.memberLoginInfo,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("登录成功"),this.doLoadStoreMember(),this.memberLoginInfo.username="",this.memberLoginInfo.password="",this.memberLoginInfo.captcha="",this.memberUserShow=!1},t=>{this.$dialog.loadingOff()})):this.$dialog.tipError("请先同意使用协议")},doMemberLoginCaptchaRefresh(e){this.doStoreRequest("store/login_captcha",{},t=>{this.memberLoginCaptchaImage=t.data.image,e&&e()})},doMemberLoginShow(){0{this.$dialog.loadingOff(),this.memberUserShow=!0}))},doLoadStoreMember(){this.memberUserLoading=!0,this.doStoreRequest("store/member",{},t=>{this.memberUserLoading=!1,e.a.update(this.memberUser,t.data)},t=>{this.memberUserLoading=!1})},doLoadStore(){this.storeApiToken?this.doLoadStoreMember():this.doStoreRequest("store/config",{},t=>{this.storeApiToken=t.data.apiToken,i.a.set("storeApiToken",t.data.apiToken),this.doLoadStoreMember()})},doLoad(){this.$api.post(this.$url.admin("module_store/all"),{memberUserId:this.memberUser.id,apiToken:this.storeApiToken},t=>{this.loading=!1,this.categories=t.data.categories,this.types=t.data.types,this.modules=t.data.modules,this.storeConfig=t.data.storeConfig})},doCommand(t,e,i,r){r=r||null,null===(i=i||null)&&(this.commandDialogMsgs=[],this.commandDialogShow=!0,this.commandDialogFinish=!1),r&&(this.commandDialogTitle=r,this.commandDialogMsgs.push(' '+r)),this.commandDialogRunStart=(new Date).getTime(),this.commandDialogRunElapse=0,this.$api.post(this.$url.admin("module_store/"+t),{token:this.storeApiToken,step:i,data:JSON.stringify(e)},t=>(Array.isArray(t.data.msg)?this.commandDialogMsgs=this.commandDialogMsgs.concat(t.data.msg):this.commandDialogMsgs.push(t.data.msg),t.data.finish?(this.commandDialogFinish=!0,void this.doLoad()):void setTimeout(()=>{this.doCommand(t.data.command,t.data.data,t.data.step)},1e3)),t=>(this.commandDialogMsgs.push(' '+t.msg+""),this.commandDialogFinish=!0))},doInstallVersion(e){this.$dialog.loadingOn(),this.doStoreRequest("store/module_releases",{module:e.name},t=>{this.$dialog.loadingOff(),this.installVersionModule=e,this.installVersionReleases=t.data.releases,this.installVersionDialogShow=!0},t=>{this.$dialog.loadingOff()})},doInstall(t){this.doCommand("install",{module:t.name,version:t.latestVersion,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${t.latestVersion}`)},doInstallVersionSubmit(t,e){this.doCommand("install",{module:t.name,version:e,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${e}`)},doDisable(t){this.doCommand("disable",{module:t.name,version:t._localVersion},null,`禁用模块 ${t.title}(${t.name})`)},doEnable(t){this.doCommand("enable",{module:t.name,version:t._localVersion},null,`启用模块 ${t.title}(${t.name})`)},doUninstall(t){this.$dialog.confirm("确认卸载?",()=>{this.doCommand("uninstall",{module:t.name,version:t._localVersion,isLocal:t._isLocal},null,`卸载模块 ${t.title}(${t.name})`)})},doUpgrade(t){this.$dialog.confirm("确认升级?",()=>{this.doCommand("upgrade",{module:t.name,version:t.latestVersion},null,`升级模块 ${t.title}(${t.name}) V${t.latestVersion}`)})},doConfig(t){this.$dialog.dialog(this.$url.admin("module_store/config/"+t.name))}}}}.call(this,n(113))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});const r={set:function(t,e){window.localStorage.setItem(t,JSON.stringify(e))},get:function(t,e){var i=window.localStorage.getItem(t);try{return JSON.parse(i)}catch(t){}return e},getArray:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)?i:e}catch(t){}return e},getObject:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)||"object"!=typeof i?e:i}catch(t){}return e}}},function(t,e,i){"use strict";var r=i(0),n=i(61),o=i(1).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<>>32-e}function u(t,e,i,r,n,o,s){return h(t+(e&i|~e&r)+n+o|0,s)+e|0}function f(t,e,i,r,n,o,s){return h(t+(e&r|i&~r)+n+o|0,s)+e|0}function l(t,e,i,r,n,o,s){return h(t+(e^i^r)+n+o|0,s)+e|0}function d(t,e,i,r,n,o,s){return h(t+(i^(e|~r))+n+o|0,s)+e|0}r(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=u(i=this._a,o=this._b,n=this._c,r=this._d,t[0],3614090360,7),r=u(r,i,o,n,t[1],3905402710,12),n=u(n,r,i,o,t[2],606105819,17),o=u(o,n,r,i,t[3],3250441966,22);i=u(i,o,n,r,t[4],4118548399,7),r=u(r,i,o,n,t[5],1200080426,12),n=u(n,r,i,o,t[6],2821735955,17),o=u(o,n,r,i,t[7],4249261313,22),i=u(i,o,n,r,t[8],1770035416,7),r=u(r,i,o,n,t[9],2336552879,12),n=u(n,r,i,o,t[10],4294925233,17),o=u(o,n,r,i,t[11],2304563134,22),i=u(i,o,n,r,t[12],1804603682,7),r=u(r,i,o,n,t[13],4254626195,12),n=u(n,r,i,o,t[14],2792965006,17),i=f(i,o=u(o,n,r,i,t[15],1236535329,22),n,r,t[1],4129170786,5),r=f(r,i,o,n,t[6],3225465664,9),n=f(n,r,i,o,t[11],643717713,14),o=f(o,n,r,i,t[0],3921069994,20),i=f(i,o,n,r,t[5],3593408605,5),r=f(r,i,o,n,t[10],38016083,9),n=f(n,r,i,o,t[15],3634488961,14),o=f(o,n,r,i,t[4],3889429448,20),i=f(i,o,n,r,t[9],568446438,5),r=f(r,i,o,n,t[14],3275163606,9),n=f(n,r,i,o,t[3],4107603335,14),o=f(o,n,r,i,t[8],1163531501,20),i=f(i,o,n,r,t[13],2850285829,5),r=f(r,i,o,n,t[2],4243563512,9),n=f(n,r,i,o,t[7],1735328473,14),i=l(i,o=f(o,n,r,i,t[12],2368359562,20),n,r,t[5],4294588738,4),r=l(r,i,o,n,t[8],2272392833,11),n=l(n,r,i,o,t[11],1839030562,16),o=l(o,n,r,i,t[14],4259657740,23),i=l(i,o,n,r,t[1],2763975236,4),r=l(r,i,o,n,t[4],1272893353,11),n=l(n,r,i,o,t[7],4139469664,16),o=l(o,n,r,i,t[10],3200236656,23),i=l(i,o,n,r,t[13],681279174,4),r=l(r,i,o,n,t[0],3936430074,11),n=l(n,r,i,o,t[3],3572445317,16),o=l(o,n,r,i,t[6],76029189,23),i=l(i,o,n,r,t[9],3654602809,4),r=l(r,i,o,n,t[12],3873151461,11),n=l(n,r,i,o,t[15],530742520,16),i=d(i,o=l(o,n,r,i,t[2],3299628645,23),n,r,t[0],4096336452,6),r=d(r,i,o,n,t[7],1126891415,10),n=d(n,r,i,o,t[14],2878612391,15),o=d(o,n,r,i,t[5],4237533241,21),i=d(i,o,n,r,t[12],1700485571,6),r=d(r,i,o,n,t[3],2399980690,10),n=d(n,r,i,o,t[10],4293915773,15),o=d(o,n,r,i,t[1],2240044497,21),i=d(i,o,n,r,t[8],1873313359,6),r=d(r,i,o,n,t[15],4264355552,10),n=d(n,r,i,o,t[6],2734768916,15),o=d(o,n,r,i,t[13],1309151649,21),i=d(i,o,n,r,t[4],4149444226,6),r=d(r,i,o,n,t[11],3174756917,10),n=d(n,r,i,o,t[2],718787259,15),o=d(o,n,r,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-e}function k(t,e,i,r,n,o,s,a){return S(t+(e^i^r)+o+s|0,a)+n|0}function E(t,e,i,r,n,o,s,a){return S(t+(e&i|~e&r)+o+s|0,a)+n|0}function x(t,e,i,r,n,o,s,a){return S(t+((e|~i)^r)+o+s|0,a)+n|0}function A(t,e,i,r,n,o,s,a){return S(t+(e&r|i&~r)+o+s|0,a)+n|0}function R(t,e,i,r,n,o,s,a){return S(t+(e^(i|~r))+o+s|0,a)+n|0}n(s,o),s.prototype._update=function(){for(var t=b,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,s=0|this._e,a=0|this._a,h=0|this._b,u=0|this._c,f=0|this._d,l=0|this._e,d=0;d<80;d+=1)var c,p=d<16?(c=k(i,r,n,o,s,t[g[d]],M[0],y[d]),R(a,h,u,f,l,t[v[d]],_[0],w[d])):d<32?(c=E(i,r,n,o,s,t[g[d]],M[1],y[d]),A(a,h,u,f,l,t[v[d]],_[1],w[d])):d<48?(c=x(i,r,n,o,s,t[g[d]],M[2],y[d]),x(a,h,u,f,l,t[v[d]],_[2],w[d])):d<64?(c=A(i,r,n,o,s,t[g[d]],M[3],y[d]),E(a,h,u,f,l,t[v[d]],_[3],w[d])):(c=R(i,r,n,o,s,t[g[d]],M[4],y[d]),k(a,h,u,f,l,t[v[d]],_[4],w[d])),i=s,s=o,o=S(n,10),n=r,r=c,a=l,l=f,f=S(u,10),u=h,h=p;var m=this._b+n+f|0;this._b=this._c+o+l|0,this._c=this._d+s+a|0,this._d=this._e+i+h|0,this._e=this._a+r+u|0,this._a=m},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this._strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this._strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function o(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i._strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modrn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>8&255),i>16&255),6===o?(i>24&255),o=r=0):(r=s>>>24,o+=2)}if(i>8&255),0<=i&&(t[i--]=s>>16&255),6===o?(0<=i&&(t[i--]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(0<=i)for(t[i--]=r;0<=i;)t[i--]=0},Math.clz32?b.prototype._countBits=function(t){return 32-Math.clz32(t)}:b.prototype._countBits=function(t){var e=t,t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this._strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function h(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i._strip()}function u(t,e,i){return h(t,e,i)}Math.imul||(a=o),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?a:i<63?o:i<1024?h:u)(this,t,e)},b.prototype.mul=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},b.prototype.mulf=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),u(this,t,e)},b.prototype.imul=function(t){return this.clone().mulTo(t,this)},b.prototype.imuln=function(t){var e=t<0;m("number"==typeof(t=e?-t:t)),m(t<67108864);for(var i=0,r=0;r>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this._strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modrn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(i*r+(0|this.words[n]))%t;return e?-r:r},b.prototype.modn=function(t){return this.modrn(t)},b.prototype.idivn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/t|0,i=n%t}return this._strip(),e?this.ineg():this},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return f[t]=e},_.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(r(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},_.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new S(t)},e(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,E(15)(t))},function(t,e,i){"use strict";e.version=i(185).version,e.utils=i(7),e.rand=i(45),e.curve=i(99),e.curves=i(51),e.ec=i(197),e.eddsa=i(201)},function(t,e,i){"use strict";var r,n=e,e=i(52),o=i(99),s=i(7).assert;function a(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,i){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var t=new a(i);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t}),t}})}n.PresetCurve=a,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(196)}catch(t){r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,i){e.utils=i(8),e.common=i(26),e.sha=i(190),e.ripemd=i(194),e.hmac=i(195),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(s,t,a){"use strict";!function(t){var e,i=a(4),r=i.Buffer,n={};for(e in i)i.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(n[e]=i[e]);var o=n.Buffer={};for(e in r)r.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(o[e]=r[e]);if(n.Buffer.prototype=r.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,i)}),o.alloc||(o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||2*(1<<30)<=t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=r(t);return e&&0!==e.length?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t}),!n.kStringMaxLength)try{n.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(t){}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),s.exports=n}.call(this,a(2))},function(t,e,i){"use strict";const a=i(55).Reporter,r=i(27).EncoderBuffer,h=i(27).DecoderBuffer,n=i(6),o=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(t,e,i){const r={};this._baseState=r,r.name=i,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,i={};f.forEach(function(t){i[t]=e[t]});const t=new this.constructor(i.parent);return t._baseState=i,t},u.prototype._wrap=function(){const i=this._baseState;s.forEach(function(e){this[e]=function(){const t=new this.constructor(this);return i.children.push(t),t[e].apply(t,arguments)}},this)},u.prototype._init=function(t){const e=this._baseState;n(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),n.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){const 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&&(n(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(n(null===e.args),e.args=t,e.reverseArgs=t.map(function(i){if("object"!=typeof i||i.constructor!==Object)return i;const r={};return Object.keys(i).forEach(function(t){t==(0|t)&&(t|=0);var e=i[t];r[e]=t}),r}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(i){u.prototype[i]=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return n(null===t.tag),t.tag=i,this._useArgs(e),this}}),u.prototype.use=function(t){n(t);const e=this._baseState;return n(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){const e=this._baseState;return n(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){const e=this._baseState;return n(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return n(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(t){const e=this._baseState;return n(null===e.use),e.contains=t,this},u.prototype._decode=function(e,i){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,i));let n,o=r.default,s=!0,t=null;if(null!==r.key&&(t=e.enterKey(r.key)),r.optional){let t=null;if(null!==r.explicit?t=r.explicit:null!==r.implicit?t=r.implicit:null!==r.tag&&(t=r.tag),null!==t||r.any){if(s=this._peekTag(e,t,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const i=this._decodeTag(e,r.explicit);if(e.isError(i))return i;e=i}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(i&&i.track&&null!==r.tag&&i.track(e.path(),n,e.length,"tagged"),i&&i.track&&null!==r.tag&&i.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(t){t._decode(e,i)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new h(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,i)}}return r.obj&&s&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==s?null!==t&&e.exitKey(t):e.leaveKey(t,r.key,o),o},u.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)},u.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),n(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},u.prototype._decodeChoice=function(r,n){const o=this._baseState;let s=null,a=!1;return Object.keys(o.choice).some(function(t){const e=r.save(),i=o.choice[t];try{const o=i._decode(r,n);if(r.isError(o))return!1;s={type:t,value:o},a=!0}catch(t){return r.restore(e),!1}return!0},this),a?s:r.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},u.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){t=this._encodeValue(t,e,i);return void 0===t||this._skipDefault(t,e,i)?void 0:t}},u.prototype._encodeValue=function(i,r,t){const e=this._baseState;if(null===e.parent)return e.children[0]._encode(i,r||new a);let n=null;if(this.reporter=r,e.optional&&void 0===i){if(null===e.default)return;i=e.default}let o=null,s=!1;if(e.any)n=this._createEncoderBuffer(i);else if(e.choice)n=this._encodeChoice(i,r);else if(e.contains)o=this._getUse(e.contains,t)._encode(i,r),s=!0;else if(e.children)o=e.children.map(function(t){if("null_"===t._baseState.tag)return t._encode(null,r,i);if(null===t._baseState.key)return r.error("Child should have a key");var e=r.enterKey(t._baseState.key);if("object"!=typeof i)return r.error("Child expected, but input is not object");t=t._encode(i[t._baseState.key],r,i);return r.leaveKey(e),t},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return r.error("Too many args for : "+e.tag);if(!Array.isArray(i))return r.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,o=this._createEncoderBuffer(i.map(function(t){var e=this._baseState;return this._getUse(e.args[0],i)._encode(t,r)},t))}else null!==e.use?n=this._getUse(e.use,t)._encode(i,r):(o=this._encodePrimitive(e.tag,i),s=!0);if(!e.any&&null===e.choice){const i=null!==e.implicit?e.implicit:e.tag,t=null===e.implicit?"universal":"context";null===i?null===e.use&&r.error("Tag could be omitted only for .use()"):null===e.use&&(n=this._encodeComposite(i,s,t,o))}return null!==e.explicit&&(n=this._encodeComposite(e.explicit,!1,"context",n)),n},u.prototype._encodeChoice=function(t,e){const i=this._baseState,r=i.choice[t.type];return r||n(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},u.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 new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,i){"use strict";const r=i(0);function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}(e.Reporter=n).prototype.isError=function(t){return t instanceof o},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){const e=this._reporterState,i=t instanceof o;if(t=i?t:new o(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},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){"use strict";function r(i){const r={};return Object.keys(i).forEach(function(t){(0|t)==t&&(t|=0);var e=i[t];r[e]=t}),r}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(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=r(e.tag)},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(220).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){t.exports=function(t){function n(t,e){this.name=e,this.path=t,this.keys=[],this.fns=[],this.params={},this.regex=i(this.path,this.keys,!1,!1)}var o,s=[],a={},e=t.routie;n.prototype.addHandler=function(t){this.fns.push(t)},n.prototype.removeHandler=function(t){for(var e=0,i=this.fns.length;e=this._blockSize;){for(var n=this._blockOffset;ne.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[l-7]+(((e=i[l-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+i[l-16];for(var d=0;d<64;++d)var c=f+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(u^a&(h^u))+m[d]+i[d]|0,p=0|((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n|o&(r|n)),f=u,u=h,h=a,a=s+c|0,s=o,o=n,n=r,r=c+p|0;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=h+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}function U(t,e,i){return i^t&(e^i)}function z(t,e,i){return t&e|i&(t|e)}function F(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function H(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function Z(t,e){return t>>>0>>0?1:0}r(a,n),a.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},a.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,a=0|this._fh,h=0|this._gh,u=0|this._hh,f=0|this._al,l=0|this._bl,d=0|this._cl,c=0|this._dl,p=0|this._el,m=0|this._fl,b=0|this._gl,g=0|this._hl,v=0;v<32;v+=2)e[v]=t.readInt32BE(4*v),e[v+1]=t.readInt32BE(4*v+4);for(;v<160;v+=2){var y=e[v-30],w=e[v-30+1],M=(y>>>1|w<<31)^(y>>>8|w<<24)^y>>>7,_=(w>>>1|y<<31)^(w>>>8|y<<24)^(w>>>7|y<<25),S=(y=e[v-4],w=e[v-4+1],(y>>>19|w<<13)^(w>>>29|y<<3)^y>>>6),k=(w>>>19|y<<13)^(y>>>29|w<<3)^(w>>>6|y<<26),E=e[v-14],x=e[v-14+1],w=e[v-32],y=e[v-32+1],A=_+x|0,R=(R=(R=M+E+Z(A,_)|0)+S+Z(A=A+k|0,k)|0)+w+Z(A=A+y|0,y)|0;e[v]=R,e[v+1]=A}for(var T=0;T<160;T+=2){R=e[T];var A=e[T+1],I=z(i,r,n),C=z(f,l,d),B=F(i,f),L=F(f,i),O=H(s,p),j=H(p,s),P=q[T+1],D=U(s,a,h),N=U(p,m,b),j=g+j|0,O=(O=(O=(O=u+O+Z(j,g)|0)+D+Z(j=j+N|0,N)|0)+q[T]+Z(j=j+P|0,P)|0)+R+Z(j=j+A|0,A)|0,C=L+C|0,L=B+I+Z(C,L)|0,u=h,g=b,h=a,b=m,a=s,m=p,s=o+O+Z(p=c+j|0,c)|0,o=n,c=d,n=r,d=l,r=i,l=f,i=O+L+Z(f=j+C|0,j)|0}this._al=this._al+f|0,this._bl=this._bl+l|0,this._cl=this._cl+d|0,this._dl=this._dl+c|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+b|0,this._hl=this._hl+g|0,this._ah=this._ah+i+Z(this._al,f)|0,this._bh=this._bh+r+Z(this._bl,l)|0,this._ch=this._ch+n+Z(this._cl,d)|0,this._dh=this._dh+o+Z(this._dl,c)|0,this._eh=this._eh+s+Z(this._el,p)|0,this._fh=this._fh+a+Z(this._fl,m)|0,this._gh=this._gh+h+Z(this._gl,b)|0,this._hh=this._hh+u+Z(this._hl,g)|0},a.prototype._hash=function(){var r=o.allocUnsafe(64);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=a},function(I,t,C){"use strict";!function(t,b){var g=C(28);I.exports=n;var o,v=C(60);n.ReadableState=r,C(12).EventEmitter;function y(t,e){return t.listeners(e).length}var i=C(71),l=C(1).Buffer,d=t.Uint8Array||function(){},e=Object.create(C(24));e.inherits=C(0);var s,t=C(139),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},a=C(140),t=C(72);e.inherits(n,i);var h=["error","close","destroy","pause","resume"];function r(t,e){t=t||{};var i=e instanceof(o=o||C(14));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,e=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||C(13).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function n(t){if(o=o||C(14),!(this instanceof n))return new n(t);this._readableState=new r(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function u(t,e,i,r,n){var o,s,a,h,u,f=t._readableState;return null===e?(f.reading=!1,a=t,(h=f).ended||(!h.decoder||(u=h.decoder.end())&&u.length&&(h.buffer.push(u),h.length+=h.objectMode?1:u.length),h.ended=!0,p(a))):(n||(o=f,n=a=e,o=s=l.isBuffer(n)||n instanceof d||"string"==typeof a||void 0===a||o.objectMode?s:new TypeError("Invalid non-string/buffer chunk")),o?t.emit("error",o):f.objectMode||e&&0e.highWaterMark&&(e.highWaterMark=(8388608<=(i=t)?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function p(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(m,t):m(t))}function m(t){w("emit readable"),t.emit("readable"),E(t)}function M(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(_,t,e))}function _(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):(i=t,t=e.buffer,e=e.decoder,io.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=l.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(i,t),n=r),n);var i,r,n}function A(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?A:p)(this),null;if(0===(t=f(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;return w("need readable",r),(0===e.length||e.length-ti?e=("rmd160"===t?new h:u(t)).update(e).digest():e.lengtho?e=n(e):e.length>>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 a=0;a<=24;a+=8)n<<=1,n|=e>>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+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;s<4;s++)for(var a=24;0<=a;a-=8)n<<=1,n|=e>>>a+s&1,n<<=1,n|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+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 a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+s&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var h=[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,r){for(var n=0,o=0,s=h.length>>>1,a=0;a>>h[a]&1;for(a=s;a>>h[a]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.expand=function(t,e,i){for(var r=0,n=0,r=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)r<<=6,r|=t>>>o&63;for(o=11;3<=o;o-=4)n|=t>>>o&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>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;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[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>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.length>>1],i=f.r28shl(i,o),r=f.r28shl(r,o);f.pc2(i,r,t.keys,n)}},a.prototype._update=function(t,e,i,r){var n=this._desState,o=f.readUInt32BE(t,e),e=f.readUInt32BE(t,e+4);f.ip(o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,e,n.tmp,0):this._decrypt(n,o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],f.writeUInt32BE(i,o,r),f.writeUInt32BE(i,e,r+4)},a.prototype._pad=function(t,e){for(var i=t.length-e,r=e;r>>0,o=u}f.rip(s,o,r,n)},a.prototype._decrypt=function(t,e,i,r,n){for(var o=i,s=e,a=t.keys.length-2;0<=a;a-=2){var h=t.keys[a],u=t.keys[a+1];f.expand(o,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];h=f.substitute(h,u),u=o,o=(s^f.permute(h))>>>0,s=u}f.rip(o,s,r,n)}},function(t,e,i){var h=i(25),u=i(1).Buffer,f=i(85);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),r=t._cache.length;t._cache=u.concat([t._cache,u.allocUnsafe(16*i)]);for(var n=0;nt;)i.ishrn(1);if(i.isEven()&&i.iadd(h),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(f))for(;i.mod(l).cmp(d);)i.iadd(p)}else for(;i.mod(s).cmp(c);)i.iadd(p);if(b(r=i.shrn(1))&&b(i)&&g(r)&&g(i)&&a.test(r)&&a.test(i))return i}}},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(168).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var c=i(169),r=i(45);function n(t){this.rand=t||new r.Rand}(t.exports=n).create=function(t){return new n(t)},n.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new c(this.rand.generate(i))}while(0<=r.cmp(t));return r},n.prototype._randrange=function(t,e){e=e.sub(t);return t.add(this._randbelow(e))},n.prototype.test=function(t,e,i){var r=t.bitLength(),n=c.mont(t),o=new c(1).toRed(n);e=e||Math.max(1,r/48|0);for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);0e.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>8,n=255&n;o?i.push(o,n):i.push(n)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){"use strict";e.base=i(31),e.short=i(187),e.mont=i(188),e.edwards=i(189)},function(t,e,i){"use strict";var r=i(8).rotr32;function n(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}function s(t,e,i){return t^e^i}e.ft_1=function(t,e,i,r){return 0===t?n(e,i,r):1===t||3===t?e^i^r:2===t?o(e,i,r):void 0},e.ch32=n,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,i){"use strict";var r=i(8),n=i(26),o=i(100),p=i(6),m=r.sum32,b=r.sum32_4,g=r.sum32_5,v=o.ch32,y=o.maj32,w=o.s0_256,M=o.s1_256,_=o.g0_256,S=o.g1_256,s=n.BlockHash,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function h(){if(!(this instanceof h))return new h;s.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=a,this.W=new Array(64)}r.inherits(h,s),(t.exports=h).blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){"use strict";const r=e;r.der=i(106),r.pem=i(207)},function(t,e,i){"use strict";const r=i(0),s=i(53).Buffer,n=i(54),a=i(56);function o(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){n.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(t.exports=o).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(h,n),h.prototype._encodeComposite=function(t,e,i,r){i=function(t,e,i,r){let n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return 31<=n?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=a.tagClassByName[i||"universal"]<<6,n)}(t,e,i,this.reporter);if(r.length<128){const t=s.alloc(2);return t[0]=i,t[1]=r.length,this._createEncoderBuffer([t,r])}let n=1;for(let t=r.length;256<=t;t>>=8)n++;const o=s.alloc(2+n);o[0]=i,o[1]=128|n;for(let t=1+n,e=r.length;0>=8)o[t]=255&e;return this._createEncoderBuffer([o,r])},h.prototype._encodeStr=function(e,i){if("bitstr"===i)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==i)return"numstr"===i?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===i?this._isPrintstr(e)?this._createEncoderBuffer(e):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(i)||"objDesc"===i?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+i+" unsupported");{const i=s.alloc(2*e.length);for(let t=0;t>=7)r++}const n=s.alloc(r);let o=n.length-1;for(let e=i.length-1;0<=e;e--){let t=i[e];for(n[o--]=127&t;0<(t>>=7);)n[o--]=128|127&t}return this._createEncoderBuffer(n)},h.prototype._encodeTime=function(t,e){let i;const r=new Date(t);return"gentime"===e?i=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=s.from(t)}if(s.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=s.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;256<=t;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;0<=t;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(s.from(r))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,i){const r=this._baseState;let n;if(null===r.default)return!1;var o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n>6],n=0==(32&r);if(31==(31&r)){let t=r;for(r=0;128==(128&t);){if(t=e.readUInt8(i),e.isError(t))return t;r<<=7,r|=127&t}}else r&=31;return{cls:t,primitive:n,tag:r,tagStr:a.tag[r]}}function l(e,i,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!i&&128===n)return null;if(0==(128&n))return n;var o=127&n;if(4>16&255,n[o++]=e>>8&255,n[o++]=255&e;return 2===i&&(e=h[t.charCodeAt(a)]<<2|h[t.charCodeAt(a+1)]>>4,n[o++]=255&e),1===i&&(e=h[t.charCodeAt(a)]<<10|h[t.charCodeAt(a+1)]<<4|h[t.charCodeAt(a+2)]>>2,n[o++]=e>>8&255,n[o++]=255&e),n},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,n=[],o=0,s=i-r;o>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return n.join("")}(t,o,s>2]+a[e<<4&63]+"==")):2==r&&(e=(t[i-2]<<8)+t[i-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),n.join("")};for(var a=[],h=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n>1,f=-7,l=i?n-1:0,d=i?-1:1,i=t[e+l];for(l+=d,o=i&(1<<-f)-1,i>>=-f,f+=a;0>=-f,f+=r;0>1,l=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,c=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(e+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),u<=s+f?(a=0,s=u):1<=s+f?(a=(e*r-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=c,a/=256,n-=8);for(s=s<>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t>>27)+(u=r,f=n,l=o,0===(h=c)?u&f|~u&l:2===h?u&f|u&l|f&l:u^f^l)+s+e[d]+p[c],s=o,o=n,n=r<<30|r>>>2,r=i,i=c;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=s+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,m=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,n.call(this,64,56)}r(a,n),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,a=0|this._e,h=0;h<16;++h)i[h]=t.readInt32BE(4*h);for(;h<80;++h)i[h]=(e=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|e>>>31;for(var u,f,l,d,c=0;c<80;++c)var p=~~(c/20),p=0|(r<<5|r>>>27)+(f=n,l=o,d=s,0===(u=p)?f&l|~f&d:2===u?f&l|f&d|l&d:f^l^d)+a+i[c]+m[p],a=s,s=o,o=n<<30|n>>>2,n=r,r=p;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(68),o=i(19),s=i(1).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}r(h,n),h.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},h.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=h},function(t,e,i){var r=i(0),n=i(69),o=i(19),s=i(1).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}r(h,n),h.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},h.prototype._hash=function(){var r=s.allocUnsafe(48);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=h},function(t,e,i){t.exports=r;var f=i(12).EventEmitter;function r(){f.call(this)}i(0)(r,f),r.Readable=i(40),r.Writable=i(145),r.Duplex=i(146),r.Transform=i(147),r.PassThrough=i(148),(r.Stream=r).prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function h(t){if(u(),0===f.listenerCount(this,"error"))throw t}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",s),i.removeListener("close",a),i.removeListener("error",h),e.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",h),e.on("error",h),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},function(t,e){},function(t,e,i){"use strict";var o=i(1).Buffer,r=i(141);function n(){!function(t){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}t.exports=(n.prototype.push=function(t){t={data:t,next:null};0>>0),r=this.head,n=0;r;)e=n,r.data.copy(i,e),n+=r.data.length,r=r.next;return i},n),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,n,o){!function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new r(i.call(setTimeout,e,arguments),clearTimeout)},n.setInterval=function(){return new r(i.call(setInterval,e,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(e,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(143),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}.call(this,o(5))},function(t,e,i){!function(t,c){!function(i){"use strict";var r,e,n,t,o,s,a,h,u,f;function l(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var i=s[t];if(i){a=!0;try{!function(){var t=i.callback,e=i.args;switch(e.length){case 0:t();break;case 1:t(e[0]);break;case 2:t(e[0],e[1]);break;case 3:t(e[0],e[1],e[2]);break;default:t.apply(void 0,e)}}()}finally{l(t),a=!1}}}}i.setImmediate||(o=1,a=!(s={}),h=i.document,u=(u=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&u.setTimeout?u:i,f="[object process]"==={}.toString.call(i.process)?function(t){c.nextTick(function(){d(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(n="setImmediate$"+Math.random()+"$",t=function(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(n)&&d(+t.data.slice(n.length))},i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),function(t){i.postMessage(n+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){e.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var e=h.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i>o%8,t._prev=function(t,e){var i=t.length,r=-1,n=a.allocUnsafe(t.length);for(t=a.concat([t,a.from([e])]);++r>7;return n}(t._prev,i?r:n);return s}e.encrypt=function(t,e,i){for(var r=e.length,n=a.allocUnsafe(r),o=-1;++o>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},function(t,e,i){var r=i(87),n=i(1).Buffer,o=i(44),s=i(88),a=i(10),h=i(29),u=i(30);function f(t,e,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(i),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function d(t,e,i){t=o[t.toLowerCase()];if(!t)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if((e="string"==typeof e?n.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new s(t.module,e,i,!0):"auth"===t.type?new r(t.module,e,i,!0):new f(t.module,e,i)}i(0)(f,a),f.prototype._update=function(t){var e;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),i.push(e);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,e){},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(m,t,b){!function(i){var r=b(90),o=new(b(91)),s=new r(24),a=new r(11),h=new r(10),u=new r(3),f=new r(7),l=b(89),t=b(16);function n(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new r(t),this}function d(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new r(t),this}m.exports=e;var c={};function e(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=n,this.setPrivateKey=d):this._primeCode=8}function p(t,e){t=new i(t.toArray());return e?t.toString(e):t}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),e=[i,t.toString(16)].join("_");if(e in c)return c[e];var r,n=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return n+=1,c[e]=n+="02"===i||"05"===i?8:4;switch(o.test(t.shrn(1))||(n+=2),i){case"02":t.mod(s).cmp(a)&&(n+=8);break;case"05":(r=t.mod(h)).cmp(u)&&r.cmp(f)&&(n+=8);break;default:n+=4}return c[e]=n}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new r(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new i(e.toArray()),e=this.getPrime();return t.length>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y),t=(e=0!==e.cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.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(),t=t.redInvm(),e=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t),t=e.redSqr().redISub(this.x.redAdd(this.x)),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new y(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)},h.prototype.mulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i):this.curve._wnafMulAdd(1,e,i,2)},h.prototype.jmulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i,!0):this.curve._wnafMulAdd(1,e,i,2,!0)},h.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))},h.prototype.neg=function(t){if(this.inf)return this;var e,i=this.curve.point(this.x,this.y.redNeg());return t&&this.precomputed&&(e=this.precomputed,t=function(t){return t.neg()},i.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}),i},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(u,o.BasePoint),a.prototype.jpoint=function(t,e,i){return new u(this,t,e,i)},u.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),t=this.y.redMul(e).redMul(t);return this.curve.point(i,t)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(i.redMul(this.z)),e=r.redSub(n),i=o.redSub(s);if(0===e.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();n=e.redSqr(),s=n.redMul(e),r=r.redMul(n),n=i.redSqr().redIAdd(s).redISub(r).redISub(r),s=i.redMul(r.redISub(n)).redISub(o.redMul(s)),e=this.z.redMul(t.z).redMul(e);return this.curve.jpoint(n,s,e)},u.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,o=t.y.redMul(e).redMul(this.z),t=i.redSub(r),e=n.redSub(o);if(0===t.cmpn(0))return 0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();r=t.redSqr(),o=r.redMul(t),i=i.redMul(r),r=e.redSqr().redIAdd(o).redISub(i).redISub(i),o=e.redMul(i.redISub(r)).redISub(n.redMul(o)),t=this.z.redMul(t);return this.curve.jpoint(r,o,t)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){"use strict";var r=i(9),n=i(0),o=i(31),s=i(7);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),(t.exports=a).prototype.validate=function(t){var e=t.normalize().x,t=e.redSqr(),e=t.redMul(e).redAdd(t.redMul(this.a)).redAdd(e);return 0===e.redSqrt().redSqr().cmp(e)},n(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),t=t.redMul(e),i=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(t,i)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(i.redAdd(n).redSqr()),n=e.x.redMul(i.redISub(n).redSqr());return this.curve.point(r,n)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var o=n.length-1;0<=o;o--)0===n[o]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){"use strict";var r=i(7),o=i(9),n=i(0),s=i(31),a=r.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.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 u(t,e,i,r,n){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=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()))))}n(h,s),(t.exports=h).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},h.prototype.pointFromX=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=this.c2.redSub(this.a.redMul(i)),i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=r.redMul(i.redInvm()),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},h.prototype.pointFromY=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=i.redSub(this.c2),i=i.redMul(this.d).redMul(this.c2).redSub(this.a),r=r.redMul(i.redInvm());if(0===r.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),t=e.redMul(this.a).redAdd(i),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===t.cmp(i)},n(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,i,r){return new u(this,t,e,i,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=(i=this.z.redSqr()).redIAdd(i),r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),t=o.redSub(i),i=r.redSub(e),r=n.redMul(t),e=o.redMul(i),i=n.redMul(i),o=t.redMul(o);return this.curve.point(r,e,o,i)},u.prototype._projDbl=function(){var t,e,i,r,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();return o=this.curve.twisted?(n=(i=this.curve._mulA(a)).redAdd(h),this.zOne?(t=s.redSub(a).redSub(h).redMul(n.redSub(this.curve.two)),e=n.redMul(i.redSub(h)),n.redSqr().redSub(n).redSub(n)):(r=this.z.redSqr(),o=n.redSub(r).redISub(r),t=s.redSub(a).redISub(h).redMul(o),e=n.redMul(i.redSub(h)),n.redMul(o))):(i=a.redAdd(h),r=this.curve._mulC(this.z).redSqr(),o=i.redSub(r).redSub(r),t=this.curve._mulC(s.redISub(i)).redMul(o),e=this.curve._mulC(i).redMul(a.redISub(h)),i.redMul(o)),this.curve.point(t,e,o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),t=n.redSub(r),n=n.redAdd(r),r=i.redAdd(e),i=o.redMul(t),e=n.redMul(r),r=o.redMul(r),n=t.redMul(n);return this.curve.point(i,e,n,r)},u.prototype._projAdd=function(t){var e,i=this.z.redMul(t.z),r=i.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(n).redMul(o),a=r.redSub(s),s=r.redAdd(s),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),t=i.redMul(a).redMul(t),s=this.curve.twisted?(e=i.redMul(s).redMul(o.redSub(this.curve._mulA(n))),a.redMul(s)):(e=i.redMul(s).redMul(o.redSub(n)),this.curve._mulC(a).redMul(s));return this.curve.point(t,e,s)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,i){"use strict";e.sha1=i(191),e.sha224=i(192),e.sha256=i(101),e.sha384=i(193),e.sha512=i(102)},function(t,e,i){"use strict";var r=i(8),n=i(26),i=i(100),f=r.rotl32,l=r.sum32,d=r.sum32_5,c=i.ft_1,o=n.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&i)throw new Error("Unable to find sencond key candinate");s=i?this.curve.pointFromX(s.add(this.curve.n),t):this.curve.pointFromX(s,t),e=e.r.invm(n),o=n.sub(o).mul(e).umod(n),n=r.mul(e).umod(n);return this.g.mulAdd(o,s,n)},h.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new p(e,r)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch(t){continue}if(n.eq(i))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,i){"use strict";var r=i(52),o=i(98),n=i(6);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex"),t=o.toArray(t.pers,t.persEnc||"hex");n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}(t.exports=s).prototype._init=function(t,e,i){i=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length"}},function(t,e,i){"use strict";var n=i(9),o=i(7),r=o.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0==r||4>>=0;return!(n<=127)&&(e.place=s,n)}function u(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}(t.exports=s).prototype._importDER=function(t,e){t=o.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var r=h(t,i);if(!1===r)return!1;if(r+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;r=t.slice(i.place,e+i.place);if(i.place+=e,2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;if(t.length!==e+i.place)return!1;i=t.slice(i.place,e+i.place);if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}return this.r=new n(r),this.s=new n(i),!(this.recoveryParam=null)},s.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=u(e),i=u(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];f(r,e.length),(r=r.concat(e)).push(2),f(r,i.length);e=r.concat(i),r=[48];return f(r,e.length),r=r.concat(e),o.encode(r,t)}},function(t,e,i){"use strict";var r=i(52),n=i(51),o=i(7),s=o.assert,a=o.parseBytes,h=i(202),u=i(203);function f(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=n[t].curve,this.curve=t,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=r.sha512}(t.exports=f).prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t),n=this.g.mul(r),e=this.encodePoint(n),i=this.hashInt(e,i.pubBytes(),t).mul(i.priv()),i=r.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:i,Rencoded:e})},f.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(i),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),t=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(t)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,i,r,n){var h=p(i);if("ec"===h.type){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");return function(t,e,i){var r=m[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));r=new c(r),i=i.data.subjectPrivateKey.data;return r.verify(e,t,i)}(t,e,h)}if("dsa"===h.type){if("dsa"!==r)throw new Error("wrong public key type");return function(t,e){var i=h.data.p,r=h.data.q,n=h.data.g,o=h.data.pub_key,s=p.signature.decode(t,"der"),a=s.s,t=s.r;b(a,r),b(t,r);s=d.mont(i),a=a.invm(r);return 0===n.toRed(s).redPow(new d(e).mul(a).mod(r)).fromRed().mul(o.toRed(s).redPow(t.mul(a).mod(r)).fromRed()).mod(i).mod(r).cmp(t)}(t,e)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");e=l.concat([n,e]);for(var o=h.modulus.byteLength(),s=[1],a=0;e.length+s.length+2>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,i,e){i.publicEncrypt=e(219),i.privateDecrypt=e(221),i.privateEncrypt=function(t,e){return i.publicEncrypt(t,e,!0)},i.publicDecrypt=function(t,e){return i.privateDecrypt(t,e,!0)}},function(t,e,i){var o=i(32),h=i(16),u=i(23),f=i(110),l=i(111),d=i(57),s=i(112),c=i(48),p=i(1).Buffer;t.exports=function(t,e,i){var r,n=t.padding||(i?1:4),a=o(t);if(4===n)r=function(t){var e=a.modulus.byteLength(),i=t.length,r=u("sha1").update(p.alloc(0)).digest(),n=r.length,o=2*n;if(e-o-2n||0<=new s(e).cmp(a.modulus))throw new Error("decryption error");t=i?d(new s(e),a):f(e,a),e=c.alloc(n-t.length);if(t=c.concat([e,t],n),4===r)return function(t){var e=a.modulus.byteLength(),i=l("sha1").update(c.alloc(0)).digest(),r=i.length;if(0!==t[0])throw new Error("decryption error");var n=t.slice(1,r+1),t=t.slice(r+1),n=u(n,h(t,r)),o=u(t,h(n,e-r-1));if(function(t,e){t=c.from(t),e=c.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));for(var n=-1;++n=t.length){n++;break}var o=t.slice(2,r-1);if(("0002"!==i.toString("hex")&&!e||"0001"!==i.toString("hex")&&e)&&n++,o.length<8&&n++,n)throw new Error("decryption error");return t.slice(r)}(t,i);if(3===r)return t;throw new Error("unknown padding")}},function(t,i,c){"use strict";!function(n,o){function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=c(1),s=c(16),a=e.Buffer,r=e.kMaxLength,h=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(u{r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===i[t]&&(i[t]={}),i[t][r[1]]=e):i[t]=e};case"bracket":return(t,e,i)=>{r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=[e]:i[t]=e};case"comma":case"separator":return(t,e,i)=>{var r="string"==typeof e&&e.includes(o.arrayFormatSeparator),n="string"==typeof e&&!r&&f(e,o).includes(o.arrayFormatSeparator);e=n?f(e,o):e;e=r||n?e.split(o.arrayFormatSeparator).map(t=>f(t,o)):null===e?e:f(e,o);i[t]=e};default:return(t,e,i)=>{void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(i),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const o of t.split("&"))if(""!==o){let[t,e]=a(i.decode?o.replace(/\+/g," "):o,"=");e=void 0===e?null:["comma","separator"].includes(i.arrayFormat)?e:f(e,i),r(f(t,i),e,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=d(r[t],i);else n[t]=d(r,i)}return!1===i.sort?n:(!0===i.sort?Object.keys(n).sort():Object.keys(n).sort(i.sort)).reduce((t,e)=>{var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(i):t[e]=i,t},Object.create(null))}s.extract=n,s.parse=c,s.stringify=(i,r)=>{if(!i)return"";h((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>r.skipNull&&null==i[t]||r.skipEmptyString&&""===i[t],n=function(n){switch(n.arrayFormat){case"index":return r=>(t,e)=>{const i=t.length;return void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(r,n),"[",i,"]"].join("")]:[...t,[u(r,n),"[",u(i,n),"]=",u(e,n)].join("")]};case"bracket":return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(i,n),"[]"].join("")]:[...t,[u(i,n),"[]=",u(e,n)].join("")];case"comma":case"separator":return i=>(t,e)=>null==e||0===e.length?t:0===t.length?[[u(i,n),"=",u(e,n)].join("")]:[[t,u(e,n)].join(n.arrayFormatSeparator)];default:return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,u(i,n)]:[...t,[u(i,n),"=",u(e,n)].join("")]}}(r),e={};for(const r of Object.keys(i))t(r)||(e[r]=i[r]);const o=Object.keys(e);return!1!==r.sort&&o.sort(r.sort),o.map(t=>{const e=i[t];return void 0===e?"":null===e?u(t,r):Array.isArray(e)?e.reduce(n(t),[]).join("&"):u(t,r)+"="+u(e,r)}).filter(t=>0{e=Object.assign({decode:!0},e);const[i,r]=a(t,"#");return Object.assign({url:i.split("?")[0]||"",query:c(n(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,e)}:{})},s.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);var i=l(t.url).split("?")[0]||"",r=s.extract(t.url),r=s.parse(r,{sort:!1}),r=Object.assign(r,t.query);let n=s.stringify(r,e);n=n&&"?"+n;let o=function(t){let e="";var i=t.indexOf("#");return-1!==i&&(e=t.slice(i)),e}(t.url);return t.fragmentIdentifier&&(o="#"+u(t.fragmentIdentifier,e)),`${i}${n}${o}`},s.pick=(t,e,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);var{url:r,query:n,fragmentIdentifier:t}=s.parseUrl(t,i);return s.stringifyUrl({url:r,query:o(n,e),fragmentIdentifier:t},i)},s.exclude=(t,i,e)=>{var r=Array.isArray(i)?t=>!i.includes(t):(t,e)=>!i(t,e);return s.pick(t,r,e)}},function(t,e,i){"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())},function(t,e,i){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function h(e){try{return decodeURIComponent(e)}catch(t){for(var i=e.match(n),r=1;r{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var i=t.indexOf(e);return-1===i?[t]:[t.slice(0,i),t.slice(i+e.length)]}},function(t,e,i){"use strict";t.exports=function(t,e){for(var i={},r=Object.keys(t),n=Array.isArray(e),o=0;o>>24)|4278255360&(i[a]<<24|i[a]>>>8);i[t>>>5]|=128<>>9<<4)]=t;for(var h=b._ff,u=b._gg,f=b._hh,l=b._ii,a=0;a>>0,n=n+c>>>0,o=o+p>>>0,s=s+m>>>0}return g.endian([r,n,o,s])})._ff=function(t,e,i,r,n,o,s){s=t+(e&i|~e&r)+(n>>>0)+s;return(s<>>32-o)+e},b._gg=function(t,e,i,r,n,o,s){s=t+(e&r|i&~r)+(n>>>0)+s;return(s<>>32-o)+e},b._hh=function(t,e,i,r,n,o,s){s=t+(e^i^r)+(n>>>0)+s;return(s<>>32-o)+e},b._ii=function(t,e,i,r,n,o,s){s=t+(i^(e|~r))+(n>>>0)+s;return(s<>>32-o)+e},b._blocksize=16,b._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=g.wordsToBytes(b(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):g.bytesToHex(t)}},function(t,e){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e>>5]|=t[i]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i>>6*(3-n)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],i=0,r=0;i>>6-2*r);return e}};t.exports=i},function(t,e){function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(i(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&i(e.slice(0,0))||!!t._isBuffer);var e}},function(e,i,r){var n;!function(){"use strict";var c={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(t){return function(t,e){var i,r,n,o,s,a,h,u,f=1,l=t.length,d="";for(r=0;r>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}c.json.test(o.type)?d+=i:(!c.number.test(o.type)||h&&!o.sign?u="":(u=h?"+":"-",i=i.toString().replace(c.sign,"")),s=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",a=o.width-(u+i).length,a=o.width&&0{t in h.$onOnceListeners||(h.$onOnceListeners[t]=[]),h.$onOnceListeners[t].includes(e)||(h.$onOnceListeners[t].push(e),h.$on(t,i))};var o=i(58),u=i.n(o);i(59);const f=window.api.dialog,l=window.api.base;a.a.config.productionTip=!1,a.a.use(e.a,{size:"mini",zIndex:3e3}),a.a.use(function(t,e){var i,r,n;t.prototype.$timeago||(i={locale:e.locale},t.prototype.$timeago=t.observable?t.observable(i):new t({data:i}),n=(r=void 0===(r=e)?{}:r).locales||{},e={name:r.name||"Timeago",props:{datetime:{required:!0},title:{type:[String,Boolean]},locale:{type:String},autoUpdate:{type:[Number,Boolean]},converter:{type:Function},converterOptions:{type:Object}},data:function(){return{timeago:this.getTimeago()}},computed:{localeName:function(){return this.locale||this.$timeago.locale}},mounted:function(){this.startUpdater()},beforeDestroy:function(){this.stopUpdater()},render:function(t){return t("time",{attrs:{datetime:new Date(this.datetime).toISOString(),title:"string"==typeof this.title?this.title:!1===this.title?null:this.timeago}},[this.timeago])},methods:{getTimeago:function(t){return(this.converter||r.converter||function(t,e,i){var r=i.includeSeconds,i=i.addSuffix;return void 0===i&&(i=!0),s()(t,{locale:e,includeSeconds:r,addSuffix:i})})(t||this.datetime,n[this.locale||this.$timeago.locale],this.converterOptions||{})},convert:function(t){this.timeago=this.getTimeago(t)},startUpdater:function(){var t,e=this;this.autoUpdate&&(t=!0===this.autoUpdate?60:this.autoUpdate,this.updater=setInterval(function(){e.convert()},1e3*t))},stopUpdater:function(){this.updater&&(clearInterval(this.updater),this.updater=null)}},watch:{autoUpdate:function(t){this.stopUpdater(),t&&this.startUpdater()},datetime:function(){this.convert()},localeName:function(){this.convert()},converter:function(){this.convert()},converterOptions:{handler:function(){this.convert()},deep:!0}}},t.component(e.name,e))},{name:"TimeAgo",locale:"zh-CN",locales:{"zh-CN":i(248)}}),a.a.use(r.a),a.a.prototype.$onCopySuccess=()=>{f.tipSuccess(window.lang&&window.lang["Copy Success"]?window.lang["Copy Success"]:"Copy Success")},a.a.prototype.$onCopyError=()=>{f.tipError(window.lang&&window.lang["Copy Fail"]?window.lang["Copy Fail"]:"Copy Fail")},a.a.prototype.$highlight=(t,e)=>{if(t=n.b.specialchars(t),!e)return t;e=new RegExp(e,"ig");return t.toString().replace(e,function(t,e,i){return''+t+""})},a.a.prototype.$hashRouter={init(t){u()(t)},to(t){u()(t)}};r={post(t,e,i,r){i=i||l.defaultFormCallback,r=r||l.defaultFormCallback,l.post(t,e,function(t){l.defaultFormCallback(t,{success:function(t){!0===i(t)&&l.defaultFormCallback(t)},error:function(t){!0!==r(t)&&l.defaultFormCallback(t)}})})},postRaw(t,e,i){l.post(t,e,function(t){i&&i(t)})}};a.a.prototype.$api=r,a.a.prototype.$url={buildParam(e){if(e=e||null){let t=[];for(var i in e)t.push(n.d.urlencode(i)+"="+n.d.urldecode(e[i]));e="?"+t.join("&")}return e||""},current(){var t=window.location;return`${t.pathname}${t.search}${t.hash}`},admin(t,e){return`${window.__msAdminRoot}${t}${this.buildParam(e)}`},web(t,e){return`${window.__msRoot}${t}${this.buildParam(e)}`},api(t,e){return`${window.__msRoot}api/${t}${this.buildParam(e)}`},cdn:t=>(t&&t.startsWith("/")&&(t=t.replace(/^[ \/]+/g,"")),`${window.__msCDN}${t}`)},a.a.prototype.$r={to(t){window.location.href=t},replace(t){window.location.replace=t}},a.a.prototype.$dialog=f,a.a.prototype.L=function(){let t=arguments[0],e=Array.from(arguments);return e.splice(0,1),window.lang&&window.lang[t]?e.length?n.c.sprintf(t,...e):window.lang[t]:e.length?n.c.sprintf(t,...e):t},a.a,h,function(t,e,i,r,n){if(r=r||{},!document.querySelector(t))return;Array.isArray(i)||(i=[i]);let o={};i.forEach(t=>{o[t.name]=t});let s=null;r&&"Bootstrap"in r&&(s=r.Bootstrap);e=new a.a({el:t,...r,data:()=>({loading:!0}),created(){s&&s.created(this)},mounted(){this.loading=!1,h.$emit("EventAppMounted"),s&&s.mounted(this)},components:o,template:e});n&&n(e)}("#app","",i(251).default)}]); \ No newline at end of file diff --git a/module/ModuleStore/Docs/release/1.5.0.md b/module/ModuleStore/Docs/release/1.5.0.md new file mode 100644 index 0000000000000000000000000000000000000000..49f2c82a869aa022bc5a1860a0172e7ba1e5121f --- /dev/null +++ b/module/ModuleStore/Docs/release/1.5.0.md @@ -0,0 +1,5 @@ + + +- 新增:本地模块筛选Tab,只显示本地模块 +- 新增:可升级模块筛选,显示系统可升级的模块 + diff --git a/module/ModuleStore/resources/asset/src/pages/ModuleStore.vue b/module/ModuleStore/resources/asset/src/pages/ModuleStore.vue index a612ded91e099b92ff89b49fc49c74355966c4d3..b6093a3fbab48af3ed558eb5483a4f699b66ad61 100644 --- a/module/ModuleStore/resources/asset/src/pages/ModuleStore.vue +++ b/module/ModuleStore/resources/asset/src/pages/ModuleStore.vue @@ -35,6 +35,17 @@ 已禁用 + + + 本地模块 + + + + + + 可升级 + +
@@ -455,6 +466,14 @@ export default { case 'disabled': if (!module._isInstalled || module._isEnabled) return false break; + case 'local': + if (!module._isLocal) return false + break + case 'upgradeable': + if(!( module._isInstalled && !module._isLocal && module.latestVersion!==module._localVersion ) ){ + return false + } + break } if (this.search.isRecommend) { if (!module.isRecommend) { @@ -491,6 +510,7 @@ export default { } return true }) + console.log('xxx',results,this.modules) return results } }, diff --git a/module/Nav/Docs/release/1.2.0.md b/module/Nav/Docs/release/1.2.0.md index 99d80c5574f9650ae70a396457fad5daa9322199..200ff10db2bac14ed8b6c5121bd9cc12055a8563 100644 --- a/module/Nav/Docs/release/1.2.0.md +++ b/module/Nav/Docs/release/1.2.0.md @@ -1,5 +1,7 @@ +二级导航、批量删除、导航位置Tab切换 +--- -- 新增:二级导航功能 +- 新增:二级导航功能(需要调用方支持) - 新增:批量删除功能 - 新增:导航位置Tab切换 \ No newline at end of file diff --git a/module/Nav/config.json b/module/Nav/config.json index f77c42bb8aec6dc72b0104e9acdb460aa308de26..1e274e4658563e7cc43d67e1e9642ff56a307231 100644 --- a/module/Nav/config.json +++ b/module/Nav/config.json @@ -9,7 +9,7 @@ ], "modstartVersion": ">=2.5.1", "title": "通用导航配置", - "version": "1.1.0", + "version": "1.2.0", "author": "官方", "description": "提供多位置的导航配置工具", "config": { diff --git a/public/asset/common/base.js b/public/asset/common/base.js index 08382a29aed4d840d90f4bd9d6393805841793e0..23d5b608433242be9bc7c846e01e06ceec9b2abf 100644 --- a/public/asset/common/base.js +++ b/public/asset/common/base.js @@ -1 +1 @@ -!function(i){var a={};function n(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.m=i,n.c=a,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/asset//",n(n.s=284)}({10:function(e,t,n){"use strict";var i,a,o=(a={},function(e){if(void 0===a[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}a[e]=t}return a[e]}),c=[];function u(e){for(var t=-1,i=0;i>>24)|4278255360&(i[l]<<24|i[l]>>>8);i[e>>>5]|=128<>>9<<4)]=e;for(var s=A._ff,c=A._gg,u=A._hh,d=A._ii,l=0;l>>0,n=n+f>>>0,o=o+y>>>0,r=r+h>>>0}return g.endian([a,n,o,r])})._ff=function(e,t,i,a,n,o,r){r=e+(t&i|~t&a)+(n>>>0)+r;return(r<>>32-o)+t},A._gg=function(e,t,i,a,n,o,r){r=e+(t&a|i&~a)+(n>>>0)+r;return(r<>>32-o)+t},A._hh=function(e,t,i,a,n,o,r){r=e+(t^i^a)+(n>>>0)+r;return(r<>>32-o)+t},A._ii=function(e,t,i,a,n,o,r){r=e+(i^(t|~a))+(n>>>0)+r;return(r<>>32-o)+t},A._blocksize=16,A._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);e=g.wordsToBytes(A(e,t));return t&&t.asBytes?e:t&&t.asString?x.bytesToString(e):g.bytesToHex(e)}},123:function(e,t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&i.rotl(e,8)|4278255360&i.rotl(e,24);for(var t=0;t>>5]|=e[i]<<24-a%32;return t},wordsToBytes:function(e){for(var t=[],i=0;i<32*e.length;i+=8)t.push(e[i>>>5]>>>24-i%32&255);return t},bytesToHex:function(e){for(var t=[],i=0;i>>4).toString(16)),t.push((15&e[i]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],i=0;i>>6*(3-n)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],i=0,a=0;i>>6-2*a);return t}};e.exports=i},124:function(e,t){function i(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(i(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))||!!e._isBuffer);var t}},254:function(e,t,i){let u=i(5);"layer"in window&&console.error("ERR: dialog should required only once, use window.api.dialog instead");let n=i(286),r=(i(287),i(255)),d={device:"pc",loadingOn:function(e){if(e=e||null){e=n.open({type:1,content:'
'+e+"
",shade:[.3,"#000"],closeBtn:!1,title:!1,area:["auto","auto"]});return u("#layui-layer"+e).attr("type","loading"),e}return n.load(2)},loadingOff:function(){n.closeAll("loading")},tipSuccess:function(e,t){let i=2e3;e&&10','
',i.label,"
",'
','
确定
',"
"].join(""),{openCallback:function(){u("#dialog-input-box").find(".ok").on("click",function(){n=!0,d.dialogClose(o)}),u("#dialog-input-box").find("input").on("change",function(){a=u(this).val()})},closeCallback:function(){n&&e&&e(a)}})},preview:function(o,e){e=e||{};let r=u.extend({title:null,width:"auto",height:"auto"},e),l=u(window).width(),s=u(window).height();d&&d.loadingOn();let c=new Image;return c.onerror=function(){d.loadingOff(),d.tipError("Image load error")},c.onload=function(){d.loadingOff();let e=l-40,t=s-40,i=c.width,a=c.height;i>e&&(a=parseInt(a*e/i),i=e),a>t&&(i=parseInt(i*t/a),a=t);var n=['
',' ',"
"].join("");d.dialogContent(n,r)},c.src=o,!1}};e.exports=d},255:function(e,t,o){!function(i){const n=o(122);var a={specialchars:function(e){var t=[];if(!e)return"";if(0==e.length)return"";for(var i=0;i":t.push(">");break;case"&":t.push("&");break;case" ":t.push(" ");break;case'"':t.push(""");break;default:t.push(e.substr(i,1))}return t.join("")},text2html:function(e){return"

"+(e=a.specialchars(e)).replace(/\n/g,"

")+"

"},text2paragraph:function(e){return"

"+e.replace(/\n/g,"

")+"

"},urlencode:function(e){return e=(e+"").toString(),encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},randomString:function(e){e=e||16;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=t.length,a="",n=0;n{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},loadStylesheet:function(e,t){let i="s_"+n(e),a=document.getElementById(i);a?t&&t({isNew:!1}):(a=document.createElement("link"),a.id=i,a.rel="stylesheet",a.type="text/css",a.href=e,a.onload=()=>{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},md5:function(e){return n(e)}};e.exports=a}.call(this,o(5))},256:function(module,exports,__webpack_require__){var $=__webpack_require__(5),Util=__webpack_require__(255),EventManager=__webpack_require__(288),Form={defaultCallback:function(res,callback,Dialog){var code,msg,redirect,data,isWeiXin,winReload,redirectFunc,successFunc,errorFunc;Dialog=Dialog||null,callback=callback||{},"object"==typeof res?"code"in res?(code=res.code,msg="",redirect="",data=null,"msg"in res&&(msg=res.msg),"redirect"in res&&(redirect=res.redirect),"data"in res&&(data=res.data),isWeiXin=function(){return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},winReload=function(e){var t,i,a;isWeiXin()?(t=e.location,i=[],a="_t_"+(new Date).getTime()+"_",i.push(t.protocol),i.push("//"),i.push(t.host),i.push(t.pathname),t.search?/_t_\d+_/.test(t.search)?i.push(t.search.replace(/_t_\d+_/,a)):(i.push(t.search),i.push("&"),i.push(a)):(i.push(t.search),i.push("?"),i.push(a)),i.push(t.hash),e.location.replace(i.join(""))):e.location.reload()},redirectFunc=function(redirect){redirect&&("[reload]"===redirect?winReload(window):"[root-reload]"==redirect?winReload(Util.getRootWindow()):"[back]"===redirect?window.history.back():0===redirect.indexOf("[js]")?eval(redirect.substr(4)):window.location.href=redirect)},successFunc=function(){"success"in callback?callback.success(res):redirect?msg?Dialog?Dialog.alertSuccess(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):msg&&(Dialog?Dialog.tipSuccess(msg):alert(msg))},errorFunc=function(){"error"in callback?callback.error(res):redirect?msg?Dialog?Dialog.alertError(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):Dialog?Dialog.tipError(msg):alert(msg)},(0==code?successFunc:errorFunc)()):Form.defaultCallback({code:-1,msg:"parse error: "+JSON.stringify(res)},callback,Dialog):alert("ErrorResponse:"+res)},initAjax:function(e,o){o=o||null;var r=$(e);r.on("submit",function(){if(r.data("submiting"))return!1;var e=$(this).attr("action"),t=$(this).attr("method"),i=$(this).data("callbackValidate"),a=$(this).data("callback");if(i&&!i())return!1;var a=a||Form.defaultCallback,t=t||"get",n=$(this).serializeArray();return r.data("submiting",!0),o&&(i=$(this).attr("data-form-loading"),o.loadingOn(i)),$.ajax({type:t,url:e,dataType:"json",timeout:6e5,data:n,success:function(e){return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)},error:function(){var e={code:-999,msg:"请求出现错误 T_T"};return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)}}),!1})},initCommon:function(e,t){var i=$(e);i.on("submit",function(){if(i.data("submiting"))return!1;$(this).attr("action"),$(this).attr("method"),$(this).serializeArray();var e=$(this).data("callbackValidate");return $(this).data("callback"),!(e&&!e())&&(i.data("submiting",!0),t&&(e=$(this).attr("data-form-loading"),t.loadingOn(e)),!0)})}};module.exports=Form},258:function(e,t,i){"use strict";var a=i(11),n=i.n(a),o=i(26),r=i.n(o),l=i(271),s=i(272),a=i(273),o=i(274),i=i(275),n=n()(function(e){return e[1]}),l=r()(l.a),s=r()(s.a),a=r()(a.a),o=r()(o.a),i=r()(i.a);n.push([e.i,'.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url('+l+") center center no-repeat #eee}.layui-layer-ico{background:url("+s+") no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url("+a+") no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url("+l+") no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url("+o+") no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url("+i+") no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}",""]),t.a=n},26:function(e,t,i){"use strict";e.exports=function(e,t){return t=t||{},"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},271:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhJQAlAJECAL3L2AYrTv///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAJQAlAAACi5SPqcvtDyGYIFpF690i8xUw3qJBwUlSadmcLqYmGQu6KDIeM13beGzYWWy3DlB4IYaMk+Dso2RWkFCfLPcRvFbZxFLUDTt21BW56TyjRep1e20+i+eYMR145W2eefj+6VFmgTQi+ECVY8iGxcg35phGo/iDFwlTyXWphwlm1imGRdcnuqhHeop6UAAAIfkEBQoAAgAsEAACAAQACwAAAgWMj6nLXAAh+QQFCgACACwVAAUACgALAAACFZQvgRi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwXABEADAADAAACBYyPqcsFACH5BAUKAAIALBUAFQAKAAsAAAITlGKZwWoMHYxqtmplxlNT7ixGAQAh+QQFCgACACwQABgABAALAAACBYyPqctcACH5BAUKAAIALAUAFQAKAAsAAAIVlC+BGL3Z3IlxUmUuhtR2LzHhsiEFACH5BAUKAAIALAEAEQAMAAMAAAIFjI+pywUAIfkEBQoAAgAsBQAFAAoACwAAAhOUYJnAagwdjGq2amXGU1PuLEYBACH5BAUKAAIALBAAAgAEAAsAAAIFhI+py1wAIfkEBQoAAgAsFQAFAAoACwAAAhWUL4AIvdnciXFSZS6G1HYvMeGyIQUAIfkEBQoAAgAsFwARAAwAAwAAAgWEj6nLBQAh+QQFCgACACwVABUACgALAAACE5RgmcBqDB2MarZqZcZTU+4sRgEAIfkEBQoAAgAsEAAYAAQACwAAAgWEj6nLXAAh+QQFCgACACwFABUACgALAAACFZQvgAi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwBABEADAADAAACBYSPqcsFADs="},272:function(e,t,i){"use strict";t.a=i.p+"sprites/76ac4c2d9120b0b4f88365fe6b38038d.png"},273:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhPAAYALMPAPPJp/HYxfSwkf50Df5TD/+HAPe5bvqHR/twOviZavyrMu/m3f9EAP9mAP+ZAO7u7iH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wUmlnaHRzPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvcmlnaHRzLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcFJpZ2h0czpNYXJrZWQ9IkZhbHNlIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6QUNDRERBRjMxRTIwNjgxMTg4QzZERjVGQ0I0MDI1NDkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTlDMEI5MzU5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTlDMEI5MzQ5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENzU2N0YwMTMyMjA2ODExODhDNkRGNUZDQjQwMjU0OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQ0NEREFGMzFFMjA2ODExODhDNkRGNUZDQjQwMjU0OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkFAA8ALAAAAAA8ABgAAATy8MlJq7046827/2AWCEdpCkGodkHSvHCcLGttLUOsw0NqW4EDYog4+CyInbJxwAQMiqjCcMQkGNgsNmFxLZXcisFBLpMNGYF2zRBQAt9vFWCuOwCXAJt9FMSXbhILdnY0FQd7a00SB39Kiw9jhGZoFQSJWgQTjksTCpNmChaYa5ucOxOgdaOkWaanMamqZRaXrZoSObAvA56zDqKHrQyQjbtME5KqlW/DRwbHDcwBv1UTV5hhEnDHVcqEzF2J2te75BLflBsCCFoIgRU4pwOGFQCfZQp4PxUBSX8IrPELscDLkhkDB7bQxQthwocQI0rMEAEAIfkECQUADwAsAAAAADwAGAAABOjwyUmrvTjrzbv/ILcAiWCUQKh+y9G88DsIa40JcQ4ji30JCIZQeAhcAgOdMvEYKZ5PQA8UHFoZtEpSuVQ4vmCHwuhJXK+EqcTA5YbfYrUmcD4jKNt2rAB/GzoHdWdTAXo6fXByGASCV1k4hjADiG8pG41XTA9skS98lGB/l5hDmgmdnqChHIykWBKQnZOqDpYaVaRkAKgvtA6KFwCudxO8DZ+UCh64grYPp7yqwBgLzFYEWRNIvAlecGMhAq1DCGQVu7JNBn7THQDvAObBeVwJ7T4gLW2i+P0PAQkOCBQoxZ/BgwgTYogAACH5BAkFAA8ALAAAAAA8ABgAAATV8MlJq7046827/2AojmMgHE2aIslCckAcb8Kg3umQvFhCMEAgYXcR4HCFpEJhCPAkiKAUiLAEbMdGwcHtcg28w3R8qKCyA6/aASABxvC2JJBNrdcuURQ+rUqMWVt3XmAhC3xweWdHg2oKIm+IU3KLOI1qkJKTEpU3l14iAZpSTg+dKp9cjyKjQRMGdYKXhSFio2VzdQ2ppSEBP5IEvQ9YR7J3tCICmgIVALrHhE+/cMIXCboDxwpy0z5BQ8POxUcD3U88CwnkKQni6E8yMXnw9fb3+BURACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AojqQUCEeaJkC5CUgcJ0G2JE2u60jrVgICY0gcIhaXQ25QaDp1vt8jUKwaLbhGwcHtcgeNQe23EFqrAkogt/W6cwlp4mwlICW4gXvvyI1LZnRFaRJgfHtghCRUglUIJjmHbgUNBy4AjY4SAGGSXpSWJZiZRI8PnHqeXKAujKQMpmsNqquVP4GZioa0iT8Hrwx/Sqmefj8BuHRxE5xanmChPwKZRxVKznxgDX8/AAh00RQL18S1YYpSDzffpVEXAjvxB9zpiwnaOQfo9fz9/v8ApUQAACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojmS1AIkhJEBQasFBMDRDHC62JE3v97iXJVEr1hKThUHBdBQGv99gIZwIjFiG4AFweL/eQtSHqD4Cs2yR0AW7xeOGoXpQYwvuPHQ8FabtNA15g3ENWyUBgEUDg3mFBy8AijV4jWB7UZAlkpMMlZZemD+aJImdjKBej0KdDIKpDoWHJXWdn42iPzmIrQagcGOkL0SKSG15wFF9ZgJ/WLMBvpeFCLtmMVhBOjxxB1RmJgDiAN8bAQkH6Qcs4O3u7/Dx4BEAIfkECQUADwAsAAAAADwAGAAABMrwyUmrvTjrzbv/YCiOV5AgKCosZIsFCCPPc5KZQ6M3QxK4lgWBRuMVFEgDS5LYOXc24CRGlBUc2CwW8BA8vw2BtFuVDbRoByAHdg6WrmG1kU63v9EWoMy41rVsdzoDQAllBH9oBYJOPy2GVYiJWYuMOlyPh5OUlpcuApqbDpWWjiQBfH6TgYxSVER0m50NeS2gZap1BrOmLpBVuVpcTYy1QLdzuQamAqxuYmMTMGUJcBYmeL3REgAJ3gkC2hgLAOUA1tvp6uvs7R8RACH5BAkFAA8ALAAAAAA8ABgAAATs8MlJq7046827/2AojpmQICgqBGSLCQgjz3OyZEFy7LvgXoDZoEAsDBoyxGWRaDifzgHgNwkQGA2HdqstyBKWA3TsZFEPDAJ37RjIzBIBmTy4uQKyAnuNPEwWR3NjPi4CWHtrXgQTcoJjAz8xA4hrbxJijmNwIzF6lFtXUw+YmU+iJJ2foAyipKUNp5wMk6oOV2aupZsihlmqioyvUT94DJ6USEoSAcINYJGHlF6sFE2lA7sjxQ3HXNN+FAu5ZIRUAlcEtF1IDAh2FQaC2FQUATE0NOVACYENAyv0LMCgQeBAtoAIEypcyLDhhAgAIfkECQUADwAsAAAAADwAGAAABODwyUmrvTjrzbv/YCiOWiAgTJoiSUC+V0KodEokZWIIugtPAYNCUSgMZjWV4BI4NJ7QxsH3Mjiu2OsgqaJKFoOoeLB4AbJoR4PLQFQQ4rh7tEin2QyqIM5fiqx2WVtcfg9hfGMjCoFZBWxzC4h8Xh6MaI8SAJJxACKWWZgPmptRnSGLn45ccwGkUWUhgJaDSTgSh6QDIwGfDkhJeq4Ntn+zbAQUYLmwI7Joa2ymQLhxA5QiAKhXBdBcBxcLcHEHzD+Zv0kEhRcACQfvCdLmFAEytdfzZgD7AOX5/wADCrwQAQAh+QQJBQAPACwAAAAAPAAYAAAE6fDJSau9OOvNu/8gFiQkKSxh+gkE474uEqj0tSBw/gq1twCKYBCAOuiOhJllkRg0no0BDxRQOK5YhyJx7BIsAKj4ifgsrNlsodtNUBbOsdjgMaTvA7buOznI5UoaC3eELXowSgF/cm4bAIR3DYcwUwKLYwMcdpBZkpMujQaXY5qcnZ+gEgmjYhyPpleen42WrFEcg7AOqC4AEoq2Bx1onGu8FAi2vriwvAzCE2Gj0B1VhApGqEkVAnFyByhmm1gGKDifUxULfmN0PerZbATLGD8A9+8ZLF0y+f4PAhAIFJgg0L+DCBMqrBABACH5BAkFAA8ALAAAAAA8ABgAAATz8MlJq7046827/2AWCEhpCkGodkHCvHCcpGtdBUSswwRt3waFUGHwVRC7JAOBaR2eh9nG4KhaqwaLS5lMaBvgMNiLAVzPDgAlwOUaBeJ4Q3BZoNGLiaCtpEsWcnJGElR3V1kSSHw7TBIJgXFkFAqGVwoTi0oTA5BiAxaVZ5iZOxOdcaChVqOkMaanYRaUqpcSOa0vBJuwDZ8VhaGID4q4jQ+PsJITAaoOPlu4kgG8g4TBa7gvRsiQyr+GwhMHuAcWBpDhFwCzVQpqFgu3iwR5FgAHYgfvP2vEXAj7+K1YMI7LgXoCf7SQx4CAlIQQI0qcmCECACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AXACQZnuCSEEzrEkmAzpjAunhLCDRmKI5g0LC4BHJIl+wRSByeh1hKSBUWKYtbMkdQNb7gb+IDrFIVlcR2iwi7GzwOwGwGTI7r5Pu91NDpEwJ5SAR7bmMaC39mVweDOYZuAxsBi1VLCI84kW6UllSYmi6cYZ6fQaGiDKRfkxunQRNqqoWkiBoGpwaBqi2sfRmKn1cPWb21hreUZWYKwA+zogkGhrsguVVEF5maCBIAB2EHdicLAecBxBYL3HkI6j0zgmvK8T1NWgwwz/b9/v8AMUQAACH5BAkFAA8ALAAAAAA8ABgAAATY8MlJq7046827/+AXACQQhCi4CATjvoSwpFww2nMWtG/vEieaZQFwGI8ORbCy4Pl6hMZhmlimFMiswypBPKGNsDicoBm02pxE8IWN3w0BaoHWGijOLxzO5RTrWRMBbT97b2UgWIBIQQmEDIZvAyGKi0aNj5FvlJZHmISaYyFnnVtrmaENkyCknRMAj1GhiB90nXcTeU+pfRytgGoPjoSyhrQqlWgATLo+xW+4NH9ZCsGCzT5vB8tCEkQG4Aa9EwtehAjW3TQLCdgJ6erdAgn0CXLx+Pn6+xwRACH5BAkFAA8ALAAAAAA8ABgAAATM8MlJq7046827/2AojuSzCAeiqsJSaoChzIoBaALB7DyfvJaAwkEsEhWBS6LHIDQaTt0PKFkMjViFiwLoOZ/gJ0FAfVyx2Ypu9w2HB9QAeu5ISgQ9t75BfhnoaAYTCDxte08HQIBzE2sMh25wL4toE3mQYYqURpY8mJmTm0WdO59gQH+ighKEbKaJLwCiDjd3l5h9L2eAChQBjoZ7di9ylMMSS4WHBFNUVnRaSkx6DM1lDwC7CgBbFwCOTAy51yQLCeDM3eTr7O3u7yMRACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojiQVCEmaCEGpLYbizI5iLFlwMHzPHy1XJSCjGRVBU6JBYDZ8PEJSuCgaj7jJssHtMqGIrKt6LdeyAq/660sIHwaz2fBYrNdQxnRkldMUD1t3XQRQAi4BfmYBA4NqYIiKZQGOjz4IkZJGlJVdkCULmkYLjZ1Pl0KiNIGmhT6HLnGidJyVeXsioaJZgneuPZhviZJicIO/UcVjfVgWAAeWl7hjskY3GQsIeTxhbxcLAeEByhjPCOcIBwDe7O3u7/DxEhEAIfkECQUADwAsAAAAADwAGAAABMHwyUmrvTjrzbv/YCiOWGACgbcALEpygeHMtGNoAsLsPCG8GEBt6FAAEofkIRE48J68A7ASIBILjay2QYB6f9PHQmElDrbarveZmsrKRLR2/USE4dazXE1ntElVeENYcg19O2CAgoOFhocJQIGLM4RyhwyQL5KTlWiXiSSTNHpofHR/JG+TjZcEYQuinWmfYQ9CgrJZpmtStQ+bRAYAB1sHAAKHoLUxVjcZOV4+vhYxBtYACx0CCdwJytPg4eLj5B8RACH5BAkFAA8ALAAAAAA8ABgAAATI8MlJq7046827/2AojtgCGKgBLGSbLYojz7LClgnC7AyS3C7KgkacJQKWAIHHZBCQQQmsSG0khMsmkwB0GajUQkMg1WmbiO5oCKYOGsjE+Xz1tt3WR3a+DX7vRGIDAXxnUCQxgDRiDQCFWgAuiYoyjI6PTJEtk5SChJg8hyMAlDNvV3uPBEFspQ1wD3KgdZKlYnULqXNcUa2ADQYUn3xPURIBnFQHmkJmWmnGE1NUNi+yTD/RFQEGCt4KBqIvAOQr2ufo6errIhEAIfkECQUADwAsAAAAADwAGAAABLTwyUmrvTjrzbv/YCiO2QIYSqoYxkK+GODMdG1owoHsyCHAF0NtSLtZAgiGcqlEBIATGXEKqCwIzCyD4IIqplNFJanNIqBSMLEqAZTL7NdXTRRLDm/tAUgHT7B5TAR8fUQTgVqEhTWHiEyKizN/jkqDMHORdg9kjmcwaYtxApQMPzALkTNdEpx5nkBCi0YTAYgEcbCFsxQLrUwIq1APAXS4Fjm/AsHCDwsoQy3M0tPU1dbXGBEAIfkECQUADwAsAAAAADwAGAAABNbwyUmrvTjrzbv/4BWMZGiCC+CsrKMYyyljQWuvSqAFQA/os0kgcSjejoqYRYBgOJ8EQDDRqDYKR6Ql8ew+EzKBtTHIZqUTgHfNQKPGDXNWQWmyuwgTdSzPAgN3a0AfA2NYfTcGEgKBXgIhcIeILYoPXI1fkIaTNpWXmAxgIIVWZZwsaIygDI8ge1Wmpw5/qwyDHgFwsisUBKAEJ69XspUSapitJgabk0kVB40HQQAHsJy3ab5eUUEWCwpyzhkCCeUJbt0VCwZZMOnvxgbyBujw9vf4+RcRACH5BAUFAA8ALAAAAAA8ABgAAATi8MlJq7046827/2AWjGRogovirKyjAMspY0Zrr0owe0Fy/IeE7gG4GRWxS4LAaDIIiaQn0ahaq0KjVmEJMJ1gwpAjuJob2jSgggC7GYjO4nwdpLcUwfst4FDpVQV3WlJfe04EHAOAVYNaaw8Bh29jGIyNjjcGEgCTbpAZl2iZNptEnmCgGIuMpKUSkqhNlUqXgq4roIaTiRsBtrgrUgmyCR1/dHa4XBMLu28EUhsGgAYqrrReh2IgAAdXB2sLrqYWS24H0juR13flFwsA8jDr8DVq9fkB9ywKBur5AgocSPBCBAA7"},274:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy8rq6uoGBgTQ0NAEBARsbG8TExJeXl/39/VRUVAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBQAAACwAAAAAIAAgAAAE5xDISSlLrOrNp0pKNRCdFhxVolJLEJQUoSgOpSYT4RowNSsvyW1icA16k8MMMRkCBjskBTFDAZyuAEkqCfxIQ2hgQRFvAQEEIjNxVDW6XNE4YagRjuBCwe60smQUDnd4Rz1ZAQZnFAGDd0hihh12CEE9kjAEVlycXIg7BAsMB6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YEvpJivxNaGmLHT0VnOgGYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHQjYKhKP1oZmADdEAAAh+QQFBQAAACwAAAAAGAAXAAAEchDISasKNeuJFKoHs4mUYlJIkmjIV54Soypsa0wmLSnqoTEtBw52mG0AjhYpBxioEqRNy8V0qFzNw+GGwlJki4lBqx1IBgjMkRIghwjrzcDti2/Gh7D9qN774wQGAYOEfwCChIV/gYmDho+QkZKTR3p7EQAh+QQFBQAAACwBAAAAHQAOAAAEchDISWdANesNHHJZwE2DUSEo5SjKKB2HOKGYFLD1CB/DnEoIlkti2PlyuKGEATMBaAACSyGbEDYD4zN1YIEmh0SCQQgYehNmTNNaKsQJXmBuuEYPi9ECAU/UFnNzeUp9VBQEBoFOLmFxWHNoQw6RWEocEQAh+QQFBQAAACwHAAAAGQARAAAEaRDICdZZNOvNDsvfBhBDdpwZgohBgE3nQaki0AYEjEqOGmqDlkEnAzBUjhrA0CoBYhLVSkm4SaAAWkahCFAWTU0A4RxzFWJnzXFWJJWb9pTihRu5dvghl+/7NQmBggo/fYKHCX8AiAmEEQAh+QQFBQAAACwOAAAAEgAYAAAEZXCwAaq9ODAMDOUAI17McYDhWA3mCYpb1RooXBktmsbt944BU6zCQCBQiwPB4jAihiCK86irTB20qvWp7Xq/FYV4TNWNz4oqWoEIgL0HX/eQSLi69boCikTkE2VVDAp5d1p0CW4RACH5BAUFAAAALA4AAAASAB4AAASAkBgCqr3YBIMXvkEIMsxXhcFFpiZqBaTXisBClibgAnd+ijYGq2I4HAamwXBgNHJ8BEbzgPNNjz7LwpnFDLvgLGJMdnw/5DRCrHaE3xbKm6FQwOt1xDnpwCvcJgcJMgEIeCYOCQlrF4YmBIoJVV2CCXZvCooHbwGRcAiKcmFUJhEAIfkEBQUAAAAsDwABABEAHwAABHsQyAkGoRivELInnOFlBjeM1BCiFBdcbMUtKQdTN0CUJru5NJQrYMh5VIFTTKJcOj2HqJQRhEqvqGuU+uw6AwgEwxkOO55lxIihoDjKY8pBoThPxmpAYi+hKzoeewkTdHkZghMIdCOIhIuHfBMOjxiNLR4KCW1ODAlxSxEAIfkEBQUAAAAsCAAOABgAEgAABGwQyEkrCDgbYvvMoOF5ILaNaIoGKroch9hacD3MFMHUBzMHiBtgwJMBFolDB4GoGGBCACKRcAAUWAmzOWJQExysQsJgWj0KqvKalTiYPhp1LBFTtp10Is6mT5gdVFx1bRN8FTsVCAqDOB9+KhEAIfkEBQUAAAAsAgASAB0ADgAABHgQyEmrBePS4bQdQZBdR5IcHmWEgUFQgWKaKbWwwSIhc4LonsXhBSCsQoOSScGQDJiWwOHQnAxWBIYJNXEoFCiEWDI9jCzESey7GwMM5doEwW4jJoypQQ743u1WcTV0CgFzbhJ5XClfHYd/EwZnHoYVDgiOfHKQNREAIfkEBQUAAAAsAAAPABkAEQAABGeQqUQruDjrW3vaYCZ5X2ie6EkcKaooTAsi7ytnTq046BBsNcTvItz4AotMwKZBIC6H6CVAJaCcT0CUBTgaTg5nTCu9GKiDEMPJg5YBBOpwlnVzLwtqyKnZagZWahoMB2M3GgsHSRsRACH5BAUFAAAALAEACAARABgAAARcMKR0gL34npkUyyCAcAmyhBijkGi2UW02VHFt33iu7yiDIDaD4/erEYGDlu/nuBAOJ9Dvc2EcDgFAYIuaXS3bbOh6MIC5IAP5Eh5fk2exC4tpgwZyiyFgvhEMBBEAIfkEBQUAAAAsAAACAA4AHQAABHMQyAnYoViSlFDGXBJ808Ep5KRwV8qEg+pRCOeoioKMwJK0Ekcu54h9AoghKgXIMZgAApQZcCCu2Ax2O6NUud2pmJcyHA4L0uDM/ljYDCnGfGakJQE5YH0wUBYBAUYfBIFkHwaBgxkDgX5lgXpHAXcpBIsRADs="},275:function(e,t,i){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABkCAYAAAAv8xodAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNS8xMS8xNNdPc0oAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAWb0lEQVR4nO2de2wU172Av5l92t4Hti/YQHmVmFcSE7+WR0h0uRRVVC2pKldpCFJQEJAiFwg4diikgLEghEhpVLVQNblBSFEUVYoi+hc0FQoE87B52JQAiQnBJDY2wfix633O7P1jdwbbxe9d7yx3PgnJc87iM2M+js+cx+8nhMNhdHQeFcRE34COTizRhdZ5pNCF1nmk0IXWeaQwPqxQEIRYtpEKOABL9NoLtAKhWDbSDRF4EsgAbEBHtL3LAIN9CV6+fHlSvS0fOXLkof9oj8pzDJZ499A2YCxgWbJkiSUnJ8cApADZgCEO7ZmAImAyYFuxYsV4Iv+ZpgIFcWhPR2PEU2gbkAlQU1Mz67PPPvvvq1ev/s/f/va3LCIyp8e4PROQD4wrLi7Oam9vP/Dhhx/+9f79+3/Kz8+3AxPi0KaOxoiX0KrM169ff6KgoGAKgMFgEF944YWZ0c9Y+vrLw8BEpAceV1xcnHX48OE3HQ7HRIAxY8ZM2bdv39Lo5zJi2KaOBomH0D1knjFjxsTulX6/Pxj9Uo5Re4rMY1esWDH+8OHDb6akpGR2/4Db7fZEv4zXuF1HI8Ra6H5lDgQC0ttvv/1l9NIfg/Z6yPzee+/t6S1zY2PjpdWrV/8retkagzZ1NEwshR5Q5j179pzfu3dvOxBg5HINKHNTU1Ody+WqbG1tDQENQOcI29TROA+dthsGGYAd+pd5165d94nIfHeE7Q1K5qKioorvv/8+ANwGakfYZlwIh8MEg0F1OtFoNGIwxGMCKL4Eg0G6urqQJAlRFElNTcVsNo/6fcSih84A7BaLRRiCzCMZy5qAQoYm86URtBc3FJnNZjMzZswgKyuLQCCAJEmJvrUhEQwGcbvdZGdn88ILL5CTk0NnZ2dCnmOkPbQqc11d3eMPk3n37t01lZWVbcRW5v966aWXJh44cKAyWWWWZZlgMIjD4aCoqIj09HRkWeb48eO0tbUlTS+tyDxz5kz2799Peno6LS0trFq1Cr/fT2pq6qjez0iE1mUeJorM6enpFBUVkZaWRigUIhgMEgwGB/4GGiEQCOB2u5kzZw779u0jPT0yze/xeJAkKdYrzoNiuELrMg8TSZIIBoNkZWVRWFiI2WwmHA7j8/k4d+4cnZ2dCRl7DhWlZ37iiSd46623cDgcANy5c4c33ngDj8eD0+kc9fsajtC6zMMkGAwiSRKTJk0iLy9PHVZ4PB7Onj1LR0cHZrMZUdT2njGlZ87Ly2P//v1YrVYAmpqaKC0tpaGhAbvdnpBh01CFHm2ZzURmMx4ZmadNm0Zubi6iKCIIAm1tbZw5cwav14vJZNK8zH6/H7fbTWFhIXv27Okh85YtW7h9+zY2mw2TyZSQ+xuK0KrMly9ffiInJ2dC98pEyNzY2HjJ5XJVJoPMoVCI2bNnM2vWLCCyo/Hu3bucPXuWUCiE2WxOyJhzKCgyL1y4kMrKSiyWyO6Fb7/9li1bttDS0pJQmWHwQidU5oMHD+6xWq09NhYlg8zKtJwsy+Tm5vLYY48RDocRRZGmpiaqq6uRZRmTyaR5mX0+Hx6Ph2eeeYbdu3er0jY0NFBaWqoJmWFwQg8kc2j37t3ndZl70l3mvLw8pk6dSjgcxmAw8O2333LhwgVEUUyKF0C/36/KXFFRoUpbX19PaWkp9+7dw263YzTGap1u+Ax0B7rMwyAcDhMIBDAajbhcLsaPH48sy4iiyNdff01tbS1GozHhvdlgUHrmpUuXsmPHDvU3ybVr1ygtLaW9vV0zMkP/QusyDwNljtlsNlNUVMS4ceNUma9evcrVq1eTSma3282yZcvYvn27KvP169cpKyujo6NDUzJD30Kn8UDmJ3NycsZ3r4yDzABzeURkTklJweVykZGRQTgcRhAEamtr+eabbzCZTJoSoC+UnvnnP/85W7duVWWuq6ujtLQUn8+XsKm5/ujrJ2sDuHDhwpxRktkJZC9evDg92WV2OBy4XC5sNhuyLCPLMpcuXaKhoQGj0ZgUMnu9XtxuN7/61a947bXX1PLa2lrKy8s1KzP0LbR18uTJ4uzZs3vMM0uSJMdBZohuOy0rK1vUW+bm5uZ/a11mgFAohM1mY8GCBaSmpiJJEj6fj9raWpqbmzGZTJoUoDfBYBCPx/MfMl+8eJGtW7fS1dWlWZmhn912zc3N4WCvjQUGg0H85S9/mR29NEf/xAIvQGNj43/skU5PT//xypUrp0YvHUQO2WoOWZZxOp04HA4kScJgMNDS0sKdO3cQRVGzAvQmGAwyZswY1q5dq5bduHGD9evX4/F4cDgcmn6WvoTu8vv94YMHD16WJKnHUamCgoIpNTU1s6KXY4mEKRgprQAlJSWn6+vrP+9eYTabUysqKirKy8tnEBmaFKFBqUVR5M6dO9y+fRuj0YgkSUyePJk5c+aoG4+SAYPBgMfj4cqVK2rZhAkT+NnPfoYsywQCgQTe3cD0JXQrENq4ceMPf/7zny+OgtR+4JbX65Vzc3PfSUapTSYTsixz7tw5Ghoa1F5s5syZ5Ofnq2NsraM8x86dO6mpqQEgJSWF7du3s3z5ctxuN16vN8F32Td9CS0BzYyu1HUksdSCIKiLJDU1Ndy4cQODwUA4HGbatGkUFhYC9DidokVEUcThcODz+Xj99deprq4GIs9XXl5OcXExbrebrq6uBN/pw+lvJ0wIXeoho2wwunTpEteuXUMURWRZZtKkSbhcLkRR1LzUBoMBu91OIBDg97//PefOnVPrNm/ezPPPP4/H49Gk1ANt7dKlHgbKXPOVK1e4fPkygiAgyzLZ2dksXLgQq9WaFFI7HA78fj9btmzhxIkTat2mTZt48cUXNSn1YPYq6lIPA5PJhMlk4uuvv+bChQuqvJmZmcyfP5/U1FQCgQCyHKvwJLFHGX4IgsCOHTt6SF1SUsKqVavweDx4PJ5+vsvoMtjNt7rUw0BZ4r516xbV1dWEQiHC4TBOp5OFCxfidDrVDUxaRZFalmXeeOMNjh8/rtatW7eOl19+ma6uLs1IPZTd5LrUw8BgMGAymWhsbOTs2bP4/ZH4OmlpaSxcuJCxY8eqm/+1iiiK2O12ALZv386xY8fUujVr1rBu3To8Hg9utztRt6gy1OMRutTDwGAwYDabaWlpoaqqSh13WiwWXC4X2dnZSSO10Whk9+7dHD16VK1btWoVJSUlmuiph3PeR5d6GCh7n9vb2zl16hSdnZ0IgoDRaKSoqIgpU6aoJ1u0ijL8EEWRHTt2cOTIEbVu5cqVbNiwIeE99XAPsOlSDwNRFDGZTHg8Hqqqqrh37x6CIGAwGMjPz2f69OlIkqRpqQVBwG63Y7Va2bt3L59++qlat2LFCkpLS+nq6kqY1CM5kalLPQyUntrn81FVVUVzc7N6MDY3N1cNOKNllOGHxWJh3759fPLJJ2pdcXExr776Kj6fLyHL5CM9YqxLPQwEQVCXmM+cOUNDQwMQ2bap5d65O0pPrUj90UcfqXW/+MUvyMjISMizxOLMvC71MFCkFgSB6upqTp06xcmTJ+no6EiKPdPwQOqUlBTeffddDh48yHfffcfHH39MW1tbQk7lxCoIxHCkHmkE/6FKnTvC9uKCsgBz7949fD5fUgSa6Y4gCDgcDiwWC4cOHWLdunUcOHAAs9mc1ELDIKU+fvz4tOilPQZtDkrq4uLiLGAcGk1JocxVJ0Ogmb5wOp2MGzcOg8FAdnY2NpstIfcR65/egFIXFRVNjn4ZqxwrA0q9fv36Z6KXmhRaJ3bEozvoV+qOjg5l5j2Wm4P7lbq+vv776JeJX8rSiSvxevtQpM7auHHjD62trTWrV6+e5vP5gqWlpV9HPxOLHCvdqQPwer1TcnNz3zly5MjN3Nxc16VLl86sXbv2dLQ9PcfKI47wsC2MMQxLZSTyAtj77KEXaIlVI73IBaY8pPwk0KZnktU2I80kG+/5oRDQRORwq5VIKjcf8f3VX0fkdHg2kTFza/Qe2uLYpo5GiHcPrTm0vKleZ+T010ObiaQStkavfUR6uViPfbujJJ13EOnFlaTzo74W/Kj8qn5UnmOw9DXLYQbGA9a8vDxTXl6eiYjY2TwQPNYUEEky74gmnbcRSUJfRCSKv47OgPQl9BiAo0ePTjl//vzi8+fPL/7nP/+pLIhkEXup04EJ+fn59vv37//pww8//Gt7e/uBbgsi+ehS6wyCvoROcTqdwpIlS2YIUX7yk5/M+Pzzz6dH62MtdQbAvn37lo4ZM2YKgMPhmHj48OE3dal1hkKfCys+nw9Jknpsl3r22Wcfi5PUIeiRZB6AlJSUzF5SF6BLrdMP/YYC++CDD/4d7jUt8Oyzzz526tSpx6KXsZK6FWD16tX/amxs7BGMUZE6Oq4eiy61Tj/0FwpMeuWVV+6+//77tb2lXrhw4fQYS90JNLS2toZcLldlU1NTXffKlJSUzPfee2+PLrXOQAwUCkxas2ZN8/vvv1/be5NRHKSuBW5///33gaKioopklFqSJPx+P36/n0AgkLRz3oFAgLa2NlpbW2lvb0+KmHwK/W1OCtJN6g8++KBuEFKPdBP9JZJUakmSCAQCZGVlkZOTg8lk0nx0pIchSRJut5ucnBx+85vfkJWVhdvtThqpB9ptFwTuMHipxzH6UheiAaklSSIzM5Onn36auXPnsmjRIjU+nNbPCHbH7/fjdDrZu3cvJSUlHDhwgJycnKSRerChwAaUuqqqKid6OWpSv/TSSxOB/0IjUgeDQfx+P6FQCKfTyfz580lPT9d8dKTuCIKAJElq7JDMzEz279/PrFmz6OzsTNr40L0ZUOoFCxb8eLSlPnDgQKVWpDYajbjdbk6fPo3f7yccDpOamsqCBQsYN24cgUBA04FkFMxmM263mz/84Q+0tEQ2RGZmZvL222/z+OOPa76nHmooMF3qPlBibrS2tlJVVaVGEDKbzcybN48f/ehHBINBTcsAD0Lp3rx5k82bN9Pc3AxEjli9++67PPXUU5ruqYcTCiyhUj9snlprUnd0dPDFF1/Q0dGhBpIpKChg6tSpSJKkealNJhM2m41bt26xefNm7ty5A4DVauXNN98kPz8ft9utxunTEsMNBZYwqV0uV+UgpU5IzmFFap/PxxdffMEPP/yAIAgIgsBTTz3FzJkzkyLniiJ1Q0MDJSUl3Lp1CwCbzcZbb73FvHnz8Hg8mpN6JKHAtC51AQmSWom5EQwGOX36tJoJC2DOnDk8+eSThEIhzc9VK1I3Nzfz2muvcfv2bQA1DNjTTz+N2+3G5/Ml+E4fMNJQYANKfe7cuVGV+uDBg3u0IrXZbEaWZU6fPq0mEgqHw+Tk5JCXl6cmEtK61Ha7naamJjZu3Mg333wDRN4NKioqWLRokaZ66liEAutX6qKiolGV2mq1pmtFaniQc6Wmpob6+no1PcW0adOYN28eoihqvqc2Go3Y7Xbu3r3Lpk2buH79OhAJB7x3716WLFmimZ46VqHAdKn7Qcki2z2RUDgcZuLEicybNw+z2az5BRhF6ra2NsrKyvjqq6+AyDvDrl27+OlPf4rH40m41LEMBTZUqUcaaGaoUs8dYXsjQomMdPXqVerq6hAEgXA4TFZWFvPnz1cTCSWD1Pfv3+d3v/sdly9fBiLDq+3bt7Ns2bKESx3rUGADSt0tFJgjBm32kPq777670L1SkXrx4sXpRI6POWPQ5rBRktffuHGDCxcuIEkSsiyTkZHBokWLcDgcmpdamaf2er2UlZVRVxdZGhBFkW3btiU8OWc8QoH1kLr3B+bNm6fEzIhVKDBV6vnz5+9pbm7+d/dKq9WaXlZWtih6mRmjNoeNkkiooaGB6upqvF4vsixjt9uZP38+NptN8yF1Fak9Hg/l5eXU1tYCkZ66rKyM5557Do/Hk5CpyXiEAnMABovFIixZsiS7d6XX61Veh2O1DpwSbZOVK1dOTU9P/3HvDzQ2NioRkzSR09dgMCCKIk1NTbS0tGAwGJAkCafTidPp1HQPraDkMXS73fz2t7/lxo0bQETqdevWqRm+RptYC50B2C0Wi3D16tXcadOm9RA6EAgEKysrlazosRhopRA5Fe4sLy+fUVFRUWE2m3vEnq6vr/+8pKTkdPRSE6HAlFwqc+bMYfLkyUiShNFo5Pbt2zQ1NSVNBFLlRXbZsmVMmDBBLf/yyy/p6upS852PJrGMnDSgzK+//nrNO++800Ektsf9EbY3KJlzc3Pf8Xq9MnCL+MYUGRTKGDk/P5+pU6ciyzIGg4GGhgY1QWci4ioPFa/Xi8fj4bnnnqOsrEwNTlRTU8POnTuRZTkhzxEroYcq890Rtjccmf9jPD+ahMNhdWxcWFjIpEmTVJlv3LhBXV2dmn9F6yjp237961+zefNmtby6upqtW7cSCATUbFmjTSyEzgRsQ5R5JOPnpJQ5GAxiMBgoLCxk/PjxyLKMKIpcu3aNK1euqC+LWkeR+fnnn2fTpk1q+blz59i2bRuBQAC73Z6Q4QaMXOhMwOZ0OoWLFy/qMj8ERWar1UpRUREZGRnIsowgCFy+fJmvvvoq6WR+8cUXKSkpUctPnDjBtm3b1PQUiXwHGInQuswDoOzVSEtLw+VyMWbMGMLhMOFwmIsXL3Lr1i1MJlNSJAnyeDx0dXWxatUq1q1bp5afOHGCHTt2aEJmGL7QuswDoMjsdDpxuVykpaWp4+jz58/T2NioLolrHUXml19+mTVr1qjlx48fZ+fOnQCakBmGJ7Qu8wAo2WDHjh1LYWEhFktkDcnv91NTU0NLS0vSyOx2u+nq6uKVV15h1apVavmxY8fYtWuXuhyuBZlh6ELrMg+AciJl/PjxFBQUqGPjrq4uzp49S1tbW9KkblN65pKSElauXKmWHz16lMrKSs3JDEMTWpd5AEKhEKFQiClTpjB37lxEUUQQBDo6Ojhz5gwejydpZFZ65g0bNrBixQq1/MiRI+zZsweLxYLD4dBccPzBCq3LPAChUAhJkpg+fTq5uQ9yfN67d0/ds5EseQgVmUtLSykuLlbLP/30U/bt24fVasVms2lOZhic0LrMg0CWZdLT01WZlb0a1dXVSJKE2WzWpAC9CQQC+P1+Xn311R4yf/LJJ+zfvx+LxYLdbtfsswwktC7zEAiFQni9XlJSUmhoaOD8+fM9cnonA6FQiIyMDJYvX66WffTRR/zxj38kJSVF0zJD/0LrMg8Bo9FIZ2cnJ0+eJC0tTd1FlwwLJt0xmUy0tbXx8ccfs3TpUv7xj39w6NChpJAZ+hY6jdGVGSL5BZNSZugZvsDn8yXNtFxvlJM1f/nLX/j73/9Oa2ur+gKYDPQltA2gqqpqzijJnAGMKy4uzkpGmRVEUUyKl76BsNlsavL5sWPHJvhuhkZfP32r0+kUZs+ePbF7YZxkhmiOlfXr1z+TrDLraIO+hA62t7eHOzo6upSCOMoM0cyy3ZLME73WZdYZEn0J7QcoLy+/ePPmzeabN2/e2bBhw9k4yQyRkyT+tWvXnj527Nj/trS0fPnZZ58d0mXWGSp9pUYWiIQa6J1mwgf8QGxlVhgDPPOQ8pjKrCev1zbxSl4fJpKOwsGD09l+oGMkjQ1AG3CSSAZbJen8HUZ+VEvn/xEP7aF1dJKV5J9j0tHphi60ziOFLrTOI4UutM4jhS60ziPF/wHgvbfirVNMHAAAAABJRU5ErkJggg=="},284:function(e,t,i){const a=i(5),n=i(285),o=i(254),r=i(290),l=i(255),s=i(291),c={ready(){let e=Array.from(arguments);const t=e.pop();let i=!0;for(var a of e)if("function"==typeof a?a()||(i=!1):a||(i=!1),!i)break;i?t():setTimeout(()=>{c.ready.call(this,...arguments)},50)},dialog:o,util:l,api:{defaultCallback:n.defaultFormCallback,post:n.post}};window.api=window.api||{},window.api.jquery=a,window.api.base=n,window.api.dialog=o,window.api.lister=r,window.api.selectorDialog=s,window.api.util=l,n.init(),window.MS=c},285:function(e,t,i){var a=i(5),n=i(254),o=i(256),r=i(289),l={init:function(){a(function(){a("form").each(function(e,t){a(t).unbind("submit"),void 0!==a(t).attr("data-ajax-form")?o.initAjax(t,n):a(t).is("[data-form-no-loading]")||o.initCommon(t,n)})}),r.init(n)},defaultFormCallback:function(e,t){return o.defaultCallback(e,t,n)},post:function(e,t,i){a.ajax({type:"post",url:e,dataType:"json",timeout:6e5,data:t,success:function(e){i&&i(e)},error:function(){i&&i({code:-999,msg:"请求出现错误 T_T"})}})},postSuccess:function(e,t,i,a){i=i||l.defaultFormCallback,a=a||l.defaultFormCallback,l.post(e,t,function(e){l.defaultFormCallback(e,{success:function(e){i(e)},error:function(e){a(e)}})})}};e.exports=l},286:function(r,l,s){!function(n){var o;!function(f){"use strict";function t(e){var t=this;t.index=++h.index,t.config=y.extend({},t.config,u.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)}var y,c,e,i=f.layui&&layui.define,u={getPath:(e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,a=i;0'+(o?a.title[0]:a.title)+"
":"";return a.zIndex=n,t([a.shade?'
':"",'
'+(e&&2!=a.type?"":o)+'
'+(0==a.type&&-1!==a.icon?'':"")+((1!=a.type||!e)&&a.content||"")+'
'+(r=r?'':"",a.closeBtn&&(r+=''),r)+""+(a.btn?function(){var e="";"string"==typeof a.btn&&(a.btn=[a.btn]);for(var t=0,i=a.btn.length;t'+a.btn[t]+"";return'
'+e+"
"}():"")+(a.resize?'':"")+"
"],o,y('
')),this},t.pt.creat=function(){var e,a=this,n=a.config,o=a.index,r="object"==typeof(s=n.content),l=y("body");if(!n.id||!y("#"+n.id)[0]){switch("string"==typeof n.area&&(n.area="auto"===n.area?["",""]:[n.area,""]),n.shift&&(n.anim=n.shift),6==h.ie&&(n.fixed=!1),n.type){case 0:n.btn="btn"in n?n.btn:u.btn[0],h.closeAll("dialog");break;case 2:var s=n.content=r?n.content:[n.content||"http://layer.layui.com","auto"];n.content='';break;case 3:delete n.title,delete n.closeBtn,-1===n.icon&&n.icon,h.closeAll("loading");break;case 4:r||(n.content=[n.content,"body"]),n.follow=n.content[1],n.content=n.content[0]+'',delete n.title,n.tips="object"==typeof n.tips?n.tips:[n.tips,!0],n.tipsMore||h.closeAll("tips")}a.vessel(r,function(e,t,i){l.append(e[0]),r?2==n.type||4==n.type?y("body").append(e[1]):s.parents("."+d[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),y("#"+d[0]+o).find("."+d[5]).before(t)):l.append(e[1]),y(".layui-layer-move")[0]||l.append(u.moveElem=i),a.layero=y("#"+d[0]+o),n.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),y("#layui-layer-shade"+a.index).css({"background-color":n.shade[1]||"#000",opacity:n.shade[0]||n.shade}),2==n.type&&6==h.ie&&a.layero.find("iframe").attr("src",s[0]),4==n.type?a.tips():a.offset(),n.fixed&&c.on("resize",function(){a.offset(),(/^\d+%$/.test(n.area[0])||/^\d+%$/.test(n.area[1]))&&a.auto(o),4==n.type&&a.tips()}),n.time<=0||setTimeout(function(){h.close(a.index)},n.time),a.move().callback(),d.anim[n.anim]&&(e="layer-anim "+d.anim[n.anim],a.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){y(this).removeClass(e)})),n.isOutAnim&&a.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,i=y("#"+d[0]+e);""===t.area[0]&&0t.maxWidth&&i.width(t.maxWidth));var a=[i.innerWidth(),i.innerHeight()],n=i.find(d[1]).outerHeight()||0,o=i.find("."+d[6]).outerHeight()||0,e=function(e){(e=i.find(e)).height(a[1]-n-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(a[1]=t.maxHeight,e("."+d[5])):t.fixed&&a[1]>=c.height()&&(a[1]=c.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],n="object"==typeof t.offset;e.offsetTop=(c.height()-a[1])/2,e.offsetLeft=(c.width()-a[0])/2,n?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=c.width()-a[0]:"b"===t.offset?e.offsetTop=c.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=c.width()-a[0]):"rb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=c.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?c.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?c.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=c.scrollTop(),e.offsetLeft+=c.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=c.height()-(i.find(d[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,i=[t.outerWidth(),t.outerHeight()],a=y(e.follow),n={width:(a=!a[0]?y("body"):a).outerWidth(),height:a.outerHeight(),top:a.offset().top,left:a.offset().left},o=t.find(".layui-layer-TipsG"),a=e.tips[0];e.tips[1]||o.remove(),n.autoLeft=function(){0"+(i.value||"")+"":'',o=i.success;return delete i.success,h.open(y.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+A("prompt"),maxWidth:c.width(),success:function(e){(n=e.find(".layui-layer-input")).focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=n.val();""===t?n.focus():t.length>(i.maxlength||500)?h.tips("最多输入"+(i.maxlength||500)+"个字数",n,{tips:1}):a&&a(t,e,n)}},i))},h.tab=function(a){var n=(a=a||{}).tab||{},o="layui-this",r=a.success;return delete a.success,h.open(y.extend({type:1,skin:"layui-layer-tab"+A("tab"),resize:!1,title:function(){var e=n.length,t=1,i="";if(0'+n[0].title+"";t"+n[t].title+"";return i}(),content:'
    '+function(){var e=n.length,t=1,i="";if(0'+(n[0].content||"no content")+"";t'+(n[t].content||"no content")+"";return i}()+"
",success:function(e){var t=e.find(".layui-layer-title").children(),i=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=y(this),e=t.index();t.addClass(o).siblings().removeClass(o),i.eq(e).show().siblings().hide(),"function"==typeof a.change&&a.change(e)}),"function"==typeof r&&r(e)}},a))},h.photos=function(i,e,a){var t,n,o={};if((i=i||{}).photos){var r=i.photos.constructor===Object,l=r?i.photos:{},s=l.data||[],c=l.start||0;o.imgIndex=1+(0|c),i.img=i.img||"img";var u=i.success;if(delete i.success,r){if(0===s.length)return h.msg("没有图片")}else{var d=y(i.photos),p=function(){s=[],d.find(i.img).each(function(e){var t=y(this);t.attr("layer-index",e),s.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(p(),0===s.length)return;if(e||d.on("click",i.img,function(){var e=y(this).attr("layer-index");h.photos(y.extend(i,{photos:{start:e,data:s,tab:i.tab},full:i.full}),!0),p()}),!e)return}o.imgprev=function(e){o.imgIndex--,o.imgIndex<1&&(o.imgIndex=s.length),o.tabimg(e)},o.imgnext=function(e,t){o.imgIndex++,o.imgIndex>s.length&&(o.imgIndex=1,t)||o.tabimg(e)},o.keyup=function(e){var t;o.end||(t=e.keyCode,e.preventDefault(),37===t?o.imgprev(!0):39===t?o.imgnext(!0):27===t&&h.close(o.index))},o.tabimg=function(e){if(!(s.length<=1))return l.start=o.imgIndex-1,h.close(o.index),h.photos(i,!0,e)},o.event=function(){o.bigimg.hover(function(){o.imgsee.show()},function(){o.imgsee.hide()}),o.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),o.imgprev()}),o.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),o.imgnext()}),y(document).on("keyup",o.keyup)},o.loadi=h.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1}),e=s[c].src,t=function(e){var t;h.close(o.loadi),o.index=h.open(y.extend({type:1,id:"layui-layer-photos",area:(t=[e.width,e.height],e=[y(f).width()-100,y(f).height()-100],!i.full&&(t[0]>e[0]||t[1]>e[1])&&((e=[t[0]/e[0],t[1]/e[1]])[1]'+(s[c].alt||
'+(1':"")+'
'+(s[c].alt||"")+""+o.imgIndex+"/"+s.length+"
",success:function(e,t){o.bigimg=e.find(".layui-layer-phimg"),o.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),o.event(e),i.tab&&i.tab(s[c],e),"function"==typeof u&&u(e)},end:function(){o.end=!0,y(document).off("keyup",o.keyup)}},i))},(n=new Image).src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},n.onerror=function(e){n.onerror=null,h.close(o.loadi),h.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1',' ',""].join("");Dialog.dialogContent(a,opt)},img.src=imgUrl,!1})},initSmartImage:function(){$(document).ready(function(){setTimeout(function(){$("[data-smart-image]").each(function(e,t){$(t).attr("src",$(t).attr("data-smart-image"))})},0)})},initTip:function(i){i=i||null,$(document).on("click","[data-tip-error]",function(){return i?i.tipError($(this).attr("data-tip-error")):alert($(this).attr("data-tip-error")),!1}),$(document).on("click","[data-tip-success]",function(){return i?i.tipError($(this).attr("data-tip-success")):alert($(this).attr("data-tip-success")),!1}),$(document).on("mouseover","[data-tip-popover]",function(e){var t=$(this).attr("data-tip-popover");i?i.tipPopoverShow(this,t):$(this).attr("title",t)}).on("mouseout","[data-tip-popover]",function(e){i&&i.tipPopoverHide(this)})},init:function(e){inited||(inited=!0,Convenient.initAll(e),Convenient.initSmartImage(),Convenient.initTip(e))}};module.exports=Convenient},290:function(e,t,i){!function(s){let c=i(256),u=i(254);e.exports=function(e,t){let a=s(e.lister||null),i=s(e.search||null),n=this,o={page:1,pageSize:10,field:[],order:[],search:[]},r=null,l=s.extend({server:"/path/to/server",editQuickServer:"/path/to/edit/quick",hashUrl:!0,render:function(e){}},t);this.getData=function(){return r},this.init=function(){let e=window.location.hash;0===e.indexOf("#")&&(e=e.substring(1));try{e=decodeURIComponent(e);var t,i=JSON.parse(e);for(t in i)t in o&&(o[t]=i[t])}catch(e){}a&&a.on("click","[data-refresh-button]",function(){return n.load(!0),!1})},this.initSearch=function(){i.on("click","[data-search-button]",function(){return o.page=1,n.prepareSearch(),n.load(!0),!1}),i.on("click","[data-reset-search-button]",function(){return n.resetSearch(),n.resetOrder(),n.load(!0),!1}),i.on("click","[data-expand-search-button]",function(){return i.find(".field.field-auto-hide").is(":visible")?i.find(".field.field-auto-hide").hide():i.find(".field.field-auto-hide").css("display","inline-block"),!1}),i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("init")&&s(t).data("init")(o.search)})},this.initTable=function(){},this.prepareSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("get")&&o.search.push(s(t).data("get")())})},this.resetSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("reset")&&o.search.push(s(t).data("reset")())})},this.resetOrder=function(){o.order=[]},this.setPageSize=function(e){o.pageSize=e},this.setPage=function(e){o.page=e},this.setParam=function(e,t){e in o&&(o[e]=t)},this.getParam=function(){return o},this.setOption=function(e,t){l[e]=t},this.refresh=function(){n.load()},this.load=function(){u.loadingOn(),r=null,s.post(l.server,o).done(function(e){l.hashUrl&&window.location.replace("#"+JSON.stringify(o)),u.loadingOff(),c.defaultCallback(e,{success:function(e){l.render(e.data)}})}).fail(function(e){try{u.loadingOff(),c.defaultCallback(e)}catch(e){}})},this.init(),this.initSearch(),this.initTable(),this.load()}}.call(this,i(5))},291:function(a,e,n){!function(t){function e(e){null==i&&alert("Dialog must defined"),this.opt=t.extend({limitMax:100,limitMin:1,dialogWidth:"940px",dialogHeight:"90%",server:"/path/to/link/choose/dialog",callback:function(e){alert("Select : "+JSON.stringify(e))}},e),t(window).width()<800&&(this.opt.dialogWidth="90%"),this.dialog=i,this.runtime={dialog:null}}var i=n(254);e.prototype.show=function(){var e=this;return window.__selectorDialogOption=e.opt,window.__selectorDialogItems=[],this.runtime.dialog=this.dialog.dialog(this.opt.server,{width:this.opt.dialogWidth,height:this.opt.dialogHeight,closeCallback:function(){window.__selectorDialogItems.length&&(window.__selectorDialogItems.length>e.opt.limitMax?e.dialog.tipError("Select limit max "+e.opt.limitMax+" item(s)"):window.__selectorDialogItems.length>>24)|4278255360&(i[l]<<24|i[l]>>>8);i[e>>>5]|=128<>>9<<4)]=e;for(var s=A._ff,c=A._gg,u=A._hh,d=A._ii,l=0;l>>0,n=n+f>>>0,o=o+y>>>0,r=r+h>>>0}return g.endian([a,n,o,r])})._ff=function(e,t,i,a,n,o,r){r=e+(t&i|~t&a)+(n>>>0)+r;return(r<>>32-o)+t},A._gg=function(e,t,i,a,n,o,r){r=e+(t&a|i&~a)+(n>>>0)+r;return(r<>>32-o)+t},A._hh=function(e,t,i,a,n,o,r){r=e+(t^i^a)+(n>>>0)+r;return(r<>>32-o)+t},A._ii=function(e,t,i,a,n,o,r){r=e+(i^(t|~a))+(n>>>0)+r;return(r<>>32-o)+t},A._blocksize=16,A._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);e=g.wordsToBytes(A(e,t));return t&&t.asBytes?e:t&&t.asString?x.bytesToString(e):g.bytesToHex(e)}},123:function(e,t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&i.rotl(e,8)|4278255360&i.rotl(e,24);for(var t=0;t>>5]|=e[i]<<24-a%32;return t},wordsToBytes:function(e){for(var t=[],i=0;i<32*e.length;i+=8)t.push(e[i>>>5]>>>24-i%32&255);return t},bytesToHex:function(e){for(var t=[],i=0;i>>4).toString(16)),t.push((15&e[i]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],i=0;i>>6*(3-n)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],i=0,a=0;i>>6-2*a);return t}};e.exports=i},124:function(e,t){function i(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(i(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))||!!e._isBuffer);var t}},254:function(e,t,i){let u=i(5);"layer"in window&&console.error("ERR: dialog should required only once, use window.api.dialog instead");let n=i(286),r=(i(287),i(255)),d={device:"pc",loadingOn:function(e){if(e=e||null){e=n.open({type:1,content:'
'+e+"
",shade:[.3,"#000"],closeBtn:!1,title:!1,area:["auto","auto"]});return u("#layui-layer"+e).attr("type","loading"),e}return n.load(2)},loadingOff:function(){n.closeAll("loading")},tipSuccess:function(e,t){let i=2e3;e&&10','
',i.label,"
",'
','
确定
',""].join(""),{openCallback:function(){u("#dialog-input-box").find(".ok").on("click",function(){n=!0,d.dialogClose(o)}),u("#dialog-input-box").find("input").on("change",function(){a=u(this).val()})},closeCallback:function(){n&&e&&e(a)}})},preview:function(o,e){e=e||{};let r=u.extend({title:null,width:"auto",height:"auto"},e),l=u(window).width(),s=u(window).height();d&&d.loadingOn();let c=new Image;return c.onerror=function(){d.loadingOff(),d.tipError("Image load error")},c.onload=function(){d.loadingOff();let e=l-40,t=s-40,i=c.width,a=c.height;i>e&&(a=parseInt(a*e/i),i=e),a>t&&(i=parseInt(i*t/a),a=t);var n=['
',' ',"
"].join("");d.dialogContent(n,r)},c.src=o,!1}};e.exports=d},255:function(e,t,o){!function(i){const n=o(122);var a={specialchars:function(e){var t=[];if(!e)return"";if(0==e.length)return"";for(var i=0;i":t.push(">");break;case"&":t.push("&");break;case" ":t.push(" ");break;case'"':t.push(""");break;default:t.push(e.substr(i,1))}return t.join("")},text2html:function(e){return"

"+(e=a.specialchars(e)).replace(/\n/g,"

")+"

"},text2paragraph:function(e){return"

"+e.replace(/\n/g,"

")+"

"},urlencode:function(e){return e=(e+"").toString(),encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},randomString:function(e){e=e||16;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=t.length,a="",n=0;n{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},loadStylesheet:function(e,t){let i="s_"+n(e),a=document.getElementById(i);a?t&&t({isNew:!1}):(a=document.createElement("link"),a.id=i,a.rel="stylesheet",a.type="text/css",a.href=e,a.onload=()=>{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},md5:function(e){return n(e)}};e.exports=a}.call(this,o(5))},256:function(module,exports,__webpack_require__){var $=__webpack_require__(5),Util=__webpack_require__(255),EventManager=__webpack_require__(288),Form={defaultCallback:function(res,callback,Dialog){var code,msg,redirect,data,isWeiXin,winReload,redirectFunc,successFunc,errorFunc;Dialog=Dialog||null,callback=callback||{},"object"==typeof res?"code"in res?(code=res.code,msg="",redirect="",data=null,"msg"in res&&(msg=res.msg),"redirect"in res&&(redirect=res.redirect),"data"in res&&(data=res.data),isWeiXin=function(){return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},winReload=function(e){var t,i,a;isWeiXin()?(t=e.location,i=[],a="_t_"+(new Date).getTime()+"_",i.push(t.protocol),i.push("//"),i.push(t.host),i.push(t.pathname),t.search?/_t_\d+_/.test(t.search)?i.push(t.search.replace(/_t_\d+_/,a)):(i.push(t.search),i.push("&"),i.push(a)):(i.push(t.search),i.push("?"),i.push(a)),i.push(t.hash),e.location.replace(i.join(""))):e.location.reload()},redirectFunc=function(redirect){redirect&&("[reload]"===redirect?winReload(window):"[root-reload]"==redirect?winReload(Util.getRootWindow()):"[back]"===redirect?window.history.back():0===redirect.indexOf("[js]")?eval(redirect.substr(4)):window.location.href=redirect)},successFunc=function(){"success"in callback?callback.success(res):redirect?msg?Dialog?Dialog.alertSuccess(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):msg&&(Dialog?Dialog.tipSuccess(msg):alert(msg))},errorFunc=function(){"error"in callback?callback.error(res):redirect?msg?Dialog?Dialog.alertError(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):Dialog?Dialog.tipError(msg):alert(msg)},(0==code?successFunc:errorFunc)()):Form.defaultCallback({code:-1,msg:"parse error: "+JSON.stringify(res)},callback,Dialog):alert("ErrorResponse:"+res)},initAjax:function(e,o){o=o||null;var r=$(e);r.on("submit",function(){if(r.data("submiting"))return!1;var e=$(this).attr("action"),t=$(this).attr("method"),i=$(this).data("callbackValidate"),a=$(this).data("callback");if(i&&!i())return!1;var a=a||Form.defaultCallback,t=t||"get",n=$(this).serializeArray();return r.data("submiting",!0),o&&(i=$(this).attr("data-form-loading"),o.loadingOn(i)),$.ajax({type:t,url:e,dataType:"json",timeout:6e5,data:n,success:function(e){return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)},error:function(){var e={code:-999,msg:"请求出现错误 T_T"};return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)}}),!1})},initCommon:function(e,t){var i=$(e);i.on("submit",function(){if(i.data("submiting"))return!1;$(this).attr("action"),$(this).attr("method"),$(this).serializeArray();var e=$(this).data("callbackValidate");return $(this).data("callback"),!(e&&!e())&&(i.data("submiting",!0),t&&(e=$(this).attr("data-form-loading"),$(this).is("[data-form-loading]")&&t.loadingOn(e)),!0)})}};module.exports=Form},258:function(e,t,i){"use strict";var a=i(11),n=i.n(a),o=i(26),r=i.n(o),l=i(271),s=i(272),a=i(273),o=i(274),i=i(275),n=n()(function(e){return e[1]}),l=r()(l.a),s=r()(s.a),a=r()(a.a),o=r()(o.a),i=r()(i.a);n.push([e.i,'.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url('+l+") center center no-repeat #eee}.layui-layer-ico{background:url("+s+") no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url("+a+") no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url("+l+") no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url("+o+") no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url("+i+") no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}",""]),t.a=n},26:function(e,t,i){"use strict";e.exports=function(e,t){return t=t||{},"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},271:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhJQAlAJECAL3L2AYrTv///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAJQAlAAACi5SPqcvtDyGYIFpF690i8xUw3qJBwUlSadmcLqYmGQu6KDIeM13beGzYWWy3DlB4IYaMk+Dso2RWkFCfLPcRvFbZxFLUDTt21BW56TyjRep1e20+i+eYMR145W2eefj+6VFmgTQi+ECVY8iGxcg35phGo/iDFwlTyXWphwlm1imGRdcnuqhHeop6UAAAIfkEBQoAAgAsEAACAAQACwAAAgWMj6nLXAAh+QQFCgACACwVAAUACgALAAACFZQvgRi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwXABEADAADAAACBYyPqcsFACH5BAUKAAIALBUAFQAKAAsAAAITlGKZwWoMHYxqtmplxlNT7ixGAQAh+QQFCgACACwQABgABAALAAACBYyPqctcACH5BAUKAAIALAUAFQAKAAsAAAIVlC+BGL3Z3IlxUmUuhtR2LzHhsiEFACH5BAUKAAIALAEAEQAMAAMAAAIFjI+pywUAIfkEBQoAAgAsBQAFAAoACwAAAhOUYJnAagwdjGq2amXGU1PuLEYBACH5BAUKAAIALBAAAgAEAAsAAAIFhI+py1wAIfkEBQoAAgAsFQAFAAoACwAAAhWUL4AIvdnciXFSZS6G1HYvMeGyIQUAIfkEBQoAAgAsFwARAAwAAwAAAgWEj6nLBQAh+QQFCgACACwVABUACgALAAACE5RgmcBqDB2MarZqZcZTU+4sRgEAIfkEBQoAAgAsEAAYAAQACwAAAgWEj6nLXAAh+QQFCgACACwFABUACgALAAACFZQvgAi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwBABEADAADAAACBYSPqcsFADs="},272:function(e,t,i){"use strict";t.a=i.p+"sprites/76ac4c2d9120b0b4f88365fe6b38038d.png"},273:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhPAAYALMPAPPJp/HYxfSwkf50Df5TD/+HAPe5bvqHR/twOviZavyrMu/m3f9EAP9mAP+ZAO7u7iH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wUmlnaHRzPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvcmlnaHRzLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcFJpZ2h0czpNYXJrZWQ9IkZhbHNlIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6QUNDRERBRjMxRTIwNjgxMTg4QzZERjVGQ0I0MDI1NDkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTlDMEI5MzU5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTlDMEI5MzQ5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENzU2N0YwMTMyMjA2ODExODhDNkRGNUZDQjQwMjU0OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQ0NEREFGMzFFMjA2ODExODhDNkRGNUZDQjQwMjU0OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkFAA8ALAAAAAA8ABgAAATy8MlJq7046827/2AWCEdpCkGodkHSvHCcLGttLUOsw0NqW4EDYog4+CyInbJxwAQMiqjCcMQkGNgsNmFxLZXcisFBLpMNGYF2zRBQAt9vFWCuOwCXAJt9FMSXbhILdnY0FQd7a00SB39Kiw9jhGZoFQSJWgQTjksTCpNmChaYa5ucOxOgdaOkWaanMamqZRaXrZoSObAvA56zDqKHrQyQjbtME5KqlW/DRwbHDcwBv1UTV5hhEnDHVcqEzF2J2te75BLflBsCCFoIgRU4pwOGFQCfZQp4PxUBSX8IrPELscDLkhkDB7bQxQthwocQI0rMEAEAIfkECQUADwAsAAAAADwAGAAABOjwyUmrvTjrzbv/ILcAiWCUQKh+y9G88DsIa40JcQ4ji30JCIZQeAhcAgOdMvEYKZ5PQA8UHFoZtEpSuVQ4vmCHwuhJXK+EqcTA5YbfYrUmcD4jKNt2rAB/GzoHdWdTAXo6fXByGASCV1k4hjADiG8pG41XTA9skS98lGB/l5hDmgmdnqChHIykWBKQnZOqDpYaVaRkAKgvtA6KFwCudxO8DZ+UCh64grYPp7yqwBgLzFYEWRNIvAlecGMhAq1DCGQVu7JNBn7THQDvAObBeVwJ7T4gLW2i+P0PAQkOCBQoxZ/BgwgTYogAACH5BAkFAA8ALAAAAAA8ABgAAATV8MlJq7046827/2AojmMgHE2aIslCckAcb8Kg3umQvFhCMEAgYXcR4HCFpEJhCPAkiKAUiLAEbMdGwcHtcg28w3R8qKCyA6/aASABxvC2JJBNrdcuURQ+rUqMWVt3XmAhC3xweWdHg2oKIm+IU3KLOI1qkJKTEpU3l14iAZpSTg+dKp9cjyKjQRMGdYKXhSFio2VzdQ2ppSEBP5IEvQ9YR7J3tCICmgIVALrHhE+/cMIXCboDxwpy0z5BQ8POxUcD3U88CwnkKQni6E8yMXnw9fb3+BURACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AojqQUCEeaJkC5CUgcJ0G2JE2u60jrVgICY0gcIhaXQ25QaDp1vt8jUKwaLbhGwcHtcgeNQe23EFqrAkogt/W6cwlp4mwlICW4gXvvyI1LZnRFaRJgfHtghCRUglUIJjmHbgUNBy4AjY4SAGGSXpSWJZiZRI8PnHqeXKAujKQMpmsNqquVP4GZioa0iT8Hrwx/Sqmefj8BuHRxE5xanmChPwKZRxVKznxgDX8/AAh00RQL18S1YYpSDzffpVEXAjvxB9zpiwnaOQfo9fz9/v8ApUQAACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojmS1AIkhJEBQasFBMDRDHC62JE3v97iXJVEr1hKThUHBdBQGv99gIZwIjFiG4AFweL/eQtSHqD4Cs2yR0AW7xeOGoXpQYwvuPHQ8FabtNA15g3ENWyUBgEUDg3mFBy8AijV4jWB7UZAlkpMMlZZemD+aJImdjKBej0KdDIKpDoWHJXWdn42iPzmIrQagcGOkL0SKSG15wFF9ZgJ/WLMBvpeFCLtmMVhBOjxxB1RmJgDiAN8bAQkH6Qcs4O3u7/Dx4BEAIfkECQUADwAsAAAAADwAGAAABMrwyUmrvTjrzbv/YCiOV5AgKCosZIsFCCPPc5KZQ6M3QxK4lgWBRuMVFEgDS5LYOXc24CRGlBUc2CwW8BA8vw2BtFuVDbRoByAHdg6WrmG1kU63v9EWoMy41rVsdzoDQAllBH9oBYJOPy2GVYiJWYuMOlyPh5OUlpcuApqbDpWWjiQBfH6TgYxSVER0m50NeS2gZap1BrOmLpBVuVpcTYy1QLdzuQamAqxuYmMTMGUJcBYmeL3REgAJ3gkC2hgLAOUA1tvp6uvs7R8RACH5BAkFAA8ALAAAAAA8ABgAAATs8MlJq7046827/2AojpmQICgqBGSLCQgjz3OyZEFy7LvgXoDZoEAsDBoyxGWRaDifzgHgNwkQGA2HdqstyBKWA3TsZFEPDAJ37RjIzBIBmTy4uQKyAnuNPEwWR3NjPi4CWHtrXgQTcoJjAz8xA4hrbxJijmNwIzF6lFtXUw+YmU+iJJ2foAyipKUNp5wMk6oOV2aupZsihlmqioyvUT94DJ6USEoSAcINYJGHlF6sFE2lA7sjxQ3HXNN+FAu5ZIRUAlcEtF1IDAh2FQaC2FQUATE0NOVACYENAyv0LMCgQeBAtoAIEypcyLDhhAgAIfkECQUADwAsAAAAADwAGAAABODwyUmrvTjrzbv/YCiOWiAgTJoiSUC+V0KodEokZWIIugtPAYNCUSgMZjWV4BI4NJ7QxsH3Mjiu2OsgqaJKFoOoeLB4AbJoR4PLQFQQ4rh7tEin2QyqIM5fiqx2WVtcfg9hfGMjCoFZBWxzC4h8Xh6MaI8SAJJxACKWWZgPmptRnSGLn45ccwGkUWUhgJaDSTgSh6QDIwGfDkhJeq4Ntn+zbAQUYLmwI7Joa2ymQLhxA5QiAKhXBdBcBxcLcHEHzD+Zv0kEhRcACQfvCdLmFAEytdfzZgD7AOX5/wADCrwQAQAh+QQJBQAPACwAAAAAPAAYAAAE6fDJSau9OOvNu/8gFiQkKSxh+gkE474uEqj0tSBw/gq1twCKYBCAOuiOhJllkRg0no0BDxRQOK5YhyJx7BIsAKj4ifgsrNlsodtNUBbOsdjgMaTvA7buOznI5UoaC3eELXowSgF/cm4bAIR3DYcwUwKLYwMcdpBZkpMujQaXY5qcnZ+gEgmjYhyPpleen42WrFEcg7AOqC4AEoq2Bx1onGu8FAi2vriwvAzCE2Gj0B1VhApGqEkVAnFyByhmm1gGKDifUxULfmN0PerZbATLGD8A9+8ZLF0y+f4PAhAIFJgg0L+DCBMqrBABACH5BAkFAA8ALAAAAAA8ABgAAATz8MlJq7046827/2AWCEhpCkGodkHCvHCcpGtdBUSswwRt3waFUGHwVRC7JAOBaR2eh9nG4KhaqwaLS5lMaBvgMNiLAVzPDgAlwOUaBeJ4Q3BZoNGLiaCtpEsWcnJGElR3V1kSSHw7TBIJgXFkFAqGVwoTi0oTA5BiAxaVZ5iZOxOdcaChVqOkMaanYRaUqpcSOa0vBJuwDZ8VhaGID4q4jQ+PsJITAaoOPlu4kgG8g4TBa7gvRsiQyr+GwhMHuAcWBpDhFwCzVQpqFgu3iwR5FgAHYgfvP2vEXAj7+K1YMI7LgXoCf7SQx4CAlIQQI0qcmCECACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AXACQZnuCSEEzrEkmAzpjAunhLCDRmKI5g0LC4BHJIl+wRSByeh1hKSBUWKYtbMkdQNb7gb+IDrFIVlcR2iwi7GzwOwGwGTI7r5Pu91NDpEwJ5SAR7bmMaC39mVweDOYZuAxsBi1VLCI84kW6UllSYmi6cYZ6fQaGiDKRfkxunQRNqqoWkiBoGpwaBqi2sfRmKn1cPWb21hreUZWYKwA+zogkGhrsguVVEF5maCBIAB2EHdicLAecBxBYL3HkI6j0zgmvK8T1NWgwwz/b9/v8AMUQAACH5BAkFAA8ALAAAAAA8ABgAAATY8MlJq7046827/+AXACQQhCi4CATjvoSwpFww2nMWtG/vEieaZQFwGI8ORbCy4Pl6hMZhmlimFMiswypBPKGNsDicoBm02pxE8IWN3w0BaoHWGijOLxzO5RTrWRMBbT97b2UgWIBIQQmEDIZvAyGKi0aNj5FvlJZHmISaYyFnnVtrmaENkyCknRMAj1GhiB90nXcTeU+pfRytgGoPjoSyhrQqlWgATLo+xW+4NH9ZCsGCzT5vB8tCEkQG4Aa9EwtehAjW3TQLCdgJ6erdAgn0CXLx+Pn6+xwRACH5BAkFAA8ALAAAAAA8ABgAAATM8MlJq7046827/2AojuSzCAeiqsJSaoChzIoBaALB7DyfvJaAwkEsEhWBS6LHIDQaTt0PKFkMjViFiwLoOZ/gJ0FAfVyx2Ypu9w2HB9QAeu5ISgQ9t75BfhnoaAYTCDxte08HQIBzE2sMh25wL4toE3mQYYqURpY8mJmTm0WdO59gQH+ighKEbKaJLwCiDjd3l5h9L2eAChQBjoZ7di9ylMMSS4WHBFNUVnRaSkx6DM1lDwC7CgBbFwCOTAy51yQLCeDM3eTr7O3u7yMRACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojiQVCEmaCEGpLYbizI5iLFlwMHzPHy1XJSCjGRVBU6JBYDZ8PEJSuCgaj7jJssHtMqGIrKt6LdeyAq/660sIHwaz2fBYrNdQxnRkldMUD1t3XQRQAi4BfmYBA4NqYIiKZQGOjz4IkZJGlJVdkCULmkYLjZ1Pl0KiNIGmhT6HLnGidJyVeXsioaJZgneuPZhviZJicIO/UcVjfVgWAAeWl7hjskY3GQsIeTxhbxcLAeEByhjPCOcIBwDe7O3u7/DxEhEAIfkECQUADwAsAAAAADwAGAAABMHwyUmrvTjrzbv/YCiOWGACgbcALEpygeHMtGNoAsLsPCG8GEBt6FAAEofkIRE48J68A7ASIBILjay2QYB6f9PHQmElDrbarveZmsrKRLR2/USE4dazXE1ntElVeENYcg19O2CAgoOFhocJQIGLM4RyhwyQL5KTlWiXiSSTNHpofHR/JG+TjZcEYQuinWmfYQ9CgrJZpmtStQ+bRAYAB1sHAAKHoLUxVjcZOV4+vhYxBtYACx0CCdwJytPg4eLj5B8RACH5BAkFAA8ALAAAAAA8ABgAAATI8MlJq7046827/2AojtgCGKgBLGSbLYojz7LClgnC7AyS3C7KgkacJQKWAIHHZBCQQQmsSG0khMsmkwB0GajUQkMg1WmbiO5oCKYOGsjE+Xz1tt3WR3a+DX7vRGIDAXxnUCQxgDRiDQCFWgAuiYoyjI6PTJEtk5SChJg8hyMAlDNvV3uPBEFspQ1wD3KgdZKlYnULqXNcUa2ADQYUn3xPURIBnFQHmkJmWmnGE1NUNi+yTD/RFQEGCt4KBqIvAOQr2ufo6errIhEAIfkECQUADwAsAAAAADwAGAAABLTwyUmrvTjrzbv/YCiO2QIYSqoYxkK+GODMdG1owoHsyCHAF0NtSLtZAgiGcqlEBIATGXEKqCwIzCyD4IIqplNFJanNIqBSMLEqAZTL7NdXTRRLDm/tAUgHT7B5TAR8fUQTgVqEhTWHiEyKizN/jkqDMHORdg9kjmcwaYtxApQMPzALkTNdEpx5nkBCi0YTAYgEcbCFsxQLrUwIq1APAXS4Fjm/AsHCDwsoQy3M0tPU1dbXGBEAIfkECQUADwAsAAAAADwAGAAABNbwyUmrvTjrzbv/4BWMZGiCC+CsrKMYyyljQWuvSqAFQA/os0kgcSjejoqYRYBgOJ8EQDDRqDYKR6Ql8ew+EzKBtTHIZqUTgHfNQKPGDXNWQWmyuwgTdSzPAgN3a0AfA2NYfTcGEgKBXgIhcIeILYoPXI1fkIaTNpWXmAxgIIVWZZwsaIygDI8ge1Wmpw5/qwyDHgFwsisUBKAEJ69XspUSapitJgabk0kVB40HQQAHsJy3ab5eUUEWCwpyzhkCCeUJbt0VCwZZMOnvxgbyBujw9vf4+RcRACH5BAUFAA8ALAAAAAA8ABgAAATi8MlJq7046827/2AWjGRogovirKyjAMspY0Zrr0owe0Fy/IeE7gG4GRWxS4LAaDIIiaQn0ahaq0KjVmEJMJ1gwpAjuJob2jSgggC7GYjO4nwdpLcUwfst4FDpVQV3WlJfe04EHAOAVYNaaw8Bh29jGIyNjjcGEgCTbpAZl2iZNptEnmCgGIuMpKUSkqhNlUqXgq4roIaTiRsBtrgrUgmyCR1/dHa4XBMLu28EUhsGgAYqrrReh2IgAAdXB2sLrqYWS24H0juR13flFwsA8jDr8DVq9fkB9ywKBur5AgocSPBCBAA7"},274:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy8rq6uoGBgTQ0NAEBARsbG8TExJeXl/39/VRUVAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBQAAACwAAAAAIAAgAAAE5xDISSlLrOrNp0pKNRCdFhxVolJLEJQUoSgOpSYT4RowNSsvyW1icA16k8MMMRkCBjskBTFDAZyuAEkqCfxIQ2hgQRFvAQEEIjNxVDW6XNE4YagRjuBCwe60smQUDnd4Rz1ZAQZnFAGDd0hihh12CEE9kjAEVlycXIg7BAsMB6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YEvpJivxNaGmLHT0VnOgGYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHQjYKhKP1oZmADdEAAAh+QQFBQAAACwAAAAAGAAXAAAEchDISasKNeuJFKoHs4mUYlJIkmjIV54Soypsa0wmLSnqoTEtBw52mG0AjhYpBxioEqRNy8V0qFzNw+GGwlJki4lBqx1IBgjMkRIghwjrzcDti2/Gh7D9qN774wQGAYOEfwCChIV/gYmDho+QkZKTR3p7EQAh+QQFBQAAACwBAAAAHQAOAAAEchDISWdANesNHHJZwE2DUSEo5SjKKB2HOKGYFLD1CB/DnEoIlkti2PlyuKGEATMBaAACSyGbEDYD4zN1YIEmh0SCQQgYehNmTNNaKsQJXmBuuEYPi9ECAU/UFnNzeUp9VBQEBoFOLmFxWHNoQw6RWEocEQAh+QQFBQAAACwHAAAAGQARAAAEaRDICdZZNOvNDsvfBhBDdpwZgohBgE3nQaki0AYEjEqOGmqDlkEnAzBUjhrA0CoBYhLVSkm4SaAAWkahCFAWTU0A4RxzFWJnzXFWJJWb9pTihRu5dvghl+/7NQmBggo/fYKHCX8AiAmEEQAh+QQFBQAAACwOAAAAEgAYAAAEZXCwAaq9ODAMDOUAI17McYDhWA3mCYpb1RooXBktmsbt944BU6zCQCBQiwPB4jAihiCK86irTB20qvWp7Xq/FYV4TNWNz4oqWoEIgL0HX/eQSLi69boCikTkE2VVDAp5d1p0CW4RACH5BAUFAAAALA4AAAASAB4AAASAkBgCqr3YBIMXvkEIMsxXhcFFpiZqBaTXisBClibgAnd+ijYGq2I4HAamwXBgNHJ8BEbzgPNNjz7LwpnFDLvgLGJMdnw/5DRCrHaE3xbKm6FQwOt1xDnpwCvcJgcJMgEIeCYOCQlrF4YmBIoJVV2CCXZvCooHbwGRcAiKcmFUJhEAIfkEBQUAAAAsDwABABEAHwAABHsQyAkGoRivELInnOFlBjeM1BCiFBdcbMUtKQdTN0CUJru5NJQrYMh5VIFTTKJcOj2HqJQRhEqvqGuU+uw6AwgEwxkOO55lxIihoDjKY8pBoThPxmpAYi+hKzoeewkTdHkZghMIdCOIhIuHfBMOjxiNLR4KCW1ODAlxSxEAIfkEBQUAAAAsCAAOABgAEgAABGwQyEkrCDgbYvvMoOF5ILaNaIoGKroch9hacD3MFMHUBzMHiBtgwJMBFolDB4GoGGBCACKRcAAUWAmzOWJQExysQsJgWj0KqvKalTiYPhp1LBFTtp10Is6mT5gdVFx1bRN8FTsVCAqDOB9+KhEAIfkEBQUAAAAsAgASAB0ADgAABHgQyEmrBePS4bQdQZBdR5IcHmWEgUFQgWKaKbWwwSIhc4LonsXhBSCsQoOSScGQDJiWwOHQnAxWBIYJNXEoFCiEWDI9jCzESey7GwMM5doEwW4jJoypQQ743u1WcTV0CgFzbhJ5XClfHYd/EwZnHoYVDgiOfHKQNREAIfkEBQUAAAAsAAAPABkAEQAABGeQqUQruDjrW3vaYCZ5X2ie6EkcKaooTAsi7ytnTq046BBsNcTvItz4AotMwKZBIC6H6CVAJaCcT0CUBTgaTg5nTCu9GKiDEMPJg5YBBOpwlnVzLwtqyKnZagZWahoMB2M3GgsHSRsRACH5BAUFAAAALAEACAARABgAAARcMKR0gL34npkUyyCAcAmyhBijkGi2UW02VHFt33iu7yiDIDaD4/erEYGDlu/nuBAOJ9Dvc2EcDgFAYIuaXS3bbOh6MIC5IAP5Eh5fk2exC4tpgwZyiyFgvhEMBBEAIfkEBQUAAAAsAAACAA4AHQAABHMQyAnYoViSlFDGXBJ808Ep5KRwV8qEg+pRCOeoioKMwJK0Ekcu54h9AoghKgXIMZgAApQZcCCu2Ax2O6NUud2pmJcyHA4L0uDM/ljYDCnGfGakJQE5YH0wUBYBAUYfBIFkHwaBgxkDgX5lgXpHAXcpBIsRADs="},275:function(e,t,i){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABkCAYAAAAv8xodAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNS8xMS8xNNdPc0oAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAWb0lEQVR4nO2de2wU172Av5l92t4Hti/YQHmVmFcSE7+WR0h0uRRVVC2pKldpCFJQEJAiFwg4diikgLEghEhpVLVQNblBSFEUVYoi+hc0FQoE87B52JQAiQnBJDY2wfix633O7P1jdwbbxe9d7yx3PgnJc87iM2M+js+cx+8nhMNhdHQeFcRE34COTizRhdZ5pNCF1nmk0IXWeaQwPqxQEIRYtpEKOABL9NoLtAKhWDbSDRF4EsgAbEBHtL3LAIN9CV6+fHlSvS0fOXLkof9oj8pzDJZ499A2YCxgWbJkiSUnJ8cApADZgCEO7ZmAImAyYFuxYsV4Iv+ZpgIFcWhPR2PEU2gbkAlQU1Mz67PPPvvvq1ev/s/f/va3LCIyp8e4PROQD4wrLi7Oam9vP/Dhhx/+9f79+3/Kz8+3AxPi0KaOxoiX0KrM169ff6KgoGAKgMFgEF944YWZ0c9Y+vrLw8BEpAceV1xcnHX48OE3HQ7HRIAxY8ZM2bdv39Lo5zJi2KaOBomH0D1knjFjxsTulX6/Pxj9Uo5Re4rMY1esWDH+8OHDb6akpGR2/4Db7fZEv4zXuF1HI8Ra6H5lDgQC0ttvv/1l9NIfg/Z6yPzee+/t6S1zY2PjpdWrV/8retkagzZ1NEwshR5Q5j179pzfu3dvOxBg5HINKHNTU1Ody+WqbG1tDQENQOcI29TROA+dthsGGYAd+pd5165d94nIfHeE7Q1K5qKioorvv/8+ANwGakfYZlwIh8MEg0F1OtFoNGIwxGMCKL4Eg0G6urqQJAlRFElNTcVsNo/6fcSih84A7BaLRRiCzCMZy5qAQoYm86URtBc3FJnNZjMzZswgKyuLQCCAJEmJvrUhEQwGcbvdZGdn88ILL5CTk0NnZ2dCnmOkPbQqc11d3eMPk3n37t01lZWVbcRW5v966aWXJh44cKAyWWWWZZlgMIjD4aCoqIj09HRkWeb48eO0tbUlTS+tyDxz5kz2799Peno6LS0trFq1Cr/fT2pq6qjez0iE1mUeJorM6enpFBUVkZaWRigUIhgMEgwGB/4GGiEQCOB2u5kzZw779u0jPT0yze/xeJAkKdYrzoNiuELrMg8TSZIIBoNkZWVRWFiI2WwmHA7j8/k4d+4cnZ2dCRl7DhWlZ37iiSd46623cDgcANy5c4c33ngDj8eD0+kc9fsajtC6zMMkGAwiSRKTJk0iLy9PHVZ4PB7Onj1LR0cHZrMZUdT2njGlZ87Ly2P//v1YrVYAmpqaKC0tpaGhAbvdnpBh01CFHm2ZzURmMx4ZmadNm0Zubi6iKCIIAm1tbZw5cwav14vJZNK8zH6/H7fbTWFhIXv27Okh85YtW7h9+zY2mw2TyZSQ+xuK0KrMly9ffiInJ2dC98pEyNzY2HjJ5XJVJoPMoVCI2bNnM2vWLCCyo/Hu3bucPXuWUCiE2WxOyJhzKCgyL1y4kMrKSiyWyO6Fb7/9li1bttDS0pJQmWHwQidU5oMHD+6xWq09NhYlg8zKtJwsy+Tm5vLYY48RDocRRZGmpiaqq6uRZRmTyaR5mX0+Hx6Ph2eeeYbdu3er0jY0NFBaWqoJmWFwQg8kc2j37t3ndZl70l3mvLw8pk6dSjgcxmAw8O2333LhwgVEUUyKF0C/36/KXFFRoUpbX19PaWkp9+7dw263YzTGap1u+Ax0B7rMwyAcDhMIBDAajbhcLsaPH48sy4iiyNdff01tbS1GozHhvdlgUHrmpUuXsmPHDvU3ybVr1ygtLaW9vV0zMkP/QusyDwNljtlsNlNUVMS4ceNUma9evcrVq1eTSma3282yZcvYvn27KvP169cpKyujo6NDUzJD30Kn8UDmJ3NycsZ3r4yDzABzeURkTklJweVykZGRQTgcRhAEamtr+eabbzCZTJoSoC+UnvnnP/85W7duVWWuq6ujtLQUn8+XsKm5/ujrJ2sDuHDhwpxRktkJZC9evDg92WV2OBy4XC5sNhuyLCPLMpcuXaKhoQGj0ZgUMnu9XtxuN7/61a947bXX1PLa2lrKy8s1KzP0LbR18uTJ4uzZs3vMM0uSJMdBZohuOy0rK1vUW+bm5uZ/a11mgFAohM1mY8GCBaSmpiJJEj6fj9raWpqbmzGZTJoUoDfBYBCPx/MfMl+8eJGtW7fS1dWlWZmhn912zc3N4WCvjQUGg0H85S9/mR29NEf/xAIvQGNj43/skU5PT//xypUrp0YvHUQO2WoOWZZxOp04HA4kScJgMNDS0sKdO3cQRVGzAvQmGAwyZswY1q5dq5bduHGD9evX4/F4cDgcmn6WvoTu8vv94YMHD16WJKnHUamCgoIpNTU1s6KXY4mEKRgprQAlJSWn6+vrP+9eYTabUysqKirKy8tnEBmaFKFBqUVR5M6dO9y+fRuj0YgkSUyePJk5c+aoG4+SAYPBgMfj4cqVK2rZhAkT+NnPfoYsywQCgQTe3cD0JXQrENq4ceMPf/7zny+OgtR+4JbX65Vzc3PfSUapTSYTsixz7tw5Ghoa1F5s5syZ5Ofnq2NsraM8x86dO6mpqQEgJSWF7du3s3z5ctxuN16vN8F32Td9CS0BzYyu1HUksdSCIKiLJDU1Ndy4cQODwUA4HGbatGkUFhYC9DidokVEUcThcODz+Xj99deprq4GIs9XXl5OcXExbrebrq6uBN/pw+lvJ0wIXeoho2wwunTpEteuXUMURWRZZtKkSbhcLkRR1LzUBoMBu91OIBDg97//PefOnVPrNm/ezPPPP4/H49Gk1ANt7dKlHgbKXPOVK1e4fPkygiAgyzLZ2dksXLgQq9WaFFI7HA78fj9btmzhxIkTat2mTZt48cUXNSn1YPYq6lIPA5PJhMlk4uuvv+bChQuqvJmZmcyfP5/U1FQCgQCyHKvwJLFHGX4IgsCOHTt6SF1SUsKqVavweDx4PJ5+vsvoMtjNt7rUw0BZ4r516xbV1dWEQiHC4TBOp5OFCxfidDrVDUxaRZFalmXeeOMNjh8/rtatW7eOl19+ma6uLs1IPZTd5LrUw8BgMGAymWhsbOTs2bP4/ZH4OmlpaSxcuJCxY8eqm/+1iiiK2O12ALZv386xY8fUujVr1rBu3To8Hg9utztRt6gy1OMRutTDwGAwYDabaWlpoaqqSh13WiwWXC4X2dnZSSO10Whk9+7dHD16VK1btWoVJSUlmuiph3PeR5d6GCh7n9vb2zl16hSdnZ0IgoDRaKSoqIgpU6aoJ1u0ijL8EEWRHTt2cOTIEbVu5cqVbNiwIeE99XAPsOlSDwNRFDGZTHg8Hqqqqrh37x6CIGAwGMjPz2f69OlIkqRpqQVBwG63Y7Va2bt3L59++qlat2LFCkpLS+nq6kqY1CM5kalLPQyUntrn81FVVUVzc7N6MDY3N1cNOKNllOGHxWJh3759fPLJJ2pdcXExr776Kj6fLyHL5CM9YqxLPQwEQVCXmM+cOUNDQwMQ2bap5d65O0pPrUj90UcfqXW/+MUvyMjISMizxOLMvC71MFCkFgSB6upqTp06xcmTJ+no6EiKPdPwQOqUlBTeffddDh48yHfffcfHH39MW1tbQk7lxCoIxHCkHmkE/6FKnTvC9uKCsgBz7949fD5fUgSa6Y4gCDgcDiwWC4cOHWLdunUcOHAAs9mc1ELDIKU+fvz4tOilPQZtDkrq4uLiLGAcGk1JocxVJ0Ogmb5wOp2MGzcOg8FAdnY2NpstIfcR65/egFIXFRVNjn4ZqxwrA0q9fv36Z6KXmhRaJ3bEozvoV+qOjg5l5j2Wm4P7lbq+vv776JeJX8rSiSvxevtQpM7auHHjD62trTWrV6+e5vP5gqWlpV9HPxOLHCvdqQPwer1TcnNz3zly5MjN3Nxc16VLl86sXbv2dLQ9PcfKI47wsC2MMQxLZSTyAtj77KEXaIlVI73IBaY8pPwk0KZnktU2I80kG+/5oRDQRORwq5VIKjcf8f3VX0fkdHg2kTFza/Qe2uLYpo5GiHcPrTm0vKleZ+T010ObiaQStkavfUR6uViPfbujJJ13EOnFlaTzo74W/Kj8qn5UnmOw9DXLYQbGA9a8vDxTXl6eiYjY2TwQPNYUEEky74gmnbcRSUJfRCSKv47OgPQl9BiAo0ePTjl//vzi8+fPL/7nP/+pLIhkEXup04EJ+fn59vv37//pww8//Gt7e/uBbgsi+ehS6wyCvoROcTqdwpIlS2YIUX7yk5/M+Pzzz6dH62MtdQbAvn37lo4ZM2YKgMPhmHj48OE3dal1hkKfCys+nw9Jknpsl3r22Wcfi5PUIeiRZB6AlJSUzF5SF6BLrdMP/YYC++CDD/4d7jUt8Oyzzz526tSpx6KXsZK6FWD16tX/amxs7BGMUZE6Oq4eiy61Tj/0FwpMeuWVV+6+//77tb2lXrhw4fQYS90JNLS2toZcLldlU1NTXffKlJSUzPfee2+PLrXOQAwUCkxas2ZN8/vvv1/be5NRHKSuBW5///33gaKioopklFqSJPx+P36/n0AgkLRz3oFAgLa2NlpbW2lvb0+KmHwK/W1OCtJN6g8++KBuEFKPdBP9JZJUakmSCAQCZGVlkZOTg8lk0nx0pIchSRJut5ucnBx+85vfkJWVhdvtThqpB9ptFwTuMHipxzH6UheiAaklSSIzM5Onn36auXPnsmjRIjU+nNbPCHbH7/fjdDrZu3cvJSUlHDhwgJycnKSRerChwAaUuqqqKid6OWpSv/TSSxOB/0IjUgeDQfx+P6FQCKfTyfz580lPT9d8dKTuCIKAJElq7JDMzEz279/PrFmz6OzsTNr40L0ZUOoFCxb8eLSlPnDgQKVWpDYajbjdbk6fPo3f7yccDpOamsqCBQsYN24cgUBA04FkFMxmM263mz/84Q+0tEQ2RGZmZvL222/z+OOPa76nHmooMF3qPlBibrS2tlJVVaVGEDKbzcybN48f/ehHBINBTcsAD0Lp3rx5k82bN9Pc3AxEjli9++67PPXUU5ruqYcTCiyhUj9snlprUnd0dPDFF1/Q0dGhBpIpKChg6tSpSJKkealNJhM2m41bt26xefNm7ty5A4DVauXNN98kPz8ft9utxunTEsMNBZYwqV0uV+UgpU5IzmFFap/PxxdffMEPP/yAIAgIgsBTTz3FzJkzkyLniiJ1Q0MDJSUl3Lp1CwCbzcZbb73FvHnz8Hg8mpN6JKHAtC51AQmSWom5EQwGOX36tJoJC2DOnDk8+eSThEIhzc9VK1I3Nzfz2muvcfv2bQA1DNjTTz+N2+3G5/Ml+E4fMNJQYANKfe7cuVGV+uDBg3u0IrXZbEaWZU6fPq0mEgqHw+Tk5JCXl6cmEtK61Ha7naamJjZu3Mg333wDRN4NKioqWLRokaZ66liEAutX6qKiolGV2mq1pmtFaniQc6Wmpob6+no1PcW0adOYN28eoihqvqc2Go3Y7Xbu3r3Lpk2buH79OhAJB7x3716WLFmimZ46VqHAdKn7Qcki2z2RUDgcZuLEicybNw+z2az5BRhF6ra2NsrKyvjqq6+AyDvDrl27+OlPf4rH40m41LEMBTZUqUcaaGaoUs8dYXsjQomMdPXqVerq6hAEgXA4TFZWFvPnz1cTCSWD1Pfv3+d3v/sdly9fBiLDq+3bt7Ns2bKESx3rUGADSt0tFJgjBm32kPq777670L1SkXrx4sXpRI6POWPQ5rBRktffuHGDCxcuIEkSsiyTkZHBokWLcDgcmpdamaf2er2UlZVRVxdZGhBFkW3btiU8OWc8QoH1kLr3B+bNm6fEzIhVKDBV6vnz5+9pbm7+d/dKq9WaXlZWtih6mRmjNoeNkkiooaGB6upqvF4vsixjt9uZP38+NptN8yF1Fak9Hg/l5eXU1tYCkZ66rKyM5557Do/Hk5CpyXiEAnMABovFIixZsiS7d6XX61Veh2O1DpwSbZOVK1dOTU9P/3HvDzQ2NioRkzSR09dgMCCKIk1NTbS0tGAwGJAkCafTidPp1HQPraDkMXS73fz2t7/lxo0bQETqdevWqRm+RptYC50B2C0Wi3D16tXcadOm9RA6EAgEKysrlazosRhopRA5Fe4sLy+fUVFRUWE2m3vEnq6vr/+8pKTkdPRSE6HAlFwqc+bMYfLkyUiShNFo5Pbt2zQ1NSVNBFLlRXbZsmVMmDBBLf/yyy/p6upS852PJrGMnDSgzK+//nrNO++800Ektsf9EbY3KJlzc3Pf8Xq9MnCL+MYUGRTKGDk/P5+pU6ciyzIGg4GGhgY1QWci4ioPFa/Xi8fj4bnnnqOsrEwNTlRTU8POnTuRZTkhzxEroYcq890Rtjccmf9jPD+ahMNhdWxcWFjIpEmTVJlv3LhBXV2dmn9F6yjp237961+zefNmtby6upqtW7cSCATUbFmjTSyEzgRsQ5R5JOPnpJQ5GAxiMBgoLCxk/PjxyLKMKIpcu3aNK1euqC+LWkeR+fnnn2fTpk1q+blz59i2bRuBQAC73Z6Q4QaMXOhMwOZ0OoWLFy/qMj8ERWar1UpRUREZGRnIsowgCFy+fJmvvvoq6WR+8cUXKSkpUctPnDjBtm3b1PQUiXwHGInQuswDoOzVSEtLw+VyMWbMGMLhMOFwmIsXL3Lr1i1MJlNSJAnyeDx0dXWxatUq1q1bp5afOHGCHTt2aEJmGL7QuswDoMjsdDpxuVykpaWp4+jz58/T2NioLolrHUXml19+mTVr1qjlx48fZ+fOnQCakBmGJ7Qu8wAo2WDHjh1LYWEhFktkDcnv91NTU0NLS0vSyOx2u+nq6uKVV15h1apVavmxY8fYtWuXuhyuBZlh6ELrMg+AciJl/PjxFBQUqGPjrq4uzp49S1tbW9KkblN65pKSElauXKmWHz16lMrKSs3JDEMTWpd5AEKhEKFQiClTpjB37lxEUUQQBDo6Ojhz5gwejydpZFZ65g0bNrBixQq1/MiRI+zZsweLxYLD4dBccPzBCq3LPAChUAhJkpg+fTq5uQ9yfN67d0/ds5EseQgVmUtLSykuLlbLP/30U/bt24fVasVms2lOZhic0LrMg0CWZdLT01WZlb0a1dXVSJKE2WzWpAC9CQQC+P1+Xn311R4yf/LJJ+zfvx+LxYLdbtfsswwktC7zEAiFQni9XlJSUmhoaOD8+fM9cnonA6FQiIyMDJYvX66WffTRR/zxj38kJSVF0zJD/0LrMg8Bo9FIZ2cnJ0+eJC0tTd1FlwwLJt0xmUy0tbXx8ccfs3TpUv7xj39w6NChpJAZ+hY6jdGVGSL5BZNSZugZvsDn8yXNtFxvlJM1f/nLX/j73/9Oa2ur+gKYDPQltA2gqqpqzijJnAGMKy4uzkpGmRVEUUyKl76BsNlsavL5sWPHJvhuhkZfP32r0+kUZs+ePbF7YZxkhmiOlfXr1z+TrDLraIO+hA62t7eHOzo6upSCOMoM0cyy3ZLME73WZdYZEn0J7QcoLy+/ePPmzeabN2/e2bBhw9k4yQyRkyT+tWvXnj527Nj/trS0fPnZZ58d0mXWGSp9pUYWiIQa6J1mwgf8QGxlVhgDPPOQ8pjKrCev1zbxSl4fJpKOwsGD09l+oGMkjQ1AG3CSSAZbJen8HUZ+VEvn/xEP7aF1dJKV5J9j0tHphi60ziOFLrTOI4UutM4jhS60ziPF/wHgvbfirVNMHAAAAABJRU5ErkJggg=="},284:function(e,t,i){const a=i(5),n=i(285),o=i(254),r=i(290),l=i(255),s=i(291),c={ready(){let e=Array.from(arguments);const t=e.pop();let i=!0;for(var a of e)if("function"==typeof a?a()||(i=!1):a||(i=!1),!i)break;i?t():setTimeout(()=>{c.ready.call(this,...arguments)},50)},dialog:o,util:l,api:{defaultCallback:n.defaultFormCallback,post:n.post}};window.api=window.api||{},window.api.jquery=a,window.api.base=n,window.api.dialog=o,window.api.lister=r,window.api.selectorDialog=s,window.api.util=l,n.init(),window.MS=c},285:function(e,t,i){var a=i(5),n=i(254),o=i(256),r=i(289),l={init:function(){a(function(){a("form").each(function(e,t){a(t).unbind("submit"),void 0!==a(t).attr("data-ajax-form")?o.initAjax(t,n):a(t).is("[data-form-no-loading]")||o.initCommon(t,n)})}),r.init(n)},defaultFormCallback:function(e,t){return o.defaultCallback(e,t,n)},post:function(e,t,i){a.ajax({type:"post",url:e,dataType:"json",timeout:6e5,data:t,success:function(e){i&&i(e)},error:function(){i&&i({code:-999,msg:"请求出现错误 T_T"})}})},postSuccess:function(e,t,i,a){i=i||l.defaultFormCallback,a=a||l.defaultFormCallback,l.post(e,t,function(e){l.defaultFormCallback(e,{success:function(e){i(e)},error:function(e){a(e)}})})}};e.exports=l},286:function(r,l,s){!function(n){var o;!function(f){"use strict";function t(e){var t=this;t.index=++h.index,t.config=y.extend({},t.config,u.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)}var y,c,e,i=f.layui&&layui.define,u={getPath:(e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,a=i;0'+(o?a.title[0]:a.title)+"":"";return a.zIndex=n,t([a.shade?'
':"",'
'+(e&&2!=a.type?"":o)+'
'+(0==a.type&&-1!==a.icon?'':"")+((1!=a.type||!e)&&a.content||"")+'
'+(r=r?'':"",a.closeBtn&&(r+=''),r)+""+(a.btn?function(){var e="";"string"==typeof a.btn&&(a.btn=[a.btn]);for(var t=0,i=a.btn.length;t'+a.btn[t]+"";return'
'+e+"
"}():"")+(a.resize?'':"")+"
"],o,y('
')),this},t.pt.creat=function(){var e,a=this,n=a.config,o=a.index,r="object"==typeof(s=n.content),l=y("body");if(!n.id||!y("#"+n.id)[0]){switch("string"==typeof n.area&&(n.area="auto"===n.area?["",""]:[n.area,""]),n.shift&&(n.anim=n.shift),6==h.ie&&(n.fixed=!1),n.type){case 0:n.btn="btn"in n?n.btn:u.btn[0],h.closeAll("dialog");break;case 2:var s=n.content=r?n.content:[n.content||"http://layer.layui.com","auto"];n.content='';break;case 3:delete n.title,delete n.closeBtn,-1===n.icon&&n.icon,h.closeAll("loading");break;case 4:r||(n.content=[n.content,"body"]),n.follow=n.content[1],n.content=n.content[0]+'',delete n.title,n.tips="object"==typeof n.tips?n.tips:[n.tips,!0],n.tipsMore||h.closeAll("tips")}a.vessel(r,function(e,t,i){l.append(e[0]),r?2==n.type||4==n.type?y("body").append(e[1]):s.parents("."+d[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),y("#"+d[0]+o).find("."+d[5]).before(t)):l.append(e[1]),y(".layui-layer-move")[0]||l.append(u.moveElem=i),a.layero=y("#"+d[0]+o),n.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),y("#layui-layer-shade"+a.index).css({"background-color":n.shade[1]||"#000",opacity:n.shade[0]||n.shade}),2==n.type&&6==h.ie&&a.layero.find("iframe").attr("src",s[0]),4==n.type?a.tips():a.offset(),n.fixed&&c.on("resize",function(){a.offset(),(/^\d+%$/.test(n.area[0])||/^\d+%$/.test(n.area[1]))&&a.auto(o),4==n.type&&a.tips()}),n.time<=0||setTimeout(function(){h.close(a.index)},n.time),a.move().callback(),d.anim[n.anim]&&(e="layer-anim "+d.anim[n.anim],a.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){y(this).removeClass(e)})),n.isOutAnim&&a.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,i=y("#"+d[0]+e);""===t.area[0]&&0t.maxWidth&&i.width(t.maxWidth));var a=[i.innerWidth(),i.innerHeight()],n=i.find(d[1]).outerHeight()||0,o=i.find("."+d[6]).outerHeight()||0,e=function(e){(e=i.find(e)).height(a[1]-n-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(a[1]=t.maxHeight,e("."+d[5])):t.fixed&&a[1]>=c.height()&&(a[1]=c.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],n="object"==typeof t.offset;e.offsetTop=(c.height()-a[1])/2,e.offsetLeft=(c.width()-a[0])/2,n?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=c.width()-a[0]:"b"===t.offset?e.offsetTop=c.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=c.width()-a[0]):"rb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=c.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?c.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?c.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=c.scrollTop(),e.offsetLeft+=c.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=c.height()-(i.find(d[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,i=[t.outerWidth(),t.outerHeight()],a=y(e.follow),n={width:(a=!a[0]?y("body"):a).outerWidth(),height:a.outerHeight(),top:a.offset().top,left:a.offset().left},o=t.find(".layui-layer-TipsG"),a=e.tips[0];e.tips[1]||o.remove(),n.autoLeft=function(){0"+(i.value||"")+"":'',o=i.success;return delete i.success,h.open(y.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+A("prompt"),maxWidth:c.width(),success:function(e){(n=e.find(".layui-layer-input")).focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=n.val();""===t?n.focus():t.length>(i.maxlength||500)?h.tips("最多输入"+(i.maxlength||500)+"个字数",n,{tips:1}):a&&a(t,e,n)}},i))},h.tab=function(a){var n=(a=a||{}).tab||{},o="layui-this",r=a.success;return delete a.success,h.open(y.extend({type:1,skin:"layui-layer-tab"+A("tab"),resize:!1,title:function(){var e=n.length,t=1,i="";if(0'+n[0].title+"";t"+n[t].title+"";return i}(),content:'
    '+function(){var e=n.length,t=1,i="";if(0'+(n[0].content||"no content")+"";t'+(n[t].content||"no content")+"";return i}()+"
",success:function(e){var t=e.find(".layui-layer-title").children(),i=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=y(this),e=t.index();t.addClass(o).siblings().removeClass(o),i.eq(e).show().siblings().hide(),"function"==typeof a.change&&a.change(e)}),"function"==typeof r&&r(e)}},a))},h.photos=function(i,e,a){var t,n,o={};if((i=i||{}).photos){var r=i.photos.constructor===Object,l=r?i.photos:{},s=l.data||[],c=l.start||0;o.imgIndex=1+(0|c),i.img=i.img||"img";var u=i.success;if(delete i.success,r){if(0===s.length)return h.msg("没有图片")}else{var d=y(i.photos),p=function(){s=[],d.find(i.img).each(function(e){var t=y(this);t.attr("layer-index",e),s.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(p(),0===s.length)return;if(e||d.on("click",i.img,function(){var e=y(this).attr("layer-index");h.photos(y.extend(i,{photos:{start:e,data:s,tab:i.tab},full:i.full}),!0),p()}),!e)return}o.imgprev=function(e){o.imgIndex--,o.imgIndex<1&&(o.imgIndex=s.length),o.tabimg(e)},o.imgnext=function(e,t){o.imgIndex++,o.imgIndex>s.length&&(o.imgIndex=1,t)||o.tabimg(e)},o.keyup=function(e){var t;o.end||(t=e.keyCode,e.preventDefault(),37===t?o.imgprev(!0):39===t?o.imgnext(!0):27===t&&h.close(o.index))},o.tabimg=function(e){if(!(s.length<=1))return l.start=o.imgIndex-1,h.close(o.index),h.photos(i,!0,e)},o.event=function(){o.bigimg.hover(function(){o.imgsee.show()},function(){o.imgsee.hide()}),o.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),o.imgprev()}),o.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),o.imgnext()}),y(document).on("keyup",o.keyup)},o.loadi=h.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1}),e=s[c].src,t=function(e){var t;h.close(o.loadi),o.index=h.open(y.extend({type:1,id:"layui-layer-photos",area:(t=[e.width,e.height],e=[y(f).width()-100,y(f).height()-100],!i.full&&(t[0]>e[0]||t[1]>e[1])&&((e=[t[0]/e[0],t[1]/e[1]])[1]'+(s[c].alt||
'+(1':"")+'
'+(s[c].alt||"")+""+o.imgIndex+"/"+s.length+"
",success:function(e,t){o.bigimg=e.find(".layui-layer-phimg"),o.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),o.event(e),i.tab&&i.tab(s[c],e),"function"==typeof u&&u(e)},end:function(){o.end=!0,y(document).off("keyup",o.keyup)}},i))},(n=new Image).src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},n.onerror=function(e){n.onerror=null,h.close(o.loadi),h.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1',' ',""].join("");Dialog.dialogContent(a,opt)},img.src=imgUrl,!1})},initSmartImage:function(){$(document).ready(function(){setTimeout(function(){$("[data-smart-image]").each(function(e,t){$(t).attr("src",$(t).attr("data-smart-image"))})},0)})},initTip:function(i){i=i||null,$(document).on("click","[data-tip-error]",function(){return i?i.tipError($(this).attr("data-tip-error")):alert($(this).attr("data-tip-error")),!1}),$(document).on("click","[data-tip-success]",function(){return i?i.tipError($(this).attr("data-tip-success")):alert($(this).attr("data-tip-success")),!1}),$(document).on("mouseover","[data-tip-popover]",function(e){var t=$(this).attr("data-tip-popover");i?i.tipPopoverShow(this,t):$(this).attr("title",t)}).on("mouseout","[data-tip-popover]",function(e){i&&i.tipPopoverHide(this)})},init:function(e){inited||(inited=!0,Convenient.initAll(e),Convenient.initSmartImage(),Convenient.initTip(e))}};module.exports=Convenient},290:function(e,t,i){!function(s){let c=i(256),u=i(254);e.exports=function(e,t){let a=s(e.lister||null),i=s(e.search||null),n=this,o={page:1,pageSize:10,field:[],order:[],search:[]},r=null,l=s.extend({server:"/path/to/server",editQuickServer:"/path/to/edit/quick",hashUrl:!0,render:function(e){}},t);this.getData=function(){return r},this.init=function(){let e=window.location.hash;0===e.indexOf("#")&&(e=e.substring(1));try{e=decodeURIComponent(e);var t,i=JSON.parse(e);for(t in i)t in o&&(o[t]=i[t])}catch(e){}a&&a.on("click","[data-refresh-button]",function(){return n.load(!0),!1})},this.initSearch=function(){i.on("click","[data-search-button]",function(){return o.page=1,n.prepareSearch(),n.load(!0),!1}),i.on("click","[data-reset-search-button]",function(){return n.resetSearch(),n.resetOrder(),n.load(!0),!1}),i.on("click","[data-expand-search-button]",function(){return i.find(".field.field-auto-hide").is(":visible")?i.find(".field.field-auto-hide").hide():i.find(".field.field-auto-hide").css("display","inline-block"),!1}),i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("init")&&s(t).data("init")(o.search)})},this.initTable=function(){},this.prepareSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("get")&&o.search.push(s(t).data("get")())})},this.resetSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("reset")&&o.search.push(s(t).data("reset")())})},this.resetOrder=function(){o.order=[]},this.setPageSize=function(e){o.pageSize=e},this.setPage=function(e){o.page=e},this.setParam=function(e,t){e in o&&(o[e]=t)},this.getParam=function(){return o},this.setOption=function(e,t){l[e]=t},this.refresh=function(){n.load()},this.load=function(){u.loadingOn(),r=null,s.post(l.server,o).done(function(e){l.hashUrl&&window.location.replace("#"+JSON.stringify(o)),u.loadingOff(),c.defaultCallback(e,{success:function(e){l.render(e.data)}})}).fail(function(e){try{u.loadingOff(),c.defaultCallback(e)}catch(e){}})},this.init(),this.initSearch(),this.initTable(),this.load()}}.call(this,i(5))},291:function(a,e,n){!function(t){function e(e){null==i&&alert("Dialog must defined"),this.opt=t.extend({limitMax:100,limitMin:1,dialogWidth:"940px",dialogHeight:"90%",server:"/path/to/link/choose/dialog",callback:function(e){alert("Select : "+JSON.stringify(e))}},e),t(window).width()<800&&(this.opt.dialogWidth="90%"),this.dialog=i,this.runtime={dialog:null}}var i=n(254);e.prototype.show=function(){var e=this;return window.__selectorDialogOption=e.opt,window.__selectorDialogItems=[],this.runtime.dialog=this.dialog.dialog(this.opt.server,{width:this.opt.dialogWidth,height:this.opt.dialogHeight,closeCallback:function(){window.__selectorDialogItems.length&&(window.__selectorDialogItems.length>e.opt.limitMax?e.dialog.tipError("Select limit max "+e.opt.limitMax+" item(s)"):window.__selectorDialogItems.length"+this+"").css({position:"absolute",float:"left","white-space":"nowrap",visibility:"hidden",font:e}).appendTo(u),e=t.width();return t.remove(),e},e.add(i).on("dblclick",function(t){var e=o(this),i=t.clientX-e.offset().left,t=e.attr("data-key").split("-"),t=l.cols[t[1]][t[2]];s(0,e,0");e?t.text(this):t.html(this),t.css({position:"absolute",float:"left","white-space":"nowrap",visibility:"hidden",font:i}).appendTo(l);i=t.width();return t.remove(),i},t("mstable",{render:function(t){i[t.id]=t;var e=this;layui.each(i,function(){!function(d,l){var t=o(l.elem),e=t.next().children(".layui-table-box").children(".layui-table-header").children("table").children("thead").children("tr").children("th"),i=t.next().children(".layui-table-box").children(".layui-table-fixed").children(".layui-table-header").children("table").children("thead").children("tr").children("th"),r=t.next().children(".layui-table-box").children(".layui-table-body").children("table").children("tbody").children("tr"),c=t.next().children(".layui-table-total").find("tr");e.add(i).on("dblclick",function(t){var e=o(this),i=t.clientX-e.offset().left,t=e.attr("data-key").split("-"),t=l.cols[t[1]][t[2]];s(0,e,0=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function c(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t: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 x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return R(t).length;default:if(r)return x(t).length;e=(""+e).toLowerCase(),r=!0}}function e(t,e,i){var r,n,o,s=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!i||i<0||r=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:b(t,e,i,r,n);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):b(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,r,n){var o=1,s=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n)for(var u=-1,f=i;f>>10&1023|55296),f=56320|1023&f),r.push(f),n+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;rt.length)throw new RangeError("Index out of range")}function M(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n>>8*(r?n:1-n)}function _(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n>>8*(r?n:3-n)&255}function S(t,e,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function k(t,e,i,r,n){return n||S(t,0,i,4),o.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,n){return n||S(t,0,i,8),o.write(t,e,i,r,52,8),i+8}C.Buffer=l,C.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},C.INSPECT_MAX_BYTES=50,l.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}}(),C.kMaxLength=i(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,i){return r(null,t,e,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,i){return r=null,e=e,i=i,h(t=t),!(t<=0)&&void 0!==e?"string"==typeof i?n(r,t).fill(e,i):n(r,t).fill(e):n(r,t);var r},l.allocUnsafe=function(t){return u(null,t)},l.allocUnsafeSlow=function(t){return u(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);ne&&(t+=" ... ")),""},l.prototype.compare=function(t,e,i,r,n){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),(e=void 0===e?0:e)<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),h=this.slice(r,n),u=t.slice(e,i),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,s,a,h,u,f,l=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;if((!r||(r=Number(r))>n)&&(r=n),(n=e.length)%2!=0)throw new TypeError("Invalid hex string");n/2>8,n.push(i%256),n.push(r);return n}(t,(a=this).length-o),a,o,s);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i=(n*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||w(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):_(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=0,o=1,s=0;for(this[e]=255&t;++n>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=i-1,o=1,s=0;for(this[e+n]=255&t;0<=--n&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):_(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return k(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return k(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,r){if(i=i||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var n,o=(r=t.length-e>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function R(t){return a.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,i,r){for(var n=0;n=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}.call(this,B(5))},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";function r(t,e,i,r,n,o,s,a){var h,u,f="function"==typeof t?t.options:t;return e&&(f.render=e,f.staticRenderFns=i,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),s?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=h):n&&(h=a?function(){n.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:n),h&&(f.functional?(f._injectStyles=h,u=f.render,f.render=function(t,e){return h.call(e),u(t,e)}):(a=f.beforeCreate,f.beforeCreate=a?[].concat(a,h):[h])),{exports:t,options:f}}i.d(e,"a",function(){return r})},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}(t.exports=i).equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){"use strict";var r=e,n=i(10),e=i(7),i=i(100);r.assert=e,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(t,e,i){var r=new Array(Math.max(t.bitLength(),i)+1);r.fill(0);for(var n=1<>1)-1>1)-h:h):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r,n=0,o=0;0>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function r(t){return 1===t.length?"0"+t:t}function s(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}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i,r,n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s>6|192,n[o++]=63&a|128):(r=s,55296!=(64512&(i=t).charCodeAt(r))||r<0||r+1>=i.length||56320!=(64512&i.charCodeAt(r+1))?n[o++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++s)),n[o++]=a>>18|240,n[o++]=a>>12&63|128),n[o++]=a>>6&63|128,n[o++]=63&a|128)}else for(s=0;s>>0}return n},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r>>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<>>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=t[e],o=r+t[e+1]>>>0;t[e]=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,r){return(e+r>>>0>>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,a){var h,u=0;return u+=(h=e+r>>>0)>>0)>>0>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,a,h,u){var f,l=0;return l+=(f=e+r>>>0)>>0)>>0)>>0>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,a,h,u){return e+r+o+a+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,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(194).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){var r=i(1).Buffer,n=i(146).Transform,o=i(14).StringDecoder;function s(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(0)(s,n),s.prototype.update=function(t,e,i){"string"==typeof t&&(t=r.from(t,e));t=this._update(t);return this.hashMode?this:t=i?this._toString(t,i):t},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,i){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{i(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return e=t?this._toString(e,t,!0):e},s.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");t=this._decoder.write(t);return i&&(t+=this._decoder.end()),t},t.exports=s},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return h}),i.d(e,"a",function(){return u}),i(127),i(128);const r=i(233),n=(i(115),i(238),i(241).sprintf),o={specialchars:function(t){var e=[];if(!t)return"";if(0==t.length)return"";for(var i=0;i":e.push(">");break;case"&":e.push("&");break;case" ":e.push(" ");break;case'"':e.push(""");break;default:e.push(t.substr(i,1))}return e.join("")}},s={randomString(e){e=e||32;var i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=i.length,n="";for(let t=0;t(e="^"+e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*")+"$",new RegExp(e).test(t)),keywordsMatchWildcard:(t,e)=>(e=e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*"),new RegExp(e).test(t)),sprintf(){var t=Array.from(arguments);return n.call(null,...t)}};function a(t){return String.fromCharCode(t)}const h={domainUrl(t){t=t||"";var e=window.location.protocol+"//"+window.location.host;return t?e+"/"+t:e},urlencode(r){let n="",o="";for(let i=0;i?[]^`{|}~%".indexOf(t)?n+="%"+e.toString(16):n+=t}return n},urldecode(e){let i="";e+="";for(let t=0;th.parseQuery(t),getQuery(t,e=null,i){i=h.parseQuery(i);return t in i?i[t]:e},parseQuery:t=>(t=t||window.location.search,r.parse(t)),buildQuery:t=>r.stringify(t)},u={assign(e,i){e&&i&&Object.keys(e).map(t=>{e[t]=i[t]})},update(e,i){e&&i&&Object.keys(i).map(t=>{e[t]=i[t]})},equal:(t,e)=>JSON.stringify(t)===JSON.stringify(e),notEqual:(t,e)=>!u.equal(t,e),clone:t=>JSON.parse(JSON.stringify(t))};i(242)},function(t,e,i){"use strict";var r="object"==typeof Reflect?Reflect:null,h=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(n,o){return new Promise(function(t,e){function i(){void 0!==r&&n.removeListener("error",r),t([].slice.call(arguments))}var r;"error"!==o&&(r=function(t){n.removeListener(o,i),e(t)},n.once("error",r)),n.once(o,i)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){var n,o;return u(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener||i),n=t._events),o=n[e]),void 0===o?(o=n[e]=i,++t._eventsCount):("function"==typeof o?o=n[e]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),0<(i=f(t))&&o.length>i&&!o.warned&&(o.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,console&&console.warn&&console.warn(i))),t}function d(t,e,i){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},e=function(){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)}.bind(t);return e.listener=i,t.wrapFn=e}function c(t,e,i){t=t._events;if(void 0===t)return[];e=t[e];return void 0===e?[]:"function"==typeof e?i?[e.listener||e]:[e]:i?function(t){for(var e=new Array(t.length),i=0;i>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,i,r=this.lastTotal-this.lastNeed,e=(e=this,128!=(192&(i=t)[0])?(e.lastNeed=0,"�"):1o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(64),r=l(68);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));e=8*this._len;e<=4294967295?this._block.writeUInt32BE(e,this._blockSize-4):(this._block.writeUInt32BE((e-(i=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)),this._update(this._block);var i=this._hash();return t?i.toString(t):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){"use strict";var a={};function r(t,r,e){e=e||Error;var n,i,o,o=(o=n=e,(i=s).prototype=Object.create(o.prototype),(i.prototype.constructor=i).__proto__=o,s);function s(t,e,i){return n.call(this,"string"==typeof r?r:r(t,e,i))||this}o.prototype.name=e.name,o.prototype.code=t,a[t]=o}function h(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),2o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(94),r=l(98);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._delta8){e=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var i=0;i>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o>>24]^f[p>>>16&255]^l[m>>>8&255]^d[255&b]^e[g++],s=u[p>>>24]^f[m>>>16&255]^l[b>>>8&255]^d[255&c]^e[g++],a=u[m>>>24]^f[b>>>16&255]^l[c>>>8&255]^d[255&p]^e[g++],h=u[b>>>24]^f[c>>>16&255]^l[p>>>8&255]^d[255&m]^e[g++],c=o,p=s,m=a,b=h;return o=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^e[g++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&c])^e[g++],a=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[g++],h=(r[b>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4;i[s]=u=u>>>8^255&u^99;var f=t[r[u]=s],l=t[f],d=t[l],c=257*t[u]^16843008*u;n[0][s]=c<<24|c>>>8,n[1][s]=c<<16|c>>>16,n[2][s]=c<<8|c>>>24,n[3][s]=c,o[0][u]=(c=16843009*d^65537*l^257*f^16843008*s)<<24|c>>>8,o[1][u]=c<<16|c>>>16,o[2][u]=c<<8|c>>>24,o[3][u]=c,0===s?s=a=1:(s=f^t[t[t[d^f]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:o}}();function a(t){this._key=r(t),this._reset()}a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o>>24)>>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s],s^=l[o/e|0]<<24):6>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s]),n[o]=n[o-e]^s}for(var a=[],h=0;h>>24]]^d.INV_SUB_MIX[1][d.SBOX[f>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[f>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&f]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=a},a.prototype.encryptBlockRaw=function(t){return s(t=r(t),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},a.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;e=s(t,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},a.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=a},function(t,e,i){var l=i(1).Buffer,d=i(36);t.exports=function(t,e,i,r){if(l.isBuffer(t)||(t=l.from(t,"binary")),e&&8!==(e=!l.isBuffer(e)?l.from(e,"binary"):e).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var n=i/8,o=l.alloc(n),s=l.alloc(r||0),a=l.alloc(0);0>1]):s.mixedAdd(n[-u-1>>1].neg()):0>1]):s.add(n[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},o.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,a=this._wnafT2,h=this._wnafT3,u=0,f=0;f>1]:k<0&&(o=a[S][-k-1>>1].neg()),y="affine"===o.type?y.mixedAdd(o):y.add(o))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n({loading:!0,commandDialogMsgs:[],commandDialogRunStart:0,commandDialogRunElapse:0,commandDialogShow:!1,commandDialogFinish:!1,commandDialogTitle:"",memberUserShow:!1,memberUserLoading:!1,memberLoginCaptchaImage:null,search:{mine:!1,keywords:""},memberLoginInfo:{username:"",password:"",captcha:""},storeApiToken:i.a.get("storeApiToken",""),memberUser:{id:0,username:"",avatar:"",manageModules:{}},modules:[]}),computed:{filterModules(){return this.modules.filter(t=>{if(this.search.mine&&!(t.name in this.memberUser.manageModules))return!1;if(this.search.keywords){var e=this.search.keywords.toLowerCase();return!(!t.name||!t.name.toLowerCase().includes(e))||!(!t.title||!t.title.toLowerCase().includes(e))||!(!t.description||!t.description.toLowerCase().includes(e))}return!0})}},mounted(){this.doLoad(),this.doLoadStore(),setInterval(()=>{this.commandDialogRunElapse=parseInt(((new Date).getTime()-this.commandDialogRunStart)/1e3)},1e3)},methods:{doStoreRequest(t,e,i,r){const n=t=>{this.$dialog.tipError(t.msg)};r=r||n,o.ajax({url:`${window.__data.apiBase}/api/${t}`,dataType:"jsonp",data:Object.assign(e,{api_token:this.storeApiToken,modstartParam:JSON.stringify(window.__data.modstartParam)}),timeout:1e4,success:t=>{t.code?(1002===t.code&&this.doMemberLoginCaptchaRefresh(),!0!==r(t)&&n(t)):i(t)},error:t=>{!0!==r({code:-1,msg:"请求出现错误"})&&n({code:-1,msg:"请求出现错误"})},jsonp:"callback"})},doMemberUserLogout(){this.$dialog.confirm("确认退出?",()=>{this.storeApiToken="",i.a.set("storeApiToken",""),this.doLoadStoreMember(),this.memberUserShow=!1,this.doLoadStore()})},doSubmitCheck(t){13===t.keyCode&&this.doMemberLoginSubmit()},doMemberLoginSubmit(){this.$dialog.loadingOn(),this.doStoreRequest("store/login",this.memberLoginInfo,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("登录成功"),this.doLoadStoreMember(),this.memberUserShow=!1,this.memberLoginInfo.username="",this.memberLoginInfo.password="",this.memberLoginInfo.captcha=""},t=>{this.$dialog.loadingOff()})},doMemberLoginCaptchaRefresh(e){this.doStoreRequest("store/login_captcha",{},t=>{this.memberLoginCaptchaImage=t.data.image,e&&e()})},doMemberLoginShow(){0{this.$dialog.loadingOff(),this.memberUserShow=!0}))},doLoadStoreMember(){this.memberUserLoading=!0,this.doStoreRequest("store/member",{},t=>{this.memberUserLoading=!1,e.a.update(this.memberUser,t.data)},t=>{this.memberUserLoading=!1})},doLoadStore(){this.storeApiToken?this.doLoadStoreMember():this.doStoreRequest("store/config",{},t=>{this.storeApiToken=t.data.apiToken,i.a.set("storeApiToken",t.data.apiToken),this.doLoadStoreMember()})},doLoad(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/all"),{},t=>{this.loading=!1,this.modules=t.data.modules})},doCommand(t,e,i,r){r=r||null,null===(i=i||null)&&(this.commandDialogMsgs=[],this.commandDialogShow=!0,this.commandDialogFinish=!1),r&&(this.commandDialogTitle=r,this.commandDialogMsgs.push(' '+r)),this.commandDialogRunStart=(new Date).getTime(),this.commandDialogRunElapse=0,this.$api.post(this.$url.admin("module_developer/"+t),{token:this.storeApiToken,step:i,data:JSON.stringify(e)},t=>(Array.isArray(t.data.msg)?this.commandDialogMsgs=this.commandDialogMsgs.concat(t.data.msg):this.commandDialogMsgs.push(t.data.msg),t.data.finish?(this.commandDialogFinish=!0,void this.doLoad()):void setTimeout(()=>{this.doCommand(t.data.command,t.data.data,t.data.step)},1e3)),t=>(this.commandDialogMsgs.push(' '+t.msg+""),this.commandDialogFinish=!0))},doPublish(t){this.$dialog.confirm(`确定发布 ${t.title} ${t.name} V${t.version}?`,()=>{this.doCommand("publish",{module:t.name,version:t.version},null,`发布模块 ${t.title} ${t.name} V${t.version}`)})},doPublishInfo(t){this.$dialog.confirm(`确定更新资料 ${t.title} ${t.name} V${t.version}?`,()=>{this.doCommand("publish_info",{module:t.name,version:t.version,isLocal:t._isLocal},null,`更新模块资料 ${t.title} ${t.name} V${t.version}`)})},doPreviewApiContent(t){this.$dialog.dialog(this.$url.admin("module_developer/api_doc",{module:t.name}),{width:"90%",height:"90%"})},doPreviewUtilContent(t){this.$dialog.dialog(this.$url.admin("module_developer/util_doc",{module:t.name}),{width:"90%",height:"90%"})},doGenerateCRUD(t){this.$dialog.tipError("正在开发")}}}}.call(this,n(115))},function(t,e,i){"use strict";var r=i(0),n=i(63),o=i(1).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<>>32-e}function u(t,e,i,r,n,o,s){return h(t+(e&i|~e&r)+n+o|0,s)+e|0}function f(t,e,i,r,n,o,s){return h(t+(e&r|i&~r)+n+o|0,s)+e|0}function l(t,e,i,r,n,o,s){return h(t+(e^i^r)+n+o|0,s)+e|0}function d(t,e,i,r,n,o,s){return h(t+(i^(e|~r))+n+o|0,s)+e|0}r(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=u(i=this._a,o=this._b,n=this._c,r=this._d,t[0],3614090360,7),r=u(r,i,o,n,t[1],3905402710,12),n=u(n,r,i,o,t[2],606105819,17),o=u(o,n,r,i,t[3],3250441966,22);i=u(i,o,n,r,t[4],4118548399,7),r=u(r,i,o,n,t[5],1200080426,12),n=u(n,r,i,o,t[6],2821735955,17),o=u(o,n,r,i,t[7],4249261313,22),i=u(i,o,n,r,t[8],1770035416,7),r=u(r,i,o,n,t[9],2336552879,12),n=u(n,r,i,o,t[10],4294925233,17),o=u(o,n,r,i,t[11],2304563134,22),i=u(i,o,n,r,t[12],1804603682,7),r=u(r,i,o,n,t[13],4254626195,12),n=u(n,r,i,o,t[14],2792965006,17),i=f(i,o=u(o,n,r,i,t[15],1236535329,22),n,r,t[1],4129170786,5),r=f(r,i,o,n,t[6],3225465664,9),n=f(n,r,i,o,t[11],643717713,14),o=f(o,n,r,i,t[0],3921069994,20),i=f(i,o,n,r,t[5],3593408605,5),r=f(r,i,o,n,t[10],38016083,9),n=f(n,r,i,o,t[15],3634488961,14),o=f(o,n,r,i,t[4],3889429448,20),i=f(i,o,n,r,t[9],568446438,5),r=f(r,i,o,n,t[14],3275163606,9),n=f(n,r,i,o,t[3],4107603335,14),o=f(o,n,r,i,t[8],1163531501,20),i=f(i,o,n,r,t[13],2850285829,5),r=f(r,i,o,n,t[2],4243563512,9),n=f(n,r,i,o,t[7],1735328473,14),i=l(i,o=f(o,n,r,i,t[12],2368359562,20),n,r,t[5],4294588738,4),r=l(r,i,o,n,t[8],2272392833,11),n=l(n,r,i,o,t[11],1839030562,16),o=l(o,n,r,i,t[14],4259657740,23),i=l(i,o,n,r,t[1],2763975236,4),r=l(r,i,o,n,t[4],1272893353,11),n=l(n,r,i,o,t[7],4139469664,16),o=l(o,n,r,i,t[10],3200236656,23),i=l(i,o,n,r,t[13],681279174,4),r=l(r,i,o,n,t[0],3936430074,11),n=l(n,r,i,o,t[3],3572445317,16),o=l(o,n,r,i,t[6],76029189,23),i=l(i,o,n,r,t[9],3654602809,4),r=l(r,i,o,n,t[12],3873151461,11),n=l(n,r,i,o,t[15],530742520,16),i=d(i,o=l(o,n,r,i,t[2],3299628645,23),n,r,t[0],4096336452,6),r=d(r,i,o,n,t[7],1126891415,10),n=d(n,r,i,o,t[14],2878612391,15),o=d(o,n,r,i,t[5],4237533241,21),i=d(i,o,n,r,t[12],1700485571,6),r=d(r,i,o,n,t[3],2399980690,10),n=d(n,r,i,o,t[10],4293915773,15),o=d(o,n,r,i,t[1],2240044497,21),i=d(i,o,n,r,t[8],1873313359,6),r=d(r,i,o,n,t[15],4264355552,10),n=d(n,r,i,o,t[6],2734768916,15),o=d(o,n,r,i,t[13],1309151649,21),i=d(i,o,n,r,t[4],4149444226,6),r=d(r,i,o,n,t[11],3174756917,10),n=d(n,r,i,o,t[2],718787259,15),o=d(o,n,r,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-e}function k(t,e,i,r,n,o,s,a){return S(t+(e^i^r)+o+s|0,a)+n|0}function E(t,e,i,r,n,o,s,a){return S(t+(e&i|~e&r)+o+s|0,a)+n|0}function A(t,e,i,r,n,o,s,a){return S(t+((e|~i)^r)+o+s|0,a)+n|0}function x(t,e,i,r,n,o,s,a){return S(t+(e&r|i&~r)+o+s|0,a)+n|0}function R(t,e,i,r,n,o,s,a){return S(t+(e^(i|~r))+o+s|0,a)+n|0}n(s,o),s.prototype._update=function(){for(var t=b,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,s=0|this._e,a=0|this._a,h=0|this._b,u=0|this._c,f=0|this._d,l=0|this._e,d=0;d<80;d+=1)var c,p=d<16?(c=k(i,r,n,o,s,t[g[d]],M[0],y[d]),R(a,h,u,f,l,t[v[d]],_[0],w[d])):d<32?(c=E(i,r,n,o,s,t[g[d]],M[1],y[d]),x(a,h,u,f,l,t[v[d]],_[1],w[d])):d<48?(c=A(i,r,n,o,s,t[g[d]],M[2],y[d]),A(a,h,u,f,l,t[v[d]],_[2],w[d])):d<64?(c=x(i,r,n,o,s,t[g[d]],M[3],y[d]),E(a,h,u,f,l,t[v[d]],_[3],w[d])):(c=R(i,r,n,o,s,t[g[d]],M[4],y[d]),k(a,h,u,f,l,t[v[d]],_[4],w[d])),i=s,s=o,o=S(n,10),n=r,r=c,a=l,l=f,f=S(u,10),u=h,h=p;var m=this._b+n+f|0;this._b=this._c+o+l|0,this._c=this._d+s+a|0,this._d=this._e+i+h|0,this._e=this._a+r+u|0,this._a=m},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this._strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this._strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function o(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i._strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modrn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>8&255),i>16&255),6===o?(i>24&255),o=r=0):(r=s>>>24,o+=2)}if(i>8&255),0<=i&&(t[i--]=s>>16&255),6===o?(0<=i&&(t[i--]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(0<=i)for(t[i--]=r;0<=i;)t[i--]=0},Math.clz32?b.prototype._countBits=function(t){return 32-Math.clz32(t)}:b.prototype._countBits=function(t){var e=t,t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this._strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function h(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i._strip()}function u(t,e,i){return h(t,e,i)}Math.imul||(a=o),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?a:i<63?o:i<1024?h:u)(this,t,e)},b.prototype.mul=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},b.prototype.mulf=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),u(this,t,e)},b.prototype.imul=function(t){return this.clone().mulTo(t,this)},b.prototype.imuln=function(t){var e=t<0;m("number"==typeof(t=e?-t:t)),m(t<67108864);for(var i=0,r=0;r>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this._strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modrn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(i*r+(0|this.words[n]))%t;return e?-r:r},b.prototype.modn=function(t){return this.modrn(t)},b.prototype.idivn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/t|0,i=n%t}return this._strip(),e?this.ineg():this},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return f[t]=e},_.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(r(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},_.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new S(t)},e(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,E(16)(t))},function(t,e,i){"use strict";e.version=i(193).version,e.utils=i(8),e.rand=i(46),e.curve=i(101),e.curves=i(52),e.ec=i(205),e.eddsa=i(209)},function(t,e,i){"use strict";var r,n=e,e=i(53),o=i(101),s=i(8).assert;function a(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,i){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var t=new a(i);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t}),t}})}n.PresetCurve=a,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(204)}catch(t){r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,i){e.utils=i(9),e.common=i(28),e.sha=i(198),e.ripemd=i(202),e.hmac=i(203),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(s,t,a){"use strict";!function(t){var e,i=a(4),r=i.Buffer,n={};for(e in i)i.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(n[e]=i[e]);var o=n.Buffer={};for(e in r)r.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(o[e]=r[e]);if(n.Buffer.prototype=r.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,i)}),o.alloc||(o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||2*(1<<30)<=t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=r(t);return e&&0!==e.length?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t}),!n.kStringMaxLength)try{n.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(t){}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),s.exports=n}.call(this,a(2))},function(t,e,i){"use strict";const a=i(56).Reporter,r=i(29).EncoderBuffer,h=i(29).DecoderBuffer,n=i(7),o=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(t,e,i){const r={};this._baseState=r,r.name=i,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,i={};f.forEach(function(t){i[t]=e[t]});const t=new this.constructor(i.parent);return t._baseState=i,t},u.prototype._wrap=function(){const i=this._baseState;s.forEach(function(e){this[e]=function(){const t=new this.constructor(this);return i.children.push(t),t[e].apply(t,arguments)}},this)},u.prototype._init=function(t){const e=this._baseState;n(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),n.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){const 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&&(n(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(n(null===e.args),e.args=t,e.reverseArgs=t.map(function(i){if("object"!=typeof i||i.constructor!==Object)return i;const r={};return Object.keys(i).forEach(function(t){t==(0|t)&&(t|=0);var e=i[t];r[e]=t}),r}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(i){u.prototype[i]=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return n(null===t.tag),t.tag=i,this._useArgs(e),this}}),u.prototype.use=function(t){n(t);const e=this._baseState;return n(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){const e=this._baseState;return n(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){const e=this._baseState;return n(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return n(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(t){const e=this._baseState;return n(null===e.use),e.contains=t,this},u.prototype._decode=function(e,i){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,i));let n,o=r.default,s=!0,t=null;if(null!==r.key&&(t=e.enterKey(r.key)),r.optional){let t=null;if(null!==r.explicit?t=r.explicit:null!==r.implicit?t=r.implicit:null!==r.tag&&(t=r.tag),null!==t||r.any){if(s=this._peekTag(e,t,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const i=this._decodeTag(e,r.explicit);if(e.isError(i))return i;e=i}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(i&&i.track&&null!==r.tag&&i.track(e.path(),n,e.length,"tagged"),i&&i.track&&null!==r.tag&&i.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(t){t._decode(e,i)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new h(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,i)}}return r.obj&&s&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==s?null!==t&&e.exitKey(t):e.leaveKey(t,r.key,o),o},u.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)},u.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),n(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},u.prototype._decodeChoice=function(r,n){const o=this._baseState;let s=null,a=!1;return Object.keys(o.choice).some(function(t){const e=r.save(),i=o.choice[t];try{const o=i._decode(r,n);if(r.isError(o))return!1;s={type:t,value:o},a=!0}catch(t){return r.restore(e),!1}return!0},this),a?s:r.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},u.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){t=this._encodeValue(t,e,i);return void 0===t||this._skipDefault(t,e,i)?void 0:t}},u.prototype._encodeValue=function(i,r,t){const e=this._baseState;if(null===e.parent)return e.children[0]._encode(i,r||new a);let n=null;if(this.reporter=r,e.optional&&void 0===i){if(null===e.default)return;i=e.default}let o=null,s=!1;if(e.any)n=this._createEncoderBuffer(i);else if(e.choice)n=this._encodeChoice(i,r);else if(e.contains)o=this._getUse(e.contains,t)._encode(i,r),s=!0;else if(e.children)o=e.children.map(function(t){if("null_"===t._baseState.tag)return t._encode(null,r,i);if(null===t._baseState.key)return r.error("Child should have a key");var e=r.enterKey(t._baseState.key);if("object"!=typeof i)return r.error("Child expected, but input is not object");t=t._encode(i[t._baseState.key],r,i);return r.leaveKey(e),t},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return r.error("Too many args for : "+e.tag);if(!Array.isArray(i))return r.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,o=this._createEncoderBuffer(i.map(function(t){var e=this._baseState;return this._getUse(e.args[0],i)._encode(t,r)},t))}else null!==e.use?n=this._getUse(e.use,t)._encode(i,r):(o=this._encodePrimitive(e.tag,i),s=!0);if(!e.any&&null===e.choice){const i=null!==e.implicit?e.implicit:e.tag,t=null===e.implicit?"universal":"context";null===i?null===e.use&&r.error("Tag could be omitted only for .use()"):null===e.use&&(n=this._encodeComposite(i,s,t,o))}return null!==e.explicit&&(n=this._encodeComposite(e.explicit,!1,"context",n)),n},u.prototype._encodeChoice=function(t,e){const i=this._baseState,r=i.choice[t.type];return r||n(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},u.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 new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,i){"use strict";const r=i(0);function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}(e.Reporter=n).prototype.isError=function(t){return t instanceof o},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){const e=this._reporterState,i=t instanceof o;if(t=i?t:new o(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},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){"use strict";function r(i){const r={};return Object.keys(i).forEach(function(t){(0|t)==t&&(t|=0);var e=i[t];r[e]=t}),r}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(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=r(e.tag)},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(228).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){t.exports=function(t){function n(t,e){this.name=e,this.path=t,this.keys=[],this.fns=[],this.params={},this.regex=i(this.path,this.keys,!1,!1)}var o,s=[],a={},e=t.routie;n.prototype.addHandler=function(t){this.fns.push(t)},n.prototype.removeHandler=function(t){for(var e=0,i=this.fns.length;e=this._blockSize;){for(var n=this._blockOffset;ne.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(A,t))}function A(t){var e=t._readableState;g("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,I(t)}function x(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function L(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 D(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[l-7]+(((e=i[l-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+i[l-16];for(var d=0;d<64;++d)var c=f+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(u^a&(h^u))+m[d]+i[d]|0,p=0|((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n|o&(r|n)),f=u,u=h,h=a,a=s+c|0,s=o,o=n,n=r,r=c+p|0;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=h+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},a.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=a},function(t,e,i){var r=i(0),n=i(21),o=i(1).Buffer,q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}function U(t,e,i){return i^t&(e^i)}function z(t,e,i){return t&e|i&(t|e)}function F(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function H(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function $(t,e){return t>>>0>>0?1:0}r(a,n),a.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},a.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,a=0|this._fh,h=0|this._gh,u=0|this._hh,f=0|this._al,l=0|this._bl,d=0|this._cl,c=0|this._dl,p=0|this._el,m=0|this._fl,b=0|this._gl,g=0|this._hl,v=0;v<32;v+=2)e[v]=t.readInt32BE(4*v),e[v+1]=t.readInt32BE(4*v+4);for(;v<160;v+=2){var y=e[v-30],w=e[v-30+1],M=(y>>>1|w<<31)^(y>>>8|w<<24)^y>>>7,_=(w>>>1|y<<31)^(w>>>8|y<<24)^(w>>>7|y<<25),S=(y=e[v-4],w=e[v-4+1],(y>>>19|w<<13)^(w>>>29|y<<3)^y>>>6),k=(w>>>19|y<<13)^(y>>>29|w<<3)^(w>>>6|y<<26),E=e[v-14],A=e[v-14+1],w=e[v-32],y=e[v-32+1],x=_+A|0,R=(R=(R=M+E+$(x,_)|0)+S+$(x=x+k|0,k)|0)+w+$(x=x+y|0,y)|0;e[v]=R,e[v+1]=x}for(var T=0;T<160;T+=2){R=e[T];var x=e[T+1],C=z(i,r,n),B=z(f,l,d),I=F(i,f),O=F(f,i),L=H(s,p),j=H(p,s),D=q[T+1],P=U(s,a,h),N=U(p,m,b),j=g+j|0,L=(L=(L=(L=u+L+$(j,g)|0)+P+$(j=j+N|0,N)|0)+q[T]+$(j=j+D|0,D)|0)+R+$(j=j+x|0,x)|0,B=O+B|0,O=I+C+$(B,O)|0,u=h,g=b,h=a,b=m,a=s,m=p,s=o+L+$(p=c+j|0,c)|0,o=n,c=d,n=r,d=l,r=i,l=f,i=L+O+$(f=j+B|0,j)|0}this._al=this._al+f|0,this._bl=this._bl+l|0,this._cl=this._cl+d|0,this._dl=this._dl+c|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+b|0,this._hl=this._hl+g|0,this._ah=this._ah+i+$(this._al,f)|0,this._bh=this._bh+r+$(this._bl,l)|0,this._ch=this._ch+n+$(this._cl,d)|0,this._dh=this._dh+o+$(this._dl,c)|0,this._eh=this._eh+s+$(this._el,p)|0,this._fh=this._fh+a+$(this._fl,m)|0,this._gh=this._gh+h+$(this._gl,b)|0,this._hh=this._hh+u+$(this._hl,g)|0},a.prototype._hash=function(){var r=o.allocUnsafe(64);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=a},function(C,t,B){"use strict";!function(t,b){var g=B(30);C.exports=n;var o,v=B(62);n.ReadableState=r,B(13).EventEmitter;function y(t,e){return t.listeners(e).length}var i=B(73),l=B(1).Buffer,d=t.Uint8Array||function(){},e=Object.create(B(26));e.inherits=B(0);var s,t=B(147),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},a=B(148),t=B(74);e.inherits(n,i);var h=["error","close","destroy","pause","resume"];function r(t,e){t=t||{};var i=e instanceof(o=o||B(15));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,e=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||B(14).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function n(t){if(o=o||B(15),!(this instanceof n))return new n(t);this._readableState=new r(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function u(t,e,i,r,n){var o,s,a,h,u,f=t._readableState;return null===e?(f.reading=!1,a=t,(h=f).ended||(!h.decoder||(u=h.decoder.end())&&u.length&&(h.buffer.push(u),h.length+=h.objectMode?1:u.length),h.ended=!0,p(a))):(n||(o=f,n=a=e,o=s=l.isBuffer(n)||n instanceof d||"string"==typeof a||void 0===a||o.objectMode?s:new TypeError("Invalid non-string/buffer chunk")),o?t.emit("error",o):f.objectMode||e&&0e.highWaterMark&&(e.highWaterMark=(8388608<=(i=t)?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function p(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(m,t):m(t))}function m(t){w("emit readable"),t.emit("readable"),E(t)}function M(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(_,t,e))}function _(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):(i=t,t=e.buffer,e=e.decoder,io.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=l.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(i,t),n=r),n);var i,r,n}function x(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?x:p)(this),null;if(0===(t=f(t,e))&&e.ended)return 0===e.length&&x(this),null;var r=e.needReadable;return w("need readable",r),(0===e.length||e.length-ti?e=("rmd160"===t?new h:u(t)).update(e).digest():e.lengtho?e=n(e):e.length>>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 a=0;a<=24;a+=8)n<<=1,n|=e>>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+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;s<4;s++)for(var a=24;0<=a;a-=8)n<<=1,n|=e>>>a+s&1,n<<=1,n|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+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 a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+s&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var h=[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,r){for(var n=0,o=0,s=h.length>>>1,a=0;a>>h[a]&1;for(a=s;a>>h[a]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.expand=function(t,e,i){for(var r=0,n=0,r=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)r<<=6,r|=t>>>o&63;for(o=11;3<=o;o-=4)n|=t>>>o&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>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;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[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>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.length>>1],i=f.r28shl(i,o),r=f.r28shl(r,o);f.pc2(i,r,t.keys,n)}},a.prototype._update=function(t,e,i,r){var n=this._desState,o=f.readUInt32BE(t,e),e=f.readUInt32BE(t,e+4);f.ip(o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,e,n.tmp,0):this._decrypt(n,o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],f.writeUInt32BE(i,o,r),f.writeUInt32BE(i,e,r+4)},a.prototype._pad=function(t,e){for(var i=t.length-e,r=e;r>>0,o=u}f.rip(s,o,r,n)},a.prototype._decrypt=function(t,e,i,r,n){for(var o=i,s=e,a=t.keys.length-2;0<=a;a-=2){var h=t.keys[a],u=t.keys[a+1];f.expand(o,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];h=f.substitute(h,u),u=o,o=(s^f.permute(h))>>>0,s=u}f.rip(o,s,r,n)}},function(t,e,i){var h=i(27),u=i(1).Buffer,f=i(87);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),r=t._cache.length;t._cache=u.concat([t._cache,u.allocUnsafe(16*i)]);for(var n=0;nt;)i.ishrn(1);if(i.isEven()&&i.iadd(h),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(f))for(;i.mod(l).cmp(d);)i.iadd(p)}else for(;i.mod(s).cmp(c);)i.iadd(p);if(b(r=i.shrn(1))&&b(i)&&g(r)&&g(i)&&a.test(r)&&a.test(i))return i}}},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(176).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){var c=i(177),r=i(46);function n(t){this.rand=t||new r.Rand}(t.exports=n).create=function(t){return new n(t)},n.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new c(this.rand.generate(i))}while(0<=r.cmp(t));return r},n.prototype._randrange=function(t,e){e=e.sub(t);return t.add(this._randbelow(e))},n.prototype.test=function(t,e,i){var r=t.bitLength(),n=c.mont(t),o=new c(1).toRed(n);e=e||Math.max(1,r/48|0);for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);0e.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(A,t))}function A(t){var e=t._readableState;g("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,I(t)}function x(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function L(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 D(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>8,n=255&n;o?i.push(o,n):i.push(n)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){"use strict";e.base=i(33),e.short=i(195),e.mont=i(196),e.edwards=i(197)},function(t,e,i){"use strict";var r=i(9).rotr32;function n(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}function s(t,e,i){return t^e^i}e.ft_1=function(t,e,i,r){return 0===t?n(e,i,r):1===t||3===t?e^i^r:2===t?o(e,i,r):void 0},e.ch32=n,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,i){"use strict";var r=i(9),n=i(28),o=i(102),p=i(7),m=r.sum32,b=r.sum32_4,g=r.sum32_5,v=o.ch32,y=o.maj32,w=o.s0_256,M=o.s1_256,_=o.g0_256,S=o.g1_256,s=n.BlockHash,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function h(){if(!(this instanceof h))return new h;s.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=a,this.W=new Array(64)}r.inherits(h,s),(t.exports=h).blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){"use strict";const r=e;r.der=i(108),r.pem=i(215)},function(t,e,i){"use strict";const r=i(0),s=i(54).Buffer,n=i(55),a=i(57);function o(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){n.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(t.exports=o).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(h,n),h.prototype._encodeComposite=function(t,e,i,r){i=function(t,e,i,r){let n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return 31<=n?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=a.tagClassByName[i||"universal"]<<6,n)}(t,e,i,this.reporter);if(r.length<128){const t=s.alloc(2);return t[0]=i,t[1]=r.length,this._createEncoderBuffer([t,r])}let n=1;for(let t=r.length;256<=t;t>>=8)n++;const o=s.alloc(2+n);o[0]=i,o[1]=128|n;for(let t=1+n,e=r.length;0>=8)o[t]=255&e;return this._createEncoderBuffer([o,r])},h.prototype._encodeStr=function(e,i){if("bitstr"===i)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==i)return"numstr"===i?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===i?this._isPrintstr(e)?this._createEncoderBuffer(e):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(i)||"objDesc"===i?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+i+" unsupported");{const i=s.alloc(2*e.length);for(let t=0;t>=7)r++}const n=s.alloc(r);let o=n.length-1;for(let e=i.length-1;0<=e;e--){let t=i[e];for(n[o--]=127&t;0<(t>>=7);)n[o--]=128|127&t}return this._createEncoderBuffer(n)},h.prototype._encodeTime=function(t,e){let i;const r=new Date(t);return"gentime"===e?i=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=s.from(t)}if(s.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=s.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;256<=t;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;0<=t;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(s.from(r))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,i){const r=this._baseState;let n;if(null===r.default)return!1;var o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n>6],n=0==(32&r);if(31==(31&r)){let t=r;for(r=0;128==(128&t);){if(t=e.readUInt8(i),e.isError(t))return t;r<<=7,r|=127&t}}else r&=31;return{cls:t,primitive:n,tag:r,tagStr:a.tag[r]}}function l(e,i,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!i&&128===n)return null;if(0==(128&n))return n;var o=127&n;if(4({visible:!1,loading:!1,data:{name:"",title:"",description:""}}),methods:{show(){this.data.name="",this.visible=!0},doSubmit(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/add_module"),this.data,t=>{this.loading=!1,this.$dialog.tipSuccess("操作成功"),this.$emit("update"),this.visible=!1},t=>{this.loading=!1})}}},n,[],!1,null,null,null);s.options.__file="src/components/AddModuleDialog.vue";var a=s.exports,h=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("el-dialog",{attrs:{visible:i.visible,"append-to-body":""},on:{"update:visible":function(t){i.visible=t}}},[r("div",{attrs:{slot:"title"},slot:"title"},[i._v("\n 模块回收站\n ")]),i._v(" "),r("div",[r("table",{directives:[{name:"loading",rawName:"v-loading",value:i.loading,expression:"loading"}],staticClass:"ub-table tw-font-mono"},[r("thead",[r("tr",[r("th",[i._v("名称")]),i._v(" "),r("th",[i._v("版本")]),i._v(" "),r("th",[i._v("路径")]),i._v(" "),r("th",[i._v(" ")])])]),i._v(" "),r("tbody",[i.loading?r("tr",[r("td",{attrs:{colspan:"4"}},[r("div",{staticClass:"ub-empty"},[r("div",{staticClass:"icon"},[r("i",{staticClass:"iconfont icon-refresh tw-inline-block tw-animate-spin"})]),i._v(" "),r("div",{staticClass:"text"},[i._v("\n 正在加载...\n ")])])])]):i._e(),i._v(" "),0!==i.records.length||i.loading?i._e():r("tr",[r("td",{attrs:{colspan:"4"}},[r("div",{staticClass:"ub-empty"},[r("div",{staticClass:"icon"},[r("i",{staticClass:"iconfont icon-empty-box"})]),i._v(" "),r("div",{staticClass:"text"},[i._v("\n 暂无数据\n ")])])])]),i._v(" "),i._l(i.records,function(e,t){return r("tr",[r("td",[i._v(i._s(e.title))]),i._v(" "),r("td",[i._v(i._s(e.version))]),i._v(" "),r("td",[r("code",[i._v(i._s(e.filename))])]),i._v(" "),r("td",[r("a",{staticClass:"ub-lister-action danger",attrs:{href:"javascript:;"},on:{click:function(t){return i.doDelete(e)}}},[r("i",{staticClass:"iconfont icon-trash"}),i._v("\n 清除\n ")])])])})],2)])])])};h._withStripped=!0;var u=Object(o.a)({name:"TrashModuleDialog",data:()=>({visible:!1,loading:!1,records:[]}),methods:{doList(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/trash_module"),{},t=>{this.loading=!1,this.records=t.data.records},t=>{this.loading=!1})},show(){this.visible=!0,this.doList()},doDelete(t){this.$dialog.confirm(`确认清除 ${t.filename}(不可恢复)?`,()=>{this.$dialog.loadingOn(),this.$api.post(this.$url.admin("module_developer/tools/trash_module/delete"),t,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("操作成功"),this.doList()},t=>{this.$dialog.loadingOff()})})}}},h,[],!1,null,null,null);u.options.__file="src/components/TrashModuleDialog.vue";n=u.exports,s=function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("el-dialog",{attrs:{visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[e._v("\n 增加Cms主题模块\n ")]),e._v(" "),t("div",[t("div",{staticClass:"ub-form"},[t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 标识\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.name,callback:function(t){e.$set(e.data,"name",t)},expression:"data.name"}},[t("template",{slot:"prepend"},[e._v("CmsTheme")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 名称\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.title,callback:function(t){e.$set(e.data,"title",t)},expression:"data.title"}},[t("template",{slot:"prepend"},[e._v("CMS")]),e._v(" "),t("template",{slot:"append"},[e._v("模板")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[e._v("描述")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.description,callback:function(t){e.$set(e.data,"description",t)},expression:"data.description"}})],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"field"},[t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.doSubmit}},[e._v("确定")])],1)])])])])};s._withStripped=!0;h=Object(o.a)({name:"AddCmsThemeModuleDialog",data:()=>({visible:!1,loading:!1,data:{type:"cmsTheme",name:"",title:"",description:""}}),methods:{show(){this.data.name="",this.visible=!0},doSubmit(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/add_module"),this.data,t=>{this.loading=!1,this.$dialog.tipSuccess("操作成功"),this.$emit("update"),this.visible=!1},t=>{this.loading=!1})}}},s,[],!1,null,null,null);h.options.__file="src/components/AddCmsThemeModuleDialog.vue";u=h.exports,s=function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("el-dialog",{attrs:{visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[e._v("\n 增加Cms主题模块\n ")]),e._v(" "),t("div",[t("div",{staticClass:"ub-form"},[t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 模块\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("ModuleSelector",{model:{value:e.data.module,callback:function(t){e.$set(e.data,"module",t)},expression:"data.module"}})],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 标识\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.name,callback:function(t){e.$set(e.data,"name",t)},expression:"data.name"}},[t("template",{slot:"prepend"},[e._v(e._s(e.data.module||"{模块}")+"Theme")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 名称\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.title,callback:function(t){e.$set(e.data,"title",t)},expression:"data.title"}},[t("template",{slot:"append"},[e._v("模板")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[e._v("描述")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.description,callback:function(t){e.$set(e.data,"description",t)},expression:"data.description"}})],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"field"},[t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.doSubmit}},[e._v("确定")])],1)])])])])},h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[0({modules:[]}),mounted(){this.$api.post(this.$url.admin("module_developer/all"),{},t=>{this.modules=t.data.modules})}},h,[],!1,null,"5b55331b",null);h.options.__file="src/components/ModuleSelector.vue";h={name:"AddThemeModuleDialog",components:{ModuleSelector:h.exports},data:()=>({visible:!1,loading:!1,data:{type:"theme",module:"",name:"",title:"",description:""}}),methods:{show(){this.data.name="",this.visible=!0},doSubmit(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/add_module"),this.data,t=>{this.loading=!1,this.$dialog.tipSuccess("操作成功"),this.$emit("update"),this.visible=!1},t=>{this.loading=!1})}}},s=Object(o.a)(h,s,[],!1,null,null,null);s.options.__file="src/components/AddThemeModuleDialog.vue";a={name:"DeveloperTools",components:{AddThemeModuleDialog:s.exports,AddCmsThemeModuleDialog:u,TrashModuleDialog:n,AddModuleDialog:a}},r=Object(o.a)(a,r,[function(){var t=this.$createElement,t=this._self._c||t;return t("div",{staticClass:"head"},[t("div",{staticClass:"title"},[this._v("\n 常用工具\n ")])])}],!1,null,null,null);r.options.__file="src/components/DeveloperTools.vue",e.a=r.exports},,,,,,function(t,e,i){"use strict";var r;function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var g,v,y,w=arguments,M=(g=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,y=/[^-+\dA-Z]/g,function(t,e,i,r){if(1!==w.length||"string"!==A(t)||/\d/.test(t)||(e=t,t=void 0),(t=t||0===t?t:new Date)instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");var n=(e=String(M.masks[e]||e||M.masks.default)).slice(0,4);"UTC:"!==n&&"GMT:"!==n||(e=e.slice(4),i=!0,"GMT:"===n&&(r=!0));function o(){return i?"getUTC":"get"}function s(){return t[o()+"Date"]()}function a(){return t[o()+"Day"]()}function h(){return t[o()+"Month"]()}function u(){return t[o()+"FullYear"]()}function f(){return t[o()+"Hours"]()}function l(){return t[o()+"Minutes"]()}function d(){return t[o()+"Seconds"]()}function c(){return t[o()+"Milliseconds"]()}function p(){return i?0:t.getTimezoneOffset()}function m(){return k(t)}var b={d:s,dd:function(){return _(s())},ddd:function(){return M.i18n.dayNames[a()]},DDD:function(){return S({y:u(),m:h(),d:s(),_:o(),dayName:M.i18n.dayNames[a()],short:!0})},dddd:function(){return M.i18n.dayNames[a()+7]},DDDD:function(){return S({y:u(),m:h(),d:s(),_:o(),dayName:M.i18n.dayNames[a()+7]})},m:function(){return h()+1},mm:function(){return _(h()+1)},mmm:function(){return M.i18n.monthNames[h()]},mmmm:function(){return M.i18n.monthNames[h()+12]},yy:function(){return String(u()).slice(2)},yyyy:function(){return _(u(),4)},h:function(){return f()%12||12},hh:function(){return _(f()%12||12)},H:f,HH:function(){return _(f())},M:l,MM:function(){return _(l())},s:d,ss:function(){return _(d())},l:function(){return _(c(),3)},L:function(){return _(Math.floor(c()/10))},t:function(){return f()<12?M.i18n.timeNames[0]:M.i18n.timeNames[1]},tt:function(){return f()<12?M.i18n.timeNames[2]:M.i18n.timeNames[3]},T:function(){return f()<12?M.i18n.timeNames[4]:M.i18n.timeNames[5]},TT:function(){return f()<12?M.i18n.timeNames[6]:M.i18n.timeNames[7]},Z:function(){return r?"GMT":i?"UTC":(String(t).match(v)||[""]).pop().replace(y,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(0>16&255,n[o++]=e>>8&255,n[o++]=255&e;return 2===i&&(e=h[t.charCodeAt(a)]<<2|h[t.charCodeAt(a+1)]>>4,n[o++]=255&e),1===i&&(e=h[t.charCodeAt(a)]<<10|h[t.charCodeAt(a+1)]<<4|h[t.charCodeAt(a+2)]>>2,n[o++]=e>>8&255,n[o++]=255&e),n},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,n=[],o=0,s=i-r;o>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return n.join("")}(t,o,s>2]+a[e<<4&63]+"==")):2==r&&(e=(t[i-2]<<8)+t[i-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),n.join("")};for(var a=[],h=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n>1,f=-7,l=i?n-1:0,d=i?-1:1,i=t[e+l];for(l+=d,o=i&(1<<-f)-1,i>>=-f,f+=a;0>=-f,f+=r;0>1,l=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,c=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(e+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),u<=s+f?(a=0,s=u):1<=s+f?(a=(e*r-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=c,a/=256,n-=8);for(s=s<>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t>>27)+(u=r,f=n,l=o,0===(h=c)?u&f|~u&l:2===h?u&f|u&l|f&l:u^f^l)+s+e[d]+p[c],s=o,o=n,n=r<<30|r>>>2,r=i,i=c;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=s+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(21),o=i(1).Buffer,m=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,n.call(this,64,56)}r(a,n),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,a=0|this._e,h=0;h<16;++h)i[h]=t.readInt32BE(4*h);for(;h<80;++h)i[h]=(e=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|e>>>31;for(var u,f,l,d,c=0;c<80;++c)var p=~~(c/20),p=0|(r<<5|r>>>27)+(f=n,l=o,d=s,0===(u=p)?f&l|~f&d:2===u?f&l|f&d|l&d:f^l^d)+a+i[c]+m[p],a=s,s=o,o=n<<30|n>>>2,n=r,r=p;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(70),o=i(21),s=i(1).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}r(h,n),h.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},h.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=h},function(t,e,i){var r=i(0),n=i(71),o=i(21),s=i(1).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}r(h,n),h.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},h.prototype._hash=function(){var r=s.allocUnsafe(48);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=h},function(t,e,i){t.exports=r;var f=i(13).EventEmitter;function r(){f.call(this)}i(0)(r,f),r.Readable=i(41),r.Writable=i(153),r.Duplex=i(154),r.Transform=i(155),r.PassThrough=i(156),(r.Stream=r).prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function h(t){if(u(),0===f.listenerCount(this,"error"))throw t}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",s),i.removeListener("close",a),i.removeListener("error",h),e.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",h),e.on("error",h),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},function(t,e){},function(t,e,i){"use strict";var o=i(1).Buffer,r=i(149);function n(){!function(t){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}t.exports=(n.prototype.push=function(t){t={data:t,next:null};0>>0),r=this.head,n=0;r;)e=n,r.data.copy(i,e),n+=r.data.length,r=r.next;return i},n),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,n,o){!function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new r(i.call(setTimeout,e,arguments),clearTimeout)},n.setInterval=function(){return new r(i.call(setInterval,e,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(e,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(151),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}.call(this,o(5))},function(t,e,i){!function(t,c){!function(i){"use strict";var r,e,n,t,o,s,a,h,u,f;function l(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var i=s[t];if(i){a=!0;try{!function(){var t=i.callback,e=i.args;switch(e.length){case 0:t();break;case 1:t(e[0]);break;case 2:t(e[0],e[1]);break;case 3:t(e[0],e[1],e[2]);break;default:t.apply(void 0,e)}}()}finally{l(t),a=!1}}}}i.setImmediate||(o=1,a=!(s={}),h=i.document,u=(u=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&u.setTimeout?u:i,f="[object process]"==={}.toString.call(i.process)?function(t){c.nextTick(function(){d(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(n="setImmediate$"+Math.random()+"$",t=function(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(n)&&d(+t.data.slice(n.length))},i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),function(t){i.postMessage(n+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){e.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var e=h.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i>o%8,t._prev=function(t,e){var i=t.length,r=-1,n=a.allocUnsafe(t.length);for(t=a.concat([t,a.from([e])]);++r>7;return n}(t._prev,i?r:n);return s}e.encrypt=function(t,e,i){for(var r=e.length,n=a.allocUnsafe(r),o=-1;++o>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},function(t,e,i){var r=i(89),n=i(1).Buffer,o=i(45),s=i(90),a=i(11),h=i(31),u=i(32);function f(t,e,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(i),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function d(t,e,i){t=o[t.toLowerCase()];if(!t)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if((e="string"==typeof e?n.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new s(t.module,e,i,!0):"auth"===t.type?new r(t.module,e,i,!0):new f(t.module,e,i)}i(0)(f,a),f.prototype._update=function(t){var e;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),i.push(e);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e){},function(t,e){},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(m,t,b){!function(i){var r=b(92),o=new(b(93)),s=new r(24),a=new r(11),h=new r(10),u=new r(3),f=new r(7),l=b(91),t=b(18);function n(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new r(t),this}function d(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new r(t),this}m.exports=e;var c={};function e(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=n,this.setPrivateKey=d):this._primeCode=8}function p(t,e){t=new i(t.toArray());return e?t.toString(e):t}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),e=[i,t.toString(16)].join("_");if(e in c)return c[e];var r,n=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return n+=1,c[e]=n+="02"===i||"05"===i?8:4;switch(o.test(t.shrn(1))||(n+=2),i){case"02":t.mod(s).cmp(a)&&(n+=8);break;case"05":(r=t.mod(h)).cmp(u)&&r.cmp(f)&&(n+=8);break;default:n+=4}return c[e]=n}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new r(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new i(e.toArray()),e=this.getPrime();return t.length>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y),t=(e=0!==e.cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.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(),t=t.redInvm(),e=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t),t=e.redSqr().redISub(this.x.redAdd(this.x)),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new y(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)},h.prototype.mulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i):this.curve._wnafMulAdd(1,e,i,2)},h.prototype.jmulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i,!0):this.curve._wnafMulAdd(1,e,i,2,!0)},h.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))},h.prototype.neg=function(t){if(this.inf)return this;var e,i=this.curve.point(this.x,this.y.redNeg());return t&&this.precomputed&&(e=this.precomputed,t=function(t){return t.neg()},i.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}),i},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(u,o.BasePoint),a.prototype.jpoint=function(t,e,i){return new u(this,t,e,i)},u.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),t=this.y.redMul(e).redMul(t);return this.curve.point(i,t)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(i.redMul(this.z)),e=r.redSub(n),i=o.redSub(s);if(0===e.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();n=e.redSqr(),s=n.redMul(e),r=r.redMul(n),n=i.redSqr().redIAdd(s).redISub(r).redISub(r),s=i.redMul(r.redISub(n)).redISub(o.redMul(s)),e=this.z.redMul(t.z).redMul(e);return this.curve.jpoint(n,s,e)},u.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,o=t.y.redMul(e).redMul(this.z),t=i.redSub(r),e=n.redSub(o);if(0===t.cmpn(0))return 0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();r=t.redSqr(),o=r.redMul(t),i=i.redMul(r),r=e.redSqr().redIAdd(o).redISub(i).redISub(i),o=e.redMul(i.redISub(r)).redISub(n.redMul(o)),t=this.z.redMul(t);return this.curve.jpoint(r,o,t)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){"use strict";var r=i(10),n=i(0),o=i(33),s=i(8);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),(t.exports=a).prototype.validate=function(t){var e=t.normalize().x,t=e.redSqr(),e=t.redMul(e).redAdd(t.redMul(this.a)).redAdd(e);return 0===e.redSqrt().redSqr().cmp(e)},n(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),t=t.redMul(e),i=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(t,i)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(i.redAdd(n).redSqr()),n=e.x.redMul(i.redISub(n).redSqr());return this.curve.point(r,n)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var o=n.length-1;0<=o;o--)0===n[o]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){"use strict";var r=i(8),o=i(10),n=i(0),s=i(33),a=r.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.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 u(t,e,i,r,n){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=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()))))}n(h,s),(t.exports=h).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},h.prototype.pointFromX=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=this.c2.redSub(this.a.redMul(i)),i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=r.redMul(i.redInvm()),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},h.prototype.pointFromY=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=i.redSub(this.c2),i=i.redMul(this.d).redMul(this.c2).redSub(this.a),r=r.redMul(i.redInvm());if(0===r.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),t=e.redMul(this.a).redAdd(i),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===t.cmp(i)},n(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,i,r){return new u(this,t,e,i,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=(i=this.z.redSqr()).redIAdd(i),r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),t=o.redSub(i),i=r.redSub(e),r=n.redMul(t),e=o.redMul(i),i=n.redMul(i),o=t.redMul(o);return this.curve.point(r,e,o,i)},u.prototype._projDbl=function(){var t,e,i,r,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();return o=this.curve.twisted?(n=(i=this.curve._mulA(a)).redAdd(h),this.zOne?(t=s.redSub(a).redSub(h).redMul(n.redSub(this.curve.two)),e=n.redMul(i.redSub(h)),n.redSqr().redSub(n).redSub(n)):(r=this.z.redSqr(),o=n.redSub(r).redISub(r),t=s.redSub(a).redISub(h).redMul(o),e=n.redMul(i.redSub(h)),n.redMul(o))):(i=a.redAdd(h),r=this.curve._mulC(this.z).redSqr(),o=i.redSub(r).redSub(r),t=this.curve._mulC(s.redISub(i)).redMul(o),e=this.curve._mulC(i).redMul(a.redISub(h)),i.redMul(o)),this.curve.point(t,e,o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),t=n.redSub(r),n=n.redAdd(r),r=i.redAdd(e),i=o.redMul(t),e=n.redMul(r),r=o.redMul(r),n=t.redMul(n);return this.curve.point(i,e,n,r)},u.prototype._projAdd=function(t){var e,i=this.z.redMul(t.z),r=i.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(n).redMul(o),a=r.redSub(s),s=r.redAdd(s),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),t=i.redMul(a).redMul(t),s=this.curve.twisted?(e=i.redMul(s).redMul(o.redSub(this.curve._mulA(n))),a.redMul(s)):(e=i.redMul(s).redMul(o.redSub(n)),this.curve._mulC(a).redMul(s));return this.curve.point(t,e,s)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,i){"use strict";e.sha1=i(199),e.sha224=i(200),e.sha256=i(103),e.sha384=i(201),e.sha512=i(104)},function(t,e,i){"use strict";var r=i(9),n=i(28),i=i(102),f=r.rotl32,l=r.sum32,d=r.sum32_5,c=i.ft_1,o=n.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&i)throw new Error("Unable to find sencond key candinate");s=i?this.curve.pointFromX(s.add(this.curve.n),t):this.curve.pointFromX(s,t),e=e.r.invm(n),o=n.sub(o).mul(e).umod(n),n=r.mul(e).umod(n);return this.g.mulAdd(o,s,n)},h.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new p(e,r)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch(t){continue}if(n.eq(i))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,i){"use strict";var r=i(53),o=i(100),n=i(7);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex"),t=o.toArray(t.pers,t.persEnc||"hex");n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}(t.exports=s).prototype._init=function(t,e,i){i=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length"}},function(t,e,i){"use strict";var n=i(10),o=i(8),r=o.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0==r||4>>=0;return!(n<=127)&&(e.place=s,n)}function u(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}(t.exports=s).prototype._importDER=function(t,e){t=o.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var r=h(t,i);if(!1===r)return!1;if(r+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;r=t.slice(i.place,e+i.place);if(i.place+=e,2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;if(t.length!==e+i.place)return!1;i=t.slice(i.place,e+i.place);if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}return this.r=new n(r),this.s=new n(i),!(this.recoveryParam=null)},s.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=u(e),i=u(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];f(r,e.length),(r=r.concat(e)).push(2),f(r,i.length);e=r.concat(i),r=[48];return f(r,e.length),r=r.concat(e),o.encode(r,t)}},function(t,e,i){"use strict";var r=i(53),n=i(52),o=i(8),s=o.assert,a=o.parseBytes,h=i(210),u=i(211);function f(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=n[t].curve,this.curve=t,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=r.sha512}(t.exports=f).prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t),n=this.g.mul(r),e=this.encodePoint(n),i=this.hashInt(e,i.pubBytes(),t).mul(i.priv()),i=r.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:i,Rencoded:e})},f.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(i),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),t=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(t)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,i,r,n){var h=p(i);if("ec"===h.type){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");return function(t,e,i){var r=m[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));r=new c(r),i=i.data.subjectPrivateKey.data;return r.verify(e,t,i)}(t,e,h)}if("dsa"===h.type){if("dsa"!==r)throw new Error("wrong public key type");return function(t,e){var i=h.data.p,r=h.data.q,n=h.data.g,o=h.data.pub_key,s=p.signature.decode(t,"der"),a=s.s,t=s.r;b(a,r),b(t,r);s=d.mont(i),a=a.invm(r);return 0===n.toRed(s).redPow(new d(e).mul(a).mod(r)).fromRed().mul(o.toRed(s).redPow(t.mul(a).mod(r)).fromRed()).mod(i).mod(r).cmp(t)}(t,e)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");e=l.concat([n,e]);for(var o=h.modulus.byteLength(),s=[1],a=0;e.length+s.length+2>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e){},function(t,i,e){i.publicEncrypt=e(227),i.privateDecrypt=e(229),i.privateEncrypt=function(t,e){return i.publicEncrypt(t,e,!0)},i.publicDecrypt=function(t,e){return i.privateDecrypt(t,e,!0)}},function(t,e,i){var o=i(34),h=i(18),u=i(25),f=i(112),l=i(113),d=i(58),s=i(114),c=i(49),p=i(1).Buffer;t.exports=function(t,e,i){var r,n=t.padding||(i?1:4),a=o(t);if(4===n)r=function(t){var e=a.modulus.byteLength(),i=t.length,r=u("sha1").update(p.alloc(0)).digest(),n=r.length,o=2*n;if(e-o-2n||0<=new s(e).cmp(a.modulus))throw new Error("decryption error");t=i?d(new s(e),a):f(e,a),e=c.alloc(n-t.length);if(t=c.concat([e,t],n),4===r)return function(t){var e=a.modulus.byteLength(),i=l("sha1").update(c.alloc(0)).digest(),r=i.length;if(0!==t[0])throw new Error("decryption error");var n=t.slice(1,r+1),t=t.slice(r+1),n=u(n,h(t,r)),o=u(t,h(n,e-r-1));if(function(t,e){t=c.from(t),e=c.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));for(var n=-1;++n=t.length){n++;break}var o=t.slice(2,r-1);if(("0002"!==i.toString("hex")&&!e||"0001"!==i.toString("hex")&&e)&&n++,o.length<8&&n++,n)throw new Error("decryption error");return t.slice(r)}(t,i);if(3===r)return t;throw new Error("unknown padding")}},function(t,i,c){"use strict";!function(n,o){function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=c(1),s=c(18),a=e.Buffer,r=e.kMaxLength,h=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(u{r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===i[t]&&(i[t]={}),i[t][r[1]]=e):i[t]=e};case"bracket":return(t,e,i)=>{r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=[e]:i[t]=e};case"comma":case"separator":return(t,e,i)=>{var r="string"==typeof e&&e.includes(o.arrayFormatSeparator),n="string"==typeof e&&!r&&f(e,o).includes(o.arrayFormatSeparator);e=n?f(e,o):e;e=r||n?e.split(o.arrayFormatSeparator).map(t=>f(t,o)):null===e?e:f(e,o);i[t]=e};default:return(t,e,i)=>{void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(i),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const o of t.split("&"))if(""!==o){let[t,e]=a(i.decode?o.replace(/\+/g," "):o,"=");e=void 0===e?null:["comma","separator"].includes(i.arrayFormat)?e:f(e,i),r(f(t,i),e,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=d(r[t],i);else n[t]=d(r,i)}return!1===i.sort?n:(!0===i.sort?Object.keys(n).sort():Object.keys(n).sort(i.sort)).reduce((t,e)=>{var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(i):t[e]=i,t},Object.create(null))}s.extract=n,s.parse=c,s.stringify=(i,r)=>{if(!i)return"";h((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>r.skipNull&&null==i[t]||r.skipEmptyString&&""===i[t],n=function(n){switch(n.arrayFormat){case"index":return r=>(t,e)=>{const i=t.length;return void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(r,n),"[",i,"]"].join("")]:[...t,[u(r,n),"[",u(i,n),"]=",u(e,n)].join("")]};case"bracket":return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(i,n),"[]"].join("")]:[...t,[u(i,n),"[]=",u(e,n)].join("")];case"comma":case"separator":return i=>(t,e)=>null==e||0===e.length?t:0===t.length?[[u(i,n),"=",u(e,n)].join("")]:[[t,u(e,n)].join(n.arrayFormatSeparator)];default:return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,u(i,n)]:[...t,[u(i,n),"=",u(e,n)].join("")]}}(r),e={};for(const r of Object.keys(i))t(r)||(e[r]=i[r]);const o=Object.keys(e);return!1!==r.sort&&o.sort(r.sort),o.map(t=>{const e=i[t];return void 0===e?"":null===e?u(t,r):Array.isArray(e)?e.reduce(n(t),[]).join("&"):u(t,r)+"="+u(e,r)}).filter(t=>0{e=Object.assign({decode:!0},e);const[i,r]=a(t,"#");return Object.assign({url:i.split("?")[0]||"",query:c(n(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,e)}:{})},s.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);var i=l(t.url).split("?")[0]||"",r=s.extract(t.url),r=s.parse(r,{sort:!1}),r=Object.assign(r,t.query);let n=s.stringify(r,e);n=n&&"?"+n;let o=function(t){let e="";var i=t.indexOf("#");return-1!==i&&(e=t.slice(i)),e}(t.url);return t.fragmentIdentifier&&(o="#"+u(t.fragmentIdentifier,e)),`${i}${n}${o}`},s.pick=(t,e,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);var{url:r,query:n,fragmentIdentifier:t}=s.parseUrl(t,i);return s.stringifyUrl({url:r,query:o(n,e),fragmentIdentifier:t},i)},s.exclude=(t,i,e)=>{var r=Array.isArray(i)?t=>!i.includes(t):(t,e)=>!i(t,e);return s.pick(t,r,e)}},function(t,e,i){"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())},function(t,e,i){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function h(e){try{return decodeURIComponent(e)}catch(t){for(var i=e.match(n),r=1;r{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var i=t.indexOf(e);return-1===i?[t]:[t.slice(0,i),t.slice(i+e.length)]}},function(t,e,i){"use strict";t.exports=function(t,e){for(var i={},r=Object.keys(t),n=Array.isArray(e),o=0;o>>24)|4278255360&(i[a]<<24|i[a]>>>8);i[t>>>5]|=128<>>9<<4)]=t;for(var h=b._ff,u=b._gg,f=b._hh,l=b._ii,a=0;a>>0,n=n+c>>>0,o=o+p>>>0,s=s+m>>>0}return g.endian([r,n,o,s])})._ff=function(t,e,i,r,n,o,s){s=t+(e&i|~e&r)+(n>>>0)+s;return(s<>>32-o)+e},b._gg=function(t,e,i,r,n,o,s){s=t+(e&r|i&~r)+(n>>>0)+s;return(s<>>32-o)+e},b._hh=function(t,e,i,r,n,o,s){s=t+(e^i^r)+(n>>>0)+s;return(s<>>32-o)+e},b._ii=function(t,e,i,r,n,o,s){s=t+(i^(e|~r))+(n>>>0)+s;return(s<>>32-o)+e},b._blocksize=16,b._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=g.wordsToBytes(b(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):g.bytesToHex(t)}},function(t,e){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e>>5]|=t[i]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i>>6*(3-n)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],i=0,r=0;i>>6-2*r);return e}};t.exports=i},function(t,e){function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(i(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&i(e.slice(0,0))||!!t._isBuffer);var e}},function(e,i,r){var n;!function(){"use strict";var c={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(t){return function(t,e){var i,r,n,o,s,a,h,u,f=1,l=t.length,d="";for(r=0;r>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}c.json.test(o.type)?d+=i:(!c.number.test(o.type)||h&&!o.sign?u="":(u=h?"+":"-",i=i.toString().replace(c.sign,"")),s=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",a=o.width-(u+i).length,a=o.width&&0{t in h.$onOnceListeners||(h.$onOnceListeners[t]=[]),h.$onOnceListeners[t].includes(e)||(h.$onOnceListeners[t].push(e),h.$on(t,i))};var o=i(59),u=i.n(o);i(60);const f=window.api.dialog,l=window.api.base;a.a.config.productionTip=!1,a.a.use(e.a,{size:"mini",zIndex:3e3}),a.a.use(function(t,e){var i,r,n;t.prototype.$timeago||(i={locale:e.locale},t.prototype.$timeago=t.observable?t.observable(i):new t({data:i}),n=(r=void 0===(r=e)?{}:r).locales||{},e={name:r.name||"Timeago",props:{datetime:{required:!0},title:{type:[String,Boolean]},locale:{type:String},autoUpdate:{type:[Number,Boolean]},converter:{type:Function},converterOptions:{type:Object}},data:function(){return{timeago:this.getTimeago()}},computed:{localeName:function(){return this.locale||this.$timeago.locale}},mounted:function(){this.startUpdater()},beforeDestroy:function(){this.stopUpdater()},render:function(t){return t("time",{attrs:{datetime:new Date(this.datetime).toISOString(),title:"string"==typeof this.title?this.title:!1===this.title?null:this.timeago}},[this.timeago])},methods:{getTimeago:function(t){return(this.converter||r.converter||function(t,e,i){var r=i.includeSeconds,i=i.addSuffix;return void 0===i&&(i=!0),s()(t,{locale:e,includeSeconds:r,addSuffix:i})})(t||this.datetime,n[this.locale||this.$timeago.locale],this.converterOptions||{})},convert:function(t){this.timeago=this.getTimeago(t)},startUpdater:function(){var t,e=this;this.autoUpdate&&(t=!0===this.autoUpdate?60:this.autoUpdate,this.updater=setInterval(function(){e.convert()},1e3*t))},stopUpdater:function(){this.updater&&(clearInterval(this.updater),this.updater=null)}},watch:{autoUpdate:function(t){this.stopUpdater(),t&&this.startUpdater()},datetime:function(){this.convert()},localeName:function(){this.convert()},converter:function(){this.convert()},converterOptions:{handler:function(){this.convert()},deep:!0}}},t.component(e.name,e))},{name:"TimeAgo",locale:"zh-CN",locales:{"zh-CN":i(256)}}),a.a.use(r.a),a.a.prototype.$onCopySuccess=()=>{f.tipSuccess(window.lang&&window.lang["Copy Success"]?window.lang["Copy Success"]:"Copy Success")},a.a.prototype.$onCopyError=()=>{f.tipError(window.lang&&window.lang["Copy Fail"]?window.lang["Copy Fail"]:"Copy Fail")},a.a.prototype.$highlight=(t,e)=>{if(t=n.b.specialchars(t),!e)return t;e=new RegExp(e,"ig");return t.toString().replace(e,function(t,e,i){return''+t+""})},a.a.prototype.$hashRouter={init(t){u()(t)},to(t){u()(t)}};r={post(t,e,i,r){i=i||l.defaultFormCallback,r=r||l.defaultFormCallback,l.post(t,e,function(t){l.defaultFormCallback(t,{success:function(t){!0===i(t)&&l.defaultFormCallback(t)},error:function(t){!0!==r(t)&&l.defaultFormCallback(t)}})})},postRaw(t,e,i){l.post(t,e,function(t){i&&i(t)})}};a.a.prototype.$api=r,a.a.prototype.$url={buildParam(e){if(e=e||null){let t=[];for(var i in e)t.push(n.d.urlencode(i)+"="+n.d.urldecode(e[i]));e="?"+t.join("&")}return e||""},current(){var t=window.location;return`${t.pathname}${t.search}${t.hash}`},admin(t,e){return`${window.__msAdminRoot}${t}${this.buildParam(e)}`},web(t,e){return`${window.__msRoot}${t}${this.buildParam(e)}`},api(t,e){return`${window.__msRoot}api/${t}${this.buildParam(e)}`},cdn:t=>(t&&t.startsWith("/")&&(t=t.replace(/^[ \/]+/g,"")),`${window.__msCDN}${t}`)},a.a.prototype.$r={to(t){window.location.href=t},replace(t){window.location.replace=t}},a.a.prototype.$dialog=f,a.a.prototype.L=function(){let t=arguments[0],e=Array.from(arguments);return e.splice(0,1),window.lang&&window.lang[t]?e.length?n.c.sprintf(t,...e):window.lang[t]:e.length?n.c.sprintf(t,...e):t},a.a,h,function(t,e,i,r,n){if(r=r||{},!document.querySelector(t))return;Array.isArray(i)||(i=[i]);let o={};i.forEach(t=>{o[t.name]=t});let s=null;r&&"Bootstrap"in r&&(s=r.Bootstrap);e=new a.a({el:t,...r,data:()=>({loading:!0}),created(){s&&s.created(this)},mounted(){this.loading=!1,h.$emit("EventAppMounted"),s&&s.mounted(this)},components:o,template:e});n&&n(e)}("#app","",i(260).default)},function(t,e,i){"use strict";i.r(e);var r=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div",[r("DeveloperTools",{on:{update:function(t){return i.doLoad()}}}),i._v(" "),i.memberUser.id?i._e():r("div",{staticClass:"ub-alert ub-alert-warning"},[r("i",{staticClass:"iconfont icon-warning"}),i._v("\n 您还没有登录,请登录后再对您发布的模块进行打包操作\n "),r("a",{attrs:{href:"javascript:;"},on:{click:function(t){return i.doMemberLoginShow()}}},[i._v("立即登录")])]),i._v(" "),r("div",{staticClass:"ub-panel"},[r("div",{staticClass:"head"},[r("div",{staticClass:"more"},[r("el-button",{staticStyle:{padding:"0.25rem 0.5rem"},attrs:{round:"",loading:i.memberUserLoading},on:{click:function(t){return i.doMemberLoginShow()}}},[i.memberUserLoading?r("span",[i._v("\n 登录中\n ")]):0=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function c(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t: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 x(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return R(t).length;default:if(r)return x(t).length;e=(""+e).toLowerCase(),r=!0}}function e(t,e,i){var r,n,o,s=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!i||i<0||r=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:b(t,e,i,r,n);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):b(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,r,n){var o=1,s=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n)for(var u=-1,f=i;f>>10&1023|55296),f=56320|1023&f),r.push(f),n+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;rt.length)throw new RangeError("Index out of range")}function M(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n>>8*(r?n:1-n)}function _(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n>>8*(r?n:3-n)&255}function S(t,e,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function k(t,e,i,r,n){return n||S(t,0,i,4),o.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,n){return n||S(t,0,i,8),o.write(t,e,i,r,52,8),i+8}C.Buffer=l,C.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},C.INSPECT_MAX_BYTES=50,l.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}}(),C.kMaxLength=i(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,i){return r(null,t,e,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,i){return r=null,e=e,i=i,h(t=t),!(t<=0)&&void 0!==e?"string"==typeof i?n(r,t).fill(e,i):n(r,t).fill(e):n(r,t);var r},l.allocUnsafe=function(t){return u(null,t)},l.allocUnsafeSlow=function(t){return u(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);ne&&(t+=" ... ")),""},l.prototype.compare=function(t,e,i,r,n){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),(e=void 0===e?0:e)<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),h=this.slice(r,n),u=t.slice(e,i),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,s,a,h,u,f,l=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;if((!r||(r=Number(r))>n)&&(r=n),(n=e.length)%2!=0)throw new TypeError("Invalid hex string");n/2>8,n.push(i%256),n.push(r);return n}(t,(a=this).length-o),a,o,s);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i=(n*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||w(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):_(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=0,o=1,s=0;for(this[e]=255&t;++n>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=i-1,o=1,s=0;for(this[e+n]=255&t;0<=--n&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):_(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return k(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return k(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,r){if(i=i||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var n,o=(r=t.length-e>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function R(t){return a.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,i,r){for(var n=0;n=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}.call(this,B(5))},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){"use strict";function r(t,e,i,r,n,o,s,a){var h,u,f="function"==typeof t?t.options:t;return e&&(f.render=e,f.staticRenderFns=i,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),s?(h=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},f._ssrRegister=h):n&&(h=a?function(){n.call(this,(f.functional?this.parent:this).$root.$options.shadowRoot)}:n),h&&(f.functional?(f._injectStyles=h,u=f.render,f.render=function(t,e){return h.call(e),u(t,e)}):(a=f.beforeCreate,f.beforeCreate=a?[].concat(a,h):[h])),{exports:t,options:f}}i.d(e,"a",function(){return r})},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}(t.exports=i).equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){"use strict";var r=e,n=i(10),e=i(7),i=i(100);r.assert=e,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(t,e,i){var r=new Array(Math.max(t.bitLength(),i)+1);r.fill(0);for(var n=1<>1)-1>1)-h:h):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r,n=0,o=0;0>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function r(t){return 1===t.length?"0"+t:t}function s(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}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i,r,n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s>6|192,n[o++]=63&a|128):(r=s,55296!=(64512&(i=t).charCodeAt(r))||r<0||r+1>=i.length||56320!=(64512&i.charCodeAt(r+1))?n[o++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++s)),n[o++]=a>>18|240,n[o++]=a>>12&63|128),n[o++]=a>>6&63|128,n[o++]=63&a|128)}else for(s=0;s>>0}return n},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r>>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<>>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=t[e],o=r+t[e+1]>>>0;t[e]=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,r){return(e+r>>>0>>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,a){var h,u=0;return u+=(h=e+r>>>0)>>0)>>0>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,a,h,u){var f,l=0;return l+=(f=e+r>>>0)>>0)>>0)>>0>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,a,h,u){return e+r+o+a+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,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(194).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){var r=i(1).Buffer,n=i(146).Transform,o=i(14).StringDecoder;function s(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(0)(s,n),s.prototype.update=function(t,e,i){"string"==typeof t&&(t=r.from(t,e));t=this._update(t);return this.hashMode?this:t=i?this._toString(t,i):t},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,i){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{i(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return e=t?this._toString(e,t,!0):e},s.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");t=this._decoder.write(t);return i&&(t+=this._decoder.end()),t},t.exports=s},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return h}),i.d(e,"a",function(){return u}),i(127),i(128);const r=i(233),n=(i(115),i(238),i(241).sprintf),o={specialchars:function(t){var e=[];if(!t)return"";if(0==t.length)return"";for(var i=0;i":e.push(">");break;case"&":e.push("&");break;case" ":e.push(" ");break;case'"':e.push(""");break;default:e.push(t.substr(i,1))}return e.join("")}},s={randomString(e){e=e||32;var i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=i.length,n="";for(let t=0;t(e="^"+e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*")+"$",new RegExp(e).test(t)),keywordsMatchWildcard:(t,e)=>(e=e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*"),new RegExp(e).test(t)),sprintf(){var t=Array.from(arguments);return n.call(null,...t)}};function a(t){return String.fromCharCode(t)}const h={domainUrl(t){t=t||"";var e=window.location.protocol+"//"+window.location.host;return t?e+"/"+t:e},urlencode(r){let n="",o="";for(let i=0;i?[]^`{|}~%".indexOf(t)?n+="%"+e.toString(16):n+=t}return n},urldecode(e){let i="";e+="";for(let t=0;th.parseQuery(t),getQuery(t,e=null,i){i=h.parseQuery(i);return t in i?i[t]:e},parseQuery:t=>(t=t||window.location.search,r.parse(t)),buildQuery:t=>r.stringify(t)},u={assign(e,i){e&&i&&Object.keys(e).map(t=>{e[t]=i[t]})},update(e,i){e&&i&&Object.keys(i).map(t=>{e[t]=i[t]})},equal:(t,e)=>JSON.stringify(t)===JSON.stringify(e),notEqual:(t,e)=>!u.equal(t,e),clone:t=>JSON.parse(JSON.stringify(t))};i(242)},function(t,e,i){"use strict";var r="object"==typeof Reflect?Reflect:null,h=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(n,o){return new Promise(function(t,e){function i(){void 0!==r&&n.removeListener("error",r),t([].slice.call(arguments))}var r;"error"!==o&&(r=function(t){n.removeListener(o,i),e(t)},n.once("error",r)),n.once(o,i)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){var n,o;return u(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener||i),n=t._events),o=n[e]),void 0===o?(o=n[e]=i,++t._eventsCount):("function"==typeof o?o=n[e]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),0<(i=f(t))&&o.length>i&&!o.warned&&(o.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,console&&console.warn&&console.warn(i))),t}function d(t,e,i){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},e=function(){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)}.bind(t);return e.listener=i,t.wrapFn=e}function c(t,e,i){t=t._events;if(void 0===t)return[];e=t[e];return void 0===e?[]:"function"==typeof e?i?[e.listener||e]:[e]:i?function(t){for(var e=new Array(t.length),i=0;i>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,i,r=this.lastTotal-this.lastNeed,e=(e=this,128!=(192&(i=t)[0])?(e.lastNeed=0,"�"):1o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(64),r=l(68);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));e=8*this._len;e<=4294967295?this._block.writeUInt32BE(e,this._blockSize-4):(this._block.writeUInt32BE((e-(i=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)),this._update(this._block);var i=this._hash();return t?i.toString(t):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){"use strict";var a={};function r(t,r,e){e=e||Error;var n,i,o,o=(o=n=e,(i=s).prototype=Object.create(o.prototype),(i.prototype.constructor=i).__proto__=o,s);function s(t,e,i){return n.call(this,"string"==typeof r?r:r(t,e,i))||this}o.prototype.name=e.name,o.prototype.code=t,a[t]=o}function h(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),2o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(94),r=l(98);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._delta8){e=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var i=0;i>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o>>24]^f[p>>>16&255]^l[m>>>8&255]^d[255&b]^e[g++],s=u[p>>>24]^f[m>>>16&255]^l[b>>>8&255]^d[255&c]^e[g++],a=u[m>>>24]^f[b>>>16&255]^l[c>>>8&255]^d[255&p]^e[g++],h=u[b>>>24]^f[c>>>16&255]^l[p>>>8&255]^d[255&m]^e[g++],c=o,p=s,m=a,b=h;return o=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^e[g++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&c])^e[g++],a=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[g++],h=(r[b>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4;i[s]=u=u>>>8^255&u^99;var f=t[r[u]=s],l=t[f],d=t[l],c=257*t[u]^16843008*u;n[0][s]=c<<24|c>>>8,n[1][s]=c<<16|c>>>16,n[2][s]=c<<8|c>>>24,n[3][s]=c,o[0][u]=(c=16843009*d^65537*l^257*f^16843008*s)<<24|c>>>8,o[1][u]=c<<16|c>>>16,o[2][u]=c<<8|c>>>24,o[3][u]=c,0===s?s=a=1:(s=f^t[t[t[d^f]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:o}}();function a(t){this._key=r(t),this._reset()}a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o>>24)>>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s],s^=l[o/e|0]<<24):6>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s]),n[o]=n[o-e]^s}for(var a=[],h=0;h>>24]]^d.INV_SUB_MIX[1][d.SBOX[f>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[f>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&f]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=a},a.prototype.encryptBlockRaw=function(t){return s(t=r(t),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},a.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;e=s(t,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},a.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=a},function(t,e,i){var l=i(1).Buffer,d=i(36);t.exports=function(t,e,i,r){if(l.isBuffer(t)||(t=l.from(t,"binary")),e&&8!==(e=!l.isBuffer(e)?l.from(e,"binary"):e).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var n=i/8,o=l.alloc(n),s=l.alloc(r||0),a=l.alloc(0);0>1]):s.mixedAdd(n[-u-1>>1].neg()):0>1]):s.add(n[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},o.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,a=this._wnafT2,h=this._wnafT3,u=0,f=0;f>1]:k<0&&(o=a[S][-k-1>>1].neg()),y="affine"===o.type?y.mixedAdd(o):y.add(o))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n({loading:!0,commandDialogMsgs:[],commandDialogRunStart:0,commandDialogRunElapse:0,commandDialogShow:!1,commandDialogFinish:!1,commandDialogTitle:"",memberUserShow:!1,memberUserLoading:!1,memberLoginCaptchaImage:null,search:{mine:!1,keywords:""},memberLoginInfo:{username:"",password:"",captcha:""},storeApiToken:i.a.get("storeApiToken",""),memberUser:{id:0,username:"",avatar:"",manageModules:{}},modules:[]}),computed:{filterModules(){return this.modules.filter(t=>{if(this.search.mine&&!(t.name in this.memberUser.manageModules))return!1;if(this.search.keywords){var e=this.search.keywords.toLowerCase();return!(!t.name||!t.name.toLowerCase().includes(e))||!(!t.title||!t.title.toLowerCase().includes(e))||!(!t.description||!t.description.toLowerCase().includes(e))}return!0})}},mounted(){this.doLoad(),this.doLoadStore(),setInterval(()=>{this.commandDialogRunElapse=parseInt(((new Date).getTime()-this.commandDialogRunStart)/1e3)},1e3)},methods:{doStoreRequest(t,e,i,r){const n=t=>{this.$dialog.tipError(t.msg)};r=r||n,o.ajax({url:`${window.__data.apiBase}/api/${t}`,dataType:"jsonp",data:Object.assign(e,{api_token:this.storeApiToken,modstartParam:JSON.stringify(window.__data.modstartParam)}),timeout:1e4,success:t=>{t.code?(1002===t.code&&this.doMemberLoginCaptchaRefresh(),!0!==r(t)&&n(t)):i(t)},error:t=>{!0!==r({code:-1,msg:"请求出现错误"})&&n({code:-1,msg:"请求出现错误"})},jsonp:"callback"})},doMemberUserLogout(){this.$dialog.confirm("确认退出?",()=>{this.storeApiToken="",i.a.set("storeApiToken",""),this.doLoadStoreMember(),this.memberUserShow=!1,this.doLoadStore()})},doSubmitCheck(t){13===t.keyCode&&this.doMemberLoginSubmit()},doMemberLoginSubmit(){this.$dialog.loadingOn(),this.doStoreRequest("store/login",this.memberLoginInfo,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("登录成功"),this.doLoadStoreMember(),this.memberUserShow=!1,this.memberLoginInfo.username="",this.memberLoginInfo.password="",this.memberLoginInfo.captcha=""},t=>{this.$dialog.loadingOff()})},doMemberLoginCaptchaRefresh(e){this.doStoreRequest("store/login_captcha",{},t=>{this.memberLoginCaptchaImage=t.data.image,e&&e()})},doMemberLoginShow(){0{this.$dialog.loadingOff(),this.memberUserShow=!0}))},doLoadStoreMember(){this.memberUserLoading=!0,this.doStoreRequest("store/member",{},t=>{this.memberUserLoading=!1,e.a.update(this.memberUser,t.data)},t=>{this.memberUserLoading=!1})},doLoadStore(){this.storeApiToken?this.doLoadStoreMember():this.doStoreRequest("store/config",{},t=>{this.storeApiToken=t.data.apiToken,i.a.set("storeApiToken",t.data.apiToken),this.doLoadStoreMember()})},doLoad(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/all"),{},t=>{this.loading=!1,this.modules=t.data.modules})},doCommand(t,e,i,r){r=r||null,null===(i=i||null)&&(this.commandDialogMsgs=[],this.commandDialogShow=!0,this.commandDialogFinish=!1),r&&(this.commandDialogTitle=r,this.commandDialogMsgs.push(' '+r)),this.commandDialogRunStart=(new Date).getTime(),this.commandDialogRunElapse=0,this.$api.post(this.$url.admin("module_developer/"+t),{token:this.storeApiToken,step:i,data:JSON.stringify(e)},t=>(Array.isArray(t.data.msg)?this.commandDialogMsgs=this.commandDialogMsgs.concat(t.data.msg):this.commandDialogMsgs.push(t.data.msg),t.data.finish?(this.commandDialogFinish=!0,void this.doLoad()):void setTimeout(()=>{this.doCommand(t.data.command,t.data.data,t.data.step)},1e3)),t=>(this.commandDialogMsgs.push(' '+t.msg+""),this.commandDialogFinish=!0))},doPublish(t){this.$dialog.confirm(`确定发布 ${t.title} ${t.name} V${t.version}?`,()=>{this.doCommand("publish",{module:t.name,version:t.version},null,`发布模块 ${t.title} ${t.name} V${t.version}`)})},doPublishInfo(t){this.$dialog.confirm(`确定更新资料 ${t.title} ${t.name} V${t.version}?`,()=>{this.doCommand("publish_info",{module:t.name,version:t.version,isLocalDir:t._isLocalDir},null,`更新模块资料 ${t.title} ${t.name} V${t.version}`)})},doPreviewApiContent(t){this.$dialog.dialog(this.$url.admin("module_developer/api_doc",{module:t.name}),{width:"90%",height:"90%"})},doPreviewUtilContent(t){this.$dialog.dialog(this.$url.admin("module_developer/util_doc",{module:t.name}),{width:"90%",height:"90%"})},doGenerateCRUD(t){this.$dialog.tipError("正在开发")}}}}.call(this,n(115))},function(t,e,i){"use strict";var r=i(0),n=i(63),o=i(1).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<>>32-e}function u(t,e,i,r,n,o,s){return h(t+(e&i|~e&r)+n+o|0,s)+e|0}function f(t,e,i,r,n,o,s){return h(t+(e&r|i&~r)+n+o|0,s)+e|0}function l(t,e,i,r,n,o,s){return h(t+(e^i^r)+n+o|0,s)+e|0}function d(t,e,i,r,n,o,s){return h(t+(i^(e|~r))+n+o|0,s)+e|0}r(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=u(i=this._a,o=this._b,n=this._c,r=this._d,t[0],3614090360,7),r=u(r,i,o,n,t[1],3905402710,12),n=u(n,r,i,o,t[2],606105819,17),o=u(o,n,r,i,t[3],3250441966,22);i=u(i,o,n,r,t[4],4118548399,7),r=u(r,i,o,n,t[5],1200080426,12),n=u(n,r,i,o,t[6],2821735955,17),o=u(o,n,r,i,t[7],4249261313,22),i=u(i,o,n,r,t[8],1770035416,7),r=u(r,i,o,n,t[9],2336552879,12),n=u(n,r,i,o,t[10],4294925233,17),o=u(o,n,r,i,t[11],2304563134,22),i=u(i,o,n,r,t[12],1804603682,7),r=u(r,i,o,n,t[13],4254626195,12),n=u(n,r,i,o,t[14],2792965006,17),i=f(i,o=u(o,n,r,i,t[15],1236535329,22),n,r,t[1],4129170786,5),r=f(r,i,o,n,t[6],3225465664,9),n=f(n,r,i,o,t[11],643717713,14),o=f(o,n,r,i,t[0],3921069994,20),i=f(i,o,n,r,t[5],3593408605,5),r=f(r,i,o,n,t[10],38016083,9),n=f(n,r,i,o,t[15],3634488961,14),o=f(o,n,r,i,t[4],3889429448,20),i=f(i,o,n,r,t[9],568446438,5),r=f(r,i,o,n,t[14],3275163606,9),n=f(n,r,i,o,t[3],4107603335,14),o=f(o,n,r,i,t[8],1163531501,20),i=f(i,o,n,r,t[13],2850285829,5),r=f(r,i,o,n,t[2],4243563512,9),n=f(n,r,i,o,t[7],1735328473,14),i=l(i,o=f(o,n,r,i,t[12],2368359562,20),n,r,t[5],4294588738,4),r=l(r,i,o,n,t[8],2272392833,11),n=l(n,r,i,o,t[11],1839030562,16),o=l(o,n,r,i,t[14],4259657740,23),i=l(i,o,n,r,t[1],2763975236,4),r=l(r,i,o,n,t[4],1272893353,11),n=l(n,r,i,o,t[7],4139469664,16),o=l(o,n,r,i,t[10],3200236656,23),i=l(i,o,n,r,t[13],681279174,4),r=l(r,i,o,n,t[0],3936430074,11),n=l(n,r,i,o,t[3],3572445317,16),o=l(o,n,r,i,t[6],76029189,23),i=l(i,o,n,r,t[9],3654602809,4),r=l(r,i,o,n,t[12],3873151461,11),n=l(n,r,i,o,t[15],530742520,16),i=d(i,o=l(o,n,r,i,t[2],3299628645,23),n,r,t[0],4096336452,6),r=d(r,i,o,n,t[7],1126891415,10),n=d(n,r,i,o,t[14],2878612391,15),o=d(o,n,r,i,t[5],4237533241,21),i=d(i,o,n,r,t[12],1700485571,6),r=d(r,i,o,n,t[3],2399980690,10),n=d(n,r,i,o,t[10],4293915773,15),o=d(o,n,r,i,t[1],2240044497,21),i=d(i,o,n,r,t[8],1873313359,6),r=d(r,i,o,n,t[15],4264355552,10),n=d(n,r,i,o,t[6],2734768916,15),o=d(o,n,r,i,t[13],1309151649,21),i=d(i,o,n,r,t[4],4149444226,6),r=d(r,i,o,n,t[11],3174756917,10),n=d(n,r,i,o,t[2],718787259,15),o=d(o,n,r,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-e}function k(t,e,i,r,n,o,s,a){return S(t+(e^i^r)+o+s|0,a)+n|0}function E(t,e,i,r,n,o,s,a){return S(t+(e&i|~e&r)+o+s|0,a)+n|0}function A(t,e,i,r,n,o,s,a){return S(t+((e|~i)^r)+o+s|0,a)+n|0}function x(t,e,i,r,n,o,s,a){return S(t+(e&r|i&~r)+o+s|0,a)+n|0}function R(t,e,i,r,n,o,s,a){return S(t+(e^(i|~r))+o+s|0,a)+n|0}n(s,o),s.prototype._update=function(){for(var t=b,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,s=0|this._e,a=0|this._a,h=0|this._b,u=0|this._c,f=0|this._d,l=0|this._e,d=0;d<80;d+=1)var c,p=d<16?(c=k(i,r,n,o,s,t[g[d]],M[0],y[d]),R(a,h,u,f,l,t[v[d]],_[0],w[d])):d<32?(c=E(i,r,n,o,s,t[g[d]],M[1],y[d]),x(a,h,u,f,l,t[v[d]],_[1],w[d])):d<48?(c=A(i,r,n,o,s,t[g[d]],M[2],y[d]),A(a,h,u,f,l,t[v[d]],_[2],w[d])):d<64?(c=x(i,r,n,o,s,t[g[d]],M[3],y[d]),E(a,h,u,f,l,t[v[d]],_[3],w[d])):(c=R(i,r,n,o,s,t[g[d]],M[4],y[d]),k(a,h,u,f,l,t[v[d]],_[4],w[d])),i=s,s=o,o=S(n,10),n=r,r=c,a=l,l=f,f=S(u,10),u=h,h=p;var m=this._b+n+f|0;this._b=this._c+o+l|0,this._c=this._d+s+a|0,this._d=this._e+i+h|0,this._e=this._a+r+u|0,this._a=m},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this._strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this._strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function o(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i._strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modrn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>8&255),i>16&255),6===o?(i>24&255),o=r=0):(r=s>>>24,o+=2)}if(i>8&255),0<=i&&(t[i--]=s>>16&255),6===o?(0<=i&&(t[i--]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(0<=i)for(t[i--]=r;0<=i;)t[i--]=0},Math.clz32?b.prototype._countBits=function(t){return 32-Math.clz32(t)}:b.prototype._countBits=function(t){var e=t,t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this._strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function h(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i._strip()}function u(t,e,i){return h(t,e,i)}Math.imul||(a=o),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?a:i<63?o:i<1024?h:u)(this,t,e)},b.prototype.mul=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},b.prototype.mulf=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),u(this,t,e)},b.prototype.imul=function(t){return this.clone().mulTo(t,this)},b.prototype.imuln=function(t){var e=t<0;m("number"==typeof(t=e?-t:t)),m(t<67108864);for(var i=0,r=0;r>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this._strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modrn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(i*r+(0|this.words[n]))%t;return e?-r:r},b.prototype.modn=function(t){return this.modrn(t)},b.prototype.idivn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/t|0,i=n%t}return this._strip(),e?this.ineg():this},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return f[t]=e},_.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(r(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},_.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new S(t)},e(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,E(16)(t))},function(t,e,i){"use strict";e.version=i(193).version,e.utils=i(8),e.rand=i(46),e.curve=i(101),e.curves=i(52),e.ec=i(205),e.eddsa=i(209)},function(t,e,i){"use strict";var r,n=e,e=i(53),o=i(101),s=i(8).assert;function a(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,i){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var t=new a(i);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t}),t}})}n.PresetCurve=a,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(204)}catch(t){r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,i){e.utils=i(9),e.common=i(28),e.sha=i(198),e.ripemd=i(202),e.hmac=i(203),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(s,t,a){"use strict";!function(t){var e,i=a(4),r=i.Buffer,n={};for(e in i)i.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(n[e]=i[e]);var o=n.Buffer={};for(e in r)r.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(o[e]=r[e]);if(n.Buffer.prototype=r.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,i)}),o.alloc||(o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||2*(1<<30)<=t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=r(t);return e&&0!==e.length?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t}),!n.kStringMaxLength)try{n.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(t){}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),s.exports=n}.call(this,a(2))},function(t,e,i){"use strict";const a=i(56).Reporter,r=i(29).EncoderBuffer,h=i(29).DecoderBuffer,n=i(7),o=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(t,e,i){const r={};this._baseState=r,r.name=i,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,i={};f.forEach(function(t){i[t]=e[t]});const t=new this.constructor(i.parent);return t._baseState=i,t},u.prototype._wrap=function(){const i=this._baseState;s.forEach(function(e){this[e]=function(){const t=new this.constructor(this);return i.children.push(t),t[e].apply(t,arguments)}},this)},u.prototype._init=function(t){const e=this._baseState;n(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),n.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){const 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&&(n(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(n(null===e.args),e.args=t,e.reverseArgs=t.map(function(i){if("object"!=typeof i||i.constructor!==Object)return i;const r={};return Object.keys(i).forEach(function(t){t==(0|t)&&(t|=0);var e=i[t];r[e]=t}),r}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(i){u.prototype[i]=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return n(null===t.tag),t.tag=i,this._useArgs(e),this}}),u.prototype.use=function(t){n(t);const e=this._baseState;return n(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){const e=this._baseState;return n(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){const e=this._baseState;return n(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return n(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(t){const e=this._baseState;return n(null===e.use),e.contains=t,this},u.prototype._decode=function(e,i){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,i));let n,o=r.default,s=!0,t=null;if(null!==r.key&&(t=e.enterKey(r.key)),r.optional){let t=null;if(null!==r.explicit?t=r.explicit:null!==r.implicit?t=r.implicit:null!==r.tag&&(t=r.tag),null!==t||r.any){if(s=this._peekTag(e,t,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const i=this._decodeTag(e,r.explicit);if(e.isError(i))return i;e=i}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(i&&i.track&&null!==r.tag&&i.track(e.path(),n,e.length,"tagged"),i&&i.track&&null!==r.tag&&i.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(t){t._decode(e,i)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new h(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,i)}}return r.obj&&s&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==s?null!==t&&e.exitKey(t):e.leaveKey(t,r.key,o),o},u.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)},u.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),n(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},u.prototype._decodeChoice=function(r,n){const o=this._baseState;let s=null,a=!1;return Object.keys(o.choice).some(function(t){const e=r.save(),i=o.choice[t];try{const o=i._decode(r,n);if(r.isError(o))return!1;s={type:t,value:o},a=!0}catch(t){return r.restore(e),!1}return!0},this),a?s:r.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},u.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){t=this._encodeValue(t,e,i);return void 0===t||this._skipDefault(t,e,i)?void 0:t}},u.prototype._encodeValue=function(i,r,t){const e=this._baseState;if(null===e.parent)return e.children[0]._encode(i,r||new a);let n=null;if(this.reporter=r,e.optional&&void 0===i){if(null===e.default)return;i=e.default}let o=null,s=!1;if(e.any)n=this._createEncoderBuffer(i);else if(e.choice)n=this._encodeChoice(i,r);else if(e.contains)o=this._getUse(e.contains,t)._encode(i,r),s=!0;else if(e.children)o=e.children.map(function(t){if("null_"===t._baseState.tag)return t._encode(null,r,i);if(null===t._baseState.key)return r.error("Child should have a key");var e=r.enterKey(t._baseState.key);if("object"!=typeof i)return r.error("Child expected, but input is not object");t=t._encode(i[t._baseState.key],r,i);return r.leaveKey(e),t},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return r.error("Too many args for : "+e.tag);if(!Array.isArray(i))return r.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,o=this._createEncoderBuffer(i.map(function(t){var e=this._baseState;return this._getUse(e.args[0],i)._encode(t,r)},t))}else null!==e.use?n=this._getUse(e.use,t)._encode(i,r):(o=this._encodePrimitive(e.tag,i),s=!0);if(!e.any&&null===e.choice){const i=null!==e.implicit?e.implicit:e.tag,t=null===e.implicit?"universal":"context";null===i?null===e.use&&r.error("Tag could be omitted only for .use()"):null===e.use&&(n=this._encodeComposite(i,s,t,o))}return null!==e.explicit&&(n=this._encodeComposite(e.explicit,!1,"context",n)),n},u.prototype._encodeChoice=function(t,e){const i=this._baseState,r=i.choice[t.type];return r||n(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},u.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 new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,i){"use strict";const r=i(0);function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}(e.Reporter=n).prototype.isError=function(t){return t instanceof o},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){const e=this._reporterState,i=t instanceof o;if(t=i?t:new o(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},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){"use strict";function r(i){const r={};return Object.keys(i).forEach(function(t){(0|t)==t&&(t|=0);var e=i[t];r[e]=t}),r}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(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=r(e.tag)},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(228).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){t.exports=function(t){function n(t,e){this.name=e,this.path=t,this.keys=[],this.fns=[],this.params={},this.regex=i(this.path,this.keys,!1,!1)}var o,s=[],a={},e=t.routie;n.prototype.addHandler=function(t){this.fns.push(t)},n.prototype.removeHandler=function(t){for(var e=0,i=this.fns.length;e=this._blockSize;){for(var n=this._blockOffset;ne.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(A,t))}function A(t){var e=t._readableState;g("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,I(t)}function x(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function L(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 D(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[l-7]+(((e=i[l-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+i[l-16];for(var d=0;d<64;++d)var c=f+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(u^a&(h^u))+m[d]+i[d]|0,p=0|((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n|o&(r|n)),f=u,u=h,h=a,a=s+c|0,s=o,o=n,n=r,r=c+p|0;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=h+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},a.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=a},function(t,e,i){var r=i(0),n=i(21),o=i(1).Buffer,q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}function U(t,e,i){return i^t&(e^i)}function z(t,e,i){return t&e|i&(t|e)}function F(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function H(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function $(t,e){return t>>>0>>0?1:0}r(a,n),a.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},a.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,a=0|this._fh,h=0|this._gh,u=0|this._hh,f=0|this._al,l=0|this._bl,d=0|this._cl,c=0|this._dl,p=0|this._el,m=0|this._fl,b=0|this._gl,g=0|this._hl,v=0;v<32;v+=2)e[v]=t.readInt32BE(4*v),e[v+1]=t.readInt32BE(4*v+4);for(;v<160;v+=2){var y=e[v-30],w=e[v-30+1],M=(y>>>1|w<<31)^(y>>>8|w<<24)^y>>>7,_=(w>>>1|y<<31)^(w>>>8|y<<24)^(w>>>7|y<<25),S=(y=e[v-4],w=e[v-4+1],(y>>>19|w<<13)^(w>>>29|y<<3)^y>>>6),k=(w>>>19|y<<13)^(y>>>29|w<<3)^(w>>>6|y<<26),E=e[v-14],A=e[v-14+1],w=e[v-32],y=e[v-32+1],x=_+A|0,R=(R=(R=M+E+$(x,_)|0)+S+$(x=x+k|0,k)|0)+w+$(x=x+y|0,y)|0;e[v]=R,e[v+1]=x}for(var T=0;T<160;T+=2){R=e[T];var x=e[T+1],C=z(i,r,n),B=z(f,l,d),I=F(i,f),O=F(f,i),L=H(s,p),j=H(p,s),D=q[T+1],P=U(s,a,h),N=U(p,m,b),j=g+j|0,L=(L=(L=(L=u+L+$(j,g)|0)+P+$(j=j+N|0,N)|0)+q[T]+$(j=j+D|0,D)|0)+R+$(j=j+x|0,x)|0,B=O+B|0,O=I+C+$(B,O)|0,u=h,g=b,h=a,b=m,a=s,m=p,s=o+L+$(p=c+j|0,c)|0,o=n,c=d,n=r,d=l,r=i,l=f,i=L+O+$(f=j+B|0,j)|0}this._al=this._al+f|0,this._bl=this._bl+l|0,this._cl=this._cl+d|0,this._dl=this._dl+c|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+b|0,this._hl=this._hl+g|0,this._ah=this._ah+i+$(this._al,f)|0,this._bh=this._bh+r+$(this._bl,l)|0,this._ch=this._ch+n+$(this._cl,d)|0,this._dh=this._dh+o+$(this._dl,c)|0,this._eh=this._eh+s+$(this._el,p)|0,this._fh=this._fh+a+$(this._fl,m)|0,this._gh=this._gh+h+$(this._gl,b)|0,this._hh=this._hh+u+$(this._hl,g)|0},a.prototype._hash=function(){var r=o.allocUnsafe(64);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=a},function(C,t,B){"use strict";!function(t,b){var g=B(30);C.exports=n;var o,v=B(62);n.ReadableState=r,B(13).EventEmitter;function y(t,e){return t.listeners(e).length}var i=B(73),l=B(1).Buffer,d=t.Uint8Array||function(){},e=Object.create(B(26));e.inherits=B(0);var s,t=B(147),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},a=B(148),t=B(74);e.inherits(n,i);var h=["error","close","destroy","pause","resume"];function r(t,e){t=t||{};var i=e instanceof(o=o||B(15));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,e=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||B(14).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function n(t){if(o=o||B(15),!(this instanceof n))return new n(t);this._readableState=new r(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function u(t,e,i,r,n){var o,s,a,h,u,f=t._readableState;return null===e?(f.reading=!1,a=t,(h=f).ended||(!h.decoder||(u=h.decoder.end())&&u.length&&(h.buffer.push(u),h.length+=h.objectMode?1:u.length),h.ended=!0,p(a))):(n||(o=f,n=a=e,o=s=l.isBuffer(n)||n instanceof d||"string"==typeof a||void 0===a||o.objectMode?s:new TypeError("Invalid non-string/buffer chunk")),o?t.emit("error",o):f.objectMode||e&&0e.highWaterMark&&(e.highWaterMark=(8388608<=(i=t)?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function p(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(m,t):m(t))}function m(t){w("emit readable"),t.emit("readable"),E(t)}function M(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(_,t,e))}function _(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):(i=t,t=e.buffer,e=e.decoder,io.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=l.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(i,t),n=r),n);var i,r,n}function x(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?x:p)(this),null;if(0===(t=f(t,e))&&e.ended)return 0===e.length&&x(this),null;var r=e.needReadable;return w("need readable",r),(0===e.length||e.length-ti?e=("rmd160"===t?new h:u(t)).update(e).digest():e.lengtho?e=n(e):e.length>>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 a=0;a<=24;a+=8)n<<=1,n|=e>>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+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;s<4;s++)for(var a=24;0<=a;a-=8)n<<=1,n|=e>>>a+s&1,n<<=1,n|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+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 a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+s&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var h=[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,r){for(var n=0,o=0,s=h.length>>>1,a=0;a>>h[a]&1;for(a=s;a>>h[a]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.expand=function(t,e,i){for(var r=0,n=0,r=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)r<<=6,r|=t>>>o&63;for(o=11;3<=o;o-=4)n|=t>>>o&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>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;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[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>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.length>>1],i=f.r28shl(i,o),r=f.r28shl(r,o);f.pc2(i,r,t.keys,n)}},a.prototype._update=function(t,e,i,r){var n=this._desState,o=f.readUInt32BE(t,e),e=f.readUInt32BE(t,e+4);f.ip(o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,e,n.tmp,0):this._decrypt(n,o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],f.writeUInt32BE(i,o,r),f.writeUInt32BE(i,e,r+4)},a.prototype._pad=function(t,e){for(var i=t.length-e,r=e;r>>0,o=u}f.rip(s,o,r,n)},a.prototype._decrypt=function(t,e,i,r,n){for(var o=i,s=e,a=t.keys.length-2;0<=a;a-=2){var h=t.keys[a],u=t.keys[a+1];f.expand(o,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];h=f.substitute(h,u),u=o,o=(s^f.permute(h))>>>0,s=u}f.rip(o,s,r,n)}},function(t,e,i){var h=i(27),u=i(1).Buffer,f=i(87);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),r=t._cache.length;t._cache=u.concat([t._cache,u.allocUnsafe(16*i)]);for(var n=0;nt;)i.ishrn(1);if(i.isEven()&&i.iadd(h),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(f))for(;i.mod(l).cmp(d);)i.iadd(p)}else for(;i.mod(s).cmp(c);)i.iadd(p);if(b(r=i.shrn(1))&&b(i)&&g(r)&&g(i)&&a.test(r)&&a.test(i))return i}}},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(176).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){var c=i(177),r=i(46);function n(t){this.rand=t||new r.Rand}(t.exports=n).create=function(t){return new n(t)},n.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new c(this.rand.generate(i))}while(0<=r.cmp(t));return r},n.prototype._randrange=function(t,e){e=e.sub(t);return t.add(this._randbelow(e))},n.prototype.test=function(t,e,i){var r=t.bitLength(),n=c.mont(t),o=new c(1).toRed(n);e=e||Math.max(1,r/48|0);for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);0e.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(A,t))}function A(t){var e=t._readableState;g("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,I(t)}function x(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function L(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 D(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>8,n=255&n;o?i.push(o,n):i.push(n)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){"use strict";e.base=i(33),e.short=i(195),e.mont=i(196),e.edwards=i(197)},function(t,e,i){"use strict";var r=i(9).rotr32;function n(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}function s(t,e,i){return t^e^i}e.ft_1=function(t,e,i,r){return 0===t?n(e,i,r):1===t||3===t?e^i^r:2===t?o(e,i,r):void 0},e.ch32=n,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,i){"use strict";var r=i(9),n=i(28),o=i(102),p=i(7),m=r.sum32,b=r.sum32_4,g=r.sum32_5,v=o.ch32,y=o.maj32,w=o.s0_256,M=o.s1_256,_=o.g0_256,S=o.g1_256,s=n.BlockHash,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function h(){if(!(this instanceof h))return new h;s.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=a,this.W=new Array(64)}r.inherits(h,s),(t.exports=h).blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e,i){"use strict";const r=e;r.der=i(108),r.pem=i(215)},function(t,e,i){"use strict";const r=i(0),s=i(54).Buffer,n=i(55),a=i(57);function o(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){n.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(t.exports=o).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(h,n),h.prototype._encodeComposite=function(t,e,i,r){i=function(t,e,i,r){let n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return 31<=n?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=a.tagClassByName[i||"universal"]<<6,n)}(t,e,i,this.reporter);if(r.length<128){const t=s.alloc(2);return t[0]=i,t[1]=r.length,this._createEncoderBuffer([t,r])}let n=1;for(let t=r.length;256<=t;t>>=8)n++;const o=s.alloc(2+n);o[0]=i,o[1]=128|n;for(let t=1+n,e=r.length;0>=8)o[t]=255&e;return this._createEncoderBuffer([o,r])},h.prototype._encodeStr=function(e,i){if("bitstr"===i)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==i)return"numstr"===i?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===i?this._isPrintstr(e)?this._createEncoderBuffer(e):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(i)||"objDesc"===i?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+i+" unsupported");{const i=s.alloc(2*e.length);for(let t=0;t>=7)r++}const n=s.alloc(r);let o=n.length-1;for(let e=i.length-1;0<=e;e--){let t=i[e];for(n[o--]=127&t;0<(t>>=7);)n[o--]=128|127&t}return this._createEncoderBuffer(n)},h.prototype._encodeTime=function(t,e){let i;const r=new Date(t);return"gentime"===e?i=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=s.from(t)}if(s.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=s.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;256<=t;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;0<=t;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(s.from(r))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,i){const r=this._baseState;let n;if(null===r.default)return!1;var o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n>6],n=0==(32&r);if(31==(31&r)){let t=r;for(r=0;128==(128&t);){if(t=e.readUInt8(i),e.isError(t))return t;r<<=7,r|=127&t}}else r&=31;return{cls:t,primitive:n,tag:r,tagStr:a.tag[r]}}function l(e,i,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!i&&128===n)return null;if(0==(128&n))return n;var o=127&n;if(4({visible:!1,loading:!1,data:{name:"",title:"",description:""}}),methods:{show(){this.data.name="",this.visible=!0},doSubmit(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/add_module"),this.data,t=>{this.loading=!1,this.$dialog.tipSuccess("操作成功"),this.$emit("update"),this.visible=!1},t=>{this.loading=!1})}}},n,[],!1,null,null,null);s.options.__file="src/components/AddModuleDialog.vue";var a=s.exports,h=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("el-dialog",{attrs:{visible:i.visible,"append-to-body":""},on:{"update:visible":function(t){i.visible=t}}},[r("div",{attrs:{slot:"title"},slot:"title"},[i._v("\n 模块回收站\n ")]),i._v(" "),r("div",[r("table",{directives:[{name:"loading",rawName:"v-loading",value:i.loading,expression:"loading"}],staticClass:"ub-table tw-font-mono"},[r("thead",[r("tr",[r("th",[i._v("名称")]),i._v(" "),r("th",[i._v("版本")]),i._v(" "),r("th",[i._v("路径")]),i._v(" "),r("th",[i._v(" ")])])]),i._v(" "),r("tbody",[i.loading?r("tr",[r("td",{attrs:{colspan:"4"}},[r("div",{staticClass:"ub-empty"},[r("div",{staticClass:"icon"},[r("i",{staticClass:"iconfont icon-refresh tw-inline-block tw-animate-spin"})]),i._v(" "),r("div",{staticClass:"text"},[i._v("\n 正在加载...\n ")])])])]):i._e(),i._v(" "),0!==i.records.length||i.loading?i._e():r("tr",[r("td",{attrs:{colspan:"4"}},[r("div",{staticClass:"ub-empty"},[r("div",{staticClass:"icon"},[r("i",{staticClass:"iconfont icon-empty-box"})]),i._v(" "),r("div",{staticClass:"text"},[i._v("\n 暂无数据\n ")])])])]),i._v(" "),i._l(i.records,function(e,t){return r("tr",[r("td",[i._v(i._s(e.title))]),i._v(" "),r("td",[i._v(i._s(e.version))]),i._v(" "),r("td",[r("code",[i._v(i._s(e.filename))])]),i._v(" "),r("td",[r("a",{staticClass:"ub-lister-action danger",attrs:{href:"javascript:;"},on:{click:function(t){return i.doDelete(e)}}},[r("i",{staticClass:"iconfont icon-trash"}),i._v("\n 清除\n ")])])])})],2)])])])};h._withStripped=!0;var u=Object(o.a)({name:"TrashModuleDialog",data:()=>({visible:!1,loading:!1,records:[]}),methods:{doList(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/trash_module"),{},t=>{this.loading=!1,this.records=t.data.records},t=>{this.loading=!1})},show(){this.visible=!0,this.doList()},doDelete(t){this.$dialog.confirm(`确认清除 ${t.filename}(不可恢复)?`,()=>{this.$dialog.loadingOn(),this.$api.post(this.$url.admin("module_developer/tools/trash_module/delete"),t,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("操作成功"),this.doList()},t=>{this.$dialog.loadingOff()})})}}},h,[],!1,null,null,null);u.options.__file="src/components/TrashModuleDialog.vue";n=u.exports,s=function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("el-dialog",{attrs:{visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[e._v("\n 增加Cms主题模块\n ")]),e._v(" "),t("div",[t("div",{staticClass:"ub-form"},[t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 标识\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.name,callback:function(t){e.$set(e.data,"name",t)},expression:"data.name"}},[t("template",{slot:"prepend"},[e._v("CmsTheme")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 名称\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.title,callback:function(t){e.$set(e.data,"title",t)},expression:"data.title"}},[t("template",{slot:"prepend"},[e._v("CMS")]),e._v(" "),t("template",{slot:"append"},[e._v("模板")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[e._v("描述")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.description,callback:function(t){e.$set(e.data,"description",t)},expression:"data.description"}})],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"field"},[t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.doSubmit}},[e._v("确定")])],1)])])])])};s._withStripped=!0;h=Object(o.a)({name:"AddCmsThemeModuleDialog",data:()=>({visible:!1,loading:!1,data:{type:"cmsTheme",name:"",title:"",description:""}}),methods:{show(){this.data.name="",this.visible=!0},doSubmit(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/add_module"),this.data,t=>{this.loading=!1,this.$dialog.tipSuccess("操作成功"),this.$emit("update"),this.visible=!1},t=>{this.loading=!1})}}},s,[],!1,null,null,null);h.options.__file="src/components/AddCmsThemeModuleDialog.vue";u=h.exports,s=function(){var e=this,t=e.$createElement,t=e._self._c||t;return t("el-dialog",{attrs:{visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}}},[t("div",{attrs:{slot:"title"},slot:"title"},[e._v("\n 增加Cms主题模块\n ")]),e._v(" "),t("div",[t("div",{staticClass:"ub-form"},[t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 模块\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("ModuleSelector",{model:{value:e.data.module,callback:function(t){e.$set(e.data,"module",t)},expression:"data.module"}})],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 标识\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.name,callback:function(t){e.$set(e.data,"name",t)},expression:"data.name"}},[t("template",{slot:"prepend"},[e._v(e._s(e.data.module||"{模块}")+"Theme")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[t("span",[e._v("*")]),e._v("\n 名称\n ")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.title,callback:function(t){e.$set(e.data,"title",t)},expression:"data.title"}},[t("template",{slot:"append"},[e._v("模板")])],2)],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"label"},[e._v("描述")]),e._v(" "),t("div",{staticClass:"field"},[t("el-input",{model:{value:e.data.description,callback:function(t){e.$set(e.data,"description",t)},expression:"data.description"}})],1)]),e._v(" "),t("div",{staticClass:"line"},[t("div",{staticClass:"field"},[t("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.doSubmit}},[e._v("确定")])],1)])])])])},h=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[0({modules:[]}),mounted(){this.$api.post(this.$url.admin("module_developer/all"),{},t=>{this.modules=t.data.modules})}},h,[],!1,null,"5b55331b",null);h.options.__file="src/components/ModuleSelector.vue";h={name:"AddThemeModuleDialog",components:{ModuleSelector:h.exports},data:()=>({visible:!1,loading:!1,data:{type:"theme",module:"",name:"",title:"",description:""}}),methods:{show(){this.data.name="",this.visible=!0},doSubmit(){this.loading=!0,this.$api.post(this.$url.admin("module_developer/tools/add_module"),this.data,t=>{this.loading=!1,this.$dialog.tipSuccess("操作成功"),this.$emit("update"),this.visible=!1},t=>{this.loading=!1})}}},s=Object(o.a)(h,s,[],!1,null,null,null);s.options.__file="src/components/AddThemeModuleDialog.vue";a={name:"DeveloperTools",components:{AddThemeModuleDialog:s.exports,AddCmsThemeModuleDialog:u,TrashModuleDialog:n,AddModuleDialog:a}},r=Object(o.a)(a,r,[function(){var t=this.$createElement,t=this._self._c||t;return t("div",{staticClass:"head"},[t("div",{staticClass:"title"},[this._v("\n 常用工具\n ")])])}],!1,null,null,null);r.options.__file="src/components/DeveloperTools.vue",e.a=r.exports},,,,,,function(t,e,i){"use strict";var r;function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var g,v,y,w=arguments,M=(g=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,v=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,y=/[^-+\dA-Z]/g,function(t,e,i,r){if(1!==w.length||"string"!==A(t)||/\d/.test(t)||(e=t,t=void 0),(t=t||0===t?t:new Date)instanceof Date||(t=new Date(t)),isNaN(t))throw TypeError("Invalid date");var n=(e=String(M.masks[e]||e||M.masks.default)).slice(0,4);"UTC:"!==n&&"GMT:"!==n||(e=e.slice(4),i=!0,"GMT:"===n&&(r=!0));function o(){return i?"getUTC":"get"}function s(){return t[o()+"Date"]()}function a(){return t[o()+"Day"]()}function h(){return t[o()+"Month"]()}function u(){return t[o()+"FullYear"]()}function f(){return t[o()+"Hours"]()}function l(){return t[o()+"Minutes"]()}function d(){return t[o()+"Seconds"]()}function c(){return t[o()+"Milliseconds"]()}function p(){return i?0:t.getTimezoneOffset()}function m(){return k(t)}var b={d:s,dd:function(){return _(s())},ddd:function(){return M.i18n.dayNames[a()]},DDD:function(){return S({y:u(),m:h(),d:s(),_:o(),dayName:M.i18n.dayNames[a()],short:!0})},dddd:function(){return M.i18n.dayNames[a()+7]},DDDD:function(){return S({y:u(),m:h(),d:s(),_:o(),dayName:M.i18n.dayNames[a()+7]})},m:function(){return h()+1},mm:function(){return _(h()+1)},mmm:function(){return M.i18n.monthNames[h()]},mmmm:function(){return M.i18n.monthNames[h()+12]},yy:function(){return String(u()).slice(2)},yyyy:function(){return _(u(),4)},h:function(){return f()%12||12},hh:function(){return _(f()%12||12)},H:f,HH:function(){return _(f())},M:l,MM:function(){return _(l())},s:d,ss:function(){return _(d())},l:function(){return _(c(),3)},L:function(){return _(Math.floor(c()/10))},t:function(){return f()<12?M.i18n.timeNames[0]:M.i18n.timeNames[1]},tt:function(){return f()<12?M.i18n.timeNames[2]:M.i18n.timeNames[3]},T:function(){return f()<12?M.i18n.timeNames[4]:M.i18n.timeNames[5]},TT:function(){return f()<12?M.i18n.timeNames[6]:M.i18n.timeNames[7]},Z:function(){return r?"GMT":i?"UTC":(String(t).match(v)||[""]).pop().replace(y,"").replace(/GMT\+0000/g,"UTC")},o:function(){return(0>16&255,n[o++]=e>>8&255,n[o++]=255&e;return 2===i&&(e=h[t.charCodeAt(a)]<<2|h[t.charCodeAt(a+1)]>>4,n[o++]=255&e),1===i&&(e=h[t.charCodeAt(a)]<<10|h[t.charCodeAt(a+1)]<<4|h[t.charCodeAt(a+2)]>>2,n[o++]=e>>8&255,n[o++]=255&e),n},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,n=[],o=0,s=i-r;o>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return n.join("")}(t,o,s>2]+a[e<<4&63]+"==")):2==r&&(e=(t[i-2]<<8)+t[i-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),n.join("")};for(var a=[],h=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n>1,f=-7,l=i?n-1:0,d=i?-1:1,i=t[e+l];for(l+=d,o=i&(1<<-f)-1,i>>=-f,f+=a;0>=-f,f+=r;0>1,l=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,c=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(e+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),u<=s+f?(a=0,s=u):1<=s+f?(a=(e*r-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=c,a/=256,n-=8);for(s=s<>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t>>27)+(u=r,f=n,l=o,0===(h=c)?u&f|~u&l:2===h?u&f|u&l|f&l:u^f^l)+s+e[d]+p[c],s=o,o=n,n=r<<30|r>>>2,r=i,i=c;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=s+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(21),o=i(1).Buffer,m=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,n.call(this,64,56)}r(a,n),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,a=0|this._e,h=0;h<16;++h)i[h]=t.readInt32BE(4*h);for(;h<80;++h)i[h]=(e=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|e>>>31;for(var u,f,l,d,c=0;c<80;++c)var p=~~(c/20),p=0|(r<<5|r>>>27)+(f=n,l=o,d=s,0===(u=p)?f&l|~f&d:2===u?f&l|f&d|l&d:f^l^d)+a+i[c]+m[p],a=s,s=o,o=n<<30|n>>>2,n=r,r=p;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(70),o=i(21),s=i(1).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}r(h,n),h.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},h.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=h},function(t,e,i){var r=i(0),n=i(71),o=i(21),s=i(1).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}r(h,n),h.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},h.prototype._hash=function(){var r=s.allocUnsafe(48);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=h},function(t,e,i){t.exports=r;var f=i(13).EventEmitter;function r(){f.call(this)}i(0)(r,f),r.Readable=i(41),r.Writable=i(153),r.Duplex=i(154),r.Transform=i(155),r.PassThrough=i(156),(r.Stream=r).prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function h(t){if(u(),0===f.listenerCount(this,"error"))throw t}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",s),i.removeListener("close",a),i.removeListener("error",h),e.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",h),e.on("error",h),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},function(t,e){},function(t,e,i){"use strict";var o=i(1).Buffer,r=i(149);function n(){!function(t){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}t.exports=(n.prototype.push=function(t){t={data:t,next:null};0>>0),r=this.head,n=0;r;)e=n,r.data.copy(i,e),n+=r.data.length,r=r.next;return i},n),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,n,o){!function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new r(i.call(setTimeout,e,arguments),clearTimeout)},n.setInterval=function(){return new r(i.call(setInterval,e,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(e,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(151),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}.call(this,o(5))},function(t,e,i){!function(t,c){!function(i){"use strict";var r,e,n,t,o,s,a,h,u,f;function l(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var i=s[t];if(i){a=!0;try{!function(){var t=i.callback,e=i.args;switch(e.length){case 0:t();break;case 1:t(e[0]);break;case 2:t(e[0],e[1]);break;case 3:t(e[0],e[1],e[2]);break;default:t.apply(void 0,e)}}()}finally{l(t),a=!1}}}}i.setImmediate||(o=1,a=!(s={}),h=i.document,u=(u=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&u.setTimeout?u:i,f="[object process]"==={}.toString.call(i.process)?function(t){c.nextTick(function(){d(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(n="setImmediate$"+Math.random()+"$",t=function(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(n)&&d(+t.data.slice(n.length))},i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),function(t){i.postMessage(n+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){e.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var e=h.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i>o%8,t._prev=function(t,e){var i=t.length,r=-1,n=a.allocUnsafe(t.length);for(t=a.concat([t,a.from([e])]);++r>7;return n}(t._prev,i?r:n);return s}e.encrypt=function(t,e,i){for(var r=e.length,n=a.allocUnsafe(r),o=-1;++o>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},function(t,e,i){var r=i(89),n=i(1).Buffer,o=i(45),s=i(90),a=i(11),h=i(31),u=i(32);function f(t,e,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(i),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function d(t,e,i){t=o[t.toLowerCase()];if(!t)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if((e="string"==typeof e?n.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new s(t.module,e,i,!0):"auth"===t.type?new r(t.module,e,i,!0):new f(t.module,e,i)}i(0)(f,a),f.prototype._update=function(t){var e;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),i.push(e);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e){},function(t,e){},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(m,t,b){!function(i){var r=b(92),o=new(b(93)),s=new r(24),a=new r(11),h=new r(10),u=new r(3),f=new r(7),l=b(91),t=b(18);function n(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new r(t),this}function d(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new r(t),this}m.exports=e;var c={};function e(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=n,this.setPrivateKey=d):this._primeCode=8}function p(t,e){t=new i(t.toArray());return e?t.toString(e):t}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),e=[i,t.toString(16)].join("_");if(e in c)return c[e];var r,n=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return n+=1,c[e]=n+="02"===i||"05"===i?8:4;switch(o.test(t.shrn(1))||(n+=2),i){case"02":t.mod(s).cmp(a)&&(n+=8);break;case"05":(r=t.mod(h)).cmp(u)&&r.cmp(f)&&(n+=8);break;default:n+=4}return c[e]=n}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new r(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new i(e.toArray()),e=this.getPrime();return t.length>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y),t=(e=0!==e.cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.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(),t=t.redInvm(),e=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t),t=e.redSqr().redISub(this.x.redAdd(this.x)),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new y(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)},h.prototype.mulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i):this.curve._wnafMulAdd(1,e,i,2)},h.prototype.jmulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i,!0):this.curve._wnafMulAdd(1,e,i,2,!0)},h.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))},h.prototype.neg=function(t){if(this.inf)return this;var e,i=this.curve.point(this.x,this.y.redNeg());return t&&this.precomputed&&(e=this.precomputed,t=function(t){return t.neg()},i.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}),i},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(u,o.BasePoint),a.prototype.jpoint=function(t,e,i){return new u(this,t,e,i)},u.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),t=this.y.redMul(e).redMul(t);return this.curve.point(i,t)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(i.redMul(this.z)),e=r.redSub(n),i=o.redSub(s);if(0===e.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();n=e.redSqr(),s=n.redMul(e),r=r.redMul(n),n=i.redSqr().redIAdd(s).redISub(r).redISub(r),s=i.redMul(r.redISub(n)).redISub(o.redMul(s)),e=this.z.redMul(t.z).redMul(e);return this.curve.jpoint(n,s,e)},u.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,o=t.y.redMul(e).redMul(this.z),t=i.redSub(r),e=n.redSub(o);if(0===t.cmpn(0))return 0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();r=t.redSqr(),o=r.redMul(t),i=i.redMul(r),r=e.redSqr().redIAdd(o).redISub(i).redISub(i),o=e.redMul(i.redISub(r)).redISub(n.redMul(o)),t=this.z.redMul(t);return this.curve.jpoint(r,o,t)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){"use strict";var r=i(10),n=i(0),o=i(33),s=i(8);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),(t.exports=a).prototype.validate=function(t){var e=t.normalize().x,t=e.redSqr(),e=t.redMul(e).redAdd(t.redMul(this.a)).redAdd(e);return 0===e.redSqrt().redSqr().cmp(e)},n(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),t=t.redMul(e),i=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(t,i)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(i.redAdd(n).redSqr()),n=e.x.redMul(i.redISub(n).redSqr());return this.curve.point(r,n)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var o=n.length-1;0<=o;o--)0===n[o]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){"use strict";var r=i(8),o=i(10),n=i(0),s=i(33),a=r.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.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 u(t,e,i,r,n){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=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()))))}n(h,s),(t.exports=h).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},h.prototype.pointFromX=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=this.c2.redSub(this.a.redMul(i)),i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=r.redMul(i.redInvm()),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},h.prototype.pointFromY=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=i.redSub(this.c2),i=i.redMul(this.d).redMul(this.c2).redSub(this.a),r=r.redMul(i.redInvm());if(0===r.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),t=e.redMul(this.a).redAdd(i),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===t.cmp(i)},n(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,i,r){return new u(this,t,e,i,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=(i=this.z.redSqr()).redIAdd(i),r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),t=o.redSub(i),i=r.redSub(e),r=n.redMul(t),e=o.redMul(i),i=n.redMul(i),o=t.redMul(o);return this.curve.point(r,e,o,i)},u.prototype._projDbl=function(){var t,e,i,r,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();return o=this.curve.twisted?(n=(i=this.curve._mulA(a)).redAdd(h),this.zOne?(t=s.redSub(a).redSub(h).redMul(n.redSub(this.curve.two)),e=n.redMul(i.redSub(h)),n.redSqr().redSub(n).redSub(n)):(r=this.z.redSqr(),o=n.redSub(r).redISub(r),t=s.redSub(a).redISub(h).redMul(o),e=n.redMul(i.redSub(h)),n.redMul(o))):(i=a.redAdd(h),r=this.curve._mulC(this.z).redSqr(),o=i.redSub(r).redSub(r),t=this.curve._mulC(s.redISub(i)).redMul(o),e=this.curve._mulC(i).redMul(a.redISub(h)),i.redMul(o)),this.curve.point(t,e,o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),t=n.redSub(r),n=n.redAdd(r),r=i.redAdd(e),i=o.redMul(t),e=n.redMul(r),r=o.redMul(r),n=t.redMul(n);return this.curve.point(i,e,n,r)},u.prototype._projAdd=function(t){var e,i=this.z.redMul(t.z),r=i.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(n).redMul(o),a=r.redSub(s),s=r.redAdd(s),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),t=i.redMul(a).redMul(t),s=this.curve.twisted?(e=i.redMul(s).redMul(o.redSub(this.curve._mulA(n))),a.redMul(s)):(e=i.redMul(s).redMul(o.redSub(n)),this.curve._mulC(a).redMul(s));return this.curve.point(t,e,s)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,i){"use strict";e.sha1=i(199),e.sha224=i(200),e.sha256=i(103),e.sha384=i(201),e.sha512=i(104)},function(t,e,i){"use strict";var r=i(9),n=i(28),i=i(102),f=r.rotl32,l=r.sum32,d=r.sum32_5,c=i.ft_1,o=n.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&i)throw new Error("Unable to find sencond key candinate");s=i?this.curve.pointFromX(s.add(this.curve.n),t):this.curve.pointFromX(s,t),e=e.r.invm(n),o=n.sub(o).mul(e).umod(n),n=r.mul(e).umod(n);return this.g.mulAdd(o,s,n)},h.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new p(e,r)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch(t){continue}if(n.eq(i))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,i){"use strict";var r=i(53),o=i(100),n=i(7);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex"),t=o.toArray(t.pers,t.persEnc||"hex");n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}(t.exports=s).prototype._init=function(t,e,i){i=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length"}},function(t,e,i){"use strict";var n=i(10),o=i(8),r=o.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0==r||4>>=0;return!(n<=127)&&(e.place=s,n)}function u(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}(t.exports=s).prototype._importDER=function(t,e){t=o.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var r=h(t,i);if(!1===r)return!1;if(r+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;r=t.slice(i.place,e+i.place);if(i.place+=e,2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;if(t.length!==e+i.place)return!1;i=t.slice(i.place,e+i.place);if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}return this.r=new n(r),this.s=new n(i),!(this.recoveryParam=null)},s.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=u(e),i=u(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];f(r,e.length),(r=r.concat(e)).push(2),f(r,i.length);e=r.concat(i),r=[48];return f(r,e.length),r=r.concat(e),o.encode(r,t)}},function(t,e,i){"use strict";var r=i(53),n=i(52),o=i(8),s=o.assert,a=o.parseBytes,h=i(210),u=i(211);function f(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=n[t].curve,this.curve=t,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=r.sha512}(t.exports=f).prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t),n=this.g.mul(r),e=this.encodePoint(n),i=this.hashInt(e,i.pubBytes(),t).mul(i.priv()),i=r.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:i,Rencoded:e})},f.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(i),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),t=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(t)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,i,r,n){var h=p(i);if("ec"===h.type){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");return function(t,e,i){var r=m[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));r=new c(r),i=i.data.subjectPrivateKey.data;return r.verify(e,t,i)}(t,e,h)}if("dsa"===h.type){if("dsa"!==r)throw new Error("wrong public key type");return function(t,e){var i=h.data.p,r=h.data.q,n=h.data.g,o=h.data.pub_key,s=p.signature.decode(t,"der"),a=s.s,t=s.r;b(a,r),b(t,r);s=d.mont(i),a=a.invm(r);return 0===n.toRed(s).redPow(new d(e).mul(a).mod(r)).fromRed().mul(o.toRed(s).redPow(t.mul(a).mod(r)).fromRed()).mod(i).mod(r).cmp(t)}(t,e)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");e=l.concat([n,e]);for(var o=h.modulus.byteLength(),s=[1],a=0;e.length+s.length+2>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,A=k>>>13,x=0|r[7],R=8191&x,T=x>>>13,C=0|r[8],B=8191&C,I=C>>>13,O=0|r[9],L=8191&O,j=O>>>13,D=0|n[0],P=8191&D,N=D>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,$=F>>>13,Z=0|n[3],W=8191&Z,K=Z>>>13,Y=0|n[4],V=8191&Y,G=Y>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],x=8191&k,C=k>>>13,r=0|n[9],O=8191&r,D=r>>>13;i.negative=t.negative^e.negative,i.length=19;var Z=(0+Math.imul(a,P)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,P)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(Z>>>26)|0;Z&=67108863;q=Math.imul(f,P),F=Math.imul(f,N)+Math.imul(l,P)|0,Y=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((Y+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,P),F=Math.imul(c,N)+Math.imul(p,P)|0,Y=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,Y=Y+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,$)|0)+Math.imul(h,H)|0))<<13)|0;tt=((Y+Math.imul(h,$)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,P),F=Math.imul(b,N)+Math.imul(g,P)|0,Y=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,Y=Y+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,$)|0)+Math.imul(l,H)|0,Y=Y+Math.imul(l,$)|0;m=(tt+(q+Math.imul(a,W)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,W)|0))<<13)|0;tt=((Y+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,P),F=Math.imul(y,N)+Math.imul(w,P)|0,Y=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,Y=Y+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,$)|0)+Math.imul(p,H)|0,Y=Y+Math.imul(p,$)|0,q=q+Math.imul(f,W)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,W)|0,Y=Y+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,V)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,V)|0))<<13)|0;tt=((Y+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,P),F=Math.imul(_,N)+Math.imul(S,P)|0,Y=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,Y=Y+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,$)|0)+Math.imul(g,H)|0,Y=Y+Math.imul(g,$)|0,q=q+Math.imul(c,W)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,W)|0,Y=Y+Math.imul(p,K)|0,q=q+Math.imul(f,V)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,V)|0,Y=Y+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((Y+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,P),F=Math.imul(E,N)+Math.imul(A,P)|0,Y=Math.imul(A,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,Y=Y+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,$)|0)+Math.imul(w,H)|0,Y=Y+Math.imul(w,$)|0,q=q+Math.imul(b,W)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,W)|0,Y=Y+Math.imul(g,K)|0,q=q+Math.imul(c,V)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,V)|0,Y=Y+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,Y=Y+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((Y+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,P),F=Math.imul(R,N)+Math.imul(T,P)|0,Y=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(A,U)|0,Y=Y+Math.imul(A,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,$)|0)+Math.imul(S,H)|0,Y=Y+Math.imul(S,$)|0,q=q+Math.imul(y,W)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,W)|0,Y=Y+Math.imul(w,K)|0,q=q+Math.imul(b,V)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,V)|0,Y=Y+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,Y=Y+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,Y=Y+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((Y+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(B,P),F=Math.imul(B,N)+Math.imul(I,P)|0,Y=Math.imul(I,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,Y=Y+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,$)|0)+Math.imul(A,H)|0,Y=Y+Math.imul(A,$)|0,q=q+Math.imul(_,W)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,W)|0,Y=Y+Math.imul(S,K)|0,q=q+Math.imul(y,V)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,V)|0,Y=Y+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,Y=Y+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,Y=Y+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,Y=Y+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,x)|0)|0)+((8191&(F=(F+Math.imul(a,C)|0)+Math.imul(h,x)|0))<<13)|0;tt=((Y+Math.imul(h,C)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(L,P),F=Math.imul(L,N)+Math.imul(j,P)|0,Y=Math.imul(j,N),q=q+Math.imul(B,U)|0,F=(F+Math.imul(B,z)|0)+Math.imul(I,U)|0,Y=Y+Math.imul(I,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,$)|0)+Math.imul(T,H)|0,Y=Y+Math.imul(T,$)|0,q=q+Math.imul(E,W)|0,F=(F+Math.imul(E,K)|0)+Math.imul(A,W)|0,Y=Y+Math.imul(A,K)|0,q=q+Math.imul(_,V)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,V)|0,Y=Y+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,Y=Y+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,Y=Y+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,Y=Y+Math.imul(p,M)|0,q=q+Math.imul(f,x)|0,F=(F+Math.imul(f,C)|0)+Math.imul(l,x)|0,Y=Y+Math.imul(l,C)|0;a=(tt+(q+Math.imul(a,O)|0)|0)+((8191&(F=(F+Math.imul(a,D)|0)+Math.imul(h,O)|0))<<13)|0;tt=((Y+Math.imul(h,D)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(L,U),F=Math.imul(L,z)+Math.imul(j,U)|0,Y=Math.imul(j,z),q=q+Math.imul(B,H)|0,F=(F+Math.imul(B,$)|0)+Math.imul(I,H)|0,Y=Y+Math.imul(I,$)|0,q=q+Math.imul(R,W)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,W)|0,Y=Y+Math.imul(T,K)|0,q=q+Math.imul(E,V)|0,F=(F+Math.imul(E,G)|0)+Math.imul(A,V)|0,Y=Y+Math.imul(A,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,Y=Y+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,Y=Y+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,Y=Y+Math.imul(g,M)|0,q=q+Math.imul(c,x)|0,F=(F+Math.imul(c,C)|0)+Math.imul(p,x)|0,Y=Y+Math.imul(p,C)|0;f=(tt+(q+Math.imul(f,O)|0)|0)+((8191&(F=(F+Math.imul(f,D)|0)+Math.imul(l,O)|0))<<13)|0;tt=((Y+Math.imul(l,D)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(L,H),F=Math.imul(L,$)+Math.imul(j,H)|0,Y=Math.imul(j,$),q=q+Math.imul(B,W)|0,F=(F+Math.imul(B,K)|0)+Math.imul(I,W)|0,Y=Y+Math.imul(I,K)|0,q=q+Math.imul(R,V)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,V)|0,Y=Y+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(A,J)|0,Y=Y+Math.imul(A,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,Y=Y+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,Y=Y+Math.imul(w,M)|0,q=q+Math.imul(b,x)|0,F=(F+Math.imul(b,C)|0)+Math.imul(g,x)|0,Y=Y+Math.imul(g,C)|0;c=(tt+(q+Math.imul(c,O)|0)|0)+((8191&(F=(F+Math.imul(c,D)|0)+Math.imul(p,O)|0))<<13)|0;tt=((Y+Math.imul(p,D)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(L,W),F=Math.imul(L,K)+Math.imul(j,W)|0,Y=Math.imul(j,K),q=q+Math.imul(B,V)|0,F=(F+Math.imul(B,G)|0)+Math.imul(I,V)|0,Y=Y+Math.imul(I,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,Y=Y+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(A,u)|0,Y=Y+Math.imul(A,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,Y=Y+Math.imul(S,M)|0,q=q+Math.imul(y,x)|0,F=(F+Math.imul(y,C)|0)+Math.imul(w,x)|0,Y=Y+Math.imul(w,C)|0;b=(tt+(q+Math.imul(b,O)|0)|0)+((8191&(F=(F+Math.imul(b,D)|0)+Math.imul(g,O)|0))<<13)|0;tt=((Y+Math.imul(g,D)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(L,V),F=Math.imul(L,G)+Math.imul(j,V)|0,Y=Math.imul(j,G),q=q+Math.imul(B,J)|0,F=(F+Math.imul(B,Q)|0)+Math.imul(I,J)|0,Y=Y+Math.imul(I,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,Y=Y+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(A,v)|0,Y=Y+Math.imul(A,M)|0,q=q+Math.imul(_,x)|0,F=(F+Math.imul(_,C)|0)+Math.imul(S,x)|0,Y=Y+Math.imul(S,C)|0;y=(tt+(q+Math.imul(y,O)|0)|0)+((8191&(F=(F+Math.imul(y,D)|0)+Math.imul(w,O)|0))<<13)|0;tt=((Y+Math.imul(w,D)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(L,J),F=Math.imul(L,Q)+Math.imul(j,J)|0,Y=Math.imul(j,Q),q=q+Math.imul(B,u)|0,F=(F+Math.imul(B,d)|0)+Math.imul(I,u)|0,Y=Y+Math.imul(I,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,Y=Y+Math.imul(T,M)|0,q=q+Math.imul(E,x)|0,F=(F+Math.imul(E,C)|0)+Math.imul(A,x)|0,Y=Y+Math.imul(A,C)|0;_=(tt+(q+Math.imul(_,O)|0)|0)+((8191&(F=(F+Math.imul(_,D)|0)+Math.imul(S,O)|0))<<13)|0;tt=((Y+Math.imul(S,D)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(L,u),F=Math.imul(L,d)+Math.imul(j,u)|0,Y=Math.imul(j,d),q=q+Math.imul(B,v)|0,F=(F+Math.imul(B,M)|0)+Math.imul(I,v)|0,Y=Y+Math.imul(I,M)|0,q=q+Math.imul(R,x)|0,F=(F+Math.imul(R,C)|0)+Math.imul(T,x)|0,Y=Y+Math.imul(T,C)|0;E=(tt+(q+Math.imul(E,O)|0)|0)+((8191&(F=(F+Math.imul(E,D)|0)+Math.imul(A,O)|0))<<13)|0;tt=((Y+Math.imul(A,D)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(L,v),F=Math.imul(L,M)+Math.imul(j,v)|0,Y=Math.imul(j,M),q=q+Math.imul(B,x)|0,F=(F+Math.imul(B,C)|0)+Math.imul(I,x)|0,Y=Y+Math.imul(I,C)|0;R=(tt+(q+Math.imul(R,O)|0)|0)+((8191&(F=(F+Math.imul(R,D)|0)+Math.imul(T,O)|0))<<13)|0;tt=((Y+Math.imul(T,D)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(L,x),F=Math.imul(L,C)+Math.imul(j,x)|0,Y=Math.imul(j,C);B=(tt+(q+Math.imul(B,O)|0)|0)+((8191&(F=(F+Math.imul(B,D)|0)+Math.imul(I,O)|0))<<13)|0;tt=((Y+Math.imul(I,D)|0)+(F>>>13)|0)+(B>>>26)|0,B&=67108863;O=(tt+Math.imul(L,O)|0)+((8191&(F=Math.imul(L,D)+Math.imul(j,O)|0))<<13)|0;return tt=(Math.imul(j,D)+(F>>>13)|0)+(O>>>26)|0,O&=67108863,o[0]=Z,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=B,o[18]=O,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(16)(t))},function(t,e){},function(t,i,e){i.publicEncrypt=e(227),i.privateDecrypt=e(229),i.privateEncrypt=function(t,e){return i.publicEncrypt(t,e,!0)},i.publicDecrypt=function(t,e){return i.privateDecrypt(t,e,!0)}},function(t,e,i){var o=i(34),h=i(18),u=i(25),f=i(112),l=i(113),d=i(58),s=i(114),c=i(49),p=i(1).Buffer;t.exports=function(t,e,i){var r,n=t.padding||(i?1:4),a=o(t);if(4===n)r=function(t){var e=a.modulus.byteLength(),i=t.length,r=u("sha1").update(p.alloc(0)).digest(),n=r.length,o=2*n;if(e-o-2n||0<=new s(e).cmp(a.modulus))throw new Error("decryption error");t=i?d(new s(e),a):f(e,a),e=c.alloc(n-t.length);if(t=c.concat([e,t],n),4===r)return function(t){var e=a.modulus.byteLength(),i=l("sha1").update(c.alloc(0)).digest(),r=i.length;if(0!==t[0])throw new Error("decryption error");var n=t.slice(1,r+1),t=t.slice(r+1),n=u(n,h(t,r)),o=u(t,h(n,e-r-1));if(function(t,e){t=c.from(t),e=c.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));for(var n=-1;++n=t.length){n++;break}var o=t.slice(2,r-1);if(("0002"!==i.toString("hex")&&!e||"0001"!==i.toString("hex")&&e)&&n++,o.length<8&&n++,n)throw new Error("decryption error");return t.slice(r)}(t,i);if(3===r)return t;throw new Error("unknown padding")}},function(t,i,c){"use strict";!function(n,o){function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=c(1),s=c(18),a=e.Buffer,r=e.kMaxLength,h=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(u{r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===i[t]&&(i[t]={}),i[t][r[1]]=e):i[t]=e};case"bracket":return(t,e,i)=>{r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=[e]:i[t]=e};case"comma":case"separator":return(t,e,i)=>{var r="string"==typeof e&&e.includes(o.arrayFormatSeparator),n="string"==typeof e&&!r&&f(e,o).includes(o.arrayFormatSeparator);e=n?f(e,o):e;e=r||n?e.split(o.arrayFormatSeparator).map(t=>f(t,o)):null===e?e:f(e,o);i[t]=e};default:return(t,e,i)=>{void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(i),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const o of t.split("&"))if(""!==o){let[t,e]=a(i.decode?o.replace(/\+/g," "):o,"=");e=void 0===e?null:["comma","separator"].includes(i.arrayFormat)?e:f(e,i),r(f(t,i),e,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=d(r[t],i);else n[t]=d(r,i)}return!1===i.sort?n:(!0===i.sort?Object.keys(n).sort():Object.keys(n).sort(i.sort)).reduce((t,e)=>{var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(i):t[e]=i,t},Object.create(null))}s.extract=n,s.parse=c,s.stringify=(i,r)=>{if(!i)return"";h((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>r.skipNull&&null==i[t]||r.skipEmptyString&&""===i[t],n=function(n){switch(n.arrayFormat){case"index":return r=>(t,e)=>{const i=t.length;return void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(r,n),"[",i,"]"].join("")]:[...t,[u(r,n),"[",u(i,n),"]=",u(e,n)].join("")]};case"bracket":return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(i,n),"[]"].join("")]:[...t,[u(i,n),"[]=",u(e,n)].join("")];case"comma":case"separator":return i=>(t,e)=>null==e||0===e.length?t:0===t.length?[[u(i,n),"=",u(e,n)].join("")]:[[t,u(e,n)].join(n.arrayFormatSeparator)];default:return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,u(i,n)]:[...t,[u(i,n),"=",u(e,n)].join("")]}}(r),e={};for(const r of Object.keys(i))t(r)||(e[r]=i[r]);const o=Object.keys(e);return!1!==r.sort&&o.sort(r.sort),o.map(t=>{const e=i[t];return void 0===e?"":null===e?u(t,r):Array.isArray(e)?e.reduce(n(t),[]).join("&"):u(t,r)+"="+u(e,r)}).filter(t=>0{e=Object.assign({decode:!0},e);const[i,r]=a(t,"#");return Object.assign({url:i.split("?")[0]||"",query:c(n(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,e)}:{})},s.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);var i=l(t.url).split("?")[0]||"",r=s.extract(t.url),r=s.parse(r,{sort:!1}),r=Object.assign(r,t.query);let n=s.stringify(r,e);n=n&&"?"+n;let o=function(t){let e="";var i=t.indexOf("#");return-1!==i&&(e=t.slice(i)),e}(t.url);return t.fragmentIdentifier&&(o="#"+u(t.fragmentIdentifier,e)),`${i}${n}${o}`},s.pick=(t,e,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);var{url:r,query:n,fragmentIdentifier:t}=s.parseUrl(t,i);return s.stringifyUrl({url:r,query:o(n,e),fragmentIdentifier:t},i)},s.exclude=(t,i,e)=>{var r=Array.isArray(i)?t=>!i.includes(t):(t,e)=>!i(t,e);return s.pick(t,r,e)}},function(t,e,i){"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())},function(t,e,i){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function h(e){try{return decodeURIComponent(e)}catch(t){for(var i=e.match(n),r=1;r{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var i=t.indexOf(e);return-1===i?[t]:[t.slice(0,i),t.slice(i+e.length)]}},function(t,e,i){"use strict";t.exports=function(t,e){for(var i={},r=Object.keys(t),n=Array.isArray(e),o=0;o>>24)|4278255360&(i[a]<<24|i[a]>>>8);i[t>>>5]|=128<>>9<<4)]=t;for(var h=b._ff,u=b._gg,f=b._hh,l=b._ii,a=0;a>>0,n=n+c>>>0,o=o+p>>>0,s=s+m>>>0}return g.endian([r,n,o,s])})._ff=function(t,e,i,r,n,o,s){s=t+(e&i|~e&r)+(n>>>0)+s;return(s<>>32-o)+e},b._gg=function(t,e,i,r,n,o,s){s=t+(e&r|i&~r)+(n>>>0)+s;return(s<>>32-o)+e},b._hh=function(t,e,i,r,n,o,s){s=t+(e^i^r)+(n>>>0)+s;return(s<>>32-o)+e},b._ii=function(t,e,i,r,n,o,s){s=t+(i^(e|~r))+(n>>>0)+s;return(s<>>32-o)+e},b._blocksize=16,b._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=g.wordsToBytes(b(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):g.bytesToHex(t)}},function(t,e){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e>>5]|=t[i]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i>>6*(3-n)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],i=0,r=0;i>>6-2*r);return e}};t.exports=i},function(t,e){function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(i(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&i(e.slice(0,0))||!!t._isBuffer);var e}},function(e,i,r){var n;!function(){"use strict";var c={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(t){return function(t,e){var i,r,n,o,s,a,h,u,f=1,l=t.length,d="";for(r=0;r>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}c.json.test(o.type)?d+=i:(!c.number.test(o.type)||h&&!o.sign?u="":(u=h?"+":"-",i=i.toString().replace(c.sign,"")),s=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",a=o.width-(u+i).length,a=o.width&&0{t in h.$onOnceListeners||(h.$onOnceListeners[t]=[]),h.$onOnceListeners[t].includes(e)||(h.$onOnceListeners[t].push(e),h.$on(t,i))};var o=i(59),u=i.n(o);i(60);const f=window.api.dialog,l=window.api.base;a.a.config.productionTip=!1,a.a.use(e.a,{size:"mini",zIndex:3e3}),a.a.use(function(t,e){var i,r,n;t.prototype.$timeago||(i={locale:e.locale},t.prototype.$timeago=t.observable?t.observable(i):new t({data:i}),n=(r=void 0===(r=e)?{}:r).locales||{},e={name:r.name||"Timeago",props:{datetime:{required:!0},title:{type:[String,Boolean]},locale:{type:String},autoUpdate:{type:[Number,Boolean]},converter:{type:Function},converterOptions:{type:Object}},data:function(){return{timeago:this.getTimeago()}},computed:{localeName:function(){return this.locale||this.$timeago.locale}},mounted:function(){this.startUpdater()},beforeDestroy:function(){this.stopUpdater()},render:function(t){return t("time",{attrs:{datetime:new Date(this.datetime).toISOString(),title:"string"==typeof this.title?this.title:!1===this.title?null:this.timeago}},[this.timeago])},methods:{getTimeago:function(t){return(this.converter||r.converter||function(t,e,i){var r=i.includeSeconds,i=i.addSuffix;return void 0===i&&(i=!0),s()(t,{locale:e,includeSeconds:r,addSuffix:i})})(t||this.datetime,n[this.locale||this.$timeago.locale],this.converterOptions||{})},convert:function(t){this.timeago=this.getTimeago(t)},startUpdater:function(){var t,e=this;this.autoUpdate&&(t=!0===this.autoUpdate?60:this.autoUpdate,this.updater=setInterval(function(){e.convert()},1e3*t))},stopUpdater:function(){this.updater&&(clearInterval(this.updater),this.updater=null)}},watch:{autoUpdate:function(t){this.stopUpdater(),t&&this.startUpdater()},datetime:function(){this.convert()},localeName:function(){this.convert()},converter:function(){this.convert()},converterOptions:{handler:function(){this.convert()},deep:!0}}},t.component(e.name,e))},{name:"TimeAgo",locale:"zh-CN",locales:{"zh-CN":i(256)}}),a.a.use(r.a),a.a.prototype.$onCopySuccess=()=>{f.tipSuccess(window.lang&&window.lang["Copy Success"]?window.lang["Copy Success"]:"Copy Success")},a.a.prototype.$onCopyError=()=>{f.tipError(window.lang&&window.lang["Copy Fail"]?window.lang["Copy Fail"]:"Copy Fail")},a.a.prototype.$highlight=(t,e)=>{if(t=n.b.specialchars(t),!e)return t;e=new RegExp(e,"ig");return t.toString().replace(e,function(t,e,i){return''+t+""})},a.a.prototype.$hashRouter={init(t){u()(t)},to(t){u()(t)}};r={post(t,e,i,r){i=i||l.defaultFormCallback,r=r||l.defaultFormCallback,l.post(t,e,function(t){l.defaultFormCallback(t,{success:function(t){!0===i(t)&&l.defaultFormCallback(t)},error:function(t){!0!==r(t)&&l.defaultFormCallback(t)}})})},postRaw(t,e,i){l.post(t,e,function(t){i&&i(t)})}};a.a.prototype.$api=r,a.a.prototype.$url={buildParam(e){if(e=e||null){let t=[];for(var i in e)t.push(n.d.urlencode(i)+"="+n.d.urldecode(e[i]));e="?"+t.join("&")}return e||""},current(){var t=window.location;return`${t.pathname}${t.search}${t.hash}`},admin(t,e){return`${window.__msAdminRoot}${t}${this.buildParam(e)}`},web(t,e){return`${window.__msRoot}${t}${this.buildParam(e)}`},api(t,e){return`${window.__msRoot}api/${t}${this.buildParam(e)}`},cdn:t=>(t&&t.startsWith("/")&&(t=t.replace(/^[ \/]+/g,"")),`${window.__msCDN}${t}`)},a.a.prototype.$r={to(t){window.location.href=t},replace(t){window.location.replace=t}},a.a.prototype.$dialog=f,a.a.prototype.L=function(){let t=arguments[0],e=Array.from(arguments);return e.splice(0,1),window.lang&&window.lang[t]?e.length?n.c.sprintf(t,...e):window.lang[t]:e.length?n.c.sprintf(t,...e):t},a.a,h,function(t,e,i,r,n){if(r=r||{},!document.querySelector(t))return;Array.isArray(i)||(i=[i]);let o={};i.forEach(t=>{o[t.name]=t});let s=null;r&&"Bootstrap"in r&&(s=r.Bootstrap);e=new a.a({el:t,...r,data:()=>({loading:!0}),created(){s&&s.created(this)},mounted(){this.loading=!1,h.$emit("EventAppMounted"),s&&s.mounted(this)},components:o,template:e});n&&n(e)}("#app","",i(260).default)},function(t,e,i){"use strict";i.r(e);var r=function(){var i=this,t=i.$createElement,r=i._self._c||t;return r("div",[r("DeveloperTools",{on:{update:function(t){return i.doLoad()}}}),i._v(" "),i.memberUser.id?i._e():r("div",{staticClass:"ub-alert ub-alert-warning"},[r("i",{staticClass:"iconfont icon-warning"}),i._v("\n 您还没有登录,请登录后再对您发布的模块进行打包操作\n "),r("a",{attrs:{href:"javascript:;"},on:{click:function(t){return i.doMemberLoginShow()}}},[i._v("立即登录")])]),i._v(" "),r("div",{staticClass:"ub-panel"},[r("div",{staticClass:"head"},[r("div",{staticClass:"more"},[r("el-button",{staticStyle:{padding:"0.25rem 0.5rem"},attrs:{round:"",loading:i.memberUserLoading},on:{click:function(t){return i.doMemberLoginShow()}}},[i.memberUserLoading?r("span",[i._v("\n 登录中\n ")]):0=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function c(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t: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 A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return R(t).length;default:if(r)return A(t).length;e=(""+e).toLowerCase(),r=!0}}function e(t,e,i){var r,n,o,s=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!i||i<0||r=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:b(t,e,i,r,n);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):b(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,r,n){var o=1,s=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n)for(var u=-1,f=i;f>>10&1023|55296),f=56320|1023&f),r.push(f),n+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;rt.length)throw new RangeError("Index out of range")}function M(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n>>8*(r?n:1-n)}function _(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n>>8*(r?n:3-n)&255}function S(t,e,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function k(t,e,i,r,n){return n||S(t,0,i,4),o.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,n){return n||S(t,0,i,8),o.write(t,e,i,r,52,8),i+8}I.Buffer=l,I.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},I.INSPECT_MAX_BYTES=50,l.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}}(),I.kMaxLength=i(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,i){return r(null,t,e,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,i){return r=null,e=e,i=i,h(t=t),!(t<=0)&&void 0!==e?"string"==typeof i?n(r,t).fill(e,i):n(r,t).fill(e):n(r,t);var r},l.allocUnsafe=function(t){return u(null,t)},l.allocUnsafeSlow=function(t){return u(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);ne&&(t+=" ... ")),""},l.prototype.compare=function(t,e,i,r,n){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),(e=void 0===e?0:e)<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),h=this.slice(r,n),u=t.slice(e,i),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,s,a,h,u,f,l=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;if((!r||(r=Number(r))>n)&&(r=n),(n=e.length)%2!=0)throw new TypeError("Invalid hex string");n/2>8,n.push(i%256),n.push(r);return n}(t,(a=this).length-o),a,o,s);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i=(n*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||w(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):_(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=0,o=1,s=0;for(this[e]=255&t;++n>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=i-1,o=1,s=0;for(this[e+n]=255&t;0<=--n&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):_(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return k(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return k(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,r){if(i=i||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var n,o=(r=t.length-e>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function R(t){return a.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(x,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,i,r){for(var n=0;n=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}.call(this,C(5))},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}(t.exports=i).equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){"use strict";var r=e,n=i(9),e=i(6),i=i(98);r.assert=e,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(t,e,i){var r=new Array(Math.max(t.bitLength(),i)+1);r.fill(0);for(var n=1<>1)-1>1)-h:h):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r,n=0,o=0;0>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function r(t){return 1===t.length?"0"+t:t}function s(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}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i,r,n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s>6|192,n[o++]=63&a|128):(r=s,55296!=(64512&(i=t).charCodeAt(r))||r<0||r+1>=i.length||56320!=(64512&i.charCodeAt(r+1))?n[o++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++s)),n[o++]=a>>18|240,n[o++]=a>>12&63|128),n[o++]=a>>6&63|128,n[o++]=63&a|128)}else for(s=0;s>>0}return n},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r>>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<>>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=t[e],o=r+t[e+1]>>>0;t[e]=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,r){return(e+r>>>0>>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,a){var h,u=0;return u+=(h=e+r>>>0)>>0)>>0>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,a,h,u){var f,l=0;return l+=(f=e+r>>>0)>>0)>>0)>>0>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,a,h,u){return e+r+o+a+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,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(186).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var r=i(1).Buffer,n=i(138).Transform,o=i(13).StringDecoder;function s(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(0)(s,n),s.prototype.update=function(t,e,i){"string"==typeof t&&(t=r.from(t,e));t=this._update(t);return this.hashMode?this:t=i?this._toString(t,i):t},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,i){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{i(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return e=t?this._toString(e,t,!0):e},s.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");t=this._decoder.write(t);return i&&(t+=this._decoder.end()),t},t.exports=s},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return h}),i.d(e,"a",function(){return u}),i(119),i(120);const r=i(225),n=(i(113),i(230),i(233).sprintf),o={specialchars:function(t){var e=[];if(!t)return"";if(0==t.length)return"";for(var i=0;i":e.push(">");break;case"&":e.push("&");break;case" ":e.push(" ");break;case'"':e.push(""");break;default:e.push(t.substr(i,1))}return e.join("")}},s={randomString(e){e=e||32;var i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=i.length,n="";for(let t=0;t(e="^"+e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*")+"$",new RegExp(e).test(t)),keywordsMatchWildcard:(t,e)=>(e=e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*"),new RegExp(e).test(t)),sprintf(){var t=Array.from(arguments);return n.call(null,...t)}};function a(t){return String.fromCharCode(t)}const h={domainUrl(t){t=t||"";var e=window.location.protocol+"//"+window.location.host;return t?e+"/"+t:e},urlencode(r){let n="",o="";for(let i=0;i?[]^`{|}~%".indexOf(t)?n+="%"+e.toString(16):n+=t}return n},urldecode(e){let i="";e+="";for(let t=0;th.parseQuery(t),getQuery(t,e=null,i){i=h.parseQuery(i);return t in i?i[t]:e},parseQuery:t=>(t=t||window.location.search,r.parse(t)),buildQuery:t=>r.stringify(t)},u={assign(e,i){e&&i&&Object.keys(e).map(t=>{e[t]=i[t]})},update(e,i){e&&i&&Object.keys(i).map(t=>{e[t]=i[t]})},equal:(t,e)=>JSON.stringify(t)===JSON.stringify(e),notEqual:(t,e)=>!u.equal(t,e),clone:t=>JSON.parse(JSON.stringify(t))};i(234)},function(t,e,i){"use strict";var r="object"==typeof Reflect?Reflect:null,h=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(n,o){return new Promise(function(t,e){function i(){void 0!==r&&n.removeListener("error",r),t([].slice.call(arguments))}var r;"error"!==o&&(r=function(t){n.removeListener(o,i),e(t)},n.once("error",r)),n.once(o,i)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){var n,o;return u(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener||i),n=t._events),o=n[e]),void 0===o?(o=n[e]=i,++t._eventsCount):("function"==typeof o?o=n[e]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),0<(i=f(t))&&o.length>i&&!o.warned&&(o.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,console&&console.warn&&console.warn(i))),t}function d(t,e,i){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},e=function(){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)}.bind(t);return e.listener=i,t.wrapFn=e}function c(t,e,i){t=t._events;if(void 0===t)return[];e=t[e];return void 0===e?[]:"function"==typeof e?i?[e.listener||e]:[e]:i?function(t){for(var e=new Array(t.length),i=0;i>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,i,r=this.lastTotal-this.lastNeed,e=(e=this,128!=(192&(i=t)[0])?(e.lastNeed=0,"�"):1o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(62),r=l(66);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));e=8*this._len;e<=4294967295?this._block.writeUInt32BE(e,this._blockSize-4):(this._block.writeUInt32BE((e-(i=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)),this._update(this._block);var i=this._hash();return t?i.toString(t):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){"use strict";var a={};function r(t,r,e){e=e||Error;var n,i,o,o=(o=n=e,(i=s).prototype=Object.create(o.prototype),(i.prototype.constructor=i).__proto__=o,s);function s(t,e,i){return n.call(this,"string"==typeof r?r:r(t,e,i))||this}o.prototype.name=e.name,o.prototype.code=t,a[t]=o}function h(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),2o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(92),r=l(96);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._delta8){e=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var i=0;i>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o>>24]^f[p>>>16&255]^l[m>>>8&255]^d[255&b]^e[g++],s=u[p>>>24]^f[m>>>16&255]^l[b>>>8&255]^d[255&c]^e[g++],a=u[m>>>24]^f[b>>>16&255]^l[c>>>8&255]^d[255&p]^e[g++],h=u[b>>>24]^f[c>>>16&255]^l[p>>>8&255]^d[255&m]^e[g++],c=o,p=s,m=a,b=h;return o=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^e[g++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&c])^e[g++],a=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[g++],h=(r[b>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4;i[s]=u=u>>>8^255&u^99;var f=t[r[u]=s],l=t[f],d=t[l],c=257*t[u]^16843008*u;n[0][s]=c<<24|c>>>8,n[1][s]=c<<16|c>>>16,n[2][s]=c<<8|c>>>24,n[3][s]=c,o[0][u]=(c=16843009*d^65537*l^257*f^16843008*s)<<24|c>>>8,o[1][u]=c<<16|c>>>16,o[2][u]=c<<8|c>>>24,o[3][u]=c,0===s?s=a=1:(s=f^t[t[t[d^f]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:o}}();function a(t){this._key=r(t),this._reset()}a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o>>24)>>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s],s^=l[o/e|0]<<24):6>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s]),n[o]=n[o-e]^s}for(var a=[],h=0;h>>24]]^d.INV_SUB_MIX[1][d.SBOX[f>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[f>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&f]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=a},a.prototype.encryptBlockRaw=function(t){return s(t=r(t),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},a.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;e=s(t,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},a.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=a},function(t,e,i){var l=i(1).Buffer,d=i(35);t.exports=function(t,e,i,r){if(l.isBuffer(t)||(t=l.from(t,"binary")),e&&8!==(e=!l.isBuffer(e)?l.from(e,"binary"):e).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var n=i/8,o=l.alloc(n),s=l.alloc(r||0),a=l.alloc(0);0>1]):s.mixedAdd(n[-u-1>>1].neg()):0>1]):s.add(n[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},o.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,a=this._wnafT2,h=this._wnafT3,u=0,f=0;f>1]:k<0&&(o=a[S][-k-1>>1].neg()),y="affine"===o.type?y.mixedAdd(o):y.add(o))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n({loading:!0,search:{tab:"store",priceType:"all",isRecommend:!1,categoryId:0,type:"",keywords:""},commandDialogMsgs:[],commandDialogRunStart:0,commandDialogRunElapse:0,commandDialogShow:!1,commandDialogFinish:!1,commandDialogTitle:"",memberUserShow:!1,memberUserLoading:!1,memberLoginCaptchaImage:null,memberLoginInfo:{username:"",password:"",captcha:"",agree:!1},storeApiToken:i.a.get("storeApiToken",""),memberUser:{id:0,username:"",avatar:""},categories:[],types:[],modules:[],storeConfig:{disable:!1},installVersionDialogShow:!1,installVersionReleases:[],installVersionModule:null}),watch:{memberUser:{handler(t,e){this.doLoad()},deep:!0}},computed:{filterModules(){return this.modules.filter(t=>{switch(this.search.tab){case"store":if(t._isLocal)return!1;break;case"installed":if(!t._isInstalled)return!1;break;case"enabled":if(!t._isEnabled)return!1;break;case"disabled":if(!t._isInstalled||t._isEnabled)return!1}if(this.search.isRecommend&&!t.isRecommend)return!1;if(this.search.type&&!t.types.includes(this.search.type))return!1;switch(this.search.priceType){case"free":if(t.isFee)return!1;break;case"fee":if(!t.isFee)return!1}return!(this.search.categoryId&&t.categoryId!==this.search.categoryId||this.search.keywords&&!t.title.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.name.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.description.toLowerCase().includes(this.search.keywords.toLowerCase()))})}},mounted(){this.doLoad(),this.doLoadStore(),setInterval(()=>{this.commandDialogRunElapse=parseInt(((new Date).getTime()-this.commandDialogRunStart)/1e3)},1e3)},methods:{versionCompare(t,e){var i=t.split("."),r=e.split(".");for(let t=0,e=Math.max(i.length,r.length);tparseInt(r[t]))return 1;if(r[t]&&!i[t]&&0{this.$dialog.tipError(t.msg)};r=r||n,o.ajax({url:`${window.__data.apiBase}/api/${t}`,dataType:"jsonp",timeout:1e4,data:Object.assign(e,{api_token:this.storeApiToken,modstartParam:JSON.stringify(window.__data.modstartParam)}),success:t=>{t.code?(1002===t.code&&this.doMemberLoginCaptchaRefresh(),!0!==r(t)&&n(t)):i(t)},error:t=>{!0!==r({code:-1,msg:"请求出现错误"})&&n({code:-1,msg:"请求出现错误"})},jsonp:"callback"})},doMemberUserLogout(){this.$dialog.confirm("确认退出?",()=>{this.storeApiToken="",i.a.set("storeApiToken",""),this.memberUserShow=!1,this.doLoadStore()})},doSubmitCheck(t){13===t.keyCode&&this.doMemberLoginSubmit()},doMemberLoginSubmit(){this.memberLoginInfo.agree?(this.$dialog.loadingOn(),this.doStoreRequest("store/login",this.memberLoginInfo,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("登录成功"),this.doLoadStoreMember(),this.memberLoginInfo.username="",this.memberLoginInfo.password="",this.memberLoginInfo.captcha="",this.memberUserShow=!1},t=>{this.$dialog.loadingOff()})):this.$dialog.tipError("请先同意使用协议")},doMemberLoginCaptchaRefresh(e){this.doStoreRequest("store/login_captcha",{},t=>{this.memberLoginCaptchaImage=t.data.image,e&&e()})},doMemberLoginShow(){0{this.$dialog.loadingOff(),this.memberUserShow=!0}))},doLoadStoreMember(){this.memberUserLoading=!0,this.doStoreRequest("store/member",{},t=>{this.memberUserLoading=!1,e.a.update(this.memberUser,t.data)},t=>{this.memberUserLoading=!1})},doLoadStore(){this.storeApiToken?this.doLoadStoreMember():this.doStoreRequest("store/config",{},t=>{this.storeApiToken=t.data.apiToken,i.a.set("storeApiToken",t.data.apiToken),this.doLoadStoreMember()})},doLoad(){this.$api.post(this.$url.admin("module_store/all"),{memberUserId:this.memberUser.id,apiToken:this.storeApiToken},t=>{this.loading=!1,this.categories=t.data.categories,this.types=t.data.types,this.modules=t.data.modules,this.storeConfig=t.data.storeConfig})},doCommand(t,e,i,r){r=r||null,null===(i=i||null)&&(this.commandDialogMsgs=[],this.commandDialogShow=!0,this.commandDialogFinish=!1),r&&(this.commandDialogTitle=r,this.commandDialogMsgs.push(' '+r)),this.commandDialogRunStart=(new Date).getTime(),this.commandDialogRunElapse=0,this.$api.post(this.$url.admin("module_store/"+t),{token:this.storeApiToken,step:i,data:JSON.stringify(e)},t=>(Array.isArray(t.data.msg)?this.commandDialogMsgs=this.commandDialogMsgs.concat(t.data.msg):this.commandDialogMsgs.push(t.data.msg),t.data.finish?(this.commandDialogFinish=!0,void this.doLoad()):void setTimeout(()=>{this.doCommand(t.data.command,t.data.data,t.data.step)},1e3)),t=>(this.commandDialogMsgs.push(' '+t.msg+""),this.commandDialogFinish=!0))},doInstallVersion(e){this.$dialog.loadingOn(),this.doStoreRequest("store/module_releases",{module:e.name},t=>{this.$dialog.loadingOff(),this.installVersionModule=e,this.installVersionReleases=t.data.releases,this.installVersionDialogShow=!0},t=>{this.$dialog.loadingOff()})},doInstall(t){this.doCommand("install",{module:t.name,version:t.latestVersion,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${t.latestVersion}`)},doInstallVersionSubmit(t,e){this.doCommand("install",{module:t.name,version:e,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${e}`)},doDisable(t){this.doCommand("disable",{module:t.name,version:t._localVersion},null,`禁用模块 ${t.title}(${t.name})`)},doEnable(t){this.doCommand("enable",{module:t.name,version:t._localVersion},null,`启用模块 ${t.title}(${t.name})`)},doUninstall(t){this.$dialog.confirm("确认卸载?",()=>{this.doCommand("uninstall",{module:t.name,version:t._localVersion,isLocal:t._isLocal},null,`卸载模块 ${t.title}(${t.name})`)})},doUpgrade(t){this.$dialog.confirm("确认升级?",()=>{this.doCommand("upgrade",{module:t.name,version:t.latestVersion},null,`升级模块 ${t.title}(${t.name}) V${t.latestVersion}`)})},doConfig(t){this.$dialog.dialog(this.$url.admin("module_store/config/"+t.name))}}}}.call(this,n(113))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});const r={set:function(t,e){window.localStorage.setItem(t,JSON.stringify(e))},get:function(t,e){var i=window.localStorage.getItem(t);try{return JSON.parse(i)}catch(t){}return e},getArray:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)?i:e}catch(t){}return e},getObject:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)||"object"!=typeof i?e:i}catch(t){}return e}}},function(t,e,i){"use strict";var r=i(0),n=i(61),o=i(1).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<>>32-e}function u(t,e,i,r,n,o,s){return h(t+(e&i|~e&r)+n+o|0,s)+e|0}function f(t,e,i,r,n,o,s){return h(t+(e&r|i&~r)+n+o|0,s)+e|0}function l(t,e,i,r,n,o,s){return h(t+(e^i^r)+n+o|0,s)+e|0}function d(t,e,i,r,n,o,s){return h(t+(i^(e|~r))+n+o|0,s)+e|0}r(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=u(i=this._a,o=this._b,n=this._c,r=this._d,t[0],3614090360,7),r=u(r,i,o,n,t[1],3905402710,12),n=u(n,r,i,o,t[2],606105819,17),o=u(o,n,r,i,t[3],3250441966,22);i=u(i,o,n,r,t[4],4118548399,7),r=u(r,i,o,n,t[5],1200080426,12),n=u(n,r,i,o,t[6],2821735955,17),o=u(o,n,r,i,t[7],4249261313,22),i=u(i,o,n,r,t[8],1770035416,7),r=u(r,i,o,n,t[9],2336552879,12),n=u(n,r,i,o,t[10],4294925233,17),o=u(o,n,r,i,t[11],2304563134,22),i=u(i,o,n,r,t[12],1804603682,7),r=u(r,i,o,n,t[13],4254626195,12),n=u(n,r,i,o,t[14],2792965006,17),i=f(i,o=u(o,n,r,i,t[15],1236535329,22),n,r,t[1],4129170786,5),r=f(r,i,o,n,t[6],3225465664,9),n=f(n,r,i,o,t[11],643717713,14),o=f(o,n,r,i,t[0],3921069994,20),i=f(i,o,n,r,t[5],3593408605,5),r=f(r,i,o,n,t[10],38016083,9),n=f(n,r,i,o,t[15],3634488961,14),o=f(o,n,r,i,t[4],3889429448,20),i=f(i,o,n,r,t[9],568446438,5),r=f(r,i,o,n,t[14],3275163606,9),n=f(n,r,i,o,t[3],4107603335,14),o=f(o,n,r,i,t[8],1163531501,20),i=f(i,o,n,r,t[13],2850285829,5),r=f(r,i,o,n,t[2],4243563512,9),n=f(n,r,i,o,t[7],1735328473,14),i=l(i,o=f(o,n,r,i,t[12],2368359562,20),n,r,t[5],4294588738,4),r=l(r,i,o,n,t[8],2272392833,11),n=l(n,r,i,o,t[11],1839030562,16),o=l(o,n,r,i,t[14],4259657740,23),i=l(i,o,n,r,t[1],2763975236,4),r=l(r,i,o,n,t[4],1272893353,11),n=l(n,r,i,o,t[7],4139469664,16),o=l(o,n,r,i,t[10],3200236656,23),i=l(i,o,n,r,t[13],681279174,4),r=l(r,i,o,n,t[0],3936430074,11),n=l(n,r,i,o,t[3],3572445317,16),o=l(o,n,r,i,t[6],76029189,23),i=l(i,o,n,r,t[9],3654602809,4),r=l(r,i,o,n,t[12],3873151461,11),n=l(n,r,i,o,t[15],530742520,16),i=d(i,o=l(o,n,r,i,t[2],3299628645,23),n,r,t[0],4096336452,6),r=d(r,i,o,n,t[7],1126891415,10),n=d(n,r,i,o,t[14],2878612391,15),o=d(o,n,r,i,t[5],4237533241,21),i=d(i,o,n,r,t[12],1700485571,6),r=d(r,i,o,n,t[3],2399980690,10),n=d(n,r,i,o,t[10],4293915773,15),o=d(o,n,r,i,t[1],2240044497,21),i=d(i,o,n,r,t[8],1873313359,6),r=d(r,i,o,n,t[15],4264355552,10),n=d(n,r,i,o,t[6],2734768916,15),o=d(o,n,r,i,t[13],1309151649,21),i=d(i,o,n,r,t[4],4149444226,6),r=d(r,i,o,n,t[11],3174756917,10),n=d(n,r,i,o,t[2],718787259,15),o=d(o,n,r,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-e}function k(t,e,i,r,n,o,s,a){return S(t+(e^i^r)+o+s|0,a)+n|0}function E(t,e,i,r,n,o,s,a){return S(t+(e&i|~e&r)+o+s|0,a)+n|0}function x(t,e,i,r,n,o,s,a){return S(t+((e|~i)^r)+o+s|0,a)+n|0}function A(t,e,i,r,n,o,s,a){return S(t+(e&r|i&~r)+o+s|0,a)+n|0}function R(t,e,i,r,n,o,s,a){return S(t+(e^(i|~r))+o+s|0,a)+n|0}n(s,o),s.prototype._update=function(){for(var t=b,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,s=0|this._e,a=0|this._a,h=0|this._b,u=0|this._c,f=0|this._d,l=0|this._e,d=0;d<80;d+=1)var c,p=d<16?(c=k(i,r,n,o,s,t[g[d]],M[0],y[d]),R(a,h,u,f,l,t[v[d]],_[0],w[d])):d<32?(c=E(i,r,n,o,s,t[g[d]],M[1],y[d]),A(a,h,u,f,l,t[v[d]],_[1],w[d])):d<48?(c=x(i,r,n,o,s,t[g[d]],M[2],y[d]),x(a,h,u,f,l,t[v[d]],_[2],w[d])):d<64?(c=A(i,r,n,o,s,t[g[d]],M[3],y[d]),E(a,h,u,f,l,t[v[d]],_[3],w[d])):(c=R(i,r,n,o,s,t[g[d]],M[4],y[d]),k(a,h,u,f,l,t[v[d]],_[4],w[d])),i=s,s=o,o=S(n,10),n=r,r=c,a=l,l=f,f=S(u,10),u=h,h=p;var m=this._b+n+f|0;this._b=this._c+o+l|0,this._c=this._d+s+a|0,this._d=this._e+i+h|0,this._e=this._a+r+u|0,this._a=m},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this._strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this._strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function o(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i._strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modrn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>8&255),i>16&255),6===o?(i>24&255),o=r=0):(r=s>>>24,o+=2)}if(i>8&255),0<=i&&(t[i--]=s>>16&255),6===o?(0<=i&&(t[i--]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(0<=i)for(t[i--]=r;0<=i;)t[i--]=0},Math.clz32?b.prototype._countBits=function(t){return 32-Math.clz32(t)}:b.prototype._countBits=function(t){var e=t,t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this._strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function h(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i._strip()}function u(t,e,i){return h(t,e,i)}Math.imul||(a=o),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?a:i<63?o:i<1024?h:u)(this,t,e)},b.prototype.mul=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},b.prototype.mulf=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),u(this,t,e)},b.prototype.imul=function(t){return this.clone().mulTo(t,this)},b.prototype.imuln=function(t){var e=t<0;m("number"==typeof(t=e?-t:t)),m(t<67108864);for(var i=0,r=0;r>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this._strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modrn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(i*r+(0|this.words[n]))%t;return e?-r:r},b.prototype.modn=function(t){return this.modrn(t)},b.prototype.idivn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/t|0,i=n%t}return this._strip(),e?this.ineg():this},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return f[t]=e},_.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(r(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},_.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new S(t)},e(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,E(15)(t))},function(t,e,i){"use strict";e.version=i(185).version,e.utils=i(7),e.rand=i(45),e.curve=i(99),e.curves=i(51),e.ec=i(197),e.eddsa=i(201)},function(t,e,i){"use strict";var r,n=e,e=i(52),o=i(99),s=i(7).assert;function a(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,i){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var t=new a(i);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t}),t}})}n.PresetCurve=a,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(196)}catch(t){r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,i){e.utils=i(8),e.common=i(26),e.sha=i(190),e.ripemd=i(194),e.hmac=i(195),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(s,t,a){"use strict";!function(t){var e,i=a(4),r=i.Buffer,n={};for(e in i)i.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(n[e]=i[e]);var o=n.Buffer={};for(e in r)r.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(o[e]=r[e]);if(n.Buffer.prototype=r.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,i)}),o.alloc||(o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||2*(1<<30)<=t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=r(t);return e&&0!==e.length?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t}),!n.kStringMaxLength)try{n.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(t){}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),s.exports=n}.call(this,a(2))},function(t,e,i){"use strict";const a=i(55).Reporter,r=i(27).EncoderBuffer,h=i(27).DecoderBuffer,n=i(6),o=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(t,e,i){const r={};this._baseState=r,r.name=i,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,i={};f.forEach(function(t){i[t]=e[t]});const t=new this.constructor(i.parent);return t._baseState=i,t},u.prototype._wrap=function(){const i=this._baseState;s.forEach(function(e){this[e]=function(){const t=new this.constructor(this);return i.children.push(t),t[e].apply(t,arguments)}},this)},u.prototype._init=function(t){const e=this._baseState;n(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),n.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){const 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&&(n(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(n(null===e.args),e.args=t,e.reverseArgs=t.map(function(i){if("object"!=typeof i||i.constructor!==Object)return i;const r={};return Object.keys(i).forEach(function(t){t==(0|t)&&(t|=0);var e=i[t];r[e]=t}),r}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(i){u.prototype[i]=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return n(null===t.tag),t.tag=i,this._useArgs(e),this}}),u.prototype.use=function(t){n(t);const e=this._baseState;return n(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){const e=this._baseState;return n(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){const e=this._baseState;return n(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return n(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(t){const e=this._baseState;return n(null===e.use),e.contains=t,this},u.prototype._decode=function(e,i){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,i));let n,o=r.default,s=!0,t=null;if(null!==r.key&&(t=e.enterKey(r.key)),r.optional){let t=null;if(null!==r.explicit?t=r.explicit:null!==r.implicit?t=r.implicit:null!==r.tag&&(t=r.tag),null!==t||r.any){if(s=this._peekTag(e,t,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const i=this._decodeTag(e,r.explicit);if(e.isError(i))return i;e=i}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(i&&i.track&&null!==r.tag&&i.track(e.path(),n,e.length,"tagged"),i&&i.track&&null!==r.tag&&i.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(t){t._decode(e,i)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new h(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,i)}}return r.obj&&s&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==s?null!==t&&e.exitKey(t):e.leaveKey(t,r.key,o),o},u.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)},u.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),n(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},u.prototype._decodeChoice=function(r,n){const o=this._baseState;let s=null,a=!1;return Object.keys(o.choice).some(function(t){const e=r.save(),i=o.choice[t];try{const o=i._decode(r,n);if(r.isError(o))return!1;s={type:t,value:o},a=!0}catch(t){return r.restore(e),!1}return!0},this),a?s:r.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},u.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){t=this._encodeValue(t,e,i);return void 0===t||this._skipDefault(t,e,i)?void 0:t}},u.prototype._encodeValue=function(i,r,t){const e=this._baseState;if(null===e.parent)return e.children[0]._encode(i,r||new a);let n=null;if(this.reporter=r,e.optional&&void 0===i){if(null===e.default)return;i=e.default}let o=null,s=!1;if(e.any)n=this._createEncoderBuffer(i);else if(e.choice)n=this._encodeChoice(i,r);else if(e.contains)o=this._getUse(e.contains,t)._encode(i,r),s=!0;else if(e.children)o=e.children.map(function(t){if("null_"===t._baseState.tag)return t._encode(null,r,i);if(null===t._baseState.key)return r.error("Child should have a key");var e=r.enterKey(t._baseState.key);if("object"!=typeof i)return r.error("Child expected, but input is not object");t=t._encode(i[t._baseState.key],r,i);return r.leaveKey(e),t},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return r.error("Too many args for : "+e.tag);if(!Array.isArray(i))return r.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,o=this._createEncoderBuffer(i.map(function(t){var e=this._baseState;return this._getUse(e.args[0],i)._encode(t,r)},t))}else null!==e.use?n=this._getUse(e.use,t)._encode(i,r):(o=this._encodePrimitive(e.tag,i),s=!0);if(!e.any&&null===e.choice){const i=null!==e.implicit?e.implicit:e.tag,t=null===e.implicit?"universal":"context";null===i?null===e.use&&r.error("Tag could be omitted only for .use()"):null===e.use&&(n=this._encodeComposite(i,s,t,o))}return null!==e.explicit&&(n=this._encodeComposite(e.explicit,!1,"context",n)),n},u.prototype._encodeChoice=function(t,e){const i=this._baseState,r=i.choice[t.type];return r||n(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},u.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 new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,i){"use strict";const r=i(0);function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}(e.Reporter=n).prototype.isError=function(t){return t instanceof o},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){const e=this._reporterState,i=t instanceof o;if(t=i?t:new o(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},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){"use strict";function r(i){const r={};return Object.keys(i).forEach(function(t){(0|t)==t&&(t|=0);var e=i[t];r[e]=t}),r}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(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=r(e.tag)},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(220).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){t.exports=function(t){function n(t,e){this.name=e,this.path=t,this.keys=[],this.fns=[],this.params={},this.regex=i(this.path,this.keys,!1,!1)}var o,s=[],a={},e=t.routie;n.prototype.addHandler=function(t){this.fns.push(t)},n.prototype.removeHandler=function(t){for(var e=0,i=this.fns.length;e=this._blockSize;){for(var n=this._blockOffset;ne.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[l-7]+(((e=i[l-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+i[l-16];for(var d=0;d<64;++d)var c=f+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(u^a&(h^u))+m[d]+i[d]|0,p=0|((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n|o&(r|n)),f=u,u=h,h=a,a=s+c|0,s=o,o=n,n=r,r=c+p|0;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=h+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}function U(t,e,i){return i^t&(e^i)}function z(t,e,i){return t&e|i&(t|e)}function F(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function H(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function Z(t,e){return t>>>0>>0?1:0}r(a,n),a.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},a.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,a=0|this._fh,h=0|this._gh,u=0|this._hh,f=0|this._al,l=0|this._bl,d=0|this._cl,c=0|this._dl,p=0|this._el,m=0|this._fl,b=0|this._gl,g=0|this._hl,v=0;v<32;v+=2)e[v]=t.readInt32BE(4*v),e[v+1]=t.readInt32BE(4*v+4);for(;v<160;v+=2){var y=e[v-30],w=e[v-30+1],M=(y>>>1|w<<31)^(y>>>8|w<<24)^y>>>7,_=(w>>>1|y<<31)^(w>>>8|y<<24)^(w>>>7|y<<25),S=(y=e[v-4],w=e[v-4+1],(y>>>19|w<<13)^(w>>>29|y<<3)^y>>>6),k=(w>>>19|y<<13)^(y>>>29|w<<3)^(w>>>6|y<<26),E=e[v-14],x=e[v-14+1],w=e[v-32],y=e[v-32+1],A=_+x|0,R=(R=(R=M+E+Z(A,_)|0)+S+Z(A=A+k|0,k)|0)+w+Z(A=A+y|0,y)|0;e[v]=R,e[v+1]=A}for(var T=0;T<160;T+=2){R=e[T];var A=e[T+1],I=z(i,r,n),C=z(f,l,d),B=F(i,f),L=F(f,i),O=H(s,p),j=H(p,s),P=q[T+1],D=U(s,a,h),N=U(p,m,b),j=g+j|0,O=(O=(O=(O=u+O+Z(j,g)|0)+D+Z(j=j+N|0,N)|0)+q[T]+Z(j=j+P|0,P)|0)+R+Z(j=j+A|0,A)|0,C=L+C|0,L=B+I+Z(C,L)|0,u=h,g=b,h=a,b=m,a=s,m=p,s=o+O+Z(p=c+j|0,c)|0,o=n,c=d,n=r,d=l,r=i,l=f,i=O+L+Z(f=j+C|0,j)|0}this._al=this._al+f|0,this._bl=this._bl+l|0,this._cl=this._cl+d|0,this._dl=this._dl+c|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+b|0,this._hl=this._hl+g|0,this._ah=this._ah+i+Z(this._al,f)|0,this._bh=this._bh+r+Z(this._bl,l)|0,this._ch=this._ch+n+Z(this._cl,d)|0,this._dh=this._dh+o+Z(this._dl,c)|0,this._eh=this._eh+s+Z(this._el,p)|0,this._fh=this._fh+a+Z(this._fl,m)|0,this._gh=this._gh+h+Z(this._gl,b)|0,this._hh=this._hh+u+Z(this._hl,g)|0},a.prototype._hash=function(){var r=o.allocUnsafe(64);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=a},function(I,t,C){"use strict";!function(t,b){var g=C(28);I.exports=n;var o,v=C(60);n.ReadableState=r,C(12).EventEmitter;function y(t,e){return t.listeners(e).length}var i=C(71),l=C(1).Buffer,d=t.Uint8Array||function(){},e=Object.create(C(24));e.inherits=C(0);var s,t=C(139),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},a=C(140),t=C(72);e.inherits(n,i);var h=["error","close","destroy","pause","resume"];function r(t,e){t=t||{};var i=e instanceof(o=o||C(14));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,e=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||C(13).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function n(t){if(o=o||C(14),!(this instanceof n))return new n(t);this._readableState=new r(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function u(t,e,i,r,n){var o,s,a,h,u,f=t._readableState;return null===e?(f.reading=!1,a=t,(h=f).ended||(!h.decoder||(u=h.decoder.end())&&u.length&&(h.buffer.push(u),h.length+=h.objectMode?1:u.length),h.ended=!0,p(a))):(n||(o=f,n=a=e,o=s=l.isBuffer(n)||n instanceof d||"string"==typeof a||void 0===a||o.objectMode?s:new TypeError("Invalid non-string/buffer chunk")),o?t.emit("error",o):f.objectMode||e&&0e.highWaterMark&&(e.highWaterMark=(8388608<=(i=t)?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function p(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(m,t):m(t))}function m(t){w("emit readable"),t.emit("readable"),E(t)}function M(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(_,t,e))}function _(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):(i=t,t=e.buffer,e=e.decoder,io.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=l.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(i,t),n=r),n);var i,r,n}function A(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?A:p)(this),null;if(0===(t=f(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;return w("need readable",r),(0===e.length||e.length-ti?e=("rmd160"===t?new h:u(t)).update(e).digest():e.lengtho?e=n(e):e.length>>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 a=0;a<=24;a+=8)n<<=1,n|=e>>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+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;s<4;s++)for(var a=24;0<=a;a-=8)n<<=1,n|=e>>>a+s&1,n<<=1,n|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+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 a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+s&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var h=[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,r){for(var n=0,o=0,s=h.length>>>1,a=0;a>>h[a]&1;for(a=s;a>>h[a]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.expand=function(t,e,i){for(var r=0,n=0,r=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)r<<=6,r|=t>>>o&63;for(o=11;3<=o;o-=4)n|=t>>>o&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>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;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[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>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.length>>1],i=f.r28shl(i,o),r=f.r28shl(r,o);f.pc2(i,r,t.keys,n)}},a.prototype._update=function(t,e,i,r){var n=this._desState,o=f.readUInt32BE(t,e),e=f.readUInt32BE(t,e+4);f.ip(o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,e,n.tmp,0):this._decrypt(n,o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],f.writeUInt32BE(i,o,r),f.writeUInt32BE(i,e,r+4)},a.prototype._pad=function(t,e){for(var i=t.length-e,r=e;r>>0,o=u}f.rip(s,o,r,n)},a.prototype._decrypt=function(t,e,i,r,n){for(var o=i,s=e,a=t.keys.length-2;0<=a;a-=2){var h=t.keys[a],u=t.keys[a+1];f.expand(o,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];h=f.substitute(h,u),u=o,o=(s^f.permute(h))>>>0,s=u}f.rip(o,s,r,n)}},function(t,e,i){var h=i(25),u=i(1).Buffer,f=i(85);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),r=t._cache.length;t._cache=u.concat([t._cache,u.allocUnsafe(16*i)]);for(var n=0;nt;)i.ishrn(1);if(i.isEven()&&i.iadd(h),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(f))for(;i.mod(l).cmp(d);)i.iadd(p)}else for(;i.mod(s).cmp(c);)i.iadd(p);if(b(r=i.shrn(1))&&b(i)&&g(r)&&g(i)&&a.test(r)&&a.test(i))return i}}},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(168).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var c=i(169),r=i(45);function n(t){this.rand=t||new r.Rand}(t.exports=n).create=function(t){return new n(t)},n.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new c(this.rand.generate(i))}while(0<=r.cmp(t));return r},n.prototype._randrange=function(t,e){e=e.sub(t);return t.add(this._randbelow(e))},n.prototype.test=function(t,e,i){var r=t.bitLength(),n=c.mont(t),o=new c(1).toRed(n);e=e||Math.max(1,r/48|0);for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);0e.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>8,n=255&n;o?i.push(o,n):i.push(n)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){"use strict";e.base=i(31),e.short=i(187),e.mont=i(188),e.edwards=i(189)},function(t,e,i){"use strict";var r=i(8).rotr32;function n(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}function s(t,e,i){return t^e^i}e.ft_1=function(t,e,i,r){return 0===t?n(e,i,r):1===t||3===t?e^i^r:2===t?o(e,i,r):void 0},e.ch32=n,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,i){"use strict";var r=i(8),n=i(26),o=i(100),p=i(6),m=r.sum32,b=r.sum32_4,g=r.sum32_5,v=o.ch32,y=o.maj32,w=o.s0_256,M=o.s1_256,_=o.g0_256,S=o.g1_256,s=n.BlockHash,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function h(){if(!(this instanceof h))return new h;s.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=a,this.W=new Array(64)}r.inherits(h,s),(t.exports=h).blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){"use strict";const r=e;r.der=i(106),r.pem=i(207)},function(t,e,i){"use strict";const r=i(0),s=i(53).Buffer,n=i(54),a=i(56);function o(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){n.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(t.exports=o).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(h,n),h.prototype._encodeComposite=function(t,e,i,r){i=function(t,e,i,r){let n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return 31<=n?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=a.tagClassByName[i||"universal"]<<6,n)}(t,e,i,this.reporter);if(r.length<128){const t=s.alloc(2);return t[0]=i,t[1]=r.length,this._createEncoderBuffer([t,r])}let n=1;for(let t=r.length;256<=t;t>>=8)n++;const o=s.alloc(2+n);o[0]=i,o[1]=128|n;for(let t=1+n,e=r.length;0>=8)o[t]=255&e;return this._createEncoderBuffer([o,r])},h.prototype._encodeStr=function(e,i){if("bitstr"===i)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==i)return"numstr"===i?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===i?this._isPrintstr(e)?this._createEncoderBuffer(e):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(i)||"objDesc"===i?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+i+" unsupported");{const i=s.alloc(2*e.length);for(let t=0;t>=7)r++}const n=s.alloc(r);let o=n.length-1;for(let e=i.length-1;0<=e;e--){let t=i[e];for(n[o--]=127&t;0<(t>>=7);)n[o--]=128|127&t}return this._createEncoderBuffer(n)},h.prototype._encodeTime=function(t,e){let i;const r=new Date(t);return"gentime"===e?i=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=s.from(t)}if(s.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=s.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;256<=t;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;0<=t;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(s.from(r))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,i){const r=this._baseState;let n;if(null===r.default)return!1;var o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n>6],n=0==(32&r);if(31==(31&r)){let t=r;for(r=0;128==(128&t);){if(t=e.readUInt8(i),e.isError(t))return t;r<<=7,r|=127&t}}else r&=31;return{cls:t,primitive:n,tag:r,tagStr:a.tag[r]}}function l(e,i,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!i&&128===n)return null;if(0==(128&n))return n;var o=127&n;if(4>16&255,n[o++]=e>>8&255,n[o++]=255&e;return 2===i&&(e=h[t.charCodeAt(a)]<<2|h[t.charCodeAt(a+1)]>>4,n[o++]=255&e),1===i&&(e=h[t.charCodeAt(a)]<<10|h[t.charCodeAt(a+1)]<<4|h[t.charCodeAt(a+2)]>>2,n[o++]=e>>8&255,n[o++]=255&e),n},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,n=[],o=0,s=i-r;o>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return n.join("")}(t,o,s>2]+a[e<<4&63]+"==")):2==r&&(e=(t[i-2]<<8)+t[i-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),n.join("")};for(var a=[],h=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n>1,f=-7,l=i?n-1:0,d=i?-1:1,i=t[e+l];for(l+=d,o=i&(1<<-f)-1,i>>=-f,f+=a;0>=-f,f+=r;0>1,l=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,c=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(e+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),u<=s+f?(a=0,s=u):1<=s+f?(a=(e*r-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=c,a/=256,n-=8);for(s=s<>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t>>27)+(u=r,f=n,l=o,0===(h=c)?u&f|~u&l:2===h?u&f|u&l|f&l:u^f^l)+s+e[d]+p[c],s=o,o=n,n=r<<30|r>>>2,r=i,i=c;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=s+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,m=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,n.call(this,64,56)}r(a,n),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,a=0|this._e,h=0;h<16;++h)i[h]=t.readInt32BE(4*h);for(;h<80;++h)i[h]=(e=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|e>>>31;for(var u,f,l,d,c=0;c<80;++c)var p=~~(c/20),p=0|(r<<5|r>>>27)+(f=n,l=o,d=s,0===(u=p)?f&l|~f&d:2===u?f&l|f&d|l&d:f^l^d)+a+i[c]+m[p],a=s,s=o,o=n<<30|n>>>2,n=r,r=p;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(68),o=i(19),s=i(1).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}r(h,n),h.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},h.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=h},function(t,e,i){var r=i(0),n=i(69),o=i(19),s=i(1).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}r(h,n),h.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},h.prototype._hash=function(){var r=s.allocUnsafe(48);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=h},function(t,e,i){t.exports=r;var f=i(12).EventEmitter;function r(){f.call(this)}i(0)(r,f),r.Readable=i(40),r.Writable=i(145),r.Duplex=i(146),r.Transform=i(147),r.PassThrough=i(148),(r.Stream=r).prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function h(t){if(u(),0===f.listenerCount(this,"error"))throw t}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",s),i.removeListener("close",a),i.removeListener("error",h),e.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",h),e.on("error",h),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},function(t,e){},function(t,e,i){"use strict";var o=i(1).Buffer,r=i(141);function n(){!function(t){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}t.exports=(n.prototype.push=function(t){t={data:t,next:null};0>>0),r=this.head,n=0;r;)e=n,r.data.copy(i,e),n+=r.data.length,r=r.next;return i},n),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,n,o){!function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new r(i.call(setTimeout,e,arguments),clearTimeout)},n.setInterval=function(){return new r(i.call(setInterval,e,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(e,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(143),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}.call(this,o(5))},function(t,e,i){!function(t,c){!function(i){"use strict";var r,e,n,t,o,s,a,h,u,f;function l(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var i=s[t];if(i){a=!0;try{!function(){var t=i.callback,e=i.args;switch(e.length){case 0:t();break;case 1:t(e[0]);break;case 2:t(e[0],e[1]);break;case 3:t(e[0],e[1],e[2]);break;default:t.apply(void 0,e)}}()}finally{l(t),a=!1}}}}i.setImmediate||(o=1,a=!(s={}),h=i.document,u=(u=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&u.setTimeout?u:i,f="[object process]"==={}.toString.call(i.process)?function(t){c.nextTick(function(){d(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(n="setImmediate$"+Math.random()+"$",t=function(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(n)&&d(+t.data.slice(n.length))},i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),function(t){i.postMessage(n+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){e.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var e=h.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i>o%8,t._prev=function(t,e){var i=t.length,r=-1,n=a.allocUnsafe(t.length);for(t=a.concat([t,a.from([e])]);++r>7;return n}(t._prev,i?r:n);return s}e.encrypt=function(t,e,i){for(var r=e.length,n=a.allocUnsafe(r),o=-1;++o>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},function(t,e,i){var r=i(87),n=i(1).Buffer,o=i(44),s=i(88),a=i(10),h=i(29),u=i(30);function f(t,e,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(i),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function d(t,e,i){t=o[t.toLowerCase()];if(!t)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if((e="string"==typeof e?n.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new s(t.module,e,i,!0):"auth"===t.type?new r(t.module,e,i,!0):new f(t.module,e,i)}i(0)(f,a),f.prototype._update=function(t){var e;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),i.push(e);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,e){},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(m,t,b){!function(i){var r=b(90),o=new(b(91)),s=new r(24),a=new r(11),h=new r(10),u=new r(3),f=new r(7),l=b(89),t=b(16);function n(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new r(t),this}function d(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new r(t),this}m.exports=e;var c={};function e(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=n,this.setPrivateKey=d):this._primeCode=8}function p(t,e){t=new i(t.toArray());return e?t.toString(e):t}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),e=[i,t.toString(16)].join("_");if(e in c)return c[e];var r,n=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return n+=1,c[e]=n+="02"===i||"05"===i?8:4;switch(o.test(t.shrn(1))||(n+=2),i){case"02":t.mod(s).cmp(a)&&(n+=8);break;case"05":(r=t.mod(h)).cmp(u)&&r.cmp(f)&&(n+=8);break;default:n+=4}return c[e]=n}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new r(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new i(e.toArray()),e=this.getPrime();return t.length>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y),t=(e=0!==e.cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.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(),t=t.redInvm(),e=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t),t=e.redSqr().redISub(this.x.redAdd(this.x)),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new y(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)},h.prototype.mulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i):this.curve._wnafMulAdd(1,e,i,2)},h.prototype.jmulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i,!0):this.curve._wnafMulAdd(1,e,i,2,!0)},h.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))},h.prototype.neg=function(t){if(this.inf)return this;var e,i=this.curve.point(this.x,this.y.redNeg());return t&&this.precomputed&&(e=this.precomputed,t=function(t){return t.neg()},i.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}),i},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(u,o.BasePoint),a.prototype.jpoint=function(t,e,i){return new u(this,t,e,i)},u.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),t=this.y.redMul(e).redMul(t);return this.curve.point(i,t)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(i.redMul(this.z)),e=r.redSub(n),i=o.redSub(s);if(0===e.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();n=e.redSqr(),s=n.redMul(e),r=r.redMul(n),n=i.redSqr().redIAdd(s).redISub(r).redISub(r),s=i.redMul(r.redISub(n)).redISub(o.redMul(s)),e=this.z.redMul(t.z).redMul(e);return this.curve.jpoint(n,s,e)},u.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,o=t.y.redMul(e).redMul(this.z),t=i.redSub(r),e=n.redSub(o);if(0===t.cmpn(0))return 0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();r=t.redSqr(),o=r.redMul(t),i=i.redMul(r),r=e.redSqr().redIAdd(o).redISub(i).redISub(i),o=e.redMul(i.redISub(r)).redISub(n.redMul(o)),t=this.z.redMul(t);return this.curve.jpoint(r,o,t)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){"use strict";var r=i(9),n=i(0),o=i(31),s=i(7);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),(t.exports=a).prototype.validate=function(t){var e=t.normalize().x,t=e.redSqr(),e=t.redMul(e).redAdd(t.redMul(this.a)).redAdd(e);return 0===e.redSqrt().redSqr().cmp(e)},n(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),t=t.redMul(e),i=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(t,i)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(i.redAdd(n).redSqr()),n=e.x.redMul(i.redISub(n).redSqr());return this.curve.point(r,n)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var o=n.length-1;0<=o;o--)0===n[o]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){"use strict";var r=i(7),o=i(9),n=i(0),s=i(31),a=r.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.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 u(t,e,i,r,n){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=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()))))}n(h,s),(t.exports=h).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},h.prototype.pointFromX=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=this.c2.redSub(this.a.redMul(i)),i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=r.redMul(i.redInvm()),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},h.prototype.pointFromY=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=i.redSub(this.c2),i=i.redMul(this.d).redMul(this.c2).redSub(this.a),r=r.redMul(i.redInvm());if(0===r.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),t=e.redMul(this.a).redAdd(i),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===t.cmp(i)},n(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,i,r){return new u(this,t,e,i,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=(i=this.z.redSqr()).redIAdd(i),r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),t=o.redSub(i),i=r.redSub(e),r=n.redMul(t),e=o.redMul(i),i=n.redMul(i),o=t.redMul(o);return this.curve.point(r,e,o,i)},u.prototype._projDbl=function(){var t,e,i,r,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();return o=this.curve.twisted?(n=(i=this.curve._mulA(a)).redAdd(h),this.zOne?(t=s.redSub(a).redSub(h).redMul(n.redSub(this.curve.two)),e=n.redMul(i.redSub(h)),n.redSqr().redSub(n).redSub(n)):(r=this.z.redSqr(),o=n.redSub(r).redISub(r),t=s.redSub(a).redISub(h).redMul(o),e=n.redMul(i.redSub(h)),n.redMul(o))):(i=a.redAdd(h),r=this.curve._mulC(this.z).redSqr(),o=i.redSub(r).redSub(r),t=this.curve._mulC(s.redISub(i)).redMul(o),e=this.curve._mulC(i).redMul(a.redISub(h)),i.redMul(o)),this.curve.point(t,e,o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),t=n.redSub(r),n=n.redAdd(r),r=i.redAdd(e),i=o.redMul(t),e=n.redMul(r),r=o.redMul(r),n=t.redMul(n);return this.curve.point(i,e,n,r)},u.prototype._projAdd=function(t){var e,i=this.z.redMul(t.z),r=i.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(n).redMul(o),a=r.redSub(s),s=r.redAdd(s),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),t=i.redMul(a).redMul(t),s=this.curve.twisted?(e=i.redMul(s).redMul(o.redSub(this.curve._mulA(n))),a.redMul(s)):(e=i.redMul(s).redMul(o.redSub(n)),this.curve._mulC(a).redMul(s));return this.curve.point(t,e,s)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,i){"use strict";e.sha1=i(191),e.sha224=i(192),e.sha256=i(101),e.sha384=i(193),e.sha512=i(102)},function(t,e,i){"use strict";var r=i(8),n=i(26),i=i(100),f=r.rotl32,l=r.sum32,d=r.sum32_5,c=i.ft_1,o=n.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&i)throw new Error("Unable to find sencond key candinate");s=i?this.curve.pointFromX(s.add(this.curve.n),t):this.curve.pointFromX(s,t),e=e.r.invm(n),o=n.sub(o).mul(e).umod(n),n=r.mul(e).umod(n);return this.g.mulAdd(o,s,n)},h.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new p(e,r)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch(t){continue}if(n.eq(i))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,i){"use strict";var r=i(52),o=i(98),n=i(6);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex"),t=o.toArray(t.pers,t.persEnc||"hex");n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}(t.exports=s).prototype._init=function(t,e,i){i=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length"}},function(t,e,i){"use strict";var n=i(9),o=i(7),r=o.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0==r||4>>=0;return!(n<=127)&&(e.place=s,n)}function u(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}(t.exports=s).prototype._importDER=function(t,e){t=o.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var r=h(t,i);if(!1===r)return!1;if(r+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;r=t.slice(i.place,e+i.place);if(i.place+=e,2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;if(t.length!==e+i.place)return!1;i=t.slice(i.place,e+i.place);if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}return this.r=new n(r),this.s=new n(i),!(this.recoveryParam=null)},s.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=u(e),i=u(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];f(r,e.length),(r=r.concat(e)).push(2),f(r,i.length);e=r.concat(i),r=[48];return f(r,e.length),r=r.concat(e),o.encode(r,t)}},function(t,e,i){"use strict";var r=i(52),n=i(51),o=i(7),s=o.assert,a=o.parseBytes,h=i(202),u=i(203);function f(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=n[t].curve,this.curve=t,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=r.sha512}(t.exports=f).prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t),n=this.g.mul(r),e=this.encodePoint(n),i=this.hashInt(e,i.pubBytes(),t).mul(i.priv()),i=r.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:i,Rencoded:e})},f.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(i),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),t=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(t)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,i,r,n){var h=p(i);if("ec"===h.type){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");return function(t,e,i){var r=m[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));r=new c(r),i=i.data.subjectPrivateKey.data;return r.verify(e,t,i)}(t,e,h)}if("dsa"===h.type){if("dsa"!==r)throw new Error("wrong public key type");return function(t,e){var i=h.data.p,r=h.data.q,n=h.data.g,o=h.data.pub_key,s=p.signature.decode(t,"der"),a=s.s,t=s.r;b(a,r),b(t,r);s=d.mont(i),a=a.invm(r);return 0===n.toRed(s).redPow(new d(e).mul(a).mod(r)).fromRed().mul(o.toRed(s).redPow(t.mul(a).mod(r)).fromRed()).mod(i).mod(r).cmp(t)}(t,e)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");e=l.concat([n,e]);for(var o=h.modulus.byteLength(),s=[1],a=0;e.length+s.length+2>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,i,e){i.publicEncrypt=e(219),i.privateDecrypt=e(221),i.privateEncrypt=function(t,e){return i.publicEncrypt(t,e,!0)},i.publicDecrypt=function(t,e){return i.privateDecrypt(t,e,!0)}},function(t,e,i){var o=i(32),h=i(16),u=i(23),f=i(110),l=i(111),d=i(57),s=i(112),c=i(48),p=i(1).Buffer;t.exports=function(t,e,i){var r,n=t.padding||(i?1:4),a=o(t);if(4===n)r=function(t){var e=a.modulus.byteLength(),i=t.length,r=u("sha1").update(p.alloc(0)).digest(),n=r.length,o=2*n;if(e-o-2n||0<=new s(e).cmp(a.modulus))throw new Error("decryption error");t=i?d(new s(e),a):f(e,a),e=c.alloc(n-t.length);if(t=c.concat([e,t],n),4===r)return function(t){var e=a.modulus.byteLength(),i=l("sha1").update(c.alloc(0)).digest(),r=i.length;if(0!==t[0])throw new Error("decryption error");var n=t.slice(1,r+1),t=t.slice(r+1),n=u(n,h(t,r)),o=u(t,h(n,e-r-1));if(function(t,e){t=c.from(t),e=c.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));for(var n=-1;++n=t.length){n++;break}var o=t.slice(2,r-1);if(("0002"!==i.toString("hex")&&!e||"0001"!==i.toString("hex")&&e)&&n++,o.length<8&&n++,n)throw new Error("decryption error");return t.slice(r)}(t,i);if(3===r)return t;throw new Error("unknown padding")}},function(t,i,c){"use strict";!function(n,o){function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=c(1),s=c(16),a=e.Buffer,r=e.kMaxLength,h=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(u{r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===i[t]&&(i[t]={}),i[t][r[1]]=e):i[t]=e};case"bracket":return(t,e,i)=>{r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=[e]:i[t]=e};case"comma":case"separator":return(t,e,i)=>{var r="string"==typeof e&&e.includes(o.arrayFormatSeparator),n="string"==typeof e&&!r&&f(e,o).includes(o.arrayFormatSeparator);e=n?f(e,o):e;e=r||n?e.split(o.arrayFormatSeparator).map(t=>f(t,o)):null===e?e:f(e,o);i[t]=e};default:return(t,e,i)=>{void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(i),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const o of t.split("&"))if(""!==o){let[t,e]=a(i.decode?o.replace(/\+/g," "):o,"=");e=void 0===e?null:["comma","separator"].includes(i.arrayFormat)?e:f(e,i),r(f(t,i),e,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=d(r[t],i);else n[t]=d(r,i)}return!1===i.sort?n:(!0===i.sort?Object.keys(n).sort():Object.keys(n).sort(i.sort)).reduce((t,e)=>{var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(i):t[e]=i,t},Object.create(null))}s.extract=n,s.parse=c,s.stringify=(i,r)=>{if(!i)return"";h((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>r.skipNull&&null==i[t]||r.skipEmptyString&&""===i[t],n=function(n){switch(n.arrayFormat){case"index":return r=>(t,e)=>{const i=t.length;return void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(r,n),"[",i,"]"].join("")]:[...t,[u(r,n),"[",u(i,n),"]=",u(e,n)].join("")]};case"bracket":return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(i,n),"[]"].join("")]:[...t,[u(i,n),"[]=",u(e,n)].join("")];case"comma":case"separator":return i=>(t,e)=>null==e||0===e.length?t:0===t.length?[[u(i,n),"=",u(e,n)].join("")]:[[t,u(e,n)].join(n.arrayFormatSeparator)];default:return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,u(i,n)]:[...t,[u(i,n),"=",u(e,n)].join("")]}}(r),e={};for(const r of Object.keys(i))t(r)||(e[r]=i[r]);const o=Object.keys(e);return!1!==r.sort&&o.sort(r.sort),o.map(t=>{const e=i[t];return void 0===e?"":null===e?u(t,r):Array.isArray(e)?e.reduce(n(t),[]).join("&"):u(t,r)+"="+u(e,r)}).filter(t=>0{e=Object.assign({decode:!0},e);const[i,r]=a(t,"#");return Object.assign({url:i.split("?")[0]||"",query:c(n(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,e)}:{})},s.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);var i=l(t.url).split("?")[0]||"",r=s.extract(t.url),r=s.parse(r,{sort:!1}),r=Object.assign(r,t.query);let n=s.stringify(r,e);n=n&&"?"+n;let o=function(t){let e="";var i=t.indexOf("#");return-1!==i&&(e=t.slice(i)),e}(t.url);return t.fragmentIdentifier&&(o="#"+u(t.fragmentIdentifier,e)),`${i}${n}${o}`},s.pick=(t,e,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);var{url:r,query:n,fragmentIdentifier:t}=s.parseUrl(t,i);return s.stringifyUrl({url:r,query:o(n,e),fragmentIdentifier:t},i)},s.exclude=(t,i,e)=>{var r=Array.isArray(i)?t=>!i.includes(t):(t,e)=>!i(t,e);return s.pick(t,r,e)}},function(t,e,i){"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())},function(t,e,i){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function h(e){try{return decodeURIComponent(e)}catch(t){for(var i=e.match(n),r=1;r{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var i=t.indexOf(e);return-1===i?[t]:[t.slice(0,i),t.slice(i+e.length)]}},function(t,e,i){"use strict";t.exports=function(t,e){for(var i={},r=Object.keys(t),n=Array.isArray(e),o=0;o>>24)|4278255360&(i[a]<<24|i[a]>>>8);i[t>>>5]|=128<>>9<<4)]=t;for(var h=b._ff,u=b._gg,f=b._hh,l=b._ii,a=0;a>>0,n=n+c>>>0,o=o+p>>>0,s=s+m>>>0}return g.endian([r,n,o,s])})._ff=function(t,e,i,r,n,o,s){s=t+(e&i|~e&r)+(n>>>0)+s;return(s<>>32-o)+e},b._gg=function(t,e,i,r,n,o,s){s=t+(e&r|i&~r)+(n>>>0)+s;return(s<>>32-o)+e},b._hh=function(t,e,i,r,n,o,s){s=t+(e^i^r)+(n>>>0)+s;return(s<>>32-o)+e},b._ii=function(t,e,i,r,n,o,s){s=t+(i^(e|~r))+(n>>>0)+s;return(s<>>32-o)+e},b._blocksize=16,b._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=g.wordsToBytes(b(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):g.bytesToHex(t)}},function(t,e){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e>>5]|=t[i]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i>>6*(3-n)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],i=0,r=0;i>>6-2*r);return e}};t.exports=i},function(t,e){function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(i(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&i(e.slice(0,0))||!!t._isBuffer);var e}},function(e,i,r){var n;!function(){"use strict";var c={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(t){return function(t,e){var i,r,n,o,s,a,h,u,f=1,l=t.length,d="";for(r=0;r>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}c.json.test(o.type)?d+=i:(!c.number.test(o.type)||h&&!o.sign?u="":(u=h?"+":"-",i=i.toString().replace(c.sign,"")),s=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",a=o.width-(u+i).length,a=o.width&&0{t in h.$onOnceListeners||(h.$onOnceListeners[t]=[]),h.$onOnceListeners[t].includes(e)||(h.$onOnceListeners[t].push(e),h.$on(t,i))};var o=i(58),u=i.n(o);i(59);const f=window.api.dialog,l=window.api.base;a.a.config.productionTip=!1,a.a.use(e.a,{size:"mini",zIndex:3e3}),a.a.use(function(t,e){var i,r,n;t.prototype.$timeago||(i={locale:e.locale},t.prototype.$timeago=t.observable?t.observable(i):new t({data:i}),n=(r=void 0===(r=e)?{}:r).locales||{},e={name:r.name||"Timeago",props:{datetime:{required:!0},title:{type:[String,Boolean]},locale:{type:String},autoUpdate:{type:[Number,Boolean]},converter:{type:Function},converterOptions:{type:Object}},data:function(){return{timeago:this.getTimeago()}},computed:{localeName:function(){return this.locale||this.$timeago.locale}},mounted:function(){this.startUpdater()},beforeDestroy:function(){this.stopUpdater()},render:function(t){return t("time",{attrs:{datetime:new Date(this.datetime).toISOString(),title:"string"==typeof this.title?this.title:!1===this.title?null:this.timeago}},[this.timeago])},methods:{getTimeago:function(t){return(this.converter||r.converter||function(t,e,i){var r=i.includeSeconds,i=i.addSuffix;return void 0===i&&(i=!0),s()(t,{locale:e,includeSeconds:r,addSuffix:i})})(t||this.datetime,n[this.locale||this.$timeago.locale],this.converterOptions||{})},convert:function(t){this.timeago=this.getTimeago(t)},startUpdater:function(){var t,e=this;this.autoUpdate&&(t=!0===this.autoUpdate?60:this.autoUpdate,this.updater=setInterval(function(){e.convert()},1e3*t))},stopUpdater:function(){this.updater&&(clearInterval(this.updater),this.updater=null)}},watch:{autoUpdate:function(t){this.stopUpdater(),t&&this.startUpdater()},datetime:function(){this.convert()},localeName:function(){this.convert()},converter:function(){this.convert()},converterOptions:{handler:function(){this.convert()},deep:!0}}},t.component(e.name,e))},{name:"TimeAgo",locale:"zh-CN",locales:{"zh-CN":i(248)}}),a.a.use(r.a),a.a.prototype.$onCopySuccess=()=>{f.tipSuccess(window.lang&&window.lang["Copy Success"]?window.lang["Copy Success"]:"Copy Success")},a.a.prototype.$onCopyError=()=>{f.tipError(window.lang&&window.lang["Copy Fail"]?window.lang["Copy Fail"]:"Copy Fail")},a.a.prototype.$highlight=(t,e)=>{if(t=n.b.specialchars(t),!e)return t;e=new RegExp(e,"ig");return t.toString().replace(e,function(t,e,i){return''+t+""})},a.a.prototype.$hashRouter={init(t){u()(t)},to(t){u()(t)}};r={post(t,e,i,r){i=i||l.defaultFormCallback,r=r||l.defaultFormCallback,l.post(t,e,function(t){l.defaultFormCallback(t,{success:function(t){!0===i(t)&&l.defaultFormCallback(t)},error:function(t){!0!==r(t)&&l.defaultFormCallback(t)}})})},postRaw(t,e,i){l.post(t,e,function(t){i&&i(t)})}};a.a.prototype.$api=r,a.a.prototype.$url={buildParam(e){if(e=e||null){let t=[];for(var i in e)t.push(n.d.urlencode(i)+"="+n.d.urldecode(e[i]));e="?"+t.join("&")}return e||""},current(){var t=window.location;return`${t.pathname}${t.search}${t.hash}`},admin(t,e){return`${window.__msAdminRoot}${t}${this.buildParam(e)}`},web(t,e){return`${window.__msRoot}${t}${this.buildParam(e)}`},api(t,e){return`${window.__msRoot}api/${t}${this.buildParam(e)}`},cdn:t=>(t&&t.startsWith("/")&&(t=t.replace(/^[ \/]+/g,"")),`${window.__msCDN}${t}`)},a.a.prototype.$r={to(t){window.location.href=t},replace(t){window.location.replace=t}},a.a.prototype.$dialog=f,a.a.prototype.L=function(){let t=arguments[0],e=Array.from(arguments);return e.splice(0,1),window.lang&&window.lang[t]?e.length?n.c.sprintf(t,...e):window.lang[t]:e.length?n.c.sprintf(t,...e):t},a.a,h,function(t,e,i,r,n){if(r=r||{},!document.querySelector(t))return;Array.isArray(i)||(i=[i]);let o={};i.forEach(t=>{o[t.name]=t});let s=null;r&&"Bootstrap"in r&&(s=r.Bootstrap);e=new a.a({el:t,...r,data:()=>({loading:!0}),created(){s&&s.created(this)},mounted(){this.loading=!1,h.$emit("EventAppMounted"),s&&s.mounted(this)},components:o,template:e});n&&n(e)}("#app","",i(251).default)}]); \ No newline at end of file +!function(i){var r={};function n(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=i,n.c=r,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=window.__msCDN+"vendor/ModuleStore/",n(n.s=252)}([function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){var i;e&&(t.super_=e,(i=function(){}).prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t)}},function(t,e,i){var r=i(4),n=r.Buffer;function o(t,e){for(var i in t)e[i]=t[i]}function s(t,e,i){return n(t,e,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=s),o(n,s),s.from=function(t,e,i){if("number"==typeof t)throw new TypeError("Argument must not be a number");return n(t,e,i)},s.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError("Argument must be a number");t=n(t);return void 0!==e?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e){var i,r,t=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===n||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:n}catch(t){i=n}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var a,h=[],u=!1,f=-1;function l(){u&&a&&(u=!1,a.length?h=a.concat(h):f=-1,h.length&&d())}function d(){if(!u){var t=s(l);u=!0;for(var e=h.length;e;){for(a=h,h=[];++f=i())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return 0|t}function c(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var i=(t="string"!=typeof t?""+t: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 A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return R(t).length;default:if(r)return A(t).length;e=(""+e).toLowerCase(),r=!0}}function e(t,e,i){var r,n,o,s=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((i=void 0===i||i>this.length?this.length:i)<=0)return"";if((i>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,i){var r=t.length;(!i||i<0||r=t.length){if(n)return-1;i=t.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:b(t,e,i,r,n);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(n?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,i):b(t,[e],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(t,e,i,r,n){var o=1,s=t.length,a=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s/=o=2,a/=2,i/=2}function h(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(n)for(var u=-1,f=i;f>>10&1023|55296),f=56320|1023&f),r.push(f),n+=l}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var i="",r=0;rt.length)throw new RangeError("Index out of range")}function M(t,e,i,r){e<0&&(e=65535+e+1);for(var n=0,o=Math.min(t.length-i,2);n>>8*(r?n:1-n)}function _(t,e,i,r){e<0&&(e=4294967295+e+1);for(var n=0,o=Math.min(t.length-i,4);n>>8*(r?n:3-n)&255}function S(t,e,i,r){if(i+r>t.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function k(t,e,i,r,n){return n||S(t,0,i,4),o.write(t,e,i,r,23,4),i+4}function E(t,e,i,r,n){return n||S(t,0,i,8),o.write(t,e,i,r,52,8),i+8}I.Buffer=l,I.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},I.INSPECT_MAX_BYTES=50,l.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}}(),I.kMaxLength=i(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,i){return r(null,t,e,i)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,i){return r=null,e=e,i=i,h(t=t),!(t<=0)&&void 0!==e?"string"==typeof i?n(r,t).fill(e,i):n(r,t).fill(e):n(r,t);var r},l.allocUnsafe=function(t){return u(null,t)},l.allocUnsafeSlow=function(t){return u(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var i=t.length,r=e.length,n=0,o=Math.min(i,r);ne&&(t+=" ... ")),""},l.prototype.compare=function(t,e,i,r,n){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),(e=void 0===e?0:e)<0||i>t.length||r<0||n>this.length)throw new RangeError("out of range index");if(n<=r&&i<=e)return 0;if(n<=r)return-1;if(i<=e)return 1;if(this===t)return 0;for(var o=(n>>>=0)-(r>>>=0),s=(i>>>=0)-(e>>>=0),a=Math.min(o,s),h=this.slice(r,n),u=t.slice(e,i),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,s,a,h,u,f,l=!1;;)switch(r){case"hex":return function(t,e,i,r){i=Number(i)||0;var n=t.length-i;if((!r||(r=Number(r))>n)&&(r=n),(n=e.length)%2!=0)throw new TypeError("Invalid hex string");n/2>8,n.push(i%256),n.push(r);return n}(t,(a=this).length-o),a,o,s);default:if(l)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),l=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):i=(n*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,i){t|=0,e|=0,i||y(t,e,this.length);for(var r=e,n=1,o=this[t+--r];0=(n*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||y(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||y(t,2,this.length);t=this[t]|this[t+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(t,e){e||y(t,2,this.length);t=this[t+1]|this[t]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||y(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||y(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||y(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||y(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,i,r){t=+t,e|=0,i|=0,r||w(this,t,e,i,Math.pow(2,8*i)-1,0);var n=1,o=0;for(this[e]=255&t;++o>>8):M(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):_(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=0,o=1,s=0;for(this[e]=255&t;++n>0)-s&255;return e+i},l.prototype.writeIntBE=function(t,e,i,r){t=+t,e|=0,r||w(this,t,e,i,(r=Math.pow(2,8*i-1))-1,-r);var n=i-1,o=1,s=0;for(this[e+n]=255&t;0<=--n&&(o*=256);)t<0&&0===s&&0!==this[e+n+1]&&(s=1),this[e+n]=(t/o>>0)-s&255;return e+i},l.prototype.writeInt8=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):M(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):M(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):_(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,i){return t=+t,e|=0,i||w(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):_(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,i){return k(this,t,e,!0,i)},l.prototype.writeFloatBE=function(t,e,i){return k(this,t,e,!1,i)},l.prototype.writeDoubleLE=function(t,e,i){return E(this,t,e,!0,i)},l.prototype.writeDoubleBE=function(t,e,i){return E(this,t,e,!1,i)},l.prototype.copy=function(t,e,i,r){if(i=i||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var n,o=(r=t.length-e>>=0,i=void 0===i?this.length:i>>>0,"number"==typeof(t=t||0))for(a=e;a>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;o.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return o}function R(t){return a.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(x,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function T(t,e,i,r){for(var n=0;n=e.length||n>=t.length);++n)e[n+i]=t[n];return n}}.call(this,C(5))},function(t,e){var i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){function i(t,e){if(!t)throw new Error(e||"Assertion failed")}(t.exports=i).equal=function(t,e,i){if(t!=e)throw new Error(i||"Assertion failed: "+t+" != "+e)}},function(t,e,i){"use strict";var r=e,n=i(9),e=i(6),i=i(98);r.assert=e,r.toArray=i.toArray,r.zero2=i.zero2,r.toHex=i.toHex,r.encode=i.encode,r.getNAF=function(t,e,i){var r=new Array(Math.max(t.bitLength(),i)+1);r.fill(0);for(var n=1<>1)-1>1)-h:h):a=0,r[s]=a,o.iushrn(1)}return r},r.getJSF=function(t,e){var i=[[],[]];t=t.clone(),e=e.clone();for(var r,n=0,o=0;0>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function r(t){return 1===t.length?"0"+t:t}function s(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}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var i,r,n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),s=0;s>6|192,n[o++]=63&a|128):(r=s,55296!=(64512&(i=t).charCodeAt(r))||r<0||r+1>=i.length||56320!=(64512&i.charCodeAt(r+1))?n[o++]=a>>12|224:(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++s)),n[o++]=a>>18|240,n[o++]=a>>12&63|128),n[o++]=a>>6&63|128,n[o++]=63&a|128)}else for(s=0;s>>0}return n},e.split32=function(t,e){for(var i=new Array(4*t.length),r=0,n=0;r>>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<>>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=t[e],o=r+t[e+1]>>>0;t[e]=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,i,r){return(e+r>>>0>>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,a){var h,u=0;return u+=(h=e+r>>>0)>>0)>>0>>0},e.sum64_4_lo=function(t,e,i,r,n,o,s,a){return e+r+o+a>>>0},e.sum64_5_hi=function(t,e,i,r,n,o,s,a,h,u){var f,l=0;return l+=(f=e+r>>>0)>>0)>>0)>>0>>0},e.sum64_5_lo=function(t,e,i,r,n,o,s,a,h,u){return e+r+o+a+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,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(186).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var r=i(1).Buffer,n=i(138).Transform,o=i(13).StringDecoder;function s(t){n.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}i(0)(s,n),s.prototype.update=function(t,e,i){"string"==typeof t&&(t=r.from(t,e));t=this._update(t);return this.hashMode?this:t=i?this._toString(t,i):t},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,i){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{i(r)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return e=t?this._toString(e,t,!0):e},s.prototype._toString=function(t,e,i){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");t=this._decoder.write(t);return i&&(t+=this._decoder.end()),t},t.exports=s},function(t,e,i){"use strict";i.d(e,"b",function(){return o}),i.d(e,"c",function(){return s}),i.d(e,"d",function(){return h}),i.d(e,"a",function(){return u}),i(119),i(120);const r=i(225),n=(i(113),i(230),i(233).sprintf),o={specialchars:function(t){var e=[];if(!t)return"";if(0==t.length)return"";for(var i=0;i":e.push(">");break;case"&":e.push("&");break;case" ":e.push(" ");break;case'"':e.push(""");break;default:e.push(t.substr(i,1))}return e.join("")}},s={randomString(e){e=e||32;var i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",r=i.length,n="";for(let t=0;t(e="^"+e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*")+"$",new RegExp(e).test(t)),keywordsMatchWildcard:(t,e)=>(e=e.split("*").map(t=>t.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")).join(".*"),new RegExp(e).test(t)),sprintf(){var t=Array.from(arguments);return n.call(null,...t)}};function a(t){return String.fromCharCode(t)}const h={domainUrl(t){t=t||"";var e=window.location.protocol+"//"+window.location.host;return t?e+"/"+t:e},urlencode(r){let n="",o="";for(let i=0;i?[]^`{|}~%".indexOf(t)?n+="%"+e.toString(16):n+=t}return n},urldecode(e){let i="";e+="";for(let t=0;th.parseQuery(t),getQuery(t,e=null,i){i=h.parseQuery(i);return t in i?i[t]:e},parseQuery:t=>(t=t||window.location.search,r.parse(t)),buildQuery:t=>r.stringify(t)},u={assign(e,i){e&&i&&Object.keys(e).map(t=>{e[t]=i[t]})},update(e,i){e&&i&&Object.keys(i).map(t=>{e[t]=i[t]})},equal:(t,e)=>JSON.stringify(t)===JSON.stringify(e),notEqual:(t,e)=>!u.equal(t,e),clone:t=>JSON.parse(JSON.stringify(t))};i(234)},function(t,e,i){"use strict";var r="object"==typeof Reflect?Reflect:null,h=r&&"function"==typeof r.apply?r.apply:function(t,e,i){return Function.prototype.apply.call(t,e,i)},n=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(n,o){return new Promise(function(t,e){function i(){void 0!==r&&n.removeListener("error",r),t([].slice.call(arguments))}var r;"error"!==o&&(r=function(t){n.removeListener(o,i),e(t)},n.once("error",r)),n.once(o,i)})},(s.EventEmitter=s).prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function f(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function l(t,e,i,r){var n,o;return u(i),void 0===(n=t._events)?(n=t._events=Object.create(null),t._eventsCount=0):(void 0!==n.newListener&&(t.emit("newListener",e,i.listener||i),n=t._events),o=n[e]),void 0===o?(o=n[e]=i,++t._eventsCount):("function"==typeof o?o=n[e]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),0<(i=f(t))&&o.length>i&&!o.warned&&(o.warned=!0,(i=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",i.emitter=t,i.type=e,i.count=o.length,console&&console.warn&&console.warn(i))),t}function d(t,e,i){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:i},e=function(){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)}.bind(t);return e.listener=i,t.wrapFn=e}function c(t,e,i){t=t._events;if(void 0===t)return[];e=t[e];return void 0===e?[]:"function"==typeof e?i?[e.listener||e]:[e]:i?function(t){for(var e=new Array(t.length),i=0;i>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e,i,r=this.lastTotal-this.lastNeed,e=(e=this,128!=(192&(i=t)[0])?(e.lastNeed=0,"�"):1o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(62),r=l(66);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._finalSize&&(this._update(this._block),this._block.fill(0));e=8*this._len;e<=4294967295?this._block.writeUInt32BE(e,this._blockSize-4):(this._block.writeUInt32BE((e-(i=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)),this._update(this._block);var i=this._hash();return t?i.toString(t):i},r.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=r},function(t,e,i){"use strict";var a={};function r(t,r,e){e=e||Error;var n,i,o,o=(o=n=e,(i=s).prototype=Object.create(o.prototype),(i.prototype.constructor=i).__proto__=o,s);function s(t,e,i){return n.call(this,"string"==typeof r?r:r(t,e,i))||this}o.prototype.name=e.name,o.prototype.code=t,a[t]=o}function h(t,e){if(Array.isArray(t)){var i=t.length;return t=t.map(function(t){return String(t)}),2o.length)&&(a=o.length),(o.substring(a-s.length,a)===s?"The ".concat(t," ").concat(r," ").concat(h(e,"type")):(n=(n="number"!=typeof n?0:n)+".".length>(s=t).length||-1===s.indexOf(".",n)?"argument":"property",'The "'.concat(t,'" ').concat(n," ").concat(r," ").concat(h(e,"type"))))+". 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=a},function(f,t,l){"use strict";!function(t){var e=Object.keys||function(t){var e,i=[];for(e in t)i.push(e);return i};f.exports=a;var i=l(92),r=l(96);l(0)(a,i);for(var n=e(r.prototype),o=0;o=this._delta8){e=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var i=0;i>>24&255,r[n++]=t>>>16&255,r[n++]=t>>>8&255,r[n++]=255&t}else for(r[n++]=255&t,r[n++]=t>>>8&255,r[n++]=t>>>16&255,r[n++]=t>>>24&255,r[n++]=0,r[n++]=0,r[n++]=0,r[n++]=0,o=8;o>>24]^f[p>>>16&255]^l[m>>>8&255]^d[255&b]^e[g++],s=u[p>>>24]^f[m>>>16&255]^l[b>>>8&255]^d[255&c]^e[g++],a=u[m>>>24]^f[b>>>16&255]^l[c>>>8&255]^d[255&p]^e[g++],h=u[b>>>24]^f[c>>>16&255]^l[p>>>8&255]^d[255&m]^e[g++],c=o,p=s,m=a,b=h;return o=(r[c>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&b])^e[g++],s=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[b>>>8&255]<<8|r[255&c])^e[g++],a=(r[m>>>24]<<24|r[b>>>16&255]<<16|r[c>>>8&255]<<8|r[255&p])^e[g++],h=(r[b>>>24]<<24|r[c>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,s>>>=0,a>>>=0,h>>>=0]}var l=[0,1,2,4,8,16,32,64,128,27,54],d=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var i=[],r=[],n=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,h=0;h<256;++h){var u=a^a<<1^a<<2^a<<3^a<<4;i[s]=u=u>>>8^255&u^99;var f=t[r[u]=s],l=t[f],d=t[l],c=257*t[u]^16843008*u;n[0][s]=c<<24|c>>>8,n[1][s]=c<<16|c>>>16,n[2][s]=c<<8|c>>>24,n[3][s]=c,o[0][u]=(c=16843009*d^65537*l^257*f^16843008*s)<<24|c>>>8,o[1][u]=c<<16|c>>>16,o[2][u]=c<<8|c>>>24,o[3][u]=c,0===s?s=a=1:(s=f^t[t[t[d^f]]],a^=t[t[a]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:o}}();function a(t){this._key=r(t),this._reset()}a.blockSize=16,a.keySize=32,a.prototype.blockSize=a.blockSize,a.prototype.keySize=a.keySize,a.prototype._reset=function(){for(var t=this._key,e=t.length,i=e+6,r=4*(i+1),n=[],o=0;o>>24)>>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s],s^=l[o/e|0]<<24):6>>24]<<24|d.SBOX[s>>>16&255]<<16|d.SBOX[s>>>8&255]<<8|d.SBOX[255&s]),n[o]=n[o-e]^s}for(var a=[],h=0;h>>24]]^d.INV_SUB_MIX[1][d.SBOX[f>>>16&255]]^d.INV_SUB_MIX[2][d.SBOX[f>>>8&255]]^d.INV_SUB_MIX[3][d.SBOX[255&f]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=a},a.prototype.encryptBlockRaw=function(t){return s(t=r(t),this._keySchedule,d.SUB_MIX,d.SBOX,this._nRounds)},a.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},a.prototype.decryptBlock=function(t){var e=(t=r(t))[1];t[1]=t[3],t[3]=e;e=s(t,this._invKeySchedule,d.INV_SUB_MIX,d.INV_SBOX,this._nRounds),t=n.allocUnsafe(16);return t.writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},a.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=a},function(t,e,i){var l=i(1).Buffer,d=i(35);t.exports=function(t,e,i,r){if(l.isBuffer(t)||(t=l.from(t,"binary")),e&&8!==(e=!l.isBuffer(e)?l.from(e,"binary"):e).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var n=i/8,o=l.alloc(n),s=l.alloc(r||0),a=l.alloc(0);0>1]):s.mixedAdd(n[-u-1>>1].neg()):0>1]):s.add(n[-u-1>>1].neg())}return"affine"===t.type?s.toP():s},o.prototype._wnafMulAdd=function(t,e,i,r,n){for(var o,s=this._wnafT1,a=this._wnafT2,h=this._wnafT3,u=0,f=0;f>1]:k<0&&(o=a[S][-k-1>>1].neg()),y="affine"===o.type?y.mixedAdd(o):y.add(o))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},s.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var i=[this],r=this,n=0;n({loading:!0,search:{tab:"store",priceType:"all",isRecommend:!1,categoryId:0,type:"",keywords:""},commandDialogMsgs:[],commandDialogRunStart:0,commandDialogRunElapse:0,commandDialogShow:!1,commandDialogFinish:!1,commandDialogTitle:"",memberUserShow:!1,memberUserLoading:!1,memberLoginCaptchaImage:null,memberLoginInfo:{username:"",password:"",captcha:"",agree:!1},storeApiToken:i.a.get("storeApiToken",""),memberUser:{id:0,username:"",avatar:""},categories:[],types:[],modules:[],storeConfig:{disable:!1},installVersionDialogShow:!1,installVersionReleases:[],installVersionModule:null}),watch:{memberUser:{handler(t,e){this.doLoad()},deep:!0}},computed:{filterModules(){var t=this.modules.filter(t=>{switch(this.search.tab){case"store":if(t._isLocal)return!1;break;case"installed":if(!t._isInstalled)return!1;break;case"enabled":if(!t._isEnabled)return!1;break;case"disabled":if(!t._isInstalled||t._isEnabled)return!1;break;case"local":if(!t._isLocal)return!1;break;case"upgradeable":if(!t._isInstalled||t._isLocal||t.latestVersion===t._localVersion)return!1}if(this.search.isRecommend&&!t.isRecommend)return!1;if(this.search.type&&!t.types.includes(this.search.type))return!1;switch(this.search.priceType){case"free":if(t.isFee)return!1;break;case"fee":if(!t.isFee)return!1}return!(this.search.categoryId&&t.categoryId!==this.search.categoryId||this.search.keywords&&!t.title.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.name.toLowerCase().includes(this.search.keywords.toLowerCase())&&!t.description.toLowerCase().includes(this.search.keywords.toLowerCase()))});return console.log("xxx",t,this.modules),t}},mounted(){this.doLoad(),this.doLoadStore(),setInterval(()=>{this.commandDialogRunElapse=parseInt(((new Date).getTime()-this.commandDialogRunStart)/1e3)},1e3)},methods:{versionCompare(t,e){var i=t.split("."),r=e.split(".");for(let t=0,e=Math.max(i.length,r.length);tparseInt(r[t]))return 1;if(r[t]&&!i[t]&&0{this.$dialog.tipError(t.msg)};r=r||n,o.ajax({url:`${window.__data.apiBase}/api/${t}`,dataType:"jsonp",timeout:1e4,data:Object.assign(e,{api_token:this.storeApiToken,modstartParam:JSON.stringify(window.__data.modstartParam)}),success:t=>{t.code?(1002===t.code&&this.doMemberLoginCaptchaRefresh(),!0!==r(t)&&n(t)):i(t)},error:t=>{!0!==r({code:-1,msg:"请求出现错误"})&&n({code:-1,msg:"请求出现错误"})},jsonp:"callback"})},doMemberUserLogout(){this.$dialog.confirm("确认退出?",()=>{this.storeApiToken="",i.a.set("storeApiToken",""),this.memberUserShow=!1,this.doLoadStore()})},doSubmitCheck(t){13===t.keyCode&&this.doMemberLoginSubmit()},doMemberLoginSubmit(){this.memberLoginInfo.agree?(this.$dialog.loadingOn(),this.doStoreRequest("store/login",this.memberLoginInfo,t=>{this.$dialog.loadingOff(),this.$dialog.tipSuccess("登录成功"),this.doLoadStoreMember(),this.memberLoginInfo.username="",this.memberLoginInfo.password="",this.memberLoginInfo.captcha="",this.memberUserShow=!1},t=>{this.$dialog.loadingOff()})):this.$dialog.tipError("请先同意使用协议")},doMemberLoginCaptchaRefresh(e){this.doStoreRequest("store/login_captcha",{},t=>{this.memberLoginCaptchaImage=t.data.image,e&&e()})},doMemberLoginShow(){0{this.$dialog.loadingOff(),this.memberUserShow=!0}))},doLoadStoreMember(){this.memberUserLoading=!0,this.doStoreRequest("store/member",{},t=>{this.memberUserLoading=!1,e.a.update(this.memberUser,t.data)},t=>{this.memberUserLoading=!1})},doLoadStore(){this.storeApiToken?this.doLoadStoreMember():this.doStoreRequest("store/config",{},t=>{this.storeApiToken=t.data.apiToken,i.a.set("storeApiToken",t.data.apiToken),this.doLoadStoreMember()})},doLoad(){this.$api.post(this.$url.admin("module_store/all"),{memberUserId:this.memberUser.id,apiToken:this.storeApiToken},t=>{this.loading=!1,this.categories=t.data.categories,this.types=t.data.types,this.modules=t.data.modules,this.storeConfig=t.data.storeConfig})},doCommand(t,e,i,r){r=r||null,null===(i=i||null)&&(this.commandDialogMsgs=[],this.commandDialogShow=!0,this.commandDialogFinish=!1),r&&(this.commandDialogTitle=r,this.commandDialogMsgs.push(' '+r)),this.commandDialogRunStart=(new Date).getTime(),this.commandDialogRunElapse=0,this.$api.post(this.$url.admin("module_store/"+t),{token:this.storeApiToken,step:i,data:JSON.stringify(e)},t=>(Array.isArray(t.data.msg)?this.commandDialogMsgs=this.commandDialogMsgs.concat(t.data.msg):this.commandDialogMsgs.push(t.data.msg),t.data.finish?(this.commandDialogFinish=!0,void this.doLoad()):void setTimeout(()=>{this.doCommand(t.data.command,t.data.data,t.data.step)},1e3)),t=>(this.commandDialogMsgs.push(' '+t.msg+""),this.commandDialogFinish=!0))},doInstallVersion(e){this.$dialog.loadingOn(),this.doStoreRequest("store/module_releases",{module:e.name},t=>{this.$dialog.loadingOff(),this.installVersionModule=e,this.installVersionReleases=t.data.releases,this.installVersionDialogShow=!0},t=>{this.$dialog.loadingOff()})},doInstall(t){this.doCommand("install",{module:t.name,version:t.latestVersion,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${t.latestVersion}`)},doInstallVersionSubmit(t,e){this.doCommand("install",{module:t.name,version:e,isLocal:t._isLocal},null,`安装模块 ${t.title}(${t.name}) V${e}`)},doDisable(t){this.doCommand("disable",{module:t.name,version:t._localVersion},null,`禁用模块 ${t.title}(${t.name})`)},doEnable(t){this.doCommand("enable",{module:t.name,version:t._localVersion},null,`启用模块 ${t.title}(${t.name})`)},doUninstall(t){this.$dialog.confirm("确认卸载?",()=>{this.doCommand("uninstall",{module:t.name,version:t._localVersion,isLocal:t._isLocal},null,`卸载模块 ${t.title}(${t.name})`)})},doUpgrade(t){this.$dialog.confirm("确认升级?",()=>{this.doCommand("upgrade",{module:t.name,version:t.latestVersion},null,`升级模块 ${t.title}(${t.name}) V${t.latestVersion}`)})},doConfig(t){this.$dialog.dialog(this.$url.admin("module_store/config/"+t.name))}}}}.call(this,n(113))},function(t,e,i){"use strict";i.d(e,"a",function(){return r});const r={set:function(t,e){window.localStorage.setItem(t,JSON.stringify(e))},get:function(t,e){var i=window.localStorage.getItem(t);try{return JSON.parse(i)}catch(t){}return e},getArray:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)?i:e}catch(t){}return e},getObject:function(t,e){e=e||[];var i=window.localStorage.getItem(t);try{return i=JSON.parse(i),Array.isArray(i)||"object"!=typeof i?e:i}catch(t){}return e}}},function(t,e,i){"use strict";var r=i(0),n=i(61),o=i(1).Buffer,s=new Array(16);function a(){n.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function h(t,e){return t<>>32-e}function u(t,e,i,r,n,o,s){return h(t+(e&i|~e&r)+n+o|0,s)+e|0}function f(t,e,i,r,n,o,s){return h(t+(e&r|i&~r)+n+o|0,s)+e|0}function l(t,e,i,r,n,o,s){return h(t+(e^i^r)+n+o|0,s)+e|0}function d(t,e,i,r,n,o,s){return h(t+(i^(e|~r))+n+o|0,s)+e|0}r(a,n),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var i=u(i=this._a,o=this._b,n=this._c,r=this._d,t[0],3614090360,7),r=u(r,i,o,n,t[1],3905402710,12),n=u(n,r,i,o,t[2],606105819,17),o=u(o,n,r,i,t[3],3250441966,22);i=u(i,o,n,r,t[4],4118548399,7),r=u(r,i,o,n,t[5],1200080426,12),n=u(n,r,i,o,t[6],2821735955,17),o=u(o,n,r,i,t[7],4249261313,22),i=u(i,o,n,r,t[8],1770035416,7),r=u(r,i,o,n,t[9],2336552879,12),n=u(n,r,i,o,t[10],4294925233,17),o=u(o,n,r,i,t[11],2304563134,22),i=u(i,o,n,r,t[12],1804603682,7),r=u(r,i,o,n,t[13],4254626195,12),n=u(n,r,i,o,t[14],2792965006,17),i=f(i,o=u(o,n,r,i,t[15],1236535329,22),n,r,t[1],4129170786,5),r=f(r,i,o,n,t[6],3225465664,9),n=f(n,r,i,o,t[11],643717713,14),o=f(o,n,r,i,t[0],3921069994,20),i=f(i,o,n,r,t[5],3593408605,5),r=f(r,i,o,n,t[10],38016083,9),n=f(n,r,i,o,t[15],3634488961,14),o=f(o,n,r,i,t[4],3889429448,20),i=f(i,o,n,r,t[9],568446438,5),r=f(r,i,o,n,t[14],3275163606,9),n=f(n,r,i,o,t[3],4107603335,14),o=f(o,n,r,i,t[8],1163531501,20),i=f(i,o,n,r,t[13],2850285829,5),r=f(r,i,o,n,t[2],4243563512,9),n=f(n,r,i,o,t[7],1735328473,14),i=l(i,o=f(o,n,r,i,t[12],2368359562,20),n,r,t[5],4294588738,4),r=l(r,i,o,n,t[8],2272392833,11),n=l(n,r,i,o,t[11],1839030562,16),o=l(o,n,r,i,t[14],4259657740,23),i=l(i,o,n,r,t[1],2763975236,4),r=l(r,i,o,n,t[4],1272893353,11),n=l(n,r,i,o,t[7],4139469664,16),o=l(o,n,r,i,t[10],3200236656,23),i=l(i,o,n,r,t[13],681279174,4),r=l(r,i,o,n,t[0],3936430074,11),n=l(n,r,i,o,t[3],3572445317,16),o=l(o,n,r,i,t[6],76029189,23),i=l(i,o,n,r,t[9],3654602809,4),r=l(r,i,o,n,t[12],3873151461,11),n=l(n,r,i,o,t[15],530742520,16),i=d(i,o=l(o,n,r,i,t[2],3299628645,23),n,r,t[0],4096336452,6),r=d(r,i,o,n,t[7],1126891415,10),n=d(n,r,i,o,t[14],2878612391,15),o=d(o,n,r,i,t[5],4237533241,21),i=d(i,o,n,r,t[12],1700485571,6),r=d(r,i,o,n,t[3],2399980690,10),n=d(n,r,i,o,t[10],4293915773,15),o=d(o,n,r,i,t[1],2240044497,21),i=d(i,o,n,r,t[8],1873313359,6),r=d(r,i,o,n,t[15],4264355552,10),n=d(n,r,i,o,t[6],2734768916,15),o=d(o,n,r,i,t[13],1309151649,21),i=d(i,o,n,r,t[4],4149444226,6),r=d(r,i,o,n,t[11],3174756917,10),n=d(n,r,i,o,t[2],718787259,15),o=d(o,n,r,i,t[9],3951481745,21),this._a=this._a+i|0,this._b=this._b+o|0,this._c=this._c+n|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-e}function k(t,e,i,r,n,o,s,a){return S(t+(e^i^r)+o+s|0,a)+n|0}function E(t,e,i,r,n,o,s,a){return S(t+(e&i|~e&r)+o+s|0,a)+n|0}function x(t,e,i,r,n,o,s,a){return S(t+((e|~i)^r)+o+s|0,a)+n|0}function A(t,e,i,r,n,o,s,a){return S(t+(e&r|i&~r)+o+s|0,a)+n|0}function R(t,e,i,r,n,o,s,a){return S(t+(e^(i|~r))+o+s|0,a)+n|0}n(s,o),s.prototype._update=function(){for(var t=b,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var i=0|this._a,r=0|this._b,n=0|this._c,o=0|this._d,s=0|this._e,a=0|this._a,h=0|this._b,u=0|this._c,f=0|this._d,l=0|this._e,d=0;d<80;d+=1)var c,p=d<16?(c=k(i,r,n,o,s,t[g[d]],M[0],y[d]),R(a,h,u,f,l,t[v[d]],_[0],w[d])):d<32?(c=E(i,r,n,o,s,t[g[d]],M[1],y[d]),A(a,h,u,f,l,t[v[d]],_[1],w[d])):d<48?(c=x(i,r,n,o,s,t[g[d]],M[2],y[d]),x(a,h,u,f,l,t[v[d]],_[2],w[d])):d<64?(c=A(i,r,n,o,s,t[g[d]],M[3],y[d]),E(a,h,u,f,l,t[v[d]],_[3],w[d])):(c=R(i,r,n,o,s,t[g[d]],M[4],y[d]),k(a,h,u,f,l,t[v[d]],_[4],w[d])),i=s,s=o,o=S(n,10),n=r,r=c,a=l,l=f,f=S(u,10),u=h,h=p;var m=this._b+n+f|0;this._b=this._c+o+l|0,this._c=this._d+s+a|0,this._d=this._e+i+h|0,this._e=this._a+r+u|0,this._a=m},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this._strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this._strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function o(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i._strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modrn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>8&255),i>16&255),6===o?(i>24&255),o=r=0):(r=s>>>24,o+=2)}if(i>8&255),0<=i&&(t[i--]=s>>16&255),6===o?(0<=i&&(t[i--]=s>>24&255),o=r=0):(r=s>>>24,o+=2)}if(0<=i)for(t[i--]=r;0<=i;)t[i--]=0},Math.clz32?b.prototype._countBits=function(t){return 32-Math.clz32(t)}:b.prototype._countBits=function(t){var e=t,t=0;return 4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this._strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function h(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i._strip()}function u(t,e,i){return h(t,e,i)}Math.imul||(a=o),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?a:i<63?o:i<1024?h:u)(this,t,e)},b.prototype.mul=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},b.prototype.mulf=function(t){var e=new b(null);return e.words=new Array(this.length+t.length),u(this,t,e)},b.prototype.imul=function(t){return this.clone().mulTo(t,this)},b.prototype.imuln=function(t){var e=t<0;m("number"==typeof(t=e?-t:t)),m(t<67108864);for(var i=0,r=0;r>=26,i+=n/67108864|0,i+=o>>>26,this.words[r]=67108863&o}return 0!==i&&(this.words[r]=i,this.length++),e?this.ineg():this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>i%26&1;return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this._strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modrn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=(1<<26)%t,r=0,n=this.length-1;0<=n;n--)r=(i*r+(0|this.words[n]))%t;return e?-r:r},b.prototype.modn=function(t){return this.modrn(t)},b.prototype.idivn=function(t){var e=t<0;m((t=e?-t:t)<=67108863);for(var i=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*i;this.words[r]=n/t|0,i=n%t}return this._strip(),e?this.ineg():this},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(f[t])return f[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return f[t]=e},_.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},_.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},_.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(r(t,t.umod(this.m)._forceRed(this)),t)},_.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},_.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},_.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},_.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},_.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},_.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},_.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},_.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},_.prototype.isqr=function(t){return this.imul(t,t.clone())},_.prototype.sqr=function(t){return this.mul(t,t)},_.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},_.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},_.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new S(t)},e(S,_),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,E(15)(t))},function(t,e,i){"use strict";e.version=i(185).version,e.utils=i(7),e.rand=i(45),e.curve=i(99),e.curves=i(51),e.ec=i(197),e.eddsa=i(201)},function(t,e,i){"use strict";var r,n=e,e=i(52),o=i(99),s=i(7).assert;function a(t){"short"===t.type?this.curve=new o.short(t):"edwards"===t.type?this.curve=new o.edwards(t):this.curve=new o.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function h(e,i){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var t=new a(i);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t}),t}})}n.PresetCurve=a,h("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),h("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),h("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),h("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),h("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),h("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),h("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=i(196)}catch(t){r=void 0}h("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,i){e.utils=i(8),e.common=i(26),e.sha=i(190),e.ripemd=i(194),e.hmac=i(195),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(s,t,a){"use strict";!function(t){var e,i=a(4),r=i.Buffer,n={};for(e in i)i.hasOwnProperty(e)&&"SlowBuffer"!==e&&"Buffer"!==e&&(n[e]=i[e]);var o=n.Buffer={};for(e in r)r.hasOwnProperty(e)&&"allocUnsafe"!==e&&"allocUnsafeSlow"!==e&&(o[e]=r[e]);if(n.Buffer.prototype=r.prototype,o.from&&o.from!==Uint8Array.from||(o.from=function(t,e,i){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,i)}),o.alloc||(o.alloc=function(t,e,i){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||2*(1<<30)<=t)throw new RangeError('The value "'+t+'" is invalid for option "size"');t=r(t);return e&&0!==e.length?"string"==typeof i?t.fill(e,i):t.fill(e):t.fill(0),t}),!n.kStringMaxLength)try{n.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(t){}n.constants||(n.constants={MAX_LENGTH:n.kMaxLength},n.kStringMaxLength&&(n.constants.MAX_STRING_LENGTH=n.kStringMaxLength)),s.exports=n}.call(this,a(2))},function(t,e,i){"use strict";const a=i(55).Reporter,r=i(27).EncoderBuffer,h=i(27).DecoderBuffer,n=i(6),o=["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"],s=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function u(t,e,i){const r={};this._baseState=r,r.name=i,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=u;const f=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){const e=this._baseState,i={};f.forEach(function(t){i[t]=e[t]});const t=new this.constructor(i.parent);return t._baseState=i,t},u.prototype._wrap=function(){const i=this._baseState;s.forEach(function(e){this[e]=function(){const t=new this.constructor(this);return i.children.push(t),t[e].apply(t,arguments)}},this)},u.prototype._init=function(t){const e=this._baseState;n(null===e.parent),t.call(this),e.children=e.children.filter(function(t){return t._baseState.parent===this},this),n.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){const 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&&(n(null===e.children),e.children=i,i.forEach(function(t){t._baseState.parent=this},this)),0!==t.length&&(n(null===e.args),e.args=t,e.reverseArgs=t.map(function(i){if("object"!=typeof i||i.constructor!==Object)return i;const r={};return Object.keys(i).forEach(function(t){t==(0|t)&&(t|=0);var e=i[t];r[e]=t}),r}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(e){u.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}}),o.forEach(function(i){u.prototype[i]=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return n(null===t.tag),t.tag=i,this._useArgs(e),this}}),u.prototype.use=function(t){n(t);const e=this._baseState;return n(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){const e=this._baseState;return n(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){const e=this._baseState;return n(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){const e=this._baseState;return n(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(e){const t=this._baseState;return n(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map(function(t){return e[t]})),this},u.prototype.contains=function(t){const e=this._baseState;return n(null===e.use),e.contains=t,this},u.prototype._decode=function(e,i){const r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,i));let n,o=r.default,s=!0,t=null;if(null!==r.key&&(t=e.enterKey(r.key)),r.optional){let t=null;if(null!==r.explicit?t=r.explicit:null!==r.implicit?t=r.implicit:null!==r.tag&&(t=r.tag),null!==t||r.any){if(s=this._peekTag(e,t,r.any),e.isError(s))return s}else{const n=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i),s=!0}catch(e){s=!1}e.restore(n)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){const i=this._decodeTag(e,r.explicit);if(e.isError(i))return i;e=i}const n=e.offset;if(null===r.use&&null===r.choice){let t;r.any&&(t=e.save());const n=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(n))return n;r.any?o=e.raw(t):e=n}if(i&&i.track&&null!==r.tag&&i.track(e.path(),n,e.length,"tagged"),i&&i.track&&null!==r.tag&&i.track(e.path(),e.offset,e.length,"content"),r.any||(o=null===r.choice?this._decodeGeneric(r.tag,e,i):this._decodeChoice(e,i)),e.isError(o))return o;if(r.any||null!==r.choice||null===r.children||r.children.forEach(function(t){t._decode(e,i)}),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){const n=new h(o);o=this._getUse(r.contains,e._reporterState.obj)._decode(n,i)}}return r.obj&&s&&(o=e.leaveObject(n)),null===r.key||null===o&&!0!==s?null!==t&&e.exitKey(t):e.leaveKey(t,r.key,o),o},u.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)},u.prototype._getUse=function(t,e){const i=this._baseState;return i.useDecoder=this._use(t,e),n(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},u.prototype._decodeChoice=function(r,n){const o=this._baseState;let s=null,a=!1;return Object.keys(o.choice).some(function(t){const e=r.save(),i=o.choice[t];try{const o=i._decode(r,n);if(r.isError(o))return!1;s={type:t,value:o},a=!0}catch(t){return r.restore(e),!1}return!0},this),a?s:r.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new r(t,this.reporter)},u.prototype._encode=function(t,e,i){var r=this._baseState;if(null===r.default||r.default!==t){t=this._encodeValue(t,e,i);return void 0===t||this._skipDefault(t,e,i)?void 0:t}},u.prototype._encodeValue=function(i,r,t){const e=this._baseState;if(null===e.parent)return e.children[0]._encode(i,r||new a);let n=null;if(this.reporter=r,e.optional&&void 0===i){if(null===e.default)return;i=e.default}let o=null,s=!1;if(e.any)n=this._createEncoderBuffer(i);else if(e.choice)n=this._encodeChoice(i,r);else if(e.contains)o=this._getUse(e.contains,t)._encode(i,r),s=!0;else if(e.children)o=e.children.map(function(t){if("null_"===t._baseState.tag)return t._encode(null,r,i);if(null===t._baseState.key)return r.error("Child should have a key");var e=r.enterKey(t._baseState.key);if("object"!=typeof i)return r.error("Child expected, but input is not object");t=t._encode(i[t._baseState.key],r,i);return r.leaveKey(e),t},this).filter(function(t){return t}),o=this._createEncoderBuffer(o);else if("seqof"===e.tag||"setof"===e.tag){if(!e.args||1!==e.args.length)return r.error("Too many args for : "+e.tag);if(!Array.isArray(i))return r.error("seqof/setof, but data is not Array");const t=this.clone();t._baseState.implicit=null,o=this._createEncoderBuffer(i.map(function(t){var e=this._baseState;return this._getUse(e.args[0],i)._encode(t,r)},t))}else null!==e.use?n=this._getUse(e.use,t)._encode(i,r):(o=this._encodePrimitive(e.tag,i),s=!0);if(!e.any&&null===e.choice){const i=null!==e.implicit?e.implicit:e.tag,t=null===e.implicit?"universal":"context";null===i?null===e.use&&r.error("Tag could be omitted only for .use()"):null===e.use&&(n=this._encodeComposite(i,s,t,o))}return null!==e.explicit&&(n=this._encodeComposite(e.explicit,!1,"context",n)),n},u.prototype._encodeChoice=function(t,e){const i=this._baseState,r=i.choice[t.type];return r||n(!1,t.type+" not found in "+JSON.stringify(Object.keys(i.choice))),r._encode(t.value,e)},u.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 new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,i){"use strict";const r=i(0);function n(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}(e.Reporter=n).prototype.isError=function(t){return t instanceof o},n.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},n.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},n.prototype.enterKey=function(t){return this._reporterState.path.push(t)},n.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},n.prototype.leaveKey=function(t,e,i){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=i)},n.prototype.path=function(){return this._reporterState.path.join("/")},n.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},n.prototype.leaveObject=function(t){const e=this._reporterState,i=e.obj;return e.obj=t,i},n.prototype.error=function(t){const e=this._reporterState,i=t instanceof o;if(t=i?t:new o(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},n.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,i){"use strict";function r(i){const r={};return Object.keys(i).forEach(function(t){(0|t)==t&&(t|=0);var e=i[t];r[e]=t}),r}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(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=r(e.tag)},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(220).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){t.exports=function(t){function n(t,e){this.name=e,this.path=t,this.keys=[],this.fns=[],this.params={},this.regex=i(this.path,this.keys,!1,!1)}var o,s=[],a={},e=t.routie;n.prototype.addHandler=function(t){this.fns.push(t)},n.prototype.removeHandler=function(t){for(var e=0,i=this.fns.length;e=this._blockSize;){for(var n=this._blockOffset;ne.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+i[l-7]+(((e=i[l-15])>>>7|e<<25)^(e>>>18|e<<14)^e>>>3)+i[l-16];for(var d=0;d<64;++d)var c=f+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(u^a&(h^u))+m[d]+i[d]|0,p=0|((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n|o&(r|n)),f=u,u=h,h=a,a=s+c|0,s=o,o=n,n=r,r=c+p|0;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0,this._f=h+this._f|0,this._g=u+this._g|0,this._h=f+this._h|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,q=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function a(){this.init(),this._w=s,n.call(this,128,112)}function U(t,e,i){return i^t&(e^i)}function z(t,e,i){return t&e|i&(t|e)}function F(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function H(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function Z(t,e){return t>>>0>>0?1:0}r(a,n),a.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},a.prototype._update=function(t){for(var e=this._w,i=0|this._ah,r=0|this._bh,n=0|this._ch,o=0|this._dh,s=0|this._eh,a=0|this._fh,h=0|this._gh,u=0|this._hh,f=0|this._al,l=0|this._bl,d=0|this._cl,c=0|this._dl,p=0|this._el,m=0|this._fl,b=0|this._gl,g=0|this._hl,v=0;v<32;v+=2)e[v]=t.readInt32BE(4*v),e[v+1]=t.readInt32BE(4*v+4);for(;v<160;v+=2){var y=e[v-30],w=e[v-30+1],M=(y>>>1|w<<31)^(y>>>8|w<<24)^y>>>7,_=(w>>>1|y<<31)^(w>>>8|y<<24)^(w>>>7|y<<25),S=(y=e[v-4],w=e[v-4+1],(y>>>19|w<<13)^(w>>>29|y<<3)^y>>>6),k=(w>>>19|y<<13)^(y>>>29|w<<3)^(w>>>6|y<<26),E=e[v-14],x=e[v-14+1],w=e[v-32],y=e[v-32+1],A=_+x|0,R=(R=(R=M+E+Z(A,_)|0)+S+Z(A=A+k|0,k)|0)+w+Z(A=A+y|0,y)|0;e[v]=R,e[v+1]=A}for(var T=0;T<160;T+=2){R=e[T];var A=e[T+1],I=z(i,r,n),C=z(f,l,d),B=F(i,f),L=F(f,i),O=H(s,p),j=H(p,s),P=q[T+1],D=U(s,a,h),N=U(p,m,b),j=g+j|0,O=(O=(O=(O=u+O+Z(j,g)|0)+D+Z(j=j+N|0,N)|0)+q[T]+Z(j=j+P|0,P)|0)+R+Z(j=j+A|0,A)|0,C=L+C|0,L=B+I+Z(C,L)|0,u=h,g=b,h=a,b=m,a=s,m=p,s=o+O+Z(p=c+j|0,c)|0,o=n,c=d,n=r,d=l,r=i,l=f,i=O+L+Z(f=j+C|0,j)|0}this._al=this._al+f|0,this._bl=this._bl+l|0,this._cl=this._cl+d|0,this._dl=this._dl+c|0,this._el=this._el+p|0,this._fl=this._fl+m|0,this._gl=this._gl+b|0,this._hl=this._hl+g|0,this._ah=this._ah+i+Z(this._al,f)|0,this._bh=this._bh+r+Z(this._bl,l)|0,this._ch=this._ch+n+Z(this._cl,d)|0,this._dh=this._dh+o+Z(this._dl,c)|0,this._eh=this._eh+s+Z(this._el,p)|0,this._fh=this._fh+a+Z(this._fl,m)|0,this._gh=this._gh+h+Z(this._gl,b)|0,this._hh=this._hh+u+Z(this._hl,g)|0},a.prototype._hash=function(){var r=o.allocUnsafe(64);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=a},function(I,t,C){"use strict";!function(t,b){var g=C(28);I.exports=n;var o,v=C(60);n.ReadableState=r,C(12).EventEmitter;function y(t,e){return t.listeners(e).length}var i=C(71),l=C(1).Buffer,d=t.Uint8Array||function(){},e=Object.create(C(24));e.inherits=C(0);var s,t=C(139),w=void 0,w=t&&t.debuglog?t.debuglog("stream"):function(){},a=C(140),t=C(72);e.inherits(n,i);var h=["error","close","destroy","pause","resume"];function r(t,e){t=t||{};var i=e instanceof(o=o||C(14));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,n=t.readableHighWaterMark,e=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i&&(n||0===n)?n:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new a,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(s=s||C(13).StringDecoder,this.decoder=new s(t.encoding),this.encoding=t.encoding)}function n(t){if(o=o||C(14),!(this instanceof n))return new n(t);this._readableState=new r(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function u(t,e,i,r,n){var o,s,a,h,u,f=t._readableState;return null===e?(f.reading=!1,a=t,(h=f).ended||(!h.decoder||(u=h.decoder.end())&&u.length&&(h.buffer.push(u),h.length+=h.objectMode?1:u.length),h.ended=!0,p(a))):(n||(o=f,n=a=e,o=s=l.isBuffer(n)||n instanceof d||"string"==typeof a||void 0===a||o.objectMode?s:new TypeError("Invalid non-string/buffer chunk")),o?t.emit("error",o):f.objectMode||e&&0e.highWaterMark&&(e.highWaterMark=(8388608<=(i=t)?i=8388608:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function p(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(w("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?g.nextTick(m,t):m(t))}function m(t){w("emit readable"),t.emit("readable"),E(t)}function M(t,e){e.readingMore||(e.readingMore=!0,g.nextTick(_,t,e))}function _(t,e){for(var i=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):(i=t,t=e.buffer,e=e.decoder,io.length?o.length:t;if(s===o.length?n+=o:n+=o.slice(0,t),0==(t-=s)){s===o.length?(++r,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i).data=o.slice(s);break}++r}return e.length-=r,n}:function(t,e){var i=l.allocUnsafe(t),r=e.head,n=1;for(r.data.copy(i),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(i,i.length-t,0,s),0==(t-=s)){s===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(s);break}++n}return e.length-=n,i})(i,t),n=r),n);var i,r,n}function A(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return w("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?A:p)(this),null;if(0===(t=f(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;return w("need readable",r),(0===e.length||e.length-ti?e=("rmd160"===t?new h:u(t)).update(e).digest():e.lengtho?e=n(e):e.length>>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 a=0;a<=24;a+=8)n<<=1,n|=e>>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>>a+s&1}for(s=6;0<=s;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+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;s<4;s++)for(var a=24;0<=a;a-=8)n<<=1,n|=e>>>a+s&1,n<<=1,n|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;0<=a;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+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 a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(a=0;a<=24;a+=8)n<<=1,n|=t>>a+s&1}for(a=0;a<=24;a+=8)n<<=1,n|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var h=[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,r){for(var n=0,o=0,s=h.length>>>1,a=0;a>>h[a]&1;for(a=s;a>>h[a]&1;i[r+0]=n>>>0,i[r+1]=o>>>0},e.expand=function(t,e,i){for(var r=0,n=0,r=(1&t)<<5|t>>>27,o=23;15<=o;o-=4)r<<=6,r|=t>>>o&63;for(o=11;3<=o;o-=4)n|=t>>>o&63,n<<=6;n|=(31&t)<<1|t>>>31,e[i+0]=r>>>0,e[i+1]=n>>>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;r<4;r++)i<<=4,i|=n[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)i<<=4,i|=n[256+64*r+(e>>>18-6*r&63)];return i>>>0};var r=[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>>r[i]&1;return e>>>0},e.padSplit=function(t,e,i){for(var r=t.toString(2);r.length>>1],i=f.r28shl(i,o),r=f.r28shl(r,o);f.pc2(i,r,t.keys,n)}},a.prototype._update=function(t,e,i,r){var n=this._desState,o=f.readUInt32BE(t,e),e=f.readUInt32BE(t,e+4);f.ip(o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],"encrypt"===this.type?this._encrypt(n,o,e,n.tmp,0):this._decrypt(n,o,e,n.tmp,0),o=n.tmp[0],e=n.tmp[1],f.writeUInt32BE(i,o,r),f.writeUInt32BE(i,e,r+4)},a.prototype._pad=function(t,e){for(var i=t.length-e,r=e;r>>0,o=u}f.rip(s,o,r,n)},a.prototype._decrypt=function(t,e,i,r,n){for(var o=i,s=e,a=t.keys.length-2;0<=a;a-=2){var h=t.keys[a],u=t.keys[a+1];f.expand(o,t.tmp,0),h^=t.tmp[0],u^=t.tmp[1];h=f.substitute(h,u),u=o,o=(s^f.permute(h))>>>0,s=u}f.rip(o,s,r,n)}},function(t,e,i){var h=i(25),u=i(1).Buffer,f=i(85);e.encrypt=function(t,e){var i=Math.ceil(e.length/16),r=t._cache.length;t._cache=u.concat([t._cache,u.allocUnsafe(16*i)]);for(var n=0;nt;)i.ishrn(1);if(i.isEven()&&i.iadd(h),i.testn(1)||i.iadd(u),e.cmp(u)){if(!e.cmp(f))for(;i.mod(l).cmp(d);)i.iadd(p)}else for(;i.mod(s).cmp(c);)i.iadd(p);if(b(r=i.shrn(1))&&b(i)&&g(r)&&g(i)&&a.test(r)&&a.test(i))return i}}},function(t,e,S){!function(_){!function(t){"use strict";function m(t,e){if(!t)throw new Error(e||"Assertion failed")}function e(t,e){t.super_=e;function i(){}i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function b(t,e,i){if(b.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var i;"object"==typeof _?_.exports=b:t.BN=b,(b.BN=b).wordSize=26;try{i=S(168).Buffer}catch(t){}function s(t,e,i){for(var r=0,n=Math.min(t.length,i),o=e;o>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){var c=i(169),r=i(45);function n(t){this.rand=t||new r.Rand}(t.exports=n).create=function(t){return new n(t)},n.prototype._randbelow=function(t){var e=t.bitLength(),i=Math.ceil(e/8);do{var r=new c(this.rand.generate(i))}while(0<=r.cmp(t));return r},n.prototype._randrange=function(t,e){e=e.sub(t);return t.add(this._randbelow(e))},n.prototype.test=function(t,e,i){var r=t.bitLength(),n=c.mont(t),o=new c(1).toRed(n);e=e||Math.max(1,r/48|0);for(var s=t.subn(1),a=0;!s.testn(a);a++);for(var h=t.shrn(a),u=s.toRed(n);0e.highWaterMark&&(e.highWaterMark=(1073741824<=(i=t)?i=1073741824:(i--,i|=i>>>1,i|=i>>>2,i|=i>>>4,i|=i>>>8,i|=i>>>16,i++),i)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0));var i}function E(t){var e=t._readableState;g("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(g("emitReadable",e.flowing),e.emittedReadable=!0,m.nextTick(x,t))}function x(t){var e=t._readableState;g("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,B(t)}function A(t,e){e.readingMore||(e.readingMore=!0,m.nextTick(R,t,e))}function R(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(i=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):i=e.buffer.consume(t,e.decoder),i);var i}function O(t){var e=t._readableState;g("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,m.nextTick(j,e,t))}function j(t,e){g("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 P(t,e){for(var i=0,r=t.length;i=e.highWaterMark:0>8,n=255&n;o?i.push(o,n):i.push(n)}return i},e.zero2=r,e.toHex=n,e.encode=function(t,e){return"hex"===e?n(t):t}},function(t,e,i){"use strict";e.base=i(31),e.short=i(187),e.mont=i(188),e.edwards=i(189)},function(t,e,i){"use strict";var r=i(8).rotr32;function n(t,e,i){return t&e^~t&i}function o(t,e,i){return t&e^t&i^e&i}function s(t,e,i){return t^e^i}e.ft_1=function(t,e,i,r){return 0===t?n(e,i,r):1===t||3===t?e^i^r:2===t?o(e,i,r):void 0},e.ch32=n,e.maj32=o,e.p32=s,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,i){"use strict";var r=i(8),n=i(26),o=i(100),p=i(6),m=r.sum32,b=r.sum32_4,g=r.sum32_5,v=o.ch32,y=o.maj32,w=o.s0_256,M=o.s1_256,_=o.g0_256,S=o.g1_256,s=n.BlockHash,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function h(){if(!(this instanceof h))return new h;s.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=a,this.W=new Array(64)}r.inherits(h,s),(t.exports=h).blockSize=512,h.outSize=256,h.hmacStrength=192,h.padLength=64,h.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e,i){"use strict";const r=e;r.der=i(106),r.pem=i(207)},function(t,e,i){"use strict";const r=i(0),s=i(53).Buffer,n=i(54),a=i(56);function o(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new h,this.tree._init(t.body)}function h(t){n.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(t.exports=o).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(h,n),h.prototype._encodeComposite=function(t,e,i,r){i=function(t,e,i,r){let n;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))n=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);n=t}return 31<=n?r.error("Multi-octet tag encoding unsupported"):(e||(n|=32),n|=a.tagClassByName[i||"universal"]<<6,n)}(t,e,i,this.reporter);if(r.length<128){const t=s.alloc(2);return t[0]=i,t[1]=r.length,this._createEncoderBuffer([t,r])}let n=1;for(let t=r.length;256<=t;t>>=8)n++;const o=s.alloc(2+n);o[0]=i,o[1]=128|n;for(let t=1+n,e=r.length;0>=8)o[t]=255&e;return this._createEncoderBuffer([o,r])},h.prototype._encodeStr=function(e,i){if("bitstr"===i)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==i)return"numstr"===i?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===i?this._isPrintstr(e)?this._createEncoderBuffer(e):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(i)||"objDesc"===i?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+i+" unsupported");{const i=s.alloc(2*e.length);for(let t=0;t>=7)r++}const n=s.alloc(r);let o=n.length-1;for(let e=i.length-1;0<=e;e--){let t=i[e];for(n[o--]=127&t;0<(t>>=7);)n[o--]=128|127&t}return this._createEncoderBuffer(n)},h.prototype._encodeTime=function(t,e){let i;const r=new Date(t);return"gentime"===e?i=[u(r.getUTCFullYear()),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?i=[u(r.getUTCFullYear()%100),u(r.getUTCMonth()+1),u(r.getUTCDate()),u(r.getUTCHours()),u(r.getUTCMinutes()),u(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(i,"octstr")},h.prototype._encodeNull=function(){return this._createEncoderBuffer("")},h.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!s.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=s.from(t)}if(s.isBuffer(e)){let t=e.length;0===e.length&&t++;const i=s.alloc(t);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let i=1;for(let t=e;256<=t;t>>=8)i++;const r=new Array(i);for(let t=r.length-1;0<=t;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(s.from(r))},h.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},h.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},h.prototype._skipDefault=function(t,e,i){const r=this._baseState;let n;if(null===r.default)return!1;var o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,i).join()),o.length!==r.defaultBuffer.length)return!1;for(n=0;n>6],n=0==(32&r);if(31==(31&r)){let t=r;for(r=0;128==(128&t);){if(t=e.readUInt8(i),e.isError(t))return t;r<<=7,r|=127&t}}else r&=31;return{cls:t,primitive:n,tag:r,tagStr:a.tag[r]}}function l(e,i,r){let n=e.readUInt8(r);if(e.isError(n))return n;if(!i&&128===n)return null;if(0==(128&n))return n;var o=127&n;if(4>16&255,n[o++]=e>>8&255,n[o++]=255&e;return 2===i&&(e=h[t.charCodeAt(a)]<<2|h[t.charCodeAt(a+1)]>>4,n[o++]=255&e),1===i&&(e=h[t.charCodeAt(a)]<<10|h[t.charCodeAt(a+1)]<<4|h[t.charCodeAt(a+2)]>>2,n[o++]=e>>8&255,n[o++]=255&e),n},e.fromByteArray=function(t){for(var e,i=t.length,r=i%3,n=[],o=0,s=i-r;o>18&63]+a[r>>12&63]+a[r>>6&63]+a[63&r]);return n.join("")}(t,o,s>2]+a[e<<4&63]+"==")):2==r&&(e=(t[i-2]<<8)+t[i-1],n.push(a[e>>10]+a[e>>4&63]+a[e<<2&63]+"=")),n.join("")};for(var a=[],h=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,o=r.length;n>1,f=-7,l=i?n-1:0,d=i?-1:1,i=t[e+l];for(l+=d,o=i&(1<<-f)-1,i>>=-f,f+=a;0>=-f,f+=r;0>1,l=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,c=r?1:-1,o=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-s))<1&&(s--,r*=2),2<=(e+=1<=s+f?l/r:l*Math.pow(2,1-f))*r&&(s++,r/=2),u<=s+f?(a=0,s=u):1<=s+f?(a=(e*r-1)*Math.pow(2,n),s+=f):(a=e*Math.pow(2,f-1)*Math.pow(2,n),s=0));8<=n;t[i+d]=255&a,d+=c,a/=256,n-=8);for(s=s<>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t>>27)+(u=r,f=n,l=o,0===(h=c)?u&f|~u&l:2===h?u&f|u&l|f&l:u^f^l)+s+e[d]+p[c],s=o,o=n,n=r<<30|r>>>2,r=i,i=c;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=s+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(19),o=i(1).Buffer,m=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function a(){this.init(),this._w=s,n.call(this,64,56)}r(a,n),a.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},a.prototype._update=function(t){for(var e,i=this._w,r=0|this._a,n=0|this._b,o=0|this._c,s=0|this._d,a=0|this._e,h=0;h<16;++h)i[h]=t.readInt32BE(4*h);for(;h<80;++h)i[h]=(e=i[h-3]^i[h-8]^i[h-14]^i[h-16])<<1|e>>>31;for(var u,f,l,d,c=0;c<80;++c)var p=~~(c/20),p=0|(r<<5|r>>>27)+(f=n,l=o,d=s,0===(u=p)?f&l|~f&d:2===u?f&l|f&d|l&d:f^l^d)+a+i[c]+m[p],a=s,s=o,o=n<<30|n>>>2,n=r,r=p;this._a=r+this._a|0,this._b=n+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=a+this._e|0},a.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=a},function(t,e,i){var r=i(0),n=i(68),o=i(19),s=i(1).Buffer,a=new Array(64);function h(){this.init(),this._w=a,o.call(this,64,56)}r(h,n),h.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},h.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=h},function(t,e,i){var r=i(0),n=i(69),o=i(19),s=i(1).Buffer,a=new Array(160);function h(){this.init(),this._w=a,o.call(this,128,112)}r(h,n),h.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},h.prototype._hash=function(){var r=s.allocUnsafe(48);function t(t,e,i){r.writeInt32BE(t,i),r.writeInt32BE(e,i+4)}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),r},t.exports=h},function(t,e,i){t.exports=r;var f=i(12).EventEmitter;function r(){f.call(this)}i(0)(r,f),r.Readable=i(40),r.Writable=i(145),r.Duplex=i(146),r.Transform=i(147),r.PassThrough=i(148),(r.Stream=r).prototype.pipe=function(e,t){var i=this;function r(t){e.writable&&!1===e.write(t)&&i.pause&&i.pause()}function n(){i.readable&&i.resume&&i.resume()}i.on("data",r),e.on("drain",n),e._isStdio||t&&!1===t.end||(i.on("end",s),i.on("close",a));var o=!1;function s(){o||(o=!0,e.end())}function a(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function h(t){if(u(),0===f.listenerCount(this,"error"))throw t}function u(){i.removeListener("data",r),e.removeListener("drain",n),i.removeListener("end",s),i.removeListener("close",a),i.removeListener("error",h),e.removeListener("error",h),i.removeListener("end",u),i.removeListener("close",u),e.removeListener("close",u)}return i.on("error",h),e.on("error",h),i.on("end",u),i.on("close",u),e.on("close",u),e.emit("pipe",i),e}},function(t,e){},function(t,e,i){"use strict";var o=i(1).Buffer,r=i(141);function n(){!function(t){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.head=null,this.tail=null,this.length=0}t.exports=(n.prototype.push=function(t){t={data:t,next:null};0>>0),r=this.head,n=0;r;)e=n,r.data.copy(i,e),n+=r.data.length,r=r.next;return i},n),r&&r.inspect&&r.inspect.custom&&(t.exports.prototype[r.inspect.custom]=function(){var t=r.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,n,o){!function(t){var e=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new r(i.call(setTimeout,e,arguments),clearTimeout)},n.setInterval=function(){return new r(i.call(setInterval,e,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(e,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},o(143),n.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,n.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}.call(this,o(5))},function(t,e,i){!function(t,c){!function(i){"use strict";var r,e,n,t,o,s,a,h,u,f;function l(t){delete s[t]}function d(t){if(a)setTimeout(d,0,t);else{var i=s[t];if(i){a=!0;try{!function(){var t=i.callback,e=i.args;switch(e.length){case 0:t();break;case 1:t(e[0]);break;case 2:t(e[0],e[1]);break;case 3:t(e[0],e[1],e[2]);break;default:t.apply(void 0,e)}}()}finally{l(t),a=!1}}}}i.setImmediate||(o=1,a=!(s={}),h=i.document,u=(u=Object.getPrototypeOf&&Object.getPrototypeOf(i))&&u.setTimeout?u:i,f="[object process]"==={}.toString.call(i.process)?function(t){c.nextTick(function(){d(t)})}:function(){if(i.postMessage&&!i.importScripts){var t=!0,e=i.onmessage;return i.onmessage=function(){t=!1},i.postMessage("","*"),i.onmessage=e,t}}()?(n="setImmediate$"+Math.random()+"$",t=function(t){t.source===i&&"string"==typeof t.data&&0===t.data.indexOf(n)&&d(+t.data.slice(n.length))},i.addEventListener?i.addEventListener("message",t,!1):i.attachEvent("onmessage",t),function(t){i.postMessage(n+t,"*")}):i.MessageChannel?((e=new MessageChannel).port1.onmessage=function(t){d(t.data)},function(t){e.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,function(t){var e=h.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):function(t){setTimeout(d,0,t)},u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i>o%8,t._prev=function(t,e){var i=t.length,r=-1,n=a.allocUnsafe(t.length);for(t=a.concat([t,a.from([e])]);++r>7;return n}(t._prev,i?r:n);return s}e.encrypt=function(t,e,i){for(var r=e.length,n=a.allocUnsafe(r),o=-1;++o>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function o(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},o.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},o.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,t,0,e])),this.state},t.exports=o},function(t,e,i){var r=i(87),n=i(1).Buffer,o=i(44),s=i(88),a=i(10),h=i(29),u=i(30);function f(t,e,i){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new h.AES(e),this._prev=n.from(i),this._mode=t,this._autopadding=!0}function l(){this.cache=n.allocUnsafe(0)}function d(t,e,i){t=o[t.toLowerCase()];if(!t)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==t.mode&&i.length!==t.iv)throw new TypeError("invalid iv length "+i.length);if((e="string"==typeof e?n.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new s(t.module,e,i,!0):"auth"===t.type?new r(t.module,e,i,!0):new f(t.module,e,i)}i(0)(f,a),f.prototype._update=function(t){var e;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),i.push(e);return n.concat(i)},f.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,e){},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(m,t,b){!function(i){var r=b(90),o=new(b(91)),s=new r(24),a=new r(11),h=new r(10),u=new r(3),f=new r(7),l=b(89),t=b(16);function n(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._pub=new r(t),this}function d(t,e){return e=e||"utf8",i.isBuffer(t)||(t=new i(t,e)),this._priv=new r(t),this}m.exports=e;var c={};function e(t,e,i){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,i?(this.setPublicKey=n,this.setPrivateKey=d):this._primeCode=8}function p(t,e){t=new i(t.toArray());return e?t.toString(e):t}Object.defineProperty(e.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var i=e.toString("hex"),e=[i,t.toString(16)].join("_");if(e in c)return c[e];var r,n=0;if(t.isEven()||!l.simpleSieve||!l.fermatTest(t)||!o.test(t))return n+=1,c[e]=n+="02"===i||"05"===i?8:4;switch(o.test(t.shrn(1))||(n+=2),i){case"02":t.mod(s).cmp(a)&&(n+=8);break;case"05":(r=t.mod(h)).cmp(u)&&r.cmp(f)&&(n+=8);break;default:n+=4}return c[e]=n}(this.__prime,this.__gen)),this._primeCode}}),e.prototype.generateKeys=function(){return this._priv||(this._priv=new r(t(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},e.prototype.computeSecret=function(t){var e=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),t=new i(e.toArray()),e=this.getPrime();return t.length>>0),n=this.head,o=0;n;)e=n.data,i=o,s.prototype.copy.call(e,r,i),o+=n.data.length,n=n.next;return r}},{key:"consume",value:function(t,e){var i;return tn.length?n.length:t;if(o===n.length?r+=n:r+=n.slice(0,t),0==(t-=o)){o===n.length?(++i,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=n.slice(o);break}++i}return this.length-=i,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),i=this.head,r=1;for(i.data.copy(e),t-=i.data.length;i=i.next;){var n=i.data,o=t>n.length?n.length:t;if(n.copy(e,e.length-t,0,o),0==(t-=o)){o===n.length?(++r,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i).data=n.slice(o);break}++r}return this.length-=r,e}},{key:i,value:function(t,e){return n(this,function(r){for(var t=1;t":""},h.prototype.isInfinity=function(){return this.inf},h.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y),t=(e=0!==e.cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.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(),t=t.redInvm(),e=i.redAdd(i).redIAdd(i).redIAdd(e).redMul(t),t=e.redSqr().redISub(this.x.redAdd(this.x)),e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},h.prototype.getX=function(){return this.x.fromRed()},h.prototype.getY=function(){return this.y.fromRed()},h.prototype.mul=function(t){return t=new y(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)},h.prototype.mulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i):this.curve._wnafMulAdd(1,e,i,2)},h.prototype.jmulAdd=function(t,e,i){e=[this,e],i=[t,i];return this.curve.endo?this.curve._endoWnafMulAdd(e,i,!0):this.curve._wnafMulAdd(1,e,i,2,!0)},h.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))},h.prototype.neg=function(t){if(this.inf)return this;var e,i=this.curve.point(this.x,this.y.redNeg());return t&&this.precomputed&&(e=this.precomputed,t=function(t){return t.neg()},i.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}),i},h.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},n(u,o.BasePoint),a.prototype.jpoint=function(t,e,i){return new u(this,t,e,i)},u.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),t=this.y.redMul(e).redMul(t);return this.curve.point(i,t)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.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),o=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(i.redMul(this.z)),e=r.redSub(n),i=o.redSub(s);if(0===e.cmpn(0))return 0!==i.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();n=e.redSqr(),s=n.redMul(e),r=r.redMul(n),n=i.redSqr().redIAdd(s).redISub(r).redISub(r),s=i.redMul(r.redISub(n)).redISub(o.redMul(s)),e=this.z.redMul(t.z).redMul(e);return this.curve.jpoint(n,s,e)},u.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,o=t.y.redMul(e).redMul(this.z),t=i.redSub(r),e=n.redSub(o);if(0===t.cmpn(0))return 0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();r=t.redSqr(),o=r.redMul(t),i=i.redMul(r),r=e.redSqr().redIAdd(o).redISub(i).redISub(i),o=e.redMul(i.redISub(r)).redISub(n.redMul(o)),t=this.z.redMul(t);return this.curve.jpoint(r,o,t)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,i=0;i":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,i){"use strict";var r=i(9),n=i(0),o=i(31),s=i(7);function a(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function h(t,e,i){o.BasePoint.call(this,t,"projective"),null===e&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}n(a,o),(t.exports=a).prototype.validate=function(t){var e=t.normalize().x,t=e.redSqr(),e=t.redMul(e).redAdd(t.redMul(this.a)).redAdd(e);return 0===e.redSqrt().redSqr().cmp(e)},n(h,o.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new h(this,t,e)},a.prototype.pointFromJSON=function(t){return h.fromJSON(this,t)},h.prototype.precompute=function(){},h.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},h.fromJSON=function(t,e){return new h(t,e[0],e[1]||t.one)},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},h.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),i=t.redSub(e),t=t.redMul(e),i=i.redMul(e.redAdd(this.curve.a24.redMul(i)));return this.curve.point(t,i)},h.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.diffAdd=function(t,e){var i=this.x.redAdd(this.z),r=this.x.redSub(this.z),n=t.x.redAdd(t.z),i=t.x.redSub(t.z).redMul(i),n=n.redMul(r),r=e.z.redMul(i.redAdd(n).redSqr()),n=e.x.redMul(i.redISub(n).redSqr());return this.curve.point(r,n)},h.prototype.mul=function(t){for(var e=t.clone(),i=this,r=this.curve.point(null,null),n=[];0!==e.cmpn(0);e.iushrn(1))n.push(e.andln(1));for(var o=n.length-1;0<=o;o--)0===n[o]?(i=i.diffAdd(r,this),r=r.dbl()):(r=i.diffAdd(r,this),i=i.dbl());return r},h.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},h.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},h.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},h.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,i){"use strict";var r=i(7),o=i(9),n=i(0),s=i(31),a=r.assert;function h(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.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 u(t,e,i,r,n){s.BasePoint.call(this,t,"projective"),null===e&&null===i&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=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()))))}n(h,s),(t.exports=h).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},h.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},h.prototype.jpoint=function(t,e,i,r){return this.point(t,e,i,r)},h.prototype.pointFromX=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=this.c2.redSub(this.a.redMul(i)),i=this.one.redSub(this.c2.redMul(this.d).redMul(i)),r=r.redMul(i.redInvm()),i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},h.prototype.pointFromY=function(t,e){var i=(t=!(t=new o(t,16)).red?t.toRed(this.red):t).redSqr(),r=i.redSub(this.c2),i=i.redMul(this.d).redMul(this.c2).redSub(this.a),r=r.redMul(i.redInvm());if(0===r.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}i=r.redSqrt();if(0!==i.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return i.fromRed().isOdd()!==e&&(i=i.redNeg()),this.point(i,t)},h.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),i=t.y.redSqr(),t=e.redMul(this.a).redAdd(i),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(i)));return 0===t.cmp(i)},n(u,s.BasePoint),h.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},h.prototype.point=function(t,e,i,r){return new u(this,t,e,i,r)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),i=(i=this.z.redSqr()).redIAdd(i),r=this.curve._mulA(t),n=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),t=o.redSub(i),i=r.redSub(e),r=n.redMul(t),e=o.redMul(i),i=n.redMul(i),o=t.redMul(o);return this.curve.point(r,e,o,i)},u.prototype._projDbl=function(){var t,e,i,r,n,o,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),h=this.y.redSqr();return o=this.curve.twisted?(n=(i=this.curve._mulA(a)).redAdd(h),this.zOne?(t=s.redSub(a).redSub(h).redMul(n.redSub(this.curve.two)),e=n.redMul(i.redSub(h)),n.redSqr().redSub(n).redSub(n)):(r=this.z.redSqr(),o=n.redSub(r).redISub(r),t=s.redSub(a).redISub(h).redMul(o),e=n.redMul(i.redSub(h)),n.redMul(o))):(i=a.redAdd(h),r=this.curve._mulC(this.z).redSqr(),o=i.redSub(r).redSub(r),t=this.curve._mulC(s.redISub(i)).redMul(o),e=this.curve._mulC(i).redMul(a.redISub(h)),i.redMul(o)),this.curve.point(t,e,o)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.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),t=n.redSub(r),n=n.redAdd(r),r=i.redAdd(e),i=o.redMul(t),e=n.redMul(r),r=o.redMul(r),n=t.redMul(n);return this.curve.point(i,e,n,r)},u.prototype._projAdd=function(t){var e,i=this.z.redMul(t.z),r=i.redSqr(),n=this.x.redMul(t.x),o=this.y.redMul(t.y),s=this.curve.d.redMul(n).redMul(o),a=r.redSub(s),s=r.redAdd(s),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(n).redISub(o),t=i.redMul(a).redMul(t),s=this.curve.twisted?(e=i.redMul(s).redMul(o.redSub(this.curve._mulA(n))),a.redMul(s)):(e=i.redMul(s).redMul(o.redSub(n)),this.curve._mulC(a).redMul(s));return this.curve.point(t,e,s)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!1)},u.prototype.jmulAdd=function(t,e,i){return this.curve._wnafMulAdd(1,[this,e],[t,i],2,!0)},u.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},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var i=t.clone(),r=this.curve.redN.redMul(this.z);;){if(i.iadd(this.curve.n),0<=i.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,i){"use strict";e.sha1=i(191),e.sha224=i(192),e.sha256=i(101),e.sha384=i(193),e.sha512=i(102)},function(t,e,i){"use strict";var r=i(8),n=i(26),i=i(100),f=r.rotl32,l=r.sum32,d=r.sum32_5,c=i.ft_1,o=n.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(s,o),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(t,e){for(var i=this.W,r=0;r<16;r++)i[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),n(t.length<=this.blockSize);for(var e=t.length;e>1;if(0<=s.cmp(this.curve.p.umod(this.curve.n))&&i)throw new Error("Unable to find sencond key candinate");s=i?this.curve.pointFromX(s.add(this.curve.n),t):this.curve.pointFromX(s,t),e=e.r.invm(n),o=n.sub(o).mul(e).umod(n),n=r.mul(e).umod(n);return this.g.mulAdd(o,s,n)},h.prototype.getKeyRecoveryParam=function(t,e,i,r){if(null!==(e=new p(e,r)).recoveryParam)return e.recoveryParam;for(var n,o=0;o<4;o++){try{n=this.recoverPubKey(t,e,o)}catch(t){continue}if(n.eq(i))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,i){"use strict";var r=i(52),o=i(98),n=i(6);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),i=o.toArray(t.nonce,t.nonceEnc||"hex"),t=o.toArray(t.pers,t.persEnc||"hex");n(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,i,t)}(t.exports=s).prototype._init=function(t,e,i){i=t.concat(e).concat(i);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(i||[])),this._reseed=1},s.prototype.generate=function(t,e,i,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=i,i=e,e=null),i&&(i=o.toArray(i,r||"hex"),this._update(i));for(var n=[];n.length"}},function(t,e,i){"use strict";var n=i(9),o=i(7),r=o.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function h(t,e){var i=t[e.place++];if(!(128&i))return i;var r=15&i;if(0==r||4>>=0;return!(n<=127)&&(e.place=s,n)}function u(t){for(var e=0,i=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|i);--i;)t.push(e>>>(i<<3)&255);t.push(e)}}(t.exports=s).prototype._importDER=function(t,e){t=o.toArray(t,e);var i=new a;if(48!==t[i.place++])return!1;var r=h(t,i);if(!1===r)return!1;if(r+i.place!==t.length)return!1;if(2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;r=t.slice(i.place,e+i.place);if(i.place+=e,2!==t[i.place++])return!1;e=h(t,i);if(!1===e)return!1;if(t.length!==e+i.place)return!1;i=t.slice(i.place,e+i.place);if(0===r[0]){if(!(128&r[1]))return!1;r=r.slice(1)}if(0===i[0]){if(!(128&i[1]))return!1;i=i.slice(1)}return this.r=new n(r),this.s=new n(i),!(this.recoveryParam=null)},s.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=u(e),i=u(i);!(i[0]||128&i[1]);)i=i.slice(1);var r=[2];f(r,e.length),(r=r.concat(e)).push(2),f(r,i.length);e=r.concat(i),r=[48];return f(r,e.length),r=r.concat(e),o.encode(r,t)}},function(t,e,i){"use strict";var r=i(52),n=i(51),o=i(7),s=o.assert,a=o.parseBytes,h=i(202),u=i(203);function f(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof f))return new f(t);t=n[t].curve,this.curve=t,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=r.sha512}(t.exports=f).prototype.sign=function(t,e){t=a(t);var i=this.keyFromSecret(e),r=this.hashInt(i.messagePrefix(),t),n=this.g.mul(r),e=this.encodePoint(n),i=this.hashInt(e,i.pubBytes(),t).mul(i.priv()),i=r.add(i).umod(this.curve.n);return this.makeSignature({R:n,S:i,Rencoded:e})},f.prototype.verify=function(t,e,i){t=a(t),e=this.makeSignature(e);var r=this.keyFromPublic(i),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),t=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(t)},f.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,i,r,n){var h=p(i);if("ec"===h.type){if("ecdsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");return function(t,e,i){var r=m[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));r=new c(r),i=i.data.subjectPrivateKey.data;return r.verify(e,t,i)}(t,e,h)}if("dsa"===h.type){if("dsa"!==r)throw new Error("wrong public key type");return function(t,e){var i=h.data.p,r=h.data.q,n=h.data.g,o=h.data.pub_key,s=p.signature.decode(t,"der"),a=s.s,t=s.r;b(a,r),b(t,r);s=d.mont(i),a=a.invm(r);return 0===n.toRed(s).redPow(new d(e).mul(a).mod(r)).fromRed().mul(o.toRed(s).redPow(t.mul(a).mod(r)).fromRed()).mod(i).mod(r).cmp(t)}(t,e)}if("rsa"!==r&&"ecdsa/rsa"!==r)throw new Error("wrong public key type");e=l.concat([n,e]);for(var o=h.modulus.byteLength(),s=[1],a=0;e.length+s.length+2>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);else if("le"===i)for(n=r=0;r>>26-s&67108863,26<=(s+=24)&&(s-=26,n++);return this.strip()},b.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i>>26-n&4194303,26<=(n+=24)&&(n-=26,o++);i+6!==e&&(r=s(t,e,i+6),this.words[o]|=r<>>26-n&4194303),this.strip()},b.prototype._parseBase=function(t,e,i){this.words=[0];for(var r=0,n=this.length=1;n<=67108863;n*=e)r++;for(var n=n/e|0,o=t.length-i,s=o%--r,a=Math.min(o,o-s)+i,h=0,u=i;u"};var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function r(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0,r=(i.length=r)-1|0,n=(0|t.words[0])*(0|e.words[0]),o=n/67108864|0;i.words[0]=67108863&n;for(var s=1;s>>26,h=67108863&o,u=Math.min(s,e.length-1),f=Math.max(0,s-t.length+1);f<=u;f++)a+=(n=(0|t.words[s-f|0])*(0|e.words[f])+h)/67108864|0,h=67108863&n;i.words[s]=0|h,o=0|a}return 0!==o?i.words[s]=0|o:i.length--,i.strip()}b.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){a="";for(var i=0,r=0,n=0;n>>24-i&16777215)||n!==this.length-1?d[6-s.length]+s+a:s+a;26<=(i+=2)&&(i-=26,n--)}for(0!==r&&(a=r.toString(16)+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}if(t===(0|t)&&2<=t&&t<=36){var h=c[t],u=p[t];a="";var f=this.clone();for(f.negative=0;!f.isZero();){var l=f.modn(u).toString(t);a=(f=f.idivn(u)).isZero()?l+a:d[h-l.length]+l+a}for(this.isZero()&&(a="0"+a);a.length%e!=0;)a="0"+a;return a=0!==this.negative?"-"+a:a}m(!1,"Base should be between 2 and 36")},b.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>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},b.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,t=0;return 0==(8191&e)&&(t+=13,e>>>=13),0==(127&e)&&(t+=7,e>>>=7),0==(15&e)&&(t+=4,e>>>=4),0==(3&e)&&(t+=2,e>>>=2),0==(1&e)&&t++,t},b.prototype.bitLength=function(){var t=this.words[this.length-1],t=this._countBits(t);return 26*(this.length-1)+t},b.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},b.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},b.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,i=0;it.length?this.clone().iand(t):t.clone().iand(this)},b.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},b.prototype.iuxor=function(t){for(var e,i=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},b.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},b.prototype.inotn=function(t){m("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26),t=t%26;this._expand(e),0>26-t),this.strip()},b.prototype.notn=function(t){return this.clone().inotn(t)},b.prototype.setn=function(t,e){m("number"==typeof t&&0<=t);var i=t/26|0,t=t%26;return this._expand(1+i),this.words[i]=e?this.words[i]|1<t.length?(i=this,t):(i=t,this),n=0,o=0;o>>26;for(;0!==n&&o>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},b.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var n=0>26,this.words[s]=67108863&e;for(;0!==o&&s>26,this.words[s]=67108863&e;if(0===o&&s>>13,u=0|r[1],f=8191&u,l=u>>>13,d=0|r[2],c=8191&d,p=d>>>13,m=0|r[3],b=8191&m,g=m>>>13,v=0|r[4],y=8191&v,w=v>>>13,M=0|r[5],_=8191&M,S=M>>>13,k=0|r[6],E=8191&k,x=k>>>13,A=0|r[7],R=8191&A,T=A>>>13,I=0|r[8],C=8191&I,B=I>>>13,L=0|r[9],O=8191&L,j=L>>>13,P=0|n[0],D=8191&P,N=P>>>13,q=0|n[1],U=8191&q,z=q>>>13,F=0|n[2],H=8191&F,Z=F>>>13,W=0|n[3],$=8191&W,K=W>>>13,V=0|n[4],Y=8191&V,G=V>>>13,X=0|n[5],J=8191&X,Q=X>>>13,s=0|n[6],u=8191&s,d=s>>>13,m=0|n[7],v=8191&m,M=m>>>13,k=0|n[8],A=8191&k,I=k>>>13,r=0|n[9],L=8191&r,P=r>>>13;i.negative=t.negative^e.negative,i.length=19;var W=(0+Math.imul(a,D)|0)+((8191&(F=Math.imul(a,N)+Math.imul(h,D)|0))<<13)|0,tt=(Math.imul(h,N)+(F>>>13)|0)+(W>>>26)|0;W&=67108863;q=Math.imul(f,D),F=Math.imul(f,N)+Math.imul(l,D)|0,V=Math.imul(l,N),X=(tt+(q+Math.imul(a,U)|0)|0)+((8191&(F=(F+Math.imul(a,z)|0)+Math.imul(h,U)|0))<<13)|0;tt=((V+Math.imul(h,z)|0)+(F>>>13)|0)+(X>>>26)|0,X&=67108863,q=Math.imul(c,D),F=Math.imul(c,N)+Math.imul(p,D)|0,V=Math.imul(p,N),q=q+Math.imul(f,U)|0,F=(F+Math.imul(f,z)|0)+Math.imul(l,U)|0,V=V+Math.imul(l,z)|0;s=(tt+(q+Math.imul(a,H)|0)|0)+((8191&(F=(F+Math.imul(a,Z)|0)+Math.imul(h,H)|0))<<13)|0;tt=((V+Math.imul(h,Z)|0)+(F>>>13)|0)+(s>>>26)|0,s&=67108863,q=Math.imul(b,D),F=Math.imul(b,N)+Math.imul(g,D)|0,V=Math.imul(g,N),q=q+Math.imul(c,U)|0,F=(F+Math.imul(c,z)|0)+Math.imul(p,U)|0,V=V+Math.imul(p,z)|0,q=q+Math.imul(f,H)|0,F=(F+Math.imul(f,Z)|0)+Math.imul(l,H)|0,V=V+Math.imul(l,Z)|0;m=(tt+(q+Math.imul(a,$)|0)|0)+((8191&(F=(F+Math.imul(a,K)|0)+Math.imul(h,$)|0))<<13)|0;tt=((V+Math.imul(h,K)|0)+(F>>>13)|0)+(m>>>26)|0,m&=67108863,q=Math.imul(y,D),F=Math.imul(y,N)+Math.imul(w,D)|0,V=Math.imul(w,N),q=q+Math.imul(b,U)|0,F=(F+Math.imul(b,z)|0)+Math.imul(g,U)|0,V=V+Math.imul(g,z)|0,q=q+Math.imul(c,H)|0,F=(F+Math.imul(c,Z)|0)+Math.imul(p,H)|0,V=V+Math.imul(p,Z)|0,q=q+Math.imul(f,$)|0,F=(F+Math.imul(f,K)|0)+Math.imul(l,$)|0,V=V+Math.imul(l,K)|0;k=(tt+(q+Math.imul(a,Y)|0)|0)+((8191&(F=(F+Math.imul(a,G)|0)+Math.imul(h,Y)|0))<<13)|0;tt=((V+Math.imul(h,G)|0)+(F>>>13)|0)+(k>>>26)|0,k&=67108863,q=Math.imul(_,D),F=Math.imul(_,N)+Math.imul(S,D)|0,V=Math.imul(S,N),q=q+Math.imul(y,U)|0,F=(F+Math.imul(y,z)|0)+Math.imul(w,U)|0,V=V+Math.imul(w,z)|0,q=q+Math.imul(b,H)|0,F=(F+Math.imul(b,Z)|0)+Math.imul(g,H)|0,V=V+Math.imul(g,Z)|0,q=q+Math.imul(c,$)|0,F=(F+Math.imul(c,K)|0)+Math.imul(p,$)|0,V=V+Math.imul(p,K)|0,q=q+Math.imul(f,Y)|0,F=(F+Math.imul(f,G)|0)+Math.imul(l,Y)|0,V=V+Math.imul(l,G)|0;n=(tt+(q+Math.imul(a,J)|0)|0)+((8191&(F=(F+Math.imul(a,Q)|0)+Math.imul(h,J)|0))<<13)|0;tt=((V+Math.imul(h,Q)|0)+(F>>>13)|0)+(n>>>26)|0,n&=67108863,q=Math.imul(E,D),F=Math.imul(E,N)+Math.imul(x,D)|0,V=Math.imul(x,N),q=q+Math.imul(_,U)|0,F=(F+Math.imul(_,z)|0)+Math.imul(S,U)|0,V=V+Math.imul(S,z)|0,q=q+Math.imul(y,H)|0,F=(F+Math.imul(y,Z)|0)+Math.imul(w,H)|0,V=V+Math.imul(w,Z)|0,q=q+Math.imul(b,$)|0,F=(F+Math.imul(b,K)|0)+Math.imul(g,$)|0,V=V+Math.imul(g,K)|0,q=q+Math.imul(c,Y)|0,F=(F+Math.imul(c,G)|0)+Math.imul(p,Y)|0,V=V+Math.imul(p,G)|0,q=q+Math.imul(f,J)|0,F=(F+Math.imul(f,Q)|0)+Math.imul(l,J)|0,V=V+Math.imul(l,Q)|0;r=(tt+(q+Math.imul(a,u)|0)|0)+((8191&(F=(F+Math.imul(a,d)|0)+Math.imul(h,u)|0))<<13)|0;tt=((V+Math.imul(h,d)|0)+(F>>>13)|0)+(r>>>26)|0,r&=67108863,q=Math.imul(R,D),F=Math.imul(R,N)+Math.imul(T,D)|0,V=Math.imul(T,N),q=q+Math.imul(E,U)|0,F=(F+Math.imul(E,z)|0)+Math.imul(x,U)|0,V=V+Math.imul(x,z)|0,q=q+Math.imul(_,H)|0,F=(F+Math.imul(_,Z)|0)+Math.imul(S,H)|0,V=V+Math.imul(S,Z)|0,q=q+Math.imul(y,$)|0,F=(F+Math.imul(y,K)|0)+Math.imul(w,$)|0,V=V+Math.imul(w,K)|0,q=q+Math.imul(b,Y)|0,F=(F+Math.imul(b,G)|0)+Math.imul(g,Y)|0,V=V+Math.imul(g,G)|0,q=q+Math.imul(c,J)|0,F=(F+Math.imul(c,Q)|0)+Math.imul(p,J)|0,V=V+Math.imul(p,Q)|0,q=q+Math.imul(f,u)|0,F=(F+Math.imul(f,d)|0)+Math.imul(l,u)|0,V=V+Math.imul(l,d)|0;t=(tt+(q+Math.imul(a,v)|0)|0)+((8191&(F=(F+Math.imul(a,M)|0)+Math.imul(h,v)|0))<<13)|0;tt=((V+Math.imul(h,M)|0)+(F>>>13)|0)+(t>>>26)|0,t&=67108863,q=Math.imul(C,D),F=Math.imul(C,N)+Math.imul(B,D)|0,V=Math.imul(B,N),q=q+Math.imul(R,U)|0,F=(F+Math.imul(R,z)|0)+Math.imul(T,U)|0,V=V+Math.imul(T,z)|0,q=q+Math.imul(E,H)|0,F=(F+Math.imul(E,Z)|0)+Math.imul(x,H)|0,V=V+Math.imul(x,Z)|0,q=q+Math.imul(_,$)|0,F=(F+Math.imul(_,K)|0)+Math.imul(S,$)|0,V=V+Math.imul(S,K)|0,q=q+Math.imul(y,Y)|0,F=(F+Math.imul(y,G)|0)+Math.imul(w,Y)|0,V=V+Math.imul(w,G)|0,q=q+Math.imul(b,J)|0,F=(F+Math.imul(b,Q)|0)+Math.imul(g,J)|0,V=V+Math.imul(g,Q)|0,q=q+Math.imul(c,u)|0,F=(F+Math.imul(c,d)|0)+Math.imul(p,u)|0,V=V+Math.imul(p,d)|0,q=q+Math.imul(f,v)|0,F=(F+Math.imul(f,M)|0)+Math.imul(l,v)|0,V=V+Math.imul(l,M)|0;e=(tt+(q+Math.imul(a,A)|0)|0)+((8191&(F=(F+Math.imul(a,I)|0)+Math.imul(h,A)|0))<<13)|0;tt=((V+Math.imul(h,I)|0)+(F>>>13)|0)+(e>>>26)|0,e&=67108863,q=Math.imul(O,D),F=Math.imul(O,N)+Math.imul(j,D)|0,V=Math.imul(j,N),q=q+Math.imul(C,U)|0,F=(F+Math.imul(C,z)|0)+Math.imul(B,U)|0,V=V+Math.imul(B,z)|0,q=q+Math.imul(R,H)|0,F=(F+Math.imul(R,Z)|0)+Math.imul(T,H)|0,V=V+Math.imul(T,Z)|0,q=q+Math.imul(E,$)|0,F=(F+Math.imul(E,K)|0)+Math.imul(x,$)|0,V=V+Math.imul(x,K)|0,q=q+Math.imul(_,Y)|0,F=(F+Math.imul(_,G)|0)+Math.imul(S,Y)|0,V=V+Math.imul(S,G)|0,q=q+Math.imul(y,J)|0,F=(F+Math.imul(y,Q)|0)+Math.imul(w,J)|0,V=V+Math.imul(w,Q)|0,q=q+Math.imul(b,u)|0,F=(F+Math.imul(b,d)|0)+Math.imul(g,u)|0,V=V+Math.imul(g,d)|0,q=q+Math.imul(c,v)|0,F=(F+Math.imul(c,M)|0)+Math.imul(p,v)|0,V=V+Math.imul(p,M)|0,q=q+Math.imul(f,A)|0,F=(F+Math.imul(f,I)|0)+Math.imul(l,A)|0,V=V+Math.imul(l,I)|0;a=(tt+(q+Math.imul(a,L)|0)|0)+((8191&(F=(F+Math.imul(a,P)|0)+Math.imul(h,L)|0))<<13)|0;tt=((V+Math.imul(h,P)|0)+(F>>>13)|0)+(a>>>26)|0,a&=67108863,q=Math.imul(O,U),F=Math.imul(O,z)+Math.imul(j,U)|0,V=Math.imul(j,z),q=q+Math.imul(C,H)|0,F=(F+Math.imul(C,Z)|0)+Math.imul(B,H)|0,V=V+Math.imul(B,Z)|0,q=q+Math.imul(R,$)|0,F=(F+Math.imul(R,K)|0)+Math.imul(T,$)|0,V=V+Math.imul(T,K)|0,q=q+Math.imul(E,Y)|0,F=(F+Math.imul(E,G)|0)+Math.imul(x,Y)|0,V=V+Math.imul(x,G)|0,q=q+Math.imul(_,J)|0,F=(F+Math.imul(_,Q)|0)+Math.imul(S,J)|0,V=V+Math.imul(S,Q)|0,q=q+Math.imul(y,u)|0,F=(F+Math.imul(y,d)|0)+Math.imul(w,u)|0,V=V+Math.imul(w,d)|0,q=q+Math.imul(b,v)|0,F=(F+Math.imul(b,M)|0)+Math.imul(g,v)|0,V=V+Math.imul(g,M)|0,q=q+Math.imul(c,A)|0,F=(F+Math.imul(c,I)|0)+Math.imul(p,A)|0,V=V+Math.imul(p,I)|0;f=(tt+(q+Math.imul(f,L)|0)|0)+((8191&(F=(F+Math.imul(f,P)|0)+Math.imul(l,L)|0))<<13)|0;tt=((V+Math.imul(l,P)|0)+(F>>>13)|0)+(f>>>26)|0,f&=67108863,q=Math.imul(O,H),F=Math.imul(O,Z)+Math.imul(j,H)|0,V=Math.imul(j,Z),q=q+Math.imul(C,$)|0,F=(F+Math.imul(C,K)|0)+Math.imul(B,$)|0,V=V+Math.imul(B,K)|0,q=q+Math.imul(R,Y)|0,F=(F+Math.imul(R,G)|0)+Math.imul(T,Y)|0,V=V+Math.imul(T,G)|0,q=q+Math.imul(E,J)|0,F=(F+Math.imul(E,Q)|0)+Math.imul(x,J)|0,V=V+Math.imul(x,Q)|0,q=q+Math.imul(_,u)|0,F=(F+Math.imul(_,d)|0)+Math.imul(S,u)|0,V=V+Math.imul(S,d)|0,q=q+Math.imul(y,v)|0,F=(F+Math.imul(y,M)|0)+Math.imul(w,v)|0,V=V+Math.imul(w,M)|0,q=q+Math.imul(b,A)|0,F=(F+Math.imul(b,I)|0)+Math.imul(g,A)|0,V=V+Math.imul(g,I)|0;c=(tt+(q+Math.imul(c,L)|0)|0)+((8191&(F=(F+Math.imul(c,P)|0)+Math.imul(p,L)|0))<<13)|0;tt=((V+Math.imul(p,P)|0)+(F>>>13)|0)+(c>>>26)|0,c&=67108863,q=Math.imul(O,$),F=Math.imul(O,K)+Math.imul(j,$)|0,V=Math.imul(j,K),q=q+Math.imul(C,Y)|0,F=(F+Math.imul(C,G)|0)+Math.imul(B,Y)|0,V=V+Math.imul(B,G)|0,q=q+Math.imul(R,J)|0,F=(F+Math.imul(R,Q)|0)+Math.imul(T,J)|0,V=V+Math.imul(T,Q)|0,q=q+Math.imul(E,u)|0,F=(F+Math.imul(E,d)|0)+Math.imul(x,u)|0,V=V+Math.imul(x,d)|0,q=q+Math.imul(_,v)|0,F=(F+Math.imul(_,M)|0)+Math.imul(S,v)|0,V=V+Math.imul(S,M)|0,q=q+Math.imul(y,A)|0,F=(F+Math.imul(y,I)|0)+Math.imul(w,A)|0,V=V+Math.imul(w,I)|0;b=(tt+(q+Math.imul(b,L)|0)|0)+((8191&(F=(F+Math.imul(b,P)|0)+Math.imul(g,L)|0))<<13)|0;tt=((V+Math.imul(g,P)|0)+(F>>>13)|0)+(b>>>26)|0,b&=67108863,q=Math.imul(O,Y),F=Math.imul(O,G)+Math.imul(j,Y)|0,V=Math.imul(j,G),q=q+Math.imul(C,J)|0,F=(F+Math.imul(C,Q)|0)+Math.imul(B,J)|0,V=V+Math.imul(B,Q)|0,q=q+Math.imul(R,u)|0,F=(F+Math.imul(R,d)|0)+Math.imul(T,u)|0,V=V+Math.imul(T,d)|0,q=q+Math.imul(E,v)|0,F=(F+Math.imul(E,M)|0)+Math.imul(x,v)|0,V=V+Math.imul(x,M)|0,q=q+Math.imul(_,A)|0,F=(F+Math.imul(_,I)|0)+Math.imul(S,A)|0,V=V+Math.imul(S,I)|0;y=(tt+(q+Math.imul(y,L)|0)|0)+((8191&(F=(F+Math.imul(y,P)|0)+Math.imul(w,L)|0))<<13)|0;tt=((V+Math.imul(w,P)|0)+(F>>>13)|0)+(y>>>26)|0,y&=67108863,q=Math.imul(O,J),F=Math.imul(O,Q)+Math.imul(j,J)|0,V=Math.imul(j,Q),q=q+Math.imul(C,u)|0,F=(F+Math.imul(C,d)|0)+Math.imul(B,u)|0,V=V+Math.imul(B,d)|0,q=q+Math.imul(R,v)|0,F=(F+Math.imul(R,M)|0)+Math.imul(T,v)|0,V=V+Math.imul(T,M)|0,q=q+Math.imul(E,A)|0,F=(F+Math.imul(E,I)|0)+Math.imul(x,A)|0,V=V+Math.imul(x,I)|0;_=(tt+(q+Math.imul(_,L)|0)|0)+((8191&(F=(F+Math.imul(_,P)|0)+Math.imul(S,L)|0))<<13)|0;tt=((V+Math.imul(S,P)|0)+(F>>>13)|0)+(_>>>26)|0,_&=67108863,q=Math.imul(O,u),F=Math.imul(O,d)+Math.imul(j,u)|0,V=Math.imul(j,d),q=q+Math.imul(C,v)|0,F=(F+Math.imul(C,M)|0)+Math.imul(B,v)|0,V=V+Math.imul(B,M)|0,q=q+Math.imul(R,A)|0,F=(F+Math.imul(R,I)|0)+Math.imul(T,A)|0,V=V+Math.imul(T,I)|0;E=(tt+(q+Math.imul(E,L)|0)|0)+((8191&(F=(F+Math.imul(E,P)|0)+Math.imul(x,L)|0))<<13)|0;tt=((V+Math.imul(x,P)|0)+(F>>>13)|0)+(E>>>26)|0,E&=67108863,q=Math.imul(O,v),F=Math.imul(O,M)+Math.imul(j,v)|0,V=Math.imul(j,M),q=q+Math.imul(C,A)|0,F=(F+Math.imul(C,I)|0)+Math.imul(B,A)|0,V=V+Math.imul(B,I)|0;R=(tt+(q+Math.imul(R,L)|0)|0)+((8191&(F=(F+Math.imul(R,P)|0)+Math.imul(T,L)|0))<<13)|0;tt=((V+Math.imul(T,P)|0)+(F>>>13)|0)+(R>>>26)|0,R&=67108863,q=Math.imul(O,A),F=Math.imul(O,I)+Math.imul(j,A)|0,V=Math.imul(j,I);C=(tt+(q+Math.imul(C,L)|0)|0)+((8191&(F=(F+Math.imul(C,P)|0)+Math.imul(B,L)|0))<<13)|0;tt=((V+Math.imul(B,P)|0)+(F>>>13)|0)+(C>>>26)|0,C&=67108863;L=(tt+Math.imul(O,L)|0)+((8191&(F=Math.imul(O,P)+Math.imul(j,L)|0))<<13)|0;return tt=(Math.imul(j,P)+(F>>>13)|0)+(L>>>26)|0,L&=67108863,o[0]=W,o[1]=X,o[2]=s,o[3]=m,o[4]=k,o[5]=n,o[6]=r,o[7]=t,o[8]=e,o[9]=a,o[10]=f,o[11]=c,o[12]=b,o[13]=y,o[14]=_,o[15]=E,o[16]=R,o[17]=C,o[18]=L,0!=tt&&(o[19]=tt,i.length++),i};function o(t,e,i){return(new a).mulp(t,e,i)}function a(t,e){this.x=t,this.y=e}Math.imul||(n=r),b.prototype.mulTo=function(t,e){var i=this.length+t.length;return(10===this.length&&10===t.length?n:i<63?r:i<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,o=0;o>>26)|0)>>>26,s&=67108863}i.words[o]=a,r=s,s=n}return 0!==r?i.words[o]=r:i.length--,i.strip()}:o)(this,t,e)},a.prototype.makeRBT=function(t){for(var e=new Array(t),i=b.prototype._countBits(t)-1,r=0;r>=1;return r},a.prototype.permute=function(t,e,i,r,n,o){for(var s=0;s>>=1)i++;return 1<>>=13),n>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=n>>>26,this.words[i]=67108863&n}return 0!==e&&(this.words[i]=e,this.length++),this},b.prototype.muln=function(t){return this.clone().imuln(t)},b.prototype.sqr=function(){return this.mul(this)},b.prototype.isqr=function(){return this.imul(this.clone())},b.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>r}return e}(t);if(0===e.length)return new b(1);for(var i=this,r=0;r>>26-e<<26-e;if(0!=e){for(var n=0,o=0;o>>26-e}n&&(this.words[o]=n,this.length++)}if(0!=i){for(o=this.length-1;0<=o;o--)this.words[o+i]=this.words[o];for(o=0;o>>n<o)for(this.length-=o,h=0;h>>n,u=f&s}return a&&0!==u&&(a.words[a.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},b.prototype.ishrn=function(t,e,i){return m(0===this.negative),this.iushrn(t,e,i)},b.prototype.shln=function(t){return this.clone().ishln(t)},b.prototype.ushln=function(t){return this.clone().iushln(t)},b.prototype.shrn=function(t){return this.clone().ishrn(t)},b.prototype.ushrn=function(t){return this.clone().iushrn(t)},b.prototype.testn=function(t){m("number"==typeof t&&0<=t);var e=t%26,t=(t-e)/26;return!(this.length<=t||!(this.words[t]&1<>>e<>26)-(a/67108864|0);this.words[o+i]=67108863&s}for(;o>26,this.words[o+i]=67108863&s;if(0===n)return this.strip();for(m(-1===n),o=n=0;o>26,this.words[o]=67108863&s;return this.negative=1,this.strip()},b.prototype._wordDiv=function(t,e){this.length,t.length;var i,r=this.clone(),n=t,o=0|n.words[n.length-1];0!=(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var s,a=r.length-n.length;if("mod"!==e){(s=new b(null)).length=1+a,s.words=new Array(s.length);for(var h=0;hthis.length||this.cmp(t)<0?{div:new b(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new b(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new b(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,n,o},b.prototype.div=function(t){return this.divmod(t,"div",!1).div},b.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},b.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},b.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),t=t.andln(1),r=i.cmp(r);return r<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},b.prototype.modn=function(t){m(t<=67108863);for(var e=(1<<26)%t,i=0,r=this.length-1;0<=r;r--)i=(e*i+(0|this.words[r]))%t;return i},b.prototype.idivn=function(t){m(t<=67108863);for(var e=0,i=this.length-1;0<=i;i--){var r=(0|this.words[i])+67108864*e;this.words[i]=r/t|0,e=r%t}return this.strip()},b.prototype.divn=function(t){return this.clone().idivn(t)},b.prototype.egcd=function(t){m(0===t.negative),m(!t.isZero());for(var e=this,i=t.clone(),e=0!==e.negative?e.umod(t):e.clone(),r=new b(1),n=new b(0),o=new b(0),s=new b(1),a=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++a;for(var h=i.clone(),u=e.clone();!e.isZero();){for(var f=0,l=1;0==(e.words[0]&l)&&f<26;++f,l<<=1);if(0>>26;n&=67108863,this.words[r]=n}return 0!==i&&(this.words[r]=i,this.length++),this},b.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},b.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);t=e>>22,n=o}0===(t.words[r-10]=n>>>=22)&&10>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},b._prime=function(t){if(h[t])return h[t];var e;if("k256"===t)e=new f;else if("p224"===t)e=new g;else if("p192"===t)e=new v;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new y}return h[t]=e},w.prototype._verify1=function(t){m(0===t.negative,"red works only with positives"),m(t.red,"red works only with red numbers")},w.prototype._verify2=function(t,e){m(0==(t.negative|e.negative),"red works only with positives"),m(t.red&&t.red===e.red,"red works only with red numbers")},w.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);e=t.add(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);e=t.iadd(e);return 0<=e.cmp(this.m)&&e.isub(this.m),e},w.prototype.sub=function(t,e){this._verify2(t,e);e=t.sub(e);return e.cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);e=t.isub(e);return e.cmpn(0)<0&&e.iadd(this.m),e},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(m(e%2==1),3===e){e=this.m.add(new b(1)).iushrn(2);return this.pow(t,e)}for(var i=this.m.subn(1),r=0;!i.isZero()&&0===i.andln(1);)r++,i.iushrn(1);m(!i.isZero());for(var n=new b(1).toRed(this),o=n.redNeg(),s=this.m.subn(1).iushrn(1),a=new b(2*(a=this.m.bitLength())*a).toRed(this);0!==this.pow(a,s).cmp(o);)a.redIAdd(o);for(var h=this.pow(a,i),u=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),l=r;0!==f.cmp(n);){for(var d=f,c=0;0!==d.cmp(n);c++)d=d.redSqr();m(c>u&1;n!==i[0]&&(n=this.sqr(n)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===u)&&(n=this.mul(n,i[o]),o=s=0)):s=0}a=26}return n},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){t=t.clone();return t.red=null,t},b.mont=function(t){return new M(t)},e(M,w),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){t=this.imod(t.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;t=t.imul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new b(0)._forceRed(this);t=t.mul(e),e=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),t=t.isub(e).iushrn(this.shift),e=t;return 0<=t.cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(this)}.call(this,S(15)(t))},function(t,e){},function(t,i,e){i.publicEncrypt=e(219),i.privateDecrypt=e(221),i.privateEncrypt=function(t,e){return i.publicEncrypt(t,e,!0)},i.publicDecrypt=function(t,e){return i.privateDecrypt(t,e,!0)}},function(t,e,i){var o=i(32),h=i(16),u=i(23),f=i(110),l=i(111),d=i(57),s=i(112),c=i(48),p=i(1).Buffer;t.exports=function(t,e,i){var r,n=t.padding||(i?1:4),a=o(t);if(4===n)r=function(t){var e=a.modulus.byteLength(),i=t.length,r=u("sha1").update(p.alloc(0)).digest(),n=r.length,o=2*n;if(e-o-2n||0<=new s(e).cmp(a.modulus))throw new Error("decryption error");t=i?d(new s(e),a):f(e,a),e=c.alloc(n-t.length);if(t=c.concat([e,t],n),4===r)return function(t){var e=a.modulus.byteLength(),i=l("sha1").update(c.alloc(0)).digest(),r=i.length;if(0!==t[0])throw new Error("decryption error");var n=t.slice(1,r+1),t=t.slice(r+1),n=u(n,h(t,r)),o=u(t,h(n,e-r-1));if(function(t,e){t=c.from(t),e=c.from(e);var i=0,r=t.length;t.length!==e.length&&(i++,r=Math.min(t.length,e.length));for(var n=-1;++n=t.length){n++;break}var o=t.slice(2,r-1);if(("0002"!==i.toString("hex")&&!e||"0001"!==i.toString("hex")&&e)&&n++,o.length<8&&n++,n)throw new Error("decryption error");return t.slice(r)}(t,i);if(3===r)return t;throw new Error("unknown padding")}},function(t,i,c){"use strict";!function(n,o){function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=c(1),s=c(16),a=e.Buffer,r=e.kMaxLength,h=n.crypto||n.msCrypto,u=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(u{r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===i[t]&&(i[t]={}),i[t][r[1]]=e):i[t]=e};case"bracket":return(t,e,i)=>{r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=[e]:i[t]=e};case"comma":case"separator":return(t,e,i)=>{var r="string"==typeof e&&e.includes(o.arrayFormatSeparator),n="string"==typeof e&&!r&&f(e,o).includes(o.arrayFormatSeparator);e=n?f(e,o):e;e=r||n?e.split(o.arrayFormatSeparator).map(t=>f(t,o)):null===e?e:f(e,o);i[t]=e};default:return(t,e,i)=>{void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(i),n=Object.create(null);if("string"!=typeof t)return n;if(!(t=t.trim().replace(/^[?#&]/,"")))return n;for(const o of t.split("&"))if(""!==o){let[t,e]=a(i.decode?o.replace(/\+/g," "):o,"=");e=void 0===e?null:["comma","separator"].includes(i.arrayFormat)?e:f(e,i),r(f(t,i),e,n)}for(const t of Object.keys(n)){const r=n[t];if("object"==typeof r&&null!==r)for(const t of Object.keys(r))r[t]=d(r[t],i);else n[t]=d(r,i)}return!1===i.sort?n:(!0===i.sort?Object.keys(n).sort():Object.keys(n).sort(i.sort)).reduce((t,e)=>{var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort((t,e)=>Number(t)-Number(e)).map(t=>e[t]):e}(i):t[e]=i,t},Object.create(null))}s.extract=n,s.parse=c,s.stringify=(i,r)=>{if(!i)return"";h((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);const t=t=>r.skipNull&&null==i[t]||r.skipEmptyString&&""===i[t],n=function(n){switch(n.arrayFormat){case"index":return r=>(t,e)=>{const i=t.length;return void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(r,n),"[",i,"]"].join("")]:[...t,[u(r,n),"[",u(i,n),"]=",u(e,n)].join("")]};case"bracket":return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,[u(i,n),"[]"].join("")]:[...t,[u(i,n),"[]=",u(e,n)].join("")];case"comma":case"separator":return i=>(t,e)=>null==e||0===e.length?t:0===t.length?[[u(i,n),"=",u(e,n)].join("")]:[[t,u(e,n)].join(n.arrayFormatSeparator)];default:return i=>(t,e)=>void 0===e||n.skipNull&&null===e||n.skipEmptyString&&""===e?t:null===e?[...t,u(i,n)]:[...t,[u(i,n),"=",u(e,n)].join("")]}}(r),e={};for(const r of Object.keys(i))t(r)||(e[r]=i[r]);const o=Object.keys(e);return!1!==r.sort&&o.sort(r.sort),o.map(t=>{const e=i[t];return void 0===e?"":null===e?u(t,r):Array.isArray(e)?e.reduce(n(t),[]).join("&"):u(t,r)+"="+u(e,r)}).filter(t=>0{e=Object.assign({decode:!0},e);const[i,r]=a(t,"#");return Object.assign({url:i.split("?")[0]||"",query:c(n(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:f(r,e)}:{})},s.stringifyUrl=(t,e)=>{e=Object.assign({encode:!0,strict:!0},e);var i=l(t.url).split("?")[0]||"",r=s.extract(t.url),r=s.parse(r,{sort:!1}),r=Object.assign(r,t.query);let n=s.stringify(r,e);n=n&&"?"+n;let o=function(t){let e="";var i=t.indexOf("#");return-1!==i&&(e=t.slice(i)),e}(t.url);return t.fragmentIdentifier&&(o="#"+u(t.fragmentIdentifier,e)),`${i}${n}${o}`},s.pick=(t,e,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);var{url:r,query:n,fragmentIdentifier:t}=s.parseUrl(t,i);return s.stringifyUrl({url:r,query:o(n,e),fragmentIdentifier:t},i)},s.exclude=(t,i,e)=>{var r=Array.isArray(i)?t=>!i.includes(t):(t,e)=>!i(t,e);return s.pick(t,r,e)}},function(t,e,i){"use strict";t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,t=>"%"+t.charCodeAt(0).toString(16).toUpperCase())},function(t,e,i){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),a=new RegExp("(%[a-f0-9]{2})+","gi");function h(e){try{return decodeURIComponent(e)}catch(t){for(var i=e.match(n),r=1;r{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];var i=t.indexOf(e);return-1===i?[t]:[t.slice(0,i),t.slice(i+e.length)]}},function(t,e,i){"use strict";t.exports=function(t,e){for(var i={},r=Object.keys(t),n=Array.isArray(e),o=0;o>>24)|4278255360&(i[a]<<24|i[a]>>>8);i[t>>>5]|=128<>>9<<4)]=t;for(var h=b._ff,u=b._gg,f=b._hh,l=b._ii,a=0;a>>0,n=n+c>>>0,o=o+p>>>0,s=s+m>>>0}return g.endian([r,n,o,s])})._ff=function(t,e,i,r,n,o,s){s=t+(e&i|~e&r)+(n>>>0)+s;return(s<>>32-o)+e},b._gg=function(t,e,i,r,n,o,s){s=t+(e&r|i&~r)+(n>>>0)+s;return(s<>>32-o)+e},b._hh=function(t,e,i,r,n,o,s){s=t+(e^i^r)+(n>>>0)+s;return(s<>>32-o)+e},b._ii=function(t,e,i,r,n,o,s){s=t+(i^(e|~r))+(n>>>0)+s;return(s<>>32-o)+e},b._blocksize=16,b._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);t=g.wordsToBytes(b(t,e));return e&&e.asBytes?t:e&&e.asString?w.bytesToString(t):g.bytesToHex(t)}},function(t,e){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(t,e){return t<>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&i.rotl(t,8)|4278255360&i.rotl(t,24);for(var e=0;e>>5]|=t[i]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],i=0;i<32*t.length;i+=8)e.push(t[i>>>5]>>>24-i%32&255);return e},bytesToHex:function(t){for(var e=[],i=0;i>>4).toString(16)),e.push((15&t[i]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],i=0;i>>6*(3-n)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],i=0,r=0;i>>6-2*r);return e}};t.exports=i},function(t,e){function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(i(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&i(e.slice(0,0))||!!t._isBuffer);var e}},function(e,i,r){var n;!function(){"use strict";var c={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function p(t){return function(t,e){var i,r,n,o,s,a,h,u,f=1,l=t.length,d="";for(r=0;r>>0).toString(8);break;case"s":i=String(i),i=o.precision?i.substring(0,o.precision):i;break;case"t":i=String(!!i),i=o.precision?i.substring(0,o.precision):i;break;case"T":i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=o.precision?i.substring(0,o.precision):i;break;case"u":i=parseInt(i,10)>>>0;break;case"v":i=i.valueOf(),i=o.precision?i.substring(0,o.precision):i;break;case"x":i=(parseInt(i,10)>>>0).toString(16);break;case"X":i=(parseInt(i,10)>>>0).toString(16).toUpperCase()}c.json.test(o.type)?d+=i:(!c.number.test(o.type)||h&&!o.sign?u="":(u=h?"+":"-",i=i.toString().replace(c.sign,"")),s=o.pad_char?"0"===o.pad_char?"0":o.pad_char.charAt(1):" ",a=o.width-(u+i).length,a=o.width&&0{t in h.$onOnceListeners||(h.$onOnceListeners[t]=[]),h.$onOnceListeners[t].includes(e)||(h.$onOnceListeners[t].push(e),h.$on(t,i))};var o=i(58),u=i.n(o);i(59);const f=window.api.dialog,l=window.api.base;a.a.config.productionTip=!1,a.a.use(e.a,{size:"mini",zIndex:3e3}),a.a.use(function(t,e){var i,r,n;t.prototype.$timeago||(i={locale:e.locale},t.prototype.$timeago=t.observable?t.observable(i):new t({data:i}),n=(r=void 0===(r=e)?{}:r).locales||{},e={name:r.name||"Timeago",props:{datetime:{required:!0},title:{type:[String,Boolean]},locale:{type:String},autoUpdate:{type:[Number,Boolean]},converter:{type:Function},converterOptions:{type:Object}},data:function(){return{timeago:this.getTimeago()}},computed:{localeName:function(){return this.locale||this.$timeago.locale}},mounted:function(){this.startUpdater()},beforeDestroy:function(){this.stopUpdater()},render:function(t){return t("time",{attrs:{datetime:new Date(this.datetime).toISOString(),title:"string"==typeof this.title?this.title:!1===this.title?null:this.timeago}},[this.timeago])},methods:{getTimeago:function(t){return(this.converter||r.converter||function(t,e,i){var r=i.includeSeconds,i=i.addSuffix;return void 0===i&&(i=!0),s()(t,{locale:e,includeSeconds:r,addSuffix:i})})(t||this.datetime,n[this.locale||this.$timeago.locale],this.converterOptions||{})},convert:function(t){this.timeago=this.getTimeago(t)},startUpdater:function(){var t,e=this;this.autoUpdate&&(t=!0===this.autoUpdate?60:this.autoUpdate,this.updater=setInterval(function(){e.convert()},1e3*t))},stopUpdater:function(){this.updater&&(clearInterval(this.updater),this.updater=null)}},watch:{autoUpdate:function(t){this.stopUpdater(),t&&this.startUpdater()},datetime:function(){this.convert()},localeName:function(){this.convert()},converter:function(){this.convert()},converterOptions:{handler:function(){this.convert()},deep:!0}}},t.component(e.name,e))},{name:"TimeAgo",locale:"zh-CN",locales:{"zh-CN":i(248)}}),a.a.use(r.a),a.a.prototype.$onCopySuccess=()=>{f.tipSuccess(window.lang&&window.lang["Copy Success"]?window.lang["Copy Success"]:"Copy Success")},a.a.prototype.$onCopyError=()=>{f.tipError(window.lang&&window.lang["Copy Fail"]?window.lang["Copy Fail"]:"Copy Fail")},a.a.prototype.$highlight=(t,e)=>{if(t=n.b.specialchars(t),!e)return t;e=new RegExp(e,"ig");return t.toString().replace(e,function(t,e,i){return''+t+""})},a.a.prototype.$hashRouter={init(t){u()(t)},to(t){u()(t)}};r={post(t,e,i,r){i=i||l.defaultFormCallback,r=r||l.defaultFormCallback,l.post(t,e,function(t){l.defaultFormCallback(t,{success:function(t){!0===i(t)&&l.defaultFormCallback(t)},error:function(t){!0!==r(t)&&l.defaultFormCallback(t)}})})},postRaw(t,e,i){l.post(t,e,function(t){i&&i(t)})}};a.a.prototype.$api=r,a.a.prototype.$url={buildParam(e){if(e=e||null){let t=[];for(var i in e)t.push(n.d.urlencode(i)+"="+n.d.urldecode(e[i]));e="?"+t.join("&")}return e||""},current(){var t=window.location;return`${t.pathname}${t.search}${t.hash}`},admin(t,e){return`${window.__msAdminRoot}${t}${this.buildParam(e)}`},web(t,e){return`${window.__msRoot}${t}${this.buildParam(e)}`},api(t,e){return`${window.__msRoot}api/${t}${this.buildParam(e)}`},cdn:t=>(t&&t.startsWith("/")&&(t=t.replace(/^[ \/]+/g,"")),`${window.__msCDN}${t}`)},a.a.prototype.$r={to(t){window.location.href=t},replace(t){window.location.replace=t}},a.a.prototype.$dialog=f,a.a.prototype.L=function(){let t=arguments[0],e=Array.from(arguments);return e.splice(0,1),window.lang&&window.lang[t]?e.length?n.c.sprintf(t,...e):window.lang[t]:e.length?n.c.sprintf(t,...e):t},a.a,h,function(t,e,i,r,n){if(r=r||{},!document.querySelector(t))return;Array.isArray(i)||(i=[i]);let o={};i.forEach(t=>{o[t.name]=t});let s=null;r&&"Bootstrap"in r&&(s=r.Bootstrap);e=new a.a({el:t,...r,data:()=>({loading:!0}),created(){s&&s.created(this)},mounted(){this.loading=!1,h.$emit("EventAppMounted"),s&&s.mounted(this)},components:o,template:e});n&&n(e)}("#app","",i(251).default)}]); \ No newline at end of file diff --git a/vendor/modstart/modstart/asset/common/base.js b/vendor/modstart/modstart/asset/common/base.js index 08382a29aed4d840d90f4bd9d6393805841793e0..23d5b608433242be9bc7c846e01e06ceec9b2abf 100644 --- a/vendor/modstart/modstart/asset/common/base.js +++ b/vendor/modstart/modstart/asset/common/base.js @@ -1 +1 @@ -!function(i){var a={};function n(e){if(a[e])return a[e].exports;var t=a[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.m=i,n.c=a,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/asset//",n(n.s=284)}({10:function(e,t,n){"use strict";var i,a,o=(a={},function(e){if(void 0===a[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}a[e]=t}return a[e]}),c=[];function u(e){for(var t=-1,i=0;i>>24)|4278255360&(i[l]<<24|i[l]>>>8);i[e>>>5]|=128<>>9<<4)]=e;for(var s=A._ff,c=A._gg,u=A._hh,d=A._ii,l=0;l>>0,n=n+f>>>0,o=o+y>>>0,r=r+h>>>0}return g.endian([a,n,o,r])})._ff=function(e,t,i,a,n,o,r){r=e+(t&i|~t&a)+(n>>>0)+r;return(r<>>32-o)+t},A._gg=function(e,t,i,a,n,o,r){r=e+(t&a|i&~a)+(n>>>0)+r;return(r<>>32-o)+t},A._hh=function(e,t,i,a,n,o,r){r=e+(t^i^a)+(n>>>0)+r;return(r<>>32-o)+t},A._ii=function(e,t,i,a,n,o,r){r=e+(i^(t|~a))+(n>>>0)+r;return(r<>>32-o)+t},A._blocksize=16,A._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);e=g.wordsToBytes(A(e,t));return t&&t.asBytes?e:t&&t.asString?x.bytesToString(e):g.bytesToHex(e)}},123:function(e,t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&i.rotl(e,8)|4278255360&i.rotl(e,24);for(var t=0;t>>5]|=e[i]<<24-a%32;return t},wordsToBytes:function(e){for(var t=[],i=0;i<32*e.length;i+=8)t.push(e[i>>>5]>>>24-i%32&255);return t},bytesToHex:function(e){for(var t=[],i=0;i>>4).toString(16)),t.push((15&e[i]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],i=0;i>>6*(3-n)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],i=0,a=0;i>>6-2*a);return t}};e.exports=i},124:function(e,t){function i(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(i(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))||!!e._isBuffer);var t}},254:function(e,t,i){let u=i(5);"layer"in window&&console.error("ERR: dialog should required only once, use window.api.dialog instead");let n=i(286),r=(i(287),i(255)),d={device:"pc",loadingOn:function(e){if(e=e||null){e=n.open({type:1,content:'
'+e+"
",shade:[.3,"#000"],closeBtn:!1,title:!1,area:["auto","auto"]});return u("#layui-layer"+e).attr("type","loading"),e}return n.load(2)},loadingOff:function(){n.closeAll("loading")},tipSuccess:function(e,t){let i=2e3;e&&10','
',i.label,"
",'
','
确定
',""].join(""),{openCallback:function(){u("#dialog-input-box").find(".ok").on("click",function(){n=!0,d.dialogClose(o)}),u("#dialog-input-box").find("input").on("change",function(){a=u(this).val()})},closeCallback:function(){n&&e&&e(a)}})},preview:function(o,e){e=e||{};let r=u.extend({title:null,width:"auto",height:"auto"},e),l=u(window).width(),s=u(window).height();d&&d.loadingOn();let c=new Image;return c.onerror=function(){d.loadingOff(),d.tipError("Image load error")},c.onload=function(){d.loadingOff();let e=l-40,t=s-40,i=c.width,a=c.height;i>e&&(a=parseInt(a*e/i),i=e),a>t&&(i=parseInt(i*t/a),a=t);var n=['
',' ',"
"].join("");d.dialogContent(n,r)},c.src=o,!1}};e.exports=d},255:function(e,t,o){!function(i){const n=o(122);var a={specialchars:function(e){var t=[];if(!e)return"";if(0==e.length)return"";for(var i=0;i":t.push(">");break;case"&":t.push("&");break;case" ":t.push(" ");break;case'"':t.push(""");break;default:t.push(e.substr(i,1))}return t.join("")},text2html:function(e){return"

"+(e=a.specialchars(e)).replace(/\n/g,"

")+"

"},text2paragraph:function(e){return"

"+e.replace(/\n/g,"

")+"

"},urlencode:function(e){return e=(e+"").toString(),encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},randomString:function(e){e=e||16;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=t.length,a="",n=0;n{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},loadStylesheet:function(e,t){let i="s_"+n(e),a=document.getElementById(i);a?t&&t({isNew:!1}):(a=document.createElement("link"),a.id=i,a.rel="stylesheet",a.type="text/css",a.href=e,a.onload=()=>{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},md5:function(e){return n(e)}};e.exports=a}.call(this,o(5))},256:function(module,exports,__webpack_require__){var $=__webpack_require__(5),Util=__webpack_require__(255),EventManager=__webpack_require__(288),Form={defaultCallback:function(res,callback,Dialog){var code,msg,redirect,data,isWeiXin,winReload,redirectFunc,successFunc,errorFunc;Dialog=Dialog||null,callback=callback||{},"object"==typeof res?"code"in res?(code=res.code,msg="",redirect="",data=null,"msg"in res&&(msg=res.msg),"redirect"in res&&(redirect=res.redirect),"data"in res&&(data=res.data),isWeiXin=function(){return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},winReload=function(e){var t,i,a;isWeiXin()?(t=e.location,i=[],a="_t_"+(new Date).getTime()+"_",i.push(t.protocol),i.push("//"),i.push(t.host),i.push(t.pathname),t.search?/_t_\d+_/.test(t.search)?i.push(t.search.replace(/_t_\d+_/,a)):(i.push(t.search),i.push("&"),i.push(a)):(i.push(t.search),i.push("?"),i.push(a)),i.push(t.hash),e.location.replace(i.join(""))):e.location.reload()},redirectFunc=function(redirect){redirect&&("[reload]"===redirect?winReload(window):"[root-reload]"==redirect?winReload(Util.getRootWindow()):"[back]"===redirect?window.history.back():0===redirect.indexOf("[js]")?eval(redirect.substr(4)):window.location.href=redirect)},successFunc=function(){"success"in callback?callback.success(res):redirect?msg?Dialog?Dialog.alertSuccess(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):msg&&(Dialog?Dialog.tipSuccess(msg):alert(msg))},errorFunc=function(){"error"in callback?callback.error(res):redirect?msg?Dialog?Dialog.alertError(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):Dialog?Dialog.tipError(msg):alert(msg)},(0==code?successFunc:errorFunc)()):Form.defaultCallback({code:-1,msg:"parse error: "+JSON.stringify(res)},callback,Dialog):alert("ErrorResponse:"+res)},initAjax:function(e,o){o=o||null;var r=$(e);r.on("submit",function(){if(r.data("submiting"))return!1;var e=$(this).attr("action"),t=$(this).attr("method"),i=$(this).data("callbackValidate"),a=$(this).data("callback");if(i&&!i())return!1;var a=a||Form.defaultCallback,t=t||"get",n=$(this).serializeArray();return r.data("submiting",!0),o&&(i=$(this).attr("data-form-loading"),o.loadingOn(i)),$.ajax({type:t,url:e,dataType:"json",timeout:6e5,data:n,success:function(e){return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)},error:function(){var e={code:-999,msg:"请求出现错误 T_T"};return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)}}),!1})},initCommon:function(e,t){var i=$(e);i.on("submit",function(){if(i.data("submiting"))return!1;$(this).attr("action"),$(this).attr("method"),$(this).serializeArray();var e=$(this).data("callbackValidate");return $(this).data("callback"),!(e&&!e())&&(i.data("submiting",!0),t&&(e=$(this).attr("data-form-loading"),t.loadingOn(e)),!0)})}};module.exports=Form},258:function(e,t,i){"use strict";var a=i(11),n=i.n(a),o=i(26),r=i.n(o),l=i(271),s=i(272),a=i(273),o=i(274),i=i(275),n=n()(function(e){return e[1]}),l=r()(l.a),s=r()(s.a),a=r()(a.a),o=r()(o.a),i=r()(i.a);n.push([e.i,'.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url('+l+") center center no-repeat #eee}.layui-layer-ico{background:url("+s+") no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url("+a+") no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url("+l+") no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url("+o+") no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url("+i+") no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}",""]),t.a=n},26:function(e,t,i){"use strict";e.exports=function(e,t){return t=t||{},"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},271:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhJQAlAJECAL3L2AYrTv///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAJQAlAAACi5SPqcvtDyGYIFpF690i8xUw3qJBwUlSadmcLqYmGQu6KDIeM13beGzYWWy3DlB4IYaMk+Dso2RWkFCfLPcRvFbZxFLUDTt21BW56TyjRep1e20+i+eYMR145W2eefj+6VFmgTQi+ECVY8iGxcg35phGo/iDFwlTyXWphwlm1imGRdcnuqhHeop6UAAAIfkEBQoAAgAsEAACAAQACwAAAgWMj6nLXAAh+QQFCgACACwVAAUACgALAAACFZQvgRi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwXABEADAADAAACBYyPqcsFACH5BAUKAAIALBUAFQAKAAsAAAITlGKZwWoMHYxqtmplxlNT7ixGAQAh+QQFCgACACwQABgABAALAAACBYyPqctcACH5BAUKAAIALAUAFQAKAAsAAAIVlC+BGL3Z3IlxUmUuhtR2LzHhsiEFACH5BAUKAAIALAEAEQAMAAMAAAIFjI+pywUAIfkEBQoAAgAsBQAFAAoACwAAAhOUYJnAagwdjGq2amXGU1PuLEYBACH5BAUKAAIALBAAAgAEAAsAAAIFhI+py1wAIfkEBQoAAgAsFQAFAAoACwAAAhWUL4AIvdnciXFSZS6G1HYvMeGyIQUAIfkEBQoAAgAsFwARAAwAAwAAAgWEj6nLBQAh+QQFCgACACwVABUACgALAAACE5RgmcBqDB2MarZqZcZTU+4sRgEAIfkEBQoAAgAsEAAYAAQACwAAAgWEj6nLXAAh+QQFCgACACwFABUACgALAAACFZQvgAi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwBABEADAADAAACBYSPqcsFADs="},272:function(e,t,i){"use strict";t.a=i.p+"sprites/76ac4c2d9120b0b4f88365fe6b38038d.png"},273:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhPAAYALMPAPPJp/HYxfSwkf50Df5TD/+HAPe5bvqHR/twOviZavyrMu/m3f9EAP9mAP+ZAO7u7iH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wUmlnaHRzPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvcmlnaHRzLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcFJpZ2h0czpNYXJrZWQ9IkZhbHNlIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6QUNDRERBRjMxRTIwNjgxMTg4QzZERjVGQ0I0MDI1NDkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTlDMEI5MzU5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTlDMEI5MzQ5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENzU2N0YwMTMyMjA2ODExODhDNkRGNUZDQjQwMjU0OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQ0NEREFGMzFFMjA2ODExODhDNkRGNUZDQjQwMjU0OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkFAA8ALAAAAAA8ABgAAATy8MlJq7046827/2AWCEdpCkGodkHSvHCcLGttLUOsw0NqW4EDYog4+CyInbJxwAQMiqjCcMQkGNgsNmFxLZXcisFBLpMNGYF2zRBQAt9vFWCuOwCXAJt9FMSXbhILdnY0FQd7a00SB39Kiw9jhGZoFQSJWgQTjksTCpNmChaYa5ucOxOgdaOkWaanMamqZRaXrZoSObAvA56zDqKHrQyQjbtME5KqlW/DRwbHDcwBv1UTV5hhEnDHVcqEzF2J2te75BLflBsCCFoIgRU4pwOGFQCfZQp4PxUBSX8IrPELscDLkhkDB7bQxQthwocQI0rMEAEAIfkECQUADwAsAAAAADwAGAAABOjwyUmrvTjrzbv/ILcAiWCUQKh+y9G88DsIa40JcQ4ji30JCIZQeAhcAgOdMvEYKZ5PQA8UHFoZtEpSuVQ4vmCHwuhJXK+EqcTA5YbfYrUmcD4jKNt2rAB/GzoHdWdTAXo6fXByGASCV1k4hjADiG8pG41XTA9skS98lGB/l5hDmgmdnqChHIykWBKQnZOqDpYaVaRkAKgvtA6KFwCudxO8DZ+UCh64grYPp7yqwBgLzFYEWRNIvAlecGMhAq1DCGQVu7JNBn7THQDvAObBeVwJ7T4gLW2i+P0PAQkOCBQoxZ/BgwgTYogAACH5BAkFAA8ALAAAAAA8ABgAAATV8MlJq7046827/2AojmMgHE2aIslCckAcb8Kg3umQvFhCMEAgYXcR4HCFpEJhCPAkiKAUiLAEbMdGwcHtcg28w3R8qKCyA6/aASABxvC2JJBNrdcuURQ+rUqMWVt3XmAhC3xweWdHg2oKIm+IU3KLOI1qkJKTEpU3l14iAZpSTg+dKp9cjyKjQRMGdYKXhSFio2VzdQ2ppSEBP5IEvQ9YR7J3tCICmgIVALrHhE+/cMIXCboDxwpy0z5BQ8POxUcD3U88CwnkKQni6E8yMXnw9fb3+BURACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AojqQUCEeaJkC5CUgcJ0G2JE2u60jrVgICY0gcIhaXQ25QaDp1vt8jUKwaLbhGwcHtcgeNQe23EFqrAkogt/W6cwlp4mwlICW4gXvvyI1LZnRFaRJgfHtghCRUglUIJjmHbgUNBy4AjY4SAGGSXpSWJZiZRI8PnHqeXKAujKQMpmsNqquVP4GZioa0iT8Hrwx/Sqmefj8BuHRxE5xanmChPwKZRxVKznxgDX8/AAh00RQL18S1YYpSDzffpVEXAjvxB9zpiwnaOQfo9fz9/v8ApUQAACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojmS1AIkhJEBQasFBMDRDHC62JE3v97iXJVEr1hKThUHBdBQGv99gIZwIjFiG4AFweL/eQtSHqD4Cs2yR0AW7xeOGoXpQYwvuPHQ8FabtNA15g3ENWyUBgEUDg3mFBy8AijV4jWB7UZAlkpMMlZZemD+aJImdjKBej0KdDIKpDoWHJXWdn42iPzmIrQagcGOkL0SKSG15wFF9ZgJ/WLMBvpeFCLtmMVhBOjxxB1RmJgDiAN8bAQkH6Qcs4O3u7/Dx4BEAIfkECQUADwAsAAAAADwAGAAABMrwyUmrvTjrzbv/YCiOV5AgKCosZIsFCCPPc5KZQ6M3QxK4lgWBRuMVFEgDS5LYOXc24CRGlBUc2CwW8BA8vw2BtFuVDbRoByAHdg6WrmG1kU63v9EWoMy41rVsdzoDQAllBH9oBYJOPy2GVYiJWYuMOlyPh5OUlpcuApqbDpWWjiQBfH6TgYxSVER0m50NeS2gZap1BrOmLpBVuVpcTYy1QLdzuQamAqxuYmMTMGUJcBYmeL3REgAJ3gkC2hgLAOUA1tvp6uvs7R8RACH5BAkFAA8ALAAAAAA8ABgAAATs8MlJq7046827/2AojpmQICgqBGSLCQgjz3OyZEFy7LvgXoDZoEAsDBoyxGWRaDifzgHgNwkQGA2HdqstyBKWA3TsZFEPDAJ37RjIzBIBmTy4uQKyAnuNPEwWR3NjPi4CWHtrXgQTcoJjAz8xA4hrbxJijmNwIzF6lFtXUw+YmU+iJJ2foAyipKUNp5wMk6oOV2aupZsihlmqioyvUT94DJ6USEoSAcINYJGHlF6sFE2lA7sjxQ3HXNN+FAu5ZIRUAlcEtF1IDAh2FQaC2FQUATE0NOVACYENAyv0LMCgQeBAtoAIEypcyLDhhAgAIfkECQUADwAsAAAAADwAGAAABODwyUmrvTjrzbv/YCiOWiAgTJoiSUC+V0KodEokZWIIugtPAYNCUSgMZjWV4BI4NJ7QxsH3Mjiu2OsgqaJKFoOoeLB4AbJoR4PLQFQQ4rh7tEin2QyqIM5fiqx2WVtcfg9hfGMjCoFZBWxzC4h8Xh6MaI8SAJJxACKWWZgPmptRnSGLn45ccwGkUWUhgJaDSTgSh6QDIwGfDkhJeq4Ntn+zbAQUYLmwI7Joa2ymQLhxA5QiAKhXBdBcBxcLcHEHzD+Zv0kEhRcACQfvCdLmFAEytdfzZgD7AOX5/wADCrwQAQAh+QQJBQAPACwAAAAAPAAYAAAE6fDJSau9OOvNu/8gFiQkKSxh+gkE474uEqj0tSBw/gq1twCKYBCAOuiOhJllkRg0no0BDxRQOK5YhyJx7BIsAKj4ifgsrNlsodtNUBbOsdjgMaTvA7buOznI5UoaC3eELXowSgF/cm4bAIR3DYcwUwKLYwMcdpBZkpMujQaXY5qcnZ+gEgmjYhyPpleen42WrFEcg7AOqC4AEoq2Bx1onGu8FAi2vriwvAzCE2Gj0B1VhApGqEkVAnFyByhmm1gGKDifUxULfmN0PerZbATLGD8A9+8ZLF0y+f4PAhAIFJgg0L+DCBMqrBABACH5BAkFAA8ALAAAAAA8ABgAAATz8MlJq7046827/2AWCEhpCkGodkHCvHCcpGtdBUSswwRt3waFUGHwVRC7JAOBaR2eh9nG4KhaqwaLS5lMaBvgMNiLAVzPDgAlwOUaBeJ4Q3BZoNGLiaCtpEsWcnJGElR3V1kSSHw7TBIJgXFkFAqGVwoTi0oTA5BiAxaVZ5iZOxOdcaChVqOkMaanYRaUqpcSOa0vBJuwDZ8VhaGID4q4jQ+PsJITAaoOPlu4kgG8g4TBa7gvRsiQyr+GwhMHuAcWBpDhFwCzVQpqFgu3iwR5FgAHYgfvP2vEXAj7+K1YMI7LgXoCf7SQx4CAlIQQI0qcmCECACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AXACQZnuCSEEzrEkmAzpjAunhLCDRmKI5g0LC4BHJIl+wRSByeh1hKSBUWKYtbMkdQNb7gb+IDrFIVlcR2iwi7GzwOwGwGTI7r5Pu91NDpEwJ5SAR7bmMaC39mVweDOYZuAxsBi1VLCI84kW6UllSYmi6cYZ6fQaGiDKRfkxunQRNqqoWkiBoGpwaBqi2sfRmKn1cPWb21hreUZWYKwA+zogkGhrsguVVEF5maCBIAB2EHdicLAecBxBYL3HkI6j0zgmvK8T1NWgwwz/b9/v8AMUQAACH5BAkFAA8ALAAAAAA8ABgAAATY8MlJq7046827/+AXACQQhCi4CATjvoSwpFww2nMWtG/vEieaZQFwGI8ORbCy4Pl6hMZhmlimFMiswypBPKGNsDicoBm02pxE8IWN3w0BaoHWGijOLxzO5RTrWRMBbT97b2UgWIBIQQmEDIZvAyGKi0aNj5FvlJZHmISaYyFnnVtrmaENkyCknRMAj1GhiB90nXcTeU+pfRytgGoPjoSyhrQqlWgATLo+xW+4NH9ZCsGCzT5vB8tCEkQG4Aa9EwtehAjW3TQLCdgJ6erdAgn0CXLx+Pn6+xwRACH5BAkFAA8ALAAAAAA8ABgAAATM8MlJq7046827/2AojuSzCAeiqsJSaoChzIoBaALB7DyfvJaAwkEsEhWBS6LHIDQaTt0PKFkMjViFiwLoOZ/gJ0FAfVyx2Ypu9w2HB9QAeu5ISgQ9t75BfhnoaAYTCDxte08HQIBzE2sMh25wL4toE3mQYYqURpY8mJmTm0WdO59gQH+ighKEbKaJLwCiDjd3l5h9L2eAChQBjoZ7di9ylMMSS4WHBFNUVnRaSkx6DM1lDwC7CgBbFwCOTAy51yQLCeDM3eTr7O3u7yMRACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojiQVCEmaCEGpLYbizI5iLFlwMHzPHy1XJSCjGRVBU6JBYDZ8PEJSuCgaj7jJssHtMqGIrKt6LdeyAq/660sIHwaz2fBYrNdQxnRkldMUD1t3XQRQAi4BfmYBA4NqYIiKZQGOjz4IkZJGlJVdkCULmkYLjZ1Pl0KiNIGmhT6HLnGidJyVeXsioaJZgneuPZhviZJicIO/UcVjfVgWAAeWl7hjskY3GQsIeTxhbxcLAeEByhjPCOcIBwDe7O3u7/DxEhEAIfkECQUADwAsAAAAADwAGAAABMHwyUmrvTjrzbv/YCiOWGACgbcALEpygeHMtGNoAsLsPCG8GEBt6FAAEofkIRE48J68A7ASIBILjay2QYB6f9PHQmElDrbarveZmsrKRLR2/USE4dazXE1ntElVeENYcg19O2CAgoOFhocJQIGLM4RyhwyQL5KTlWiXiSSTNHpofHR/JG+TjZcEYQuinWmfYQ9CgrJZpmtStQ+bRAYAB1sHAAKHoLUxVjcZOV4+vhYxBtYACx0CCdwJytPg4eLj5B8RACH5BAkFAA8ALAAAAAA8ABgAAATI8MlJq7046827/2AojtgCGKgBLGSbLYojz7LClgnC7AyS3C7KgkacJQKWAIHHZBCQQQmsSG0khMsmkwB0GajUQkMg1WmbiO5oCKYOGsjE+Xz1tt3WR3a+DX7vRGIDAXxnUCQxgDRiDQCFWgAuiYoyjI6PTJEtk5SChJg8hyMAlDNvV3uPBEFspQ1wD3KgdZKlYnULqXNcUa2ADQYUn3xPURIBnFQHmkJmWmnGE1NUNi+yTD/RFQEGCt4KBqIvAOQr2ufo6errIhEAIfkECQUADwAsAAAAADwAGAAABLTwyUmrvTjrzbv/YCiO2QIYSqoYxkK+GODMdG1owoHsyCHAF0NtSLtZAgiGcqlEBIATGXEKqCwIzCyD4IIqplNFJanNIqBSMLEqAZTL7NdXTRRLDm/tAUgHT7B5TAR8fUQTgVqEhTWHiEyKizN/jkqDMHORdg9kjmcwaYtxApQMPzALkTNdEpx5nkBCi0YTAYgEcbCFsxQLrUwIq1APAXS4Fjm/AsHCDwsoQy3M0tPU1dbXGBEAIfkECQUADwAsAAAAADwAGAAABNbwyUmrvTjrzbv/4BWMZGiCC+CsrKMYyyljQWuvSqAFQA/os0kgcSjejoqYRYBgOJ8EQDDRqDYKR6Ql8ew+EzKBtTHIZqUTgHfNQKPGDXNWQWmyuwgTdSzPAgN3a0AfA2NYfTcGEgKBXgIhcIeILYoPXI1fkIaTNpWXmAxgIIVWZZwsaIygDI8ge1Wmpw5/qwyDHgFwsisUBKAEJ69XspUSapitJgabk0kVB40HQQAHsJy3ab5eUUEWCwpyzhkCCeUJbt0VCwZZMOnvxgbyBujw9vf4+RcRACH5BAUFAA8ALAAAAAA8ABgAAATi8MlJq7046827/2AWjGRogovirKyjAMspY0Zrr0owe0Fy/IeE7gG4GRWxS4LAaDIIiaQn0ahaq0KjVmEJMJ1gwpAjuJob2jSgggC7GYjO4nwdpLcUwfst4FDpVQV3WlJfe04EHAOAVYNaaw8Bh29jGIyNjjcGEgCTbpAZl2iZNptEnmCgGIuMpKUSkqhNlUqXgq4roIaTiRsBtrgrUgmyCR1/dHa4XBMLu28EUhsGgAYqrrReh2IgAAdXB2sLrqYWS24H0juR13flFwsA8jDr8DVq9fkB9ywKBur5AgocSPBCBAA7"},274:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy8rq6uoGBgTQ0NAEBARsbG8TExJeXl/39/VRUVAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBQAAACwAAAAAIAAgAAAE5xDISSlLrOrNp0pKNRCdFhxVolJLEJQUoSgOpSYT4RowNSsvyW1icA16k8MMMRkCBjskBTFDAZyuAEkqCfxIQ2hgQRFvAQEEIjNxVDW6XNE4YagRjuBCwe60smQUDnd4Rz1ZAQZnFAGDd0hihh12CEE9kjAEVlycXIg7BAsMB6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YEvpJivxNaGmLHT0VnOgGYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHQjYKhKP1oZmADdEAAAh+QQFBQAAACwAAAAAGAAXAAAEchDISasKNeuJFKoHs4mUYlJIkmjIV54Soypsa0wmLSnqoTEtBw52mG0AjhYpBxioEqRNy8V0qFzNw+GGwlJki4lBqx1IBgjMkRIghwjrzcDti2/Gh7D9qN774wQGAYOEfwCChIV/gYmDho+QkZKTR3p7EQAh+QQFBQAAACwBAAAAHQAOAAAEchDISWdANesNHHJZwE2DUSEo5SjKKB2HOKGYFLD1CB/DnEoIlkti2PlyuKGEATMBaAACSyGbEDYD4zN1YIEmh0SCQQgYehNmTNNaKsQJXmBuuEYPi9ECAU/UFnNzeUp9VBQEBoFOLmFxWHNoQw6RWEocEQAh+QQFBQAAACwHAAAAGQARAAAEaRDICdZZNOvNDsvfBhBDdpwZgohBgE3nQaki0AYEjEqOGmqDlkEnAzBUjhrA0CoBYhLVSkm4SaAAWkahCFAWTU0A4RxzFWJnzXFWJJWb9pTihRu5dvghl+/7NQmBggo/fYKHCX8AiAmEEQAh+QQFBQAAACwOAAAAEgAYAAAEZXCwAaq9ODAMDOUAI17McYDhWA3mCYpb1RooXBktmsbt944BU6zCQCBQiwPB4jAihiCK86irTB20qvWp7Xq/FYV4TNWNz4oqWoEIgL0HX/eQSLi69boCikTkE2VVDAp5d1p0CW4RACH5BAUFAAAALA4AAAASAB4AAASAkBgCqr3YBIMXvkEIMsxXhcFFpiZqBaTXisBClibgAnd+ijYGq2I4HAamwXBgNHJ8BEbzgPNNjz7LwpnFDLvgLGJMdnw/5DRCrHaE3xbKm6FQwOt1xDnpwCvcJgcJMgEIeCYOCQlrF4YmBIoJVV2CCXZvCooHbwGRcAiKcmFUJhEAIfkEBQUAAAAsDwABABEAHwAABHsQyAkGoRivELInnOFlBjeM1BCiFBdcbMUtKQdTN0CUJru5NJQrYMh5VIFTTKJcOj2HqJQRhEqvqGuU+uw6AwgEwxkOO55lxIihoDjKY8pBoThPxmpAYi+hKzoeewkTdHkZghMIdCOIhIuHfBMOjxiNLR4KCW1ODAlxSxEAIfkEBQUAAAAsCAAOABgAEgAABGwQyEkrCDgbYvvMoOF5ILaNaIoGKroch9hacD3MFMHUBzMHiBtgwJMBFolDB4GoGGBCACKRcAAUWAmzOWJQExysQsJgWj0KqvKalTiYPhp1LBFTtp10Is6mT5gdVFx1bRN8FTsVCAqDOB9+KhEAIfkEBQUAAAAsAgASAB0ADgAABHgQyEmrBePS4bQdQZBdR5IcHmWEgUFQgWKaKbWwwSIhc4LonsXhBSCsQoOSScGQDJiWwOHQnAxWBIYJNXEoFCiEWDI9jCzESey7GwMM5doEwW4jJoypQQ743u1WcTV0CgFzbhJ5XClfHYd/EwZnHoYVDgiOfHKQNREAIfkEBQUAAAAsAAAPABkAEQAABGeQqUQruDjrW3vaYCZ5X2ie6EkcKaooTAsi7ytnTq046BBsNcTvItz4AotMwKZBIC6H6CVAJaCcT0CUBTgaTg5nTCu9GKiDEMPJg5YBBOpwlnVzLwtqyKnZagZWahoMB2M3GgsHSRsRACH5BAUFAAAALAEACAARABgAAARcMKR0gL34npkUyyCAcAmyhBijkGi2UW02VHFt33iu7yiDIDaD4/erEYGDlu/nuBAOJ9Dvc2EcDgFAYIuaXS3bbOh6MIC5IAP5Eh5fk2exC4tpgwZyiyFgvhEMBBEAIfkEBQUAAAAsAAACAA4AHQAABHMQyAnYoViSlFDGXBJ808Ep5KRwV8qEg+pRCOeoioKMwJK0Ekcu54h9AoghKgXIMZgAApQZcCCu2Ax2O6NUud2pmJcyHA4L0uDM/ljYDCnGfGakJQE5YH0wUBYBAUYfBIFkHwaBgxkDgX5lgXpHAXcpBIsRADs="},275:function(e,t,i){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABkCAYAAAAv8xodAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNS8xMS8xNNdPc0oAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAWb0lEQVR4nO2de2wU172Av5l92t4Hti/YQHmVmFcSE7+WR0h0uRRVVC2pKldpCFJQEJAiFwg4diikgLEghEhpVLVQNblBSFEUVYoi+hc0FQoE87B52JQAiQnBJDY2wfix633O7P1jdwbbxe9d7yx3PgnJc87iM2M+js+cx+8nhMNhdHQeFcRE34COTizRhdZ5pNCF1nmk0IXWeaQwPqxQEIRYtpEKOABL9NoLtAKhWDbSDRF4EsgAbEBHtL3LAIN9CV6+fHlSvS0fOXLkof9oj8pzDJZ499A2YCxgWbJkiSUnJ8cApADZgCEO7ZmAImAyYFuxYsV4Iv+ZpgIFcWhPR2PEU2gbkAlQU1Mz67PPPvvvq1ev/s/f/va3LCIyp8e4PROQD4wrLi7Oam9vP/Dhhx/+9f79+3/Kz8+3AxPi0KaOxoiX0KrM169ff6KgoGAKgMFgEF944YWZ0c9Y+vrLw8BEpAceV1xcnHX48OE3HQ7HRIAxY8ZM2bdv39Lo5zJi2KaOBomH0D1knjFjxsTulX6/Pxj9Uo5Re4rMY1esWDH+8OHDb6akpGR2/4Db7fZEv4zXuF1HI8Ra6H5lDgQC0ttvv/1l9NIfg/Z6yPzee+/t6S1zY2PjpdWrV/8retkagzZ1NEwshR5Q5j179pzfu3dvOxBg5HINKHNTU1Ody+WqbG1tDQENQOcI29TROA+dthsGGYAd+pd5165d94nIfHeE7Q1K5qKioorvv/8+ANwGakfYZlwIh8MEg0F1OtFoNGIwxGMCKL4Eg0G6urqQJAlRFElNTcVsNo/6fcSih84A7BaLRRiCzCMZy5qAQoYm86URtBc3FJnNZjMzZswgKyuLQCCAJEmJvrUhEQwGcbvdZGdn88ILL5CTk0NnZ2dCnmOkPbQqc11d3eMPk3n37t01lZWVbcRW5v966aWXJh44cKAyWWWWZZlgMIjD4aCoqIj09HRkWeb48eO0tbUlTS+tyDxz5kz2799Peno6LS0trFq1Cr/fT2pq6qjez0iE1mUeJorM6enpFBUVkZaWRigUIhgMEgwGB/4GGiEQCOB2u5kzZw779u0jPT0yze/xeJAkKdYrzoNiuELrMg8TSZIIBoNkZWVRWFiI2WwmHA7j8/k4d+4cnZ2dCRl7DhWlZ37iiSd46623cDgcANy5c4c33ngDj8eD0+kc9fsajtC6zMMkGAwiSRKTJk0iLy9PHVZ4PB7Onj1LR0cHZrMZUdT2njGlZ87Ly2P//v1YrVYAmpqaKC0tpaGhAbvdnpBh01CFHm2ZzURmMx4ZmadNm0Zubi6iKCIIAm1tbZw5cwav14vJZNK8zH6/H7fbTWFhIXv27Okh85YtW7h9+zY2mw2TyZSQ+xuK0KrMly9ffiInJ2dC98pEyNzY2HjJ5XJVJoPMoVCI2bNnM2vWLCCyo/Hu3bucPXuWUCiE2WxOyJhzKCgyL1y4kMrKSiyWyO6Fb7/9li1bttDS0pJQmWHwQidU5oMHD+6xWq09NhYlg8zKtJwsy+Tm5vLYY48RDocRRZGmpiaqq6uRZRmTyaR5mX0+Hx6Ph2eeeYbdu3er0jY0NFBaWqoJmWFwQg8kc2j37t3ndZl70l3mvLw8pk6dSjgcxmAw8O2333LhwgVEUUyKF0C/36/KXFFRoUpbX19PaWkp9+7dw263YzTGap1u+Ax0B7rMwyAcDhMIBDAajbhcLsaPH48sy4iiyNdff01tbS1GozHhvdlgUHrmpUuXsmPHDvU3ybVr1ygtLaW9vV0zMkP/QusyDwNljtlsNlNUVMS4ceNUma9evcrVq1eTSma3282yZcvYvn27KvP169cpKyujo6NDUzJD30Kn8UDmJ3NycsZ3r4yDzABzeURkTklJweVykZGRQTgcRhAEamtr+eabbzCZTJoSoC+UnvnnP/85W7duVWWuq6ujtLQUn8+XsKm5/ujrJ2sDuHDhwpxRktkJZC9evDg92WV2OBy4XC5sNhuyLCPLMpcuXaKhoQGj0ZgUMnu9XtxuN7/61a947bXX1PLa2lrKy8s1KzP0LbR18uTJ4uzZs3vMM0uSJMdBZohuOy0rK1vUW+bm5uZ/a11mgFAohM1mY8GCBaSmpiJJEj6fj9raWpqbmzGZTJoUoDfBYBCPx/MfMl+8eJGtW7fS1dWlWZmhn912zc3N4WCvjQUGg0H85S9/mR29NEf/xAIvQGNj43/skU5PT//xypUrp0YvHUQO2WoOWZZxOp04HA4kScJgMNDS0sKdO3cQRVGzAvQmGAwyZswY1q5dq5bduHGD9evX4/F4cDgcmn6WvoTu8vv94YMHD16WJKnHUamCgoIpNTU1s6KXY4mEKRgprQAlJSWn6+vrP+9eYTabUysqKirKy8tnEBmaFKFBqUVR5M6dO9y+fRuj0YgkSUyePJk5c+aoG4+SAYPBgMfj4cqVK2rZhAkT+NnPfoYsywQCgQTe3cD0JXQrENq4ceMPf/7zny+OgtR+4JbX65Vzc3PfSUapTSYTsixz7tw5Ghoa1F5s5syZ5Ofnq2NsraM8x86dO6mpqQEgJSWF7du3s3z5ctxuN16vN8F32Td9CS0BzYyu1HUksdSCIKiLJDU1Ndy4cQODwUA4HGbatGkUFhYC9DidokVEUcThcODz+Xj99deprq4GIs9XXl5OcXExbrebrq6uBN/pw+lvJ0wIXeoho2wwunTpEteuXUMURWRZZtKkSbhcLkRR1LzUBoMBu91OIBDg97//PefOnVPrNm/ezPPPP4/H49Gk1ANt7dKlHgbKXPOVK1e4fPkygiAgyzLZ2dksXLgQq9WaFFI7HA78fj9btmzhxIkTat2mTZt48cUXNSn1YPYq6lIPA5PJhMlk4uuvv+bChQuqvJmZmcyfP5/U1FQCgQCyHKvwJLFHGX4IgsCOHTt6SF1SUsKqVavweDx4PJ5+vsvoMtjNt7rUw0BZ4r516xbV1dWEQiHC4TBOp5OFCxfidDrVDUxaRZFalmXeeOMNjh8/rtatW7eOl19+ma6uLs1IPZTd5LrUw8BgMGAymWhsbOTs2bP4/ZH4OmlpaSxcuJCxY8eqm/+1iiiK2O12ALZv386xY8fUujVr1rBu3To8Hg9utztRt6gy1OMRutTDwGAwYDabaWlpoaqqSh13WiwWXC4X2dnZSSO10Whk9+7dHD16VK1btWoVJSUlmuiph3PeR5d6GCh7n9vb2zl16hSdnZ0IgoDRaKSoqIgpU6aoJ1u0ijL8EEWRHTt2cOTIEbVu5cqVbNiwIeE99XAPsOlSDwNRFDGZTHg8Hqqqqrh37x6CIGAwGMjPz2f69OlIkqRpqQVBwG63Y7Va2bt3L59++qlat2LFCkpLS+nq6kqY1CM5kalLPQyUntrn81FVVUVzc7N6MDY3N1cNOKNllOGHxWJh3759fPLJJ2pdcXExr776Kj6fLyHL5CM9YqxLPQwEQVCXmM+cOUNDQwMQ2bap5d65O0pPrUj90UcfqXW/+MUvyMjISMizxOLMvC71MFCkFgSB6upqTp06xcmTJ+no6EiKPdPwQOqUlBTeffddDh48yHfffcfHH39MW1tbQk7lxCoIxHCkHmkE/6FKnTvC9uKCsgBz7949fD5fUgSa6Y4gCDgcDiwWC4cOHWLdunUcOHAAs9mc1ELDIKU+fvz4tOilPQZtDkrq4uLiLGAcGk1JocxVJ0Ogmb5wOp2MGzcOg8FAdnY2NpstIfcR65/egFIXFRVNjn4ZqxwrA0q9fv36Z6KXmhRaJ3bEozvoV+qOjg5l5j2Wm4P7lbq+vv776JeJX8rSiSvxevtQpM7auHHjD62trTWrV6+e5vP5gqWlpV9HPxOLHCvdqQPwer1TcnNz3zly5MjN3Nxc16VLl86sXbv2dLQ9PcfKI47wsC2MMQxLZSTyAtj77KEXaIlVI73IBaY8pPwk0KZnktU2I80kG+/5oRDQRORwq5VIKjcf8f3VX0fkdHg2kTFza/Qe2uLYpo5GiHcPrTm0vKleZ+T010ObiaQStkavfUR6uViPfbujJJ13EOnFlaTzo74W/Kj8qn5UnmOw9DXLYQbGA9a8vDxTXl6eiYjY2TwQPNYUEEky74gmnbcRSUJfRCSKv47OgPQl9BiAo0ePTjl//vzi8+fPL/7nP/+pLIhkEXup04EJ+fn59vv37//pww8//Gt7e/uBbgsi+ehS6wyCvoROcTqdwpIlS2YIUX7yk5/M+Pzzz6dH62MtdQbAvn37lo4ZM2YKgMPhmHj48OE3dal1hkKfCys+nw9Jknpsl3r22Wcfi5PUIeiRZB6AlJSUzF5SF6BLrdMP/YYC++CDD/4d7jUt8Oyzzz526tSpx6KXsZK6FWD16tX/amxs7BGMUZE6Oq4eiy61Tj/0FwpMeuWVV+6+//77tb2lXrhw4fQYS90JNLS2toZcLldlU1NTXffKlJSUzPfee2+PLrXOQAwUCkxas2ZN8/vvv1/be5NRHKSuBW5///33gaKioopklFqSJPx+P36/n0AgkLRz3oFAgLa2NlpbW2lvb0+KmHwK/W1OCtJN6g8++KBuEFKPdBP9JZJUakmSCAQCZGVlkZOTg8lk0nx0pIchSRJut5ucnBx+85vfkJWVhdvtThqpB9ptFwTuMHipxzH6UheiAaklSSIzM5Onn36auXPnsmjRIjU+nNbPCHbH7/fjdDrZu3cvJSUlHDhwgJycnKSRerChwAaUuqqqKid6OWpSv/TSSxOB/0IjUgeDQfx+P6FQCKfTyfz580lPT9d8dKTuCIKAJElq7JDMzEz279/PrFmz6OzsTNr40L0ZUOoFCxb8eLSlPnDgQKVWpDYajbjdbk6fPo3f7yccDpOamsqCBQsYN24cgUBA04FkFMxmM263mz/84Q+0tEQ2RGZmZvL222/z+OOPa76nHmooMF3qPlBibrS2tlJVVaVGEDKbzcybN48f/ehHBINBTcsAD0Lp3rx5k82bN9Pc3AxEjli9++67PPXUU5ruqYcTCiyhUj9snlprUnd0dPDFF1/Q0dGhBpIpKChg6tSpSJKkealNJhM2m41bt26xefNm7ty5A4DVauXNN98kPz8ft9utxunTEsMNBZYwqV0uV+UgpU5IzmFFap/PxxdffMEPP/yAIAgIgsBTTz3FzJkzkyLniiJ1Q0MDJSUl3Lp1CwCbzcZbb73FvHnz8Hg8mpN6JKHAtC51AQmSWom5EQwGOX36tJoJC2DOnDk8+eSThEIhzc9VK1I3Nzfz2muvcfv2bQA1DNjTTz+N2+3G5/Ml+E4fMNJQYANKfe7cuVGV+uDBg3u0IrXZbEaWZU6fPq0mEgqHw+Tk5JCXl6cmEtK61Ha7naamJjZu3Mg333wDRN4NKioqWLRokaZ66liEAutX6qKiolGV2mq1pmtFaniQc6Wmpob6+no1PcW0adOYN28eoihqvqc2Go3Y7Xbu3r3Lpk2buH79OhAJB7x3716WLFmimZ46VqHAdKn7Qcki2z2RUDgcZuLEicybNw+z2az5BRhF6ra2NsrKyvjqq6+AyDvDrl27+OlPf4rH40m41LEMBTZUqUcaaGaoUs8dYXsjQomMdPXqVerq6hAEgXA4TFZWFvPnz1cTCSWD1Pfv3+d3v/sdly9fBiLDq+3bt7Ns2bKESx3rUGADSt0tFJgjBm32kPq777670L1SkXrx4sXpRI6POWPQ5rBRktffuHGDCxcuIEkSsiyTkZHBokWLcDgcmpdamaf2er2UlZVRVxdZGhBFkW3btiU8OWc8QoH1kLr3B+bNm6fEzIhVKDBV6vnz5+9pbm7+d/dKq9WaXlZWtih6mRmjNoeNkkiooaGB6upqvF4vsixjt9uZP38+NptN8yF1Fak9Hg/l5eXU1tYCkZ66rKyM5557Do/Hk5CpyXiEAnMABovFIixZsiS7d6XX61Veh2O1DpwSbZOVK1dOTU9P/3HvDzQ2NioRkzSR09dgMCCKIk1NTbS0tGAwGJAkCafTidPp1HQPraDkMXS73fz2t7/lxo0bQETqdevWqRm+RptYC50B2C0Wi3D16tXcadOm9RA6EAgEKysrlazosRhopRA5Fe4sLy+fUVFRUWE2m3vEnq6vr/+8pKTkdPRSE6HAlFwqc+bMYfLkyUiShNFo5Pbt2zQ1NSVNBFLlRXbZsmVMmDBBLf/yyy/p6upS852PJrGMnDSgzK+//nrNO++800Ektsf9EbY3KJlzc3Pf8Xq9MnCL+MYUGRTKGDk/P5+pU6ciyzIGg4GGhgY1QWci4ioPFa/Xi8fj4bnnnqOsrEwNTlRTU8POnTuRZTkhzxEroYcq890Rtjccmf9jPD+ahMNhdWxcWFjIpEmTVJlv3LhBXV2dmn9F6yjp237961+zefNmtby6upqtW7cSCATUbFmjTSyEzgRsQ5R5JOPnpJQ5GAxiMBgoLCxk/PjxyLKMKIpcu3aNK1euqC+LWkeR+fnnn2fTpk1q+blz59i2bRuBQAC73Z6Q4QaMXOhMwOZ0OoWLFy/qMj8ERWar1UpRUREZGRnIsowgCFy+fJmvvvoq6WR+8cUXKSkpUctPnDjBtm3b1PQUiXwHGInQuswDoOzVSEtLw+VyMWbMGMLhMOFwmIsXL3Lr1i1MJlNSJAnyeDx0dXWxatUq1q1bp5afOHGCHTt2aEJmGL7QuswDoMjsdDpxuVykpaWp4+jz58/T2NioLolrHUXml19+mTVr1qjlx48fZ+fOnQCakBmGJ7Qu8wAo2WDHjh1LYWEhFktkDcnv91NTU0NLS0vSyOx2u+nq6uKVV15h1apVavmxY8fYtWuXuhyuBZlh6ELrMg+AciJl/PjxFBQUqGPjrq4uzp49S1tbW9KkblN65pKSElauXKmWHz16lMrKSs3JDEMTWpd5AEKhEKFQiClTpjB37lxEUUQQBDo6Ojhz5gwejydpZFZ65g0bNrBixQq1/MiRI+zZsweLxYLD4dBccPzBCq3LPAChUAhJkpg+fTq5uQ9yfN67d0/ds5EseQgVmUtLSykuLlbLP/30U/bt24fVasVms2lOZhic0LrMg0CWZdLT01WZlb0a1dXVSJKE2WzWpAC9CQQC+P1+Xn311R4yf/LJJ+zfvx+LxYLdbtfsswwktC7zEAiFQni9XlJSUmhoaOD8+fM9cnonA6FQiIyMDJYvX66WffTRR/zxj38kJSVF0zJD/0LrMg8Bo9FIZ2cnJ0+eJC0tTd1FlwwLJt0xmUy0tbXx8ccfs3TpUv7xj39w6NChpJAZ+hY6jdGVGSL5BZNSZugZvsDn8yXNtFxvlJM1f/nLX/j73/9Oa2ur+gKYDPQltA2gqqpqzijJnAGMKy4uzkpGmRVEUUyKl76BsNlsavL5sWPHJvhuhkZfP32r0+kUZs+ePbF7YZxkhmiOlfXr1z+TrDLraIO+hA62t7eHOzo6upSCOMoM0cyy3ZLME73WZdYZEn0J7QcoLy+/ePPmzeabN2/e2bBhw9k4yQyRkyT+tWvXnj527Nj/trS0fPnZZ58d0mXWGSp9pUYWiIQa6J1mwgf8QGxlVhgDPPOQ8pjKrCev1zbxSl4fJpKOwsGD09l+oGMkjQ1AG3CSSAZbJen8HUZ+VEvn/xEP7aF1dJKV5J9j0tHphi60ziOFLrTOI4UutM4jhS60ziPF/wHgvbfirVNMHAAAAABJRU5ErkJggg=="},284:function(e,t,i){const a=i(5),n=i(285),o=i(254),r=i(290),l=i(255),s=i(291),c={ready(){let e=Array.from(arguments);const t=e.pop();let i=!0;for(var a of e)if("function"==typeof a?a()||(i=!1):a||(i=!1),!i)break;i?t():setTimeout(()=>{c.ready.call(this,...arguments)},50)},dialog:o,util:l,api:{defaultCallback:n.defaultFormCallback,post:n.post}};window.api=window.api||{},window.api.jquery=a,window.api.base=n,window.api.dialog=o,window.api.lister=r,window.api.selectorDialog=s,window.api.util=l,n.init(),window.MS=c},285:function(e,t,i){var a=i(5),n=i(254),o=i(256),r=i(289),l={init:function(){a(function(){a("form").each(function(e,t){a(t).unbind("submit"),void 0!==a(t).attr("data-ajax-form")?o.initAjax(t,n):a(t).is("[data-form-no-loading]")||o.initCommon(t,n)})}),r.init(n)},defaultFormCallback:function(e,t){return o.defaultCallback(e,t,n)},post:function(e,t,i){a.ajax({type:"post",url:e,dataType:"json",timeout:6e5,data:t,success:function(e){i&&i(e)},error:function(){i&&i({code:-999,msg:"请求出现错误 T_T"})}})},postSuccess:function(e,t,i,a){i=i||l.defaultFormCallback,a=a||l.defaultFormCallback,l.post(e,t,function(e){l.defaultFormCallback(e,{success:function(e){i(e)},error:function(e){a(e)}})})}};e.exports=l},286:function(r,l,s){!function(n){var o;!function(f){"use strict";function t(e){var t=this;t.index=++h.index,t.config=y.extend({},t.config,u.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)}var y,c,e,i=f.layui&&layui.define,u={getPath:(e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,a=i;0'+(o?a.title[0]:a.title)+"":"";return a.zIndex=n,t([a.shade?'
':"",'
'+(e&&2!=a.type?"":o)+'
'+(0==a.type&&-1!==a.icon?'':"")+((1!=a.type||!e)&&a.content||"")+'
'+(r=r?'':"",a.closeBtn&&(r+=''),r)+""+(a.btn?function(){var e="";"string"==typeof a.btn&&(a.btn=[a.btn]);for(var t=0,i=a.btn.length;t'+a.btn[t]+"";return'
'+e+"
"}():"")+(a.resize?'':"")+"
"],o,y('
')),this},t.pt.creat=function(){var e,a=this,n=a.config,o=a.index,r="object"==typeof(s=n.content),l=y("body");if(!n.id||!y("#"+n.id)[0]){switch("string"==typeof n.area&&(n.area="auto"===n.area?["",""]:[n.area,""]),n.shift&&(n.anim=n.shift),6==h.ie&&(n.fixed=!1),n.type){case 0:n.btn="btn"in n?n.btn:u.btn[0],h.closeAll("dialog");break;case 2:var s=n.content=r?n.content:[n.content||"http://layer.layui.com","auto"];n.content='';break;case 3:delete n.title,delete n.closeBtn,-1===n.icon&&n.icon,h.closeAll("loading");break;case 4:r||(n.content=[n.content,"body"]),n.follow=n.content[1],n.content=n.content[0]+'',delete n.title,n.tips="object"==typeof n.tips?n.tips:[n.tips,!0],n.tipsMore||h.closeAll("tips")}a.vessel(r,function(e,t,i){l.append(e[0]),r?2==n.type||4==n.type?y("body").append(e[1]):s.parents("."+d[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),y("#"+d[0]+o).find("."+d[5]).before(t)):l.append(e[1]),y(".layui-layer-move")[0]||l.append(u.moveElem=i),a.layero=y("#"+d[0]+o),n.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),y("#layui-layer-shade"+a.index).css({"background-color":n.shade[1]||"#000",opacity:n.shade[0]||n.shade}),2==n.type&&6==h.ie&&a.layero.find("iframe").attr("src",s[0]),4==n.type?a.tips():a.offset(),n.fixed&&c.on("resize",function(){a.offset(),(/^\d+%$/.test(n.area[0])||/^\d+%$/.test(n.area[1]))&&a.auto(o),4==n.type&&a.tips()}),n.time<=0||setTimeout(function(){h.close(a.index)},n.time),a.move().callback(),d.anim[n.anim]&&(e="layer-anim "+d.anim[n.anim],a.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){y(this).removeClass(e)})),n.isOutAnim&&a.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,i=y("#"+d[0]+e);""===t.area[0]&&0t.maxWidth&&i.width(t.maxWidth));var a=[i.innerWidth(),i.innerHeight()],n=i.find(d[1]).outerHeight()||0,o=i.find("."+d[6]).outerHeight()||0,e=function(e){(e=i.find(e)).height(a[1]-n-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(a[1]=t.maxHeight,e("."+d[5])):t.fixed&&a[1]>=c.height()&&(a[1]=c.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],n="object"==typeof t.offset;e.offsetTop=(c.height()-a[1])/2,e.offsetLeft=(c.width()-a[0])/2,n?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=c.width()-a[0]:"b"===t.offset?e.offsetTop=c.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=c.width()-a[0]):"rb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=c.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?c.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?c.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=c.scrollTop(),e.offsetLeft+=c.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=c.height()-(i.find(d[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,i=[t.outerWidth(),t.outerHeight()],a=y(e.follow),n={width:(a=!a[0]?y("body"):a).outerWidth(),height:a.outerHeight(),top:a.offset().top,left:a.offset().left},o=t.find(".layui-layer-TipsG"),a=e.tips[0];e.tips[1]||o.remove(),n.autoLeft=function(){0"+(i.value||"")+"":'',o=i.success;return delete i.success,h.open(y.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+A("prompt"),maxWidth:c.width(),success:function(e){(n=e.find(".layui-layer-input")).focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=n.val();""===t?n.focus():t.length>(i.maxlength||500)?h.tips("最多输入"+(i.maxlength||500)+"个字数",n,{tips:1}):a&&a(t,e,n)}},i))},h.tab=function(a){var n=(a=a||{}).tab||{},o="layui-this",r=a.success;return delete a.success,h.open(y.extend({type:1,skin:"layui-layer-tab"+A("tab"),resize:!1,title:function(){var e=n.length,t=1,i="";if(0'+n[0].title+"";t"+n[t].title+"";return i}(),content:'
    '+function(){var e=n.length,t=1,i="";if(0'+(n[0].content||"no content")+"";t'+(n[t].content||"no content")+"";return i}()+"
",success:function(e){var t=e.find(".layui-layer-title").children(),i=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=y(this),e=t.index();t.addClass(o).siblings().removeClass(o),i.eq(e).show().siblings().hide(),"function"==typeof a.change&&a.change(e)}),"function"==typeof r&&r(e)}},a))},h.photos=function(i,e,a){var t,n,o={};if((i=i||{}).photos){var r=i.photos.constructor===Object,l=r?i.photos:{},s=l.data||[],c=l.start||0;o.imgIndex=1+(0|c),i.img=i.img||"img";var u=i.success;if(delete i.success,r){if(0===s.length)return h.msg("没有图片")}else{var d=y(i.photos),p=function(){s=[],d.find(i.img).each(function(e){var t=y(this);t.attr("layer-index",e),s.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(p(),0===s.length)return;if(e||d.on("click",i.img,function(){var e=y(this).attr("layer-index");h.photos(y.extend(i,{photos:{start:e,data:s,tab:i.tab},full:i.full}),!0),p()}),!e)return}o.imgprev=function(e){o.imgIndex--,o.imgIndex<1&&(o.imgIndex=s.length),o.tabimg(e)},o.imgnext=function(e,t){o.imgIndex++,o.imgIndex>s.length&&(o.imgIndex=1,t)||o.tabimg(e)},o.keyup=function(e){var t;o.end||(t=e.keyCode,e.preventDefault(),37===t?o.imgprev(!0):39===t?o.imgnext(!0):27===t&&h.close(o.index))},o.tabimg=function(e){if(!(s.length<=1))return l.start=o.imgIndex-1,h.close(o.index),h.photos(i,!0,e)},o.event=function(){o.bigimg.hover(function(){o.imgsee.show()},function(){o.imgsee.hide()}),o.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),o.imgprev()}),o.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),o.imgnext()}),y(document).on("keyup",o.keyup)},o.loadi=h.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1}),e=s[c].src,t=function(e){var t;h.close(o.loadi),o.index=h.open(y.extend({type:1,id:"layui-layer-photos",area:(t=[e.width,e.height],e=[y(f).width()-100,y(f).height()-100],!i.full&&(t[0]>e[0]||t[1]>e[1])&&((e=[t[0]/e[0],t[1]/e[1]])[1]'+(s[c].alt||
'+(1':"")+'
'+(s[c].alt||"")+""+o.imgIndex+"/"+s.length+"
",success:function(e,t){o.bigimg=e.find(".layui-layer-phimg"),o.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),o.event(e),i.tab&&i.tab(s[c],e),"function"==typeof u&&u(e)},end:function(){o.end=!0,y(document).off("keyup",o.keyup)}},i))},(n=new Image).src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},n.onerror=function(e){n.onerror=null,h.close(o.loadi),h.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1',' ',""].join("");Dialog.dialogContent(a,opt)},img.src=imgUrl,!1})},initSmartImage:function(){$(document).ready(function(){setTimeout(function(){$("[data-smart-image]").each(function(e,t){$(t).attr("src",$(t).attr("data-smart-image"))})},0)})},initTip:function(i){i=i||null,$(document).on("click","[data-tip-error]",function(){return i?i.tipError($(this).attr("data-tip-error")):alert($(this).attr("data-tip-error")),!1}),$(document).on("click","[data-tip-success]",function(){return i?i.tipError($(this).attr("data-tip-success")):alert($(this).attr("data-tip-success")),!1}),$(document).on("mouseover","[data-tip-popover]",function(e){var t=$(this).attr("data-tip-popover");i?i.tipPopoverShow(this,t):$(this).attr("title",t)}).on("mouseout","[data-tip-popover]",function(e){i&&i.tipPopoverHide(this)})},init:function(e){inited||(inited=!0,Convenient.initAll(e),Convenient.initSmartImage(),Convenient.initTip(e))}};module.exports=Convenient},290:function(e,t,i){!function(s){let c=i(256),u=i(254);e.exports=function(e,t){let a=s(e.lister||null),i=s(e.search||null),n=this,o={page:1,pageSize:10,field:[],order:[],search:[]},r=null,l=s.extend({server:"/path/to/server",editQuickServer:"/path/to/edit/quick",hashUrl:!0,render:function(e){}},t);this.getData=function(){return r},this.init=function(){let e=window.location.hash;0===e.indexOf("#")&&(e=e.substring(1));try{e=decodeURIComponent(e);var t,i=JSON.parse(e);for(t in i)t in o&&(o[t]=i[t])}catch(e){}a&&a.on("click","[data-refresh-button]",function(){return n.load(!0),!1})},this.initSearch=function(){i.on("click","[data-search-button]",function(){return o.page=1,n.prepareSearch(),n.load(!0),!1}),i.on("click","[data-reset-search-button]",function(){return n.resetSearch(),n.resetOrder(),n.load(!0),!1}),i.on("click","[data-expand-search-button]",function(){return i.find(".field.field-auto-hide").is(":visible")?i.find(".field.field-auto-hide").hide():i.find(".field.field-auto-hide").css("display","inline-block"),!1}),i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("init")&&s(t).data("init")(o.search)})},this.initTable=function(){},this.prepareSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("get")&&o.search.push(s(t).data("get")())})},this.resetSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("reset")&&o.search.push(s(t).data("reset")())})},this.resetOrder=function(){o.order=[]},this.setPageSize=function(e){o.pageSize=e},this.setPage=function(e){o.page=e},this.setParam=function(e,t){e in o&&(o[e]=t)},this.getParam=function(){return o},this.setOption=function(e,t){l[e]=t},this.refresh=function(){n.load()},this.load=function(){u.loadingOn(),r=null,s.post(l.server,o).done(function(e){l.hashUrl&&window.location.replace("#"+JSON.stringify(o)),u.loadingOff(),c.defaultCallback(e,{success:function(e){l.render(e.data)}})}).fail(function(e){try{u.loadingOff(),c.defaultCallback(e)}catch(e){}})},this.init(),this.initSearch(),this.initTable(),this.load()}}.call(this,i(5))},291:function(a,e,n){!function(t){function e(e){null==i&&alert("Dialog must defined"),this.opt=t.extend({limitMax:100,limitMin:1,dialogWidth:"940px",dialogHeight:"90%",server:"/path/to/link/choose/dialog",callback:function(e){alert("Select : "+JSON.stringify(e))}},e),t(window).width()<800&&(this.opt.dialogWidth="90%"),this.dialog=i,this.runtime={dialog:null}}var i=n(254);e.prototype.show=function(){var e=this;return window.__selectorDialogOption=e.opt,window.__selectorDialogItems=[],this.runtime.dialog=this.dialog.dialog(this.opt.server,{width:this.opt.dialogWidth,height:this.opt.dialogHeight,closeCallback:function(){window.__selectorDialogItems.length&&(window.__selectorDialogItems.length>e.opt.limitMax?e.dialog.tipError("Select limit max "+e.opt.limitMax+" item(s)"):window.__selectorDialogItems.length>>24)|4278255360&(i[l]<<24|i[l]>>>8);i[e>>>5]|=128<>>9<<4)]=e;for(var s=A._ff,c=A._gg,u=A._hh,d=A._ii,l=0;l>>0,n=n+f>>>0,o=o+y>>>0,r=r+h>>>0}return g.endian([a,n,o,r])})._ff=function(e,t,i,a,n,o,r){r=e+(t&i|~t&a)+(n>>>0)+r;return(r<>>32-o)+t},A._gg=function(e,t,i,a,n,o,r){r=e+(t&a|i&~a)+(n>>>0)+r;return(r<>>32-o)+t},A._hh=function(e,t,i,a,n,o,r){r=e+(t^i^a)+(n>>>0)+r;return(r<>>32-o)+t},A._ii=function(e,t,i,a,n,o,r){r=e+(i^(t|~a))+(n>>>0)+r;return(r<>>32-o)+t},A._blocksize=16,A._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);e=g.wordsToBytes(A(e,t));return t&&t.asBytes?e:t&&t.asString?x.bytesToString(e):g.bytesToHex(e)}},123:function(e,t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i={rotl:function(e,t){return e<>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&i.rotl(e,8)|4278255360&i.rotl(e,24);for(var t=0;t>>5]|=e[i]<<24-a%32;return t},wordsToBytes:function(e){for(var t=[],i=0;i<32*e.length;i+=8)t.push(e[i>>>5]>>>24-i%32&255);return t},bytesToHex:function(e){for(var t=[],i=0;i>>4).toString(16)),t.push((15&e[i]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],i=0;i>>6*(3-n)&63)):t.push("=");return t.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var t=[],i=0,a=0;i>>6-2*a);return t}};e.exports=i},124:function(e,t){function i(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(i(e)||"function"==typeof(t=e).readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))||!!e._isBuffer);var t}},254:function(e,t,i){let u=i(5);"layer"in window&&console.error("ERR: dialog should required only once, use window.api.dialog instead");let n=i(286),r=(i(287),i(255)),d={device:"pc",loadingOn:function(e){if(e=e||null){e=n.open({type:1,content:'
'+e+"
",shade:[.3,"#000"],closeBtn:!1,title:!1,area:["auto","auto"]});return u("#layui-layer"+e).attr("type","loading"),e}return n.load(2)},loadingOff:function(){n.closeAll("loading")},tipSuccess:function(e,t){let i=2e3;e&&10','
',i.label,"
",'
','
确定
',""].join(""),{openCallback:function(){u("#dialog-input-box").find(".ok").on("click",function(){n=!0,d.dialogClose(o)}),u("#dialog-input-box").find("input").on("change",function(){a=u(this).val()})},closeCallback:function(){n&&e&&e(a)}})},preview:function(o,e){e=e||{};let r=u.extend({title:null,width:"auto",height:"auto"},e),l=u(window).width(),s=u(window).height();d&&d.loadingOn();let c=new Image;return c.onerror=function(){d.loadingOff(),d.tipError("Image load error")},c.onload=function(){d.loadingOff();let e=l-40,t=s-40,i=c.width,a=c.height;i>e&&(a=parseInt(a*e/i),i=e),a>t&&(i=parseInt(i*t/a),a=t);var n=['
',' ',"
"].join("");d.dialogContent(n,r)},c.src=o,!1}};e.exports=d},255:function(e,t,o){!function(i){const n=o(122);var a={specialchars:function(e){var t=[];if(!e)return"";if(0==e.length)return"";for(var i=0;i":t.push(">");break;case"&":t.push("&");break;case" ":t.push(" ");break;case'"':t.push(""");break;default:t.push(e.substr(i,1))}return t.join("")},text2html:function(e){return"

"+(e=a.specialchars(e)).replace(/\n/g,"

")+"

"},text2paragraph:function(e){return"

"+e.replace(/\n/g,"

")+"

"},urlencode:function(e){return e=(e+"").toString(),encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},randomString:function(e){e=e||16;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",i=t.length,a="",n=0;n{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},loadStylesheet:function(e,t){let i="s_"+n(e),a=document.getElementById(i);a?t&&t({isNew:!1}):(a=document.createElement("link"),a.id=i,a.rel="stylesheet",a.type="text/css",a.href=e,a.onload=()=>{t&&t({isNew:!0})},document.getElementsByTagName("head")[0].appendChild(a))},md5:function(e){return n(e)}};e.exports=a}.call(this,o(5))},256:function(module,exports,__webpack_require__){var $=__webpack_require__(5),Util=__webpack_require__(255),EventManager=__webpack_require__(288),Form={defaultCallback:function(res,callback,Dialog){var code,msg,redirect,data,isWeiXin,winReload,redirectFunc,successFunc,errorFunc;Dialog=Dialog||null,callback=callback||{},"object"==typeof res?"code"in res?(code=res.code,msg="",redirect="",data=null,"msg"in res&&(msg=res.msg),"redirect"in res&&(redirect=res.redirect),"data"in res&&(data=res.data),isWeiXin=function(){return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},winReload=function(e){var t,i,a;isWeiXin()?(t=e.location,i=[],a="_t_"+(new Date).getTime()+"_",i.push(t.protocol),i.push("//"),i.push(t.host),i.push(t.pathname),t.search?/_t_\d+_/.test(t.search)?i.push(t.search.replace(/_t_\d+_/,a)):(i.push(t.search),i.push("&"),i.push(a)):(i.push(t.search),i.push("?"),i.push(a)),i.push(t.hash),e.location.replace(i.join(""))):e.location.reload()},redirectFunc=function(redirect){redirect&&("[reload]"===redirect?winReload(window):"[root-reload]"==redirect?winReload(Util.getRootWindow()):"[back]"===redirect?window.history.back():0===redirect.indexOf("[js]")?eval(redirect.substr(4)):window.location.href=redirect)},successFunc=function(){"success"in callback?callback.success(res):redirect?msg?Dialog?Dialog.alertSuccess(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):msg&&(Dialog?Dialog.tipSuccess(msg):alert(msg))},errorFunc=function(){"error"in callback?callback.error(res):redirect?msg?Dialog?Dialog.alertError(msg,function(){redirectFunc(redirect)}):(alert(msg),redirectFunc(redirect)):redirectFunc(redirect):Dialog?Dialog.tipError(msg):alert(msg)},(0==code?successFunc:errorFunc)()):Form.defaultCallback({code:-1,msg:"parse error: "+JSON.stringify(res)},callback,Dialog):alert("ErrorResponse:"+res)},initAjax:function(e,o){o=o||null;var r=$(e);r.on("submit",function(){if(r.data("submiting"))return!1;var e=$(this).attr("action"),t=$(this).attr("method"),i=$(this).data("callbackValidate"),a=$(this).data("callback");if(i&&!i())return!1;var a=a||Form.defaultCallback,t=t||"get",n=$(this).serializeArray();return r.data("submiting",!0),o&&(i=$(this).attr("data-form-loading"),o.loadingOn(i)),$.ajax({type:t,url:e,dataType:"json",timeout:6e5,data:n,success:function(e){return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)},error:function(){var e={code:-999,msg:"请求出现错误 T_T"};return EventManager.fire("modstart:form.submitted",{$form:r,res:e}),r.data("submiting",null),o&&o.loadingOff(),a(e,{},o)}}),!1})},initCommon:function(e,t){var i=$(e);i.on("submit",function(){if(i.data("submiting"))return!1;$(this).attr("action"),$(this).attr("method"),$(this).serializeArray();var e=$(this).data("callbackValidate");return $(this).data("callback"),!(e&&!e())&&(i.data("submiting",!0),t&&(e=$(this).attr("data-form-loading"),$(this).is("[data-form-loading]")&&t.loadingOn(e)),!0)})}};module.exports=Form},258:function(e,t,i){"use strict";var a=i(11),n=i.n(a),o=i(26),r=i.n(o),l=i(271),s=i(272),a=i(273),o=i(274),i=i(275),n=n()(function(e){return e[1]}),l=r()(l.a),s=r()(s.a),a=r()(a.a),o=r()(o.a),i=r()(i.a);n.push([e.i,'.layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url('+l+") center center no-repeat #eee}.layui-layer-ico{background:url("+s+") no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url("+a+") no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url("+l+") no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url("+o+") no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url("+i+") no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}}",""]),t.a=n},26:function(e,t,i){"use strict";e.exports=function(e,t){return t=t||{},"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},271:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhJQAlAJECAL3L2AYrTv///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAJQAlAAACi5SPqcvtDyGYIFpF690i8xUw3qJBwUlSadmcLqYmGQu6KDIeM13beGzYWWy3DlB4IYaMk+Dso2RWkFCfLPcRvFbZxFLUDTt21BW56TyjRep1e20+i+eYMR145W2eefj+6VFmgTQi+ECVY8iGxcg35phGo/iDFwlTyXWphwlm1imGRdcnuqhHeop6UAAAIfkEBQoAAgAsEAACAAQACwAAAgWMj6nLXAAh+QQFCgACACwVAAUACgALAAACFZQvgRi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwXABEADAADAAACBYyPqcsFACH5BAUKAAIALBUAFQAKAAsAAAITlGKZwWoMHYxqtmplxlNT7ixGAQAh+QQFCgACACwQABgABAALAAACBYyPqctcACH5BAUKAAIALAUAFQAKAAsAAAIVlC+BGL3Z3IlxUmUuhtR2LzHhsiEFACH5BAUKAAIALAEAEQAMAAMAAAIFjI+pywUAIfkEBQoAAgAsBQAFAAoACwAAAhOUYJnAagwdjGq2amXGU1PuLEYBACH5BAUKAAIALBAAAgAEAAsAAAIFhI+py1wAIfkEBQoAAgAsFQAFAAoACwAAAhWUL4AIvdnciXFSZS6G1HYvMeGyIQUAIfkEBQoAAgAsFwARAAwAAwAAAgWEj6nLBQAh+QQFCgACACwVABUACgALAAACE5RgmcBqDB2MarZqZcZTU+4sRgEAIfkEBQoAAgAsEAAYAAQACwAAAgWEj6nLXAAh+QQFCgACACwFABUACgALAAACFZQvgAi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwBABEADAADAAACBYSPqcsFADs="},272:function(e,t,i){"use strict";t.a=i.p+"sprites/76ac4c2d9120b0b4f88365fe6b38038d.png"},273:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhPAAYALMPAPPJp/HYxfSwkf50Df5TD/+HAPe5bvqHR/twOviZavyrMu/m3f9EAP9mAP+ZAO7u7iH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wUmlnaHRzPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvcmlnaHRzLyIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcFJpZ2h0czpNYXJrZWQ9IkZhbHNlIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6QUNDRERBRjMxRTIwNjgxMTg4QzZERjVGQ0I0MDI1NDkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NTlDMEI5MzU5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NTlDMEI5MzQ5RTY2MTFFMTkxRDY5NkVCMDBGOTBFRUYiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENzU2N0YwMTMyMjA2ODExODhDNkRGNUZDQjQwMjU0OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQ0NEREFGMzFFMjA2ODExODhDNkRGNUZDQjQwMjU0OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAkFAA8ALAAAAAA8ABgAAATy8MlJq7046827/2AWCEdpCkGodkHSvHCcLGttLUOsw0NqW4EDYog4+CyInbJxwAQMiqjCcMQkGNgsNmFxLZXcisFBLpMNGYF2zRBQAt9vFWCuOwCXAJt9FMSXbhILdnY0FQd7a00SB39Kiw9jhGZoFQSJWgQTjksTCpNmChaYa5ucOxOgdaOkWaanMamqZRaXrZoSObAvA56zDqKHrQyQjbtME5KqlW/DRwbHDcwBv1UTV5hhEnDHVcqEzF2J2te75BLflBsCCFoIgRU4pwOGFQCfZQp4PxUBSX8IrPELscDLkhkDB7bQxQthwocQI0rMEAEAIfkECQUADwAsAAAAADwAGAAABOjwyUmrvTjrzbv/ILcAiWCUQKh+y9G88DsIa40JcQ4ji30JCIZQeAhcAgOdMvEYKZ5PQA8UHFoZtEpSuVQ4vmCHwuhJXK+EqcTA5YbfYrUmcD4jKNt2rAB/GzoHdWdTAXo6fXByGASCV1k4hjADiG8pG41XTA9skS98lGB/l5hDmgmdnqChHIykWBKQnZOqDpYaVaRkAKgvtA6KFwCudxO8DZ+UCh64grYPp7yqwBgLzFYEWRNIvAlecGMhAq1DCGQVu7JNBn7THQDvAObBeVwJ7T4gLW2i+P0PAQkOCBQoxZ/BgwgTYogAACH5BAkFAA8ALAAAAAA8ABgAAATV8MlJq7046827/2AojmMgHE2aIslCckAcb8Kg3umQvFhCMEAgYXcR4HCFpEJhCPAkiKAUiLAEbMdGwcHtcg28w3R8qKCyA6/aASABxvC2JJBNrdcuURQ+rUqMWVt3XmAhC3xweWdHg2oKIm+IU3KLOI1qkJKTEpU3l14iAZpSTg+dKp9cjyKjQRMGdYKXhSFio2VzdQ2ppSEBP5IEvQ9YR7J3tCICmgIVALrHhE+/cMIXCboDxwpy0z5BQ8POxUcD3U88CwnkKQni6E8yMXnw9fb3+BURACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AojqQUCEeaJkC5CUgcJ0G2JE2u60jrVgICY0gcIhaXQ25QaDp1vt8jUKwaLbhGwcHtcgeNQe23EFqrAkogt/W6cwlp4mwlICW4gXvvyI1LZnRFaRJgfHtghCRUglUIJjmHbgUNBy4AjY4SAGGSXpSWJZiZRI8PnHqeXKAujKQMpmsNqquVP4GZioa0iT8Hrwx/Sqmefj8BuHRxE5xanmChPwKZRxVKznxgDX8/AAh00RQL18S1YYpSDzffpVEXAjvxB9zpiwnaOQfo9fz9/v8ApUQAACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojmS1AIkhJEBQasFBMDRDHC62JE3v97iXJVEr1hKThUHBdBQGv99gIZwIjFiG4AFweL/eQtSHqD4Cs2yR0AW7xeOGoXpQYwvuPHQ8FabtNA15g3ENWyUBgEUDg3mFBy8AijV4jWB7UZAlkpMMlZZemD+aJImdjKBej0KdDIKpDoWHJXWdn42iPzmIrQagcGOkL0SKSG15wFF9ZgJ/WLMBvpeFCLtmMVhBOjxxB1RmJgDiAN8bAQkH6Qcs4O3u7/Dx4BEAIfkECQUADwAsAAAAADwAGAAABMrwyUmrvTjrzbv/YCiOV5AgKCosZIsFCCPPc5KZQ6M3QxK4lgWBRuMVFEgDS5LYOXc24CRGlBUc2CwW8BA8vw2BtFuVDbRoByAHdg6WrmG1kU63v9EWoMy41rVsdzoDQAllBH9oBYJOPy2GVYiJWYuMOlyPh5OUlpcuApqbDpWWjiQBfH6TgYxSVER0m50NeS2gZap1BrOmLpBVuVpcTYy1QLdzuQamAqxuYmMTMGUJcBYmeL3REgAJ3gkC2hgLAOUA1tvp6uvs7R8RACH5BAkFAA8ALAAAAAA8ABgAAATs8MlJq7046827/2AojpmQICgqBGSLCQgjz3OyZEFy7LvgXoDZoEAsDBoyxGWRaDifzgHgNwkQGA2HdqstyBKWA3TsZFEPDAJ37RjIzBIBmTy4uQKyAnuNPEwWR3NjPi4CWHtrXgQTcoJjAz8xA4hrbxJijmNwIzF6lFtXUw+YmU+iJJ2foAyipKUNp5wMk6oOV2aupZsihlmqioyvUT94DJ6USEoSAcINYJGHlF6sFE2lA7sjxQ3HXNN+FAu5ZIRUAlcEtF1IDAh2FQaC2FQUATE0NOVACYENAyv0LMCgQeBAtoAIEypcyLDhhAgAIfkECQUADwAsAAAAADwAGAAABODwyUmrvTjrzbv/YCiOWiAgTJoiSUC+V0KodEokZWIIugtPAYNCUSgMZjWV4BI4NJ7QxsH3Mjiu2OsgqaJKFoOoeLB4AbJoR4PLQFQQ4rh7tEin2QyqIM5fiqx2WVtcfg9hfGMjCoFZBWxzC4h8Xh6MaI8SAJJxACKWWZgPmptRnSGLn45ccwGkUWUhgJaDSTgSh6QDIwGfDkhJeq4Ntn+zbAQUYLmwI7Joa2ymQLhxA5QiAKhXBdBcBxcLcHEHzD+Zv0kEhRcACQfvCdLmFAEytdfzZgD7AOX5/wADCrwQAQAh+QQJBQAPACwAAAAAPAAYAAAE6fDJSau9OOvNu/8gFiQkKSxh+gkE474uEqj0tSBw/gq1twCKYBCAOuiOhJllkRg0no0BDxRQOK5YhyJx7BIsAKj4ifgsrNlsodtNUBbOsdjgMaTvA7buOznI5UoaC3eELXowSgF/cm4bAIR3DYcwUwKLYwMcdpBZkpMujQaXY5qcnZ+gEgmjYhyPpleen42WrFEcg7AOqC4AEoq2Bx1onGu8FAi2vriwvAzCE2Gj0B1VhApGqEkVAnFyByhmm1gGKDifUxULfmN0PerZbATLGD8A9+8ZLF0y+f4PAhAIFJgg0L+DCBMqrBABACH5BAkFAA8ALAAAAAA8ABgAAATz8MlJq7046827/2AWCEhpCkGodkHCvHCcpGtdBUSswwRt3waFUGHwVRC7JAOBaR2eh9nG4KhaqwaLS5lMaBvgMNiLAVzPDgAlwOUaBeJ4Q3BZoNGLiaCtpEsWcnJGElR3V1kSSHw7TBIJgXFkFAqGVwoTi0oTA5BiAxaVZ5iZOxOdcaChVqOkMaanYRaUqpcSOa0vBJuwDZ8VhaGID4q4jQ+PsJITAaoOPlu4kgG8g4TBa7gvRsiQyr+GwhMHuAcWBpDhFwCzVQpqFgu3iwR5FgAHYgfvP2vEXAj7+K1YMI7LgXoCf7SQx4CAlIQQI0qcmCECACH5BAkFAA8ALAAAAAA8ABgAAATe8MlJq7046827/2AXACQZnuCSEEzrEkmAzpjAunhLCDRmKI5g0LC4BHJIl+wRSByeh1hKSBUWKYtbMkdQNb7gb+IDrFIVlcR2iwi7GzwOwGwGTI7r5Pu91NDpEwJ5SAR7bmMaC39mVweDOYZuAxsBi1VLCI84kW6UllSYmi6cYZ6fQaGiDKRfkxunQRNqqoWkiBoGpwaBqi2sfRmKn1cPWb21hreUZWYKwA+zogkGhrsguVVEF5maCBIAB2EHdicLAecBxBYL3HkI6j0zgmvK8T1NWgwwz/b9/v8AMUQAACH5BAkFAA8ALAAAAAA8ABgAAATY8MlJq7046827/+AXACQQhCi4CATjvoSwpFww2nMWtG/vEieaZQFwGI8ORbCy4Pl6hMZhmlimFMiswypBPKGNsDicoBm02pxE8IWN3w0BaoHWGijOLxzO5RTrWRMBbT97b2UgWIBIQQmEDIZvAyGKi0aNj5FvlJZHmISaYyFnnVtrmaENkyCknRMAj1GhiB90nXcTeU+pfRytgGoPjoSyhrQqlWgATLo+xW+4NH9ZCsGCzT5vB8tCEkQG4Aa9EwtehAjW3TQLCdgJ6erdAgn0CXLx+Pn6+xwRACH5BAkFAA8ALAAAAAA8ABgAAATM8MlJq7046827/2AojuSzCAeiqsJSaoChzIoBaALB7DyfvJaAwkEsEhWBS6LHIDQaTt0PKFkMjViFiwLoOZ/gJ0FAfVyx2Ypu9w2HB9QAeu5ISgQ9t75BfhnoaAYTCDxte08HQIBzE2sMh25wL4toE3mQYYqURpY8mJmTm0WdO59gQH+ighKEbKaJLwCiDjd3l5h9L2eAChQBjoZ7di9ylMMSS4WHBFNUVnRaSkx6DM1lDwC7CgBbFwCOTAy51yQLCeDM3eTr7O3u7yMRACH5BAkFAA8ALAAAAAA8ABgAAATO8MlJq7046827/2AojiQVCEmaCEGpLYbizI5iLFlwMHzPHy1XJSCjGRVBU6JBYDZ8PEJSuCgaj7jJssHtMqGIrKt6LdeyAq/660sIHwaz2fBYrNdQxnRkldMUD1t3XQRQAi4BfmYBA4NqYIiKZQGOjz4IkZJGlJVdkCULmkYLjZ1Pl0KiNIGmhT6HLnGidJyVeXsioaJZgneuPZhviZJicIO/UcVjfVgWAAeWl7hjskY3GQsIeTxhbxcLAeEByhjPCOcIBwDe7O3u7/DxEhEAIfkECQUADwAsAAAAADwAGAAABMHwyUmrvTjrzbv/YCiOWGACgbcALEpygeHMtGNoAsLsPCG8GEBt6FAAEofkIRE48J68A7ASIBILjay2QYB6f9PHQmElDrbarveZmsrKRLR2/USE4dazXE1ntElVeENYcg19O2CAgoOFhocJQIGLM4RyhwyQL5KTlWiXiSSTNHpofHR/JG+TjZcEYQuinWmfYQ9CgrJZpmtStQ+bRAYAB1sHAAKHoLUxVjcZOV4+vhYxBtYACx0CCdwJytPg4eLj5B8RACH5BAkFAA8ALAAAAAA8ABgAAATI8MlJq7046827/2AojtgCGKgBLGSbLYojz7LClgnC7AyS3C7KgkacJQKWAIHHZBCQQQmsSG0khMsmkwB0GajUQkMg1WmbiO5oCKYOGsjE+Xz1tt3WR3a+DX7vRGIDAXxnUCQxgDRiDQCFWgAuiYoyjI6PTJEtk5SChJg8hyMAlDNvV3uPBEFspQ1wD3KgdZKlYnULqXNcUa2ADQYUn3xPURIBnFQHmkJmWmnGE1NUNi+yTD/RFQEGCt4KBqIvAOQr2ufo6errIhEAIfkECQUADwAsAAAAADwAGAAABLTwyUmrvTjrzbv/YCiO2QIYSqoYxkK+GODMdG1owoHsyCHAF0NtSLtZAgiGcqlEBIATGXEKqCwIzCyD4IIqplNFJanNIqBSMLEqAZTL7NdXTRRLDm/tAUgHT7B5TAR8fUQTgVqEhTWHiEyKizN/jkqDMHORdg9kjmcwaYtxApQMPzALkTNdEpx5nkBCi0YTAYgEcbCFsxQLrUwIq1APAXS4Fjm/AsHCDwsoQy3M0tPU1dbXGBEAIfkECQUADwAsAAAAADwAGAAABNbwyUmrvTjrzbv/4BWMZGiCC+CsrKMYyyljQWuvSqAFQA/os0kgcSjejoqYRYBgOJ8EQDDRqDYKR6Ql8ew+EzKBtTHIZqUTgHfNQKPGDXNWQWmyuwgTdSzPAgN3a0AfA2NYfTcGEgKBXgIhcIeILYoPXI1fkIaTNpWXmAxgIIVWZZwsaIygDI8ge1Wmpw5/qwyDHgFwsisUBKAEJ69XspUSapitJgabk0kVB40HQQAHsJy3ab5eUUEWCwpyzhkCCeUJbt0VCwZZMOnvxgbyBujw9vf4+RcRACH5BAUFAA8ALAAAAAA8ABgAAATi8MlJq7046827/2AWjGRogovirKyjAMspY0Zrr0owe0Fy/IeE7gG4GRWxS4LAaDIIiaQn0ahaq0KjVmEJMJ1gwpAjuJob2jSgggC7GYjO4nwdpLcUwfst4FDpVQV3WlJfe04EHAOAVYNaaw8Bh29jGIyNjjcGEgCTbpAZl2iZNptEnmCgGIuMpKUSkqhNlUqXgq4roIaTiRsBtrgrUgmyCR1/dHa4XBMLu28EUhsGgAYqrrReh2IgAAdXB2sLrqYWS24H0juR13flFwsA8jDr8DVq9fkB9ywKBur5AgocSPBCBAA7"},274:function(e,t,i){"use strict";t.a="data:image/gif;base64,R0lGODlhIAAgALMAAP///7Ozs/v7+9bW1uHh4fLy8rq6uoGBgTQ0NAEBARsbG8TExJeXl/39/VRUVAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBQAAACwAAAAAIAAgAAAE5xDISSlLrOrNp0pKNRCdFhxVolJLEJQUoSgOpSYT4RowNSsvyW1icA16k8MMMRkCBjskBTFDAZyuAEkqCfxIQ2hgQRFvAQEEIjNxVDW6XNE4YagRjuBCwe60smQUDnd4Rz1ZAQZnFAGDd0hihh12CEE9kjAEVlycXIg7BAsMB6SlnJ87paqbSKiKoqusnbMdmDC2tXQlkUhziYtyWTxIfy6BE8WJt5YEvpJivxNaGmLHT0VnOgGYf0dZXS7APdpB309RnHOG5gDqXGLDaC457D1zZ/V/nmOM82XiHQjYKhKP1oZmADdEAAAh+QQFBQAAACwAAAAAGAAXAAAEchDISasKNeuJFKoHs4mUYlJIkmjIV54Soypsa0wmLSnqoTEtBw52mG0AjhYpBxioEqRNy8V0qFzNw+GGwlJki4lBqx1IBgjMkRIghwjrzcDti2/Gh7D9qN774wQGAYOEfwCChIV/gYmDho+QkZKTR3p7EQAh+QQFBQAAACwBAAAAHQAOAAAEchDISWdANesNHHJZwE2DUSEo5SjKKB2HOKGYFLD1CB/DnEoIlkti2PlyuKGEATMBaAACSyGbEDYD4zN1YIEmh0SCQQgYehNmTNNaKsQJXmBuuEYPi9ECAU/UFnNzeUp9VBQEBoFOLmFxWHNoQw6RWEocEQAh+QQFBQAAACwHAAAAGQARAAAEaRDICdZZNOvNDsvfBhBDdpwZgohBgE3nQaki0AYEjEqOGmqDlkEnAzBUjhrA0CoBYhLVSkm4SaAAWkahCFAWTU0A4RxzFWJnzXFWJJWb9pTihRu5dvghl+/7NQmBggo/fYKHCX8AiAmEEQAh+QQFBQAAACwOAAAAEgAYAAAEZXCwAaq9ODAMDOUAI17McYDhWA3mCYpb1RooXBktmsbt944BU6zCQCBQiwPB4jAihiCK86irTB20qvWp7Xq/FYV4TNWNz4oqWoEIgL0HX/eQSLi69boCikTkE2VVDAp5d1p0CW4RACH5BAUFAAAALA4AAAASAB4AAASAkBgCqr3YBIMXvkEIMsxXhcFFpiZqBaTXisBClibgAnd+ijYGq2I4HAamwXBgNHJ8BEbzgPNNjz7LwpnFDLvgLGJMdnw/5DRCrHaE3xbKm6FQwOt1xDnpwCvcJgcJMgEIeCYOCQlrF4YmBIoJVV2CCXZvCooHbwGRcAiKcmFUJhEAIfkEBQUAAAAsDwABABEAHwAABHsQyAkGoRivELInnOFlBjeM1BCiFBdcbMUtKQdTN0CUJru5NJQrYMh5VIFTTKJcOj2HqJQRhEqvqGuU+uw6AwgEwxkOO55lxIihoDjKY8pBoThPxmpAYi+hKzoeewkTdHkZghMIdCOIhIuHfBMOjxiNLR4KCW1ODAlxSxEAIfkEBQUAAAAsCAAOABgAEgAABGwQyEkrCDgbYvvMoOF5ILaNaIoGKroch9hacD3MFMHUBzMHiBtgwJMBFolDB4GoGGBCACKRcAAUWAmzOWJQExysQsJgWj0KqvKalTiYPhp1LBFTtp10Is6mT5gdVFx1bRN8FTsVCAqDOB9+KhEAIfkEBQUAAAAsAgASAB0ADgAABHgQyEmrBePS4bQdQZBdR5IcHmWEgUFQgWKaKbWwwSIhc4LonsXhBSCsQoOSScGQDJiWwOHQnAxWBIYJNXEoFCiEWDI9jCzESey7GwMM5doEwW4jJoypQQ743u1WcTV0CgFzbhJ5XClfHYd/EwZnHoYVDgiOfHKQNREAIfkEBQUAAAAsAAAPABkAEQAABGeQqUQruDjrW3vaYCZ5X2ie6EkcKaooTAsi7ytnTq046BBsNcTvItz4AotMwKZBIC6H6CVAJaCcT0CUBTgaTg5nTCu9GKiDEMPJg5YBBOpwlnVzLwtqyKnZagZWahoMB2M3GgsHSRsRACH5BAUFAAAALAEACAARABgAAARcMKR0gL34npkUyyCAcAmyhBijkGi2UW02VHFt33iu7yiDIDaD4/erEYGDlu/nuBAOJ9Dvc2EcDgFAYIuaXS3bbOh6MIC5IAP5Eh5fk2exC4tpgwZyiyFgvhEMBBEAIfkEBQUAAAAsAAACAA4AHQAABHMQyAnYoViSlFDGXBJ808Ep5KRwV8qEg+pRCOeoioKMwJK0Ekcu54h9AoghKgXIMZgAApQZcCCu2Ax2O6NUud2pmJcyHA4L0uDM/ljYDCnGfGakJQE5YH0wUBYBAUYfBIFkHwaBgxkDgX5lgXpHAXcpBIsRADs="},275:function(e,t,i){"use strict";t.a="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALQAAABkCAYAAAAv8xodAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAK6wAACusBgosNWgAAABZ0RVh0Q3JlYXRpb24gVGltZQAwNS8xMS8xNNdPc0oAAAAcdEVYdFNvZnR3YXJlAEFkb2JlIEZpcmV3b3JrcyBDUzbovLKMAAAWb0lEQVR4nO2de2wU172Av5l92t4Hti/YQHmVmFcSE7+WR0h0uRRVVC2pKldpCFJQEJAiFwg4diikgLEghEhpVLVQNblBSFEUVYoi+hc0FQoE87B52JQAiQnBJDY2wfix633O7P1jdwbbxe9d7yx3PgnJc87iM2M+js+cx+8nhMNhdHQeFcRE34COTizRhdZ5pNCF1nmk0IXWeaQwPqxQEIRYtpEKOABL9NoLtAKhWDbSDRF4EsgAbEBHtL3LAIN9CV6+fHlSvS0fOXLkof9oj8pzDJZ499A2YCxgWbJkiSUnJ8cApADZgCEO7ZmAImAyYFuxYsV4Iv+ZpgIFcWhPR2PEU2gbkAlQU1Mz67PPPvvvq1ev/s/f/va3LCIyp8e4PROQD4wrLi7Oam9vP/Dhhx/+9f79+3/Kz8+3AxPi0KaOxoiX0KrM169ff6KgoGAKgMFgEF944YWZ0c9Y+vrLw8BEpAceV1xcnHX48OE3HQ7HRIAxY8ZM2bdv39Lo5zJi2KaOBomH0D1knjFjxsTulX6/Pxj9Uo5Re4rMY1esWDH+8OHDb6akpGR2/4Db7fZEv4zXuF1HI8Ra6H5lDgQC0ttvv/1l9NIfg/Z6yPzee+/t6S1zY2PjpdWrV/8retkagzZ1NEwshR5Q5j179pzfu3dvOxBg5HINKHNTU1Ody+WqbG1tDQENQOcI29TROA+dthsGGYAd+pd5165d94nIfHeE7Q1K5qKioorvv/8+ANwGakfYZlwIh8MEg0F1OtFoNGIwxGMCKL4Eg0G6urqQJAlRFElNTcVsNo/6fcSih84A7BaLRRiCzCMZy5qAQoYm86URtBc3FJnNZjMzZswgKyuLQCCAJEmJvrUhEQwGcbvdZGdn88ILL5CTk0NnZ2dCnmOkPbQqc11d3eMPk3n37t01lZWVbcRW5v966aWXJh44cKAyWWWWZZlgMIjD4aCoqIj09HRkWeb48eO0tbUlTS+tyDxz5kz2799Peno6LS0trFq1Cr/fT2pq6qjez0iE1mUeJorM6enpFBUVkZaWRigUIhgMEgwGB/4GGiEQCOB2u5kzZw779u0jPT0yze/xeJAkKdYrzoNiuELrMg8TSZIIBoNkZWVRWFiI2WwmHA7j8/k4d+4cnZ2dCRl7DhWlZ37iiSd46623cDgcANy5c4c33ngDj8eD0+kc9fsajtC6zMMkGAwiSRKTJk0iLy9PHVZ4PB7Onj1LR0cHZrMZUdT2njGlZ87Ly2P//v1YrVYAmpqaKC0tpaGhAbvdnpBh01CFHm2ZzURmMx4ZmadNm0Zubi6iKCIIAm1tbZw5cwav14vJZNK8zH6/H7fbTWFhIXv27Okh85YtW7h9+zY2mw2TyZSQ+xuK0KrMly9ffiInJ2dC98pEyNzY2HjJ5XJVJoPMoVCI2bNnM2vWLCCyo/Hu3bucPXuWUCiE2WxOyJhzKCgyL1y4kMrKSiyWyO6Fb7/9li1bttDS0pJQmWHwQidU5oMHD+6xWq09NhYlg8zKtJwsy+Tm5vLYY48RDocRRZGmpiaqq6uRZRmTyaR5mX0+Hx6Ph2eeeYbdu3er0jY0NFBaWqoJmWFwQg8kc2j37t3ndZl70l3mvLw8pk6dSjgcxmAw8O2333LhwgVEUUyKF0C/36/KXFFRoUpbX19PaWkp9+7dw263YzTGap1u+Ax0B7rMwyAcDhMIBDAajbhcLsaPH48sy4iiyNdff01tbS1GozHhvdlgUHrmpUuXsmPHDvU3ybVr1ygtLaW9vV0zMkP/QusyDwNljtlsNlNUVMS4ceNUma9evcrVq1eTSma3282yZcvYvn27KvP169cpKyujo6NDUzJD30Kn8UDmJ3NycsZ3r4yDzABzeURkTklJweVykZGRQTgcRhAEamtr+eabbzCZTJoSoC+UnvnnP/85W7duVWWuq6ujtLQUn8+XsKm5/ujrJ2sDuHDhwpxRktkJZC9evDg92WV2OBy4XC5sNhuyLCPLMpcuXaKhoQGj0ZgUMnu9XtxuN7/61a947bXX1PLa2lrKy8s1KzP0LbR18uTJ4uzZs3vMM0uSJMdBZohuOy0rK1vUW+bm5uZ/a11mgFAohM1mY8GCBaSmpiJJEj6fj9raWpqbmzGZTJoUoDfBYBCPx/MfMl+8eJGtW7fS1dWlWZmhn912zc3N4WCvjQUGg0H85S9/mR29NEf/xAIvQGNj43/skU5PT//xypUrp0YvHUQO2WoOWZZxOp04HA4kScJgMNDS0sKdO3cQRVGzAvQmGAwyZswY1q5dq5bduHGD9evX4/F4cDgcmn6WvoTu8vv94YMHD16WJKnHUamCgoIpNTU1s6KXY4mEKRgprQAlJSWn6+vrP+9eYTabUysqKirKy8tnEBmaFKFBqUVR5M6dO9y+fRuj0YgkSUyePJk5c+aoG4+SAYPBgMfj4cqVK2rZhAkT+NnPfoYsywQCgQTe3cD0JXQrENq4ceMPf/7zny+OgtR+4JbX65Vzc3PfSUapTSYTsixz7tw5Ghoa1F5s5syZ5Ofnq2NsraM8x86dO6mpqQEgJSWF7du3s3z5ctxuN16vN8F32Td9CS0BzYyu1HUksdSCIKiLJDU1Ndy4cQODwUA4HGbatGkUFhYC9DidokVEUcThcODz+Xj99deprq4GIs9XXl5OcXExbrebrq6uBN/pw+lvJ0wIXeoho2wwunTpEteuXUMURWRZZtKkSbhcLkRR1LzUBoMBu91OIBDg97//PefOnVPrNm/ezPPPP4/H49Gk1ANt7dKlHgbKXPOVK1e4fPkygiAgyzLZ2dksXLgQq9WaFFI7HA78fj9btmzhxIkTat2mTZt48cUXNSn1YPYq6lIPA5PJhMlk4uuvv+bChQuqvJmZmcyfP5/U1FQCgQCyHKvwJLFHGX4IgsCOHTt6SF1SUsKqVavweDx4PJ5+vsvoMtjNt7rUw0BZ4r516xbV1dWEQiHC4TBOp5OFCxfidDrVDUxaRZFalmXeeOMNjh8/rtatW7eOl19+ma6uLs1IPZTd5LrUw8BgMGAymWhsbOTs2bP4/ZH4OmlpaSxcuJCxY8eqm/+1iiiK2O12ALZv386xY8fUujVr1rBu3To8Hg9utztRt6gy1OMRutTDwGAwYDabaWlpoaqqSh13WiwWXC4X2dnZSSO10Whk9+7dHD16VK1btWoVJSUlmuiph3PeR5d6GCh7n9vb2zl16hSdnZ0IgoDRaKSoqIgpU6aoJ1u0ijL8EEWRHTt2cOTIEbVu5cqVbNiwIeE99XAPsOlSDwNRFDGZTHg8Hqqqqrh37x6CIGAwGMjPz2f69OlIkqRpqQVBwG63Y7Va2bt3L59++qlat2LFCkpLS+nq6kqY1CM5kalLPQyUntrn81FVVUVzc7N6MDY3N1cNOKNllOGHxWJh3759fPLJJ2pdcXExr776Kj6fLyHL5CM9YqxLPQwEQVCXmM+cOUNDQwMQ2bap5d65O0pPrUj90UcfqXW/+MUvyMjISMizxOLMvC71MFCkFgSB6upqTp06xcmTJ+no6EiKPdPwQOqUlBTeffddDh48yHfffcfHH39MW1tbQk7lxCoIxHCkHmkE/6FKnTvC9uKCsgBz7949fD5fUgSa6Y4gCDgcDiwWC4cOHWLdunUcOHAAs9mc1ELDIKU+fvz4tOilPQZtDkrq4uLiLGAcGk1JocxVJ0Ogmb5wOp2MGzcOg8FAdnY2NpstIfcR65/egFIXFRVNjn4ZqxwrA0q9fv36Z6KXmhRaJ3bEozvoV+qOjg5l5j2Wm4P7lbq+vv776JeJX8rSiSvxevtQpM7auHHjD62trTWrV6+e5vP5gqWlpV9HPxOLHCvdqQPwer1TcnNz3zly5MjN3Nxc16VLl86sXbv2dLQ9PcfKI47wsC2MMQxLZSTyAtj77KEXaIlVI73IBaY8pPwk0KZnktU2I80kG+/5oRDQRORwq5VIKjcf8f3VX0fkdHg2kTFza/Qe2uLYpo5GiHcPrTm0vKleZ+T010ObiaQStkavfUR6uViPfbujJJ13EOnFlaTzo74W/Kj8qn5UnmOw9DXLYQbGA9a8vDxTXl6eiYjY2TwQPNYUEEky74gmnbcRSUJfRCSKv47OgPQl9BiAo0ePTjl//vzi8+fPL/7nP/+pLIhkEXup04EJ+fn59vv37//pww8//Gt7e/uBbgsi+ehS6wyCvoROcTqdwpIlS2YIUX7yk5/M+Pzzz6dH62MtdQbAvn37lo4ZM2YKgMPhmHj48OE3dal1hkKfCys+nw9Jknpsl3r22Wcfi5PUIeiRZB6AlJSUzF5SF6BLrdMP/YYC++CDD/4d7jUt8Oyzzz526tSpx6KXsZK6FWD16tX/amxs7BGMUZE6Oq4eiy61Tj/0FwpMeuWVV+6+//77tb2lXrhw4fQYS90JNLS2toZcLldlU1NTXffKlJSUzPfee2+PLrXOQAwUCkxas2ZN8/vvv1/be5NRHKSuBW5///33gaKioopklFqSJPx+P36/n0AgkLRz3oFAgLa2NlpbW2lvb0+KmHwK/W1OCtJN6g8++KBuEFKPdBP9JZJUakmSCAQCZGVlkZOTg8lk0nx0pIchSRJut5ucnBx+85vfkJWVhdvtThqpB9ptFwTuMHipxzH6UheiAaklSSIzM5Onn36auXPnsmjRIjU+nNbPCHbH7/fjdDrZu3cvJSUlHDhwgJycnKSRerChwAaUuqqqKid6OWpSv/TSSxOB/0IjUgeDQfx+P6FQCKfTyfz580lPT9d8dKTuCIKAJElq7JDMzEz279/PrFmz6OzsTNr40L0ZUOoFCxb8eLSlPnDgQKVWpDYajbjdbk6fPo3f7yccDpOamsqCBQsYN24cgUBA04FkFMxmM263mz/84Q+0tEQ2RGZmZvL222/z+OOPa76nHmooMF3qPlBibrS2tlJVVaVGEDKbzcybN48f/ehHBINBTcsAD0Lp3rx5k82bN9Pc3AxEjli9++67PPXUU5ruqYcTCiyhUj9snlprUnd0dPDFF1/Q0dGhBpIpKChg6tSpSJKkealNJhM2m41bt26xefNm7ty5A4DVauXNN98kPz8ft9utxunTEsMNBZYwqV0uV+UgpU5IzmFFap/PxxdffMEPP/yAIAgIgsBTTz3FzJkzkyLniiJ1Q0MDJSUl3Lp1CwCbzcZbb73FvHnz8Hg8mpN6JKHAtC51AQmSWom5EQwGOX36tJoJC2DOnDk8+eSThEIhzc9VK1I3Nzfz2muvcfv2bQA1DNjTTz+N2+3G5/Ml+E4fMNJQYANKfe7cuVGV+uDBg3u0IrXZbEaWZU6fPq0mEgqHw+Tk5JCXl6cmEtK61Ha7naamJjZu3Mg333wDRN4NKioqWLRokaZ66liEAutX6qKiolGV2mq1pmtFaniQc6Wmpob6+no1PcW0adOYN28eoihqvqc2Go3Y7Xbu3r3Lpk2buH79OhAJB7x3716WLFmimZ46VqHAdKn7Qcki2z2RUDgcZuLEicybNw+z2az5BRhF6ra2NsrKyvjqq6+AyDvDrl27+OlPf4rH40m41LEMBTZUqUcaaGaoUs8dYXsjQomMdPXqVerq6hAEgXA4TFZWFvPnz1cTCSWD1Pfv3+d3v/sdly9fBiLDq+3bt7Ns2bKESx3rUGADSt0tFJgjBm32kPq777670L1SkXrx4sXpRI6POWPQ5rBRktffuHGDCxcuIEkSsiyTkZHBokWLcDgcmpdamaf2er2UlZVRVxdZGhBFkW3btiU8OWc8QoH1kLr3B+bNm6fEzIhVKDBV6vnz5+9pbm7+d/dKq9WaXlZWtih6mRmjNoeNkkiooaGB6upqvF4vsixjt9uZP38+NptN8yF1Fak9Hg/l5eXU1tYCkZ66rKyM5557Do/Hk5CpyXiEAnMABovFIixZsiS7d6XX61Veh2O1DpwSbZOVK1dOTU9P/3HvDzQ2NioRkzSR09dgMCCKIk1NTbS0tGAwGJAkCafTidPp1HQPraDkMXS73fz2t7/lxo0bQETqdevWqRm+RptYC50B2C0Wi3D16tXcadOm9RA6EAgEKysrlazosRhopRA5Fe4sLy+fUVFRUWE2m3vEnq6vr/+8pKTkdPRSE6HAlFwqc+bMYfLkyUiShNFo5Pbt2zQ1NSVNBFLlRXbZsmVMmDBBLf/yyy/p6upS852PJrGMnDSgzK+//nrNO++800Ektsf9EbY3KJlzc3Pf8Xq9MnCL+MYUGRTKGDk/P5+pU6ciyzIGg4GGhgY1QWci4ioPFa/Xi8fj4bnnnqOsrEwNTlRTU8POnTuRZTkhzxEroYcq890Rtjccmf9jPD+ahMNhdWxcWFjIpEmTVJlv3LhBXV2dmn9F6yjp237961+zefNmtby6upqtW7cSCATUbFmjTSyEzgRsQ5R5JOPnpJQ5GAxiMBgoLCxk/PjxyLKMKIpcu3aNK1euqC+LWkeR+fnnn2fTpk1q+blz59i2bRuBQAC73Z6Q4QaMXOhMwOZ0OoWLFy/qMj8ERWar1UpRUREZGRnIsowgCFy+fJmvvvoq6WR+8cUXKSkpUctPnDjBtm3b1PQUiXwHGInQuswDoOzVSEtLw+VyMWbMGMLhMOFwmIsXL3Lr1i1MJlNSJAnyeDx0dXWxatUq1q1bp5afOHGCHTt2aEJmGL7QuswDoMjsdDpxuVykpaWp4+jz58/T2NioLolrHUXml19+mTVr1qjlx48fZ+fOnQCakBmGJ7Qu8wAo2WDHjh1LYWEhFktkDcnv91NTU0NLS0vSyOx2u+nq6uKVV15h1apVavmxY8fYtWuXuhyuBZlh6ELrMg+AciJl/PjxFBQUqGPjrq4uzp49S1tbW9KkblN65pKSElauXKmWHz16lMrKSs3JDEMTWpd5AEKhEKFQiClTpjB37lxEUUQQBDo6Ojhz5gwejydpZFZ65g0bNrBixQq1/MiRI+zZsweLxYLD4dBccPzBCq3LPAChUAhJkpg+fTq5uQ9yfN67d0/ds5EseQgVmUtLSykuLlbLP/30U/bt24fVasVms2lOZhic0LrMg0CWZdLT01WZlb0a1dXVSJKE2WzWpAC9CQQC+P1+Xn311R4yf/LJJ+zfvx+LxYLdbtfsswwktC7zEAiFQni9XlJSUmhoaOD8+fM9cnonA6FQiIyMDJYvX66WffTRR/zxj38kJSVF0zJD/0LrMg8Bo9FIZ2cnJ0+eJC0tTd1FlwwLJt0xmUy0tbXx8ccfs3TpUv7xj39w6NChpJAZ+hY6jdGVGSL5BZNSZugZvsDn8yXNtFxvlJM1f/nLX/j73/9Oa2ur+gKYDPQltA2gqqpqzijJnAGMKy4uzkpGmRVEUUyKl76BsNlsavL5sWPHJvhuhkZfP32r0+kUZs+ePbF7YZxkhmiOlfXr1z+TrDLraIO+hA62t7eHOzo6upSCOMoM0cyy3ZLME73WZdYZEn0J7QcoLy+/ePPmzeabN2/e2bBhw9k4yQyRkyT+tWvXnj527Nj/trS0fPnZZ58d0mXWGSp9pUYWiIQa6J1mwgf8QGxlVhgDPPOQ8pjKrCev1zbxSl4fJpKOwsGD09l+oGMkjQ1AG3CSSAZbJen8HUZ+VEvn/xEP7aF1dJKV5J9j0tHphi60ziOFLrTOI4UutM4jhS60ziPF/wHgvbfirVNMHAAAAABJRU5ErkJggg=="},284:function(e,t,i){const a=i(5),n=i(285),o=i(254),r=i(290),l=i(255),s=i(291),c={ready(){let e=Array.from(arguments);const t=e.pop();let i=!0;for(var a of e)if("function"==typeof a?a()||(i=!1):a||(i=!1),!i)break;i?t():setTimeout(()=>{c.ready.call(this,...arguments)},50)},dialog:o,util:l,api:{defaultCallback:n.defaultFormCallback,post:n.post}};window.api=window.api||{},window.api.jquery=a,window.api.base=n,window.api.dialog=o,window.api.lister=r,window.api.selectorDialog=s,window.api.util=l,n.init(),window.MS=c},285:function(e,t,i){var a=i(5),n=i(254),o=i(256),r=i(289),l={init:function(){a(function(){a("form").each(function(e,t){a(t).unbind("submit"),void 0!==a(t).attr("data-ajax-form")?o.initAjax(t,n):a(t).is("[data-form-no-loading]")||o.initCommon(t,n)})}),r.init(n)},defaultFormCallback:function(e,t){return o.defaultCallback(e,t,n)},post:function(e,t,i){a.ajax({type:"post",url:e,dataType:"json",timeout:6e5,data:t,success:function(e){i&&i(e)},error:function(){i&&i({code:-999,msg:"请求出现错误 T_T"})}})},postSuccess:function(e,t,i,a){i=i||l.defaultFormCallback,a=a||l.defaultFormCallback,l.post(e,t,function(e){l.defaultFormCallback(e,{success:function(e){i(e)},error:function(e){a(e)}})})}};e.exports=l},286:function(r,l,s){!function(n){var o;!function(f){"use strict";function t(e){var t=this;t.index=++h.index,t.config=y.extend({},t.config,u.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)}var y,c,e,i=f.layui&&layui.define,u={getPath:(e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,a=i;0'+(o?a.title[0]:a.title)+"":"";return a.zIndex=n,t([a.shade?'
':"",'
'+(e&&2!=a.type?"":o)+'
'+(0==a.type&&-1!==a.icon?'':"")+((1!=a.type||!e)&&a.content||"")+'
'+(r=r?'':"",a.closeBtn&&(r+=''),r)+""+(a.btn?function(){var e="";"string"==typeof a.btn&&(a.btn=[a.btn]);for(var t=0,i=a.btn.length;t'+a.btn[t]+"";return'
'+e+"
"}():"")+(a.resize?'':"")+"
"],o,y('
')),this},t.pt.creat=function(){var e,a=this,n=a.config,o=a.index,r="object"==typeof(s=n.content),l=y("body");if(!n.id||!y("#"+n.id)[0]){switch("string"==typeof n.area&&(n.area="auto"===n.area?["",""]:[n.area,""]),n.shift&&(n.anim=n.shift),6==h.ie&&(n.fixed=!1),n.type){case 0:n.btn="btn"in n?n.btn:u.btn[0],h.closeAll("dialog");break;case 2:var s=n.content=r?n.content:[n.content||"http://layer.layui.com","auto"];n.content='';break;case 3:delete n.title,delete n.closeBtn,-1===n.icon&&n.icon,h.closeAll("loading");break;case 4:r||(n.content=[n.content,"body"]),n.follow=n.content[1],n.content=n.content[0]+'',delete n.title,n.tips="object"==typeof n.tips?n.tips:[n.tips,!0],n.tipsMore||h.closeAll("tips")}a.vessel(r,function(e,t,i){l.append(e[0]),r?2==n.type||4==n.type?y("body").append(e[1]):s.parents("."+d[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),y("#"+d[0]+o).find("."+d[5]).before(t)):l.append(e[1]),y(".layui-layer-move")[0]||l.append(u.moveElem=i),a.layero=y("#"+d[0]+o),n.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),y("#layui-layer-shade"+a.index).css({"background-color":n.shade[1]||"#000",opacity:n.shade[0]||n.shade}),2==n.type&&6==h.ie&&a.layero.find("iframe").attr("src",s[0]),4==n.type?a.tips():a.offset(),n.fixed&&c.on("resize",function(){a.offset(),(/^\d+%$/.test(n.area[0])||/^\d+%$/.test(n.area[1]))&&a.auto(o),4==n.type&&a.tips()}),n.time<=0||setTimeout(function(){h.close(a.index)},n.time),a.move().callback(),d.anim[n.anim]&&(e="layer-anim "+d.anim[n.anim],a.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){y(this).removeClass(e)})),n.isOutAnim&&a.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,i=y("#"+d[0]+e);""===t.area[0]&&0t.maxWidth&&i.width(t.maxWidth));var a=[i.innerWidth(),i.innerHeight()],n=i.find(d[1]).outerHeight()||0,o=i.find("."+d[6]).outerHeight()||0,e=function(e){(e=i.find(e)).height(a[1]-n-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(a[1]=t.maxHeight,e("."+d[5])):t.fixed&&a[1]>=c.height()&&(a[1]=c.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],n="object"==typeof t.offset;e.offsetTop=(c.height()-a[1])/2,e.offsetLeft=(c.width()-a[0])/2,n?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=c.width()-a[0]:"b"===t.offset?e.offsetTop=c.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=c.width()-a[0]):"rb"===t.offset?(e.offsetTop=c.height()-a[1],e.offsetLeft=c.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?c.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?c.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=c.scrollTop(),e.offsetLeft+=c.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=c.height()-(i.find(d[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,i=[t.outerWidth(),t.outerHeight()],a=y(e.follow),n={width:(a=!a[0]?y("body"):a).outerWidth(),height:a.outerHeight(),top:a.offset().top,left:a.offset().left},o=t.find(".layui-layer-TipsG"),a=e.tips[0];e.tips[1]||o.remove(),n.autoLeft=function(){0"+(i.value||"")+"":'',o=i.success;return delete i.success,h.open(y.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+A("prompt"),maxWidth:c.width(),success:function(e){(n=e.find(".layui-layer-input")).focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=n.val();""===t?n.focus():t.length>(i.maxlength||500)?h.tips("最多输入"+(i.maxlength||500)+"个字数",n,{tips:1}):a&&a(t,e,n)}},i))},h.tab=function(a){var n=(a=a||{}).tab||{},o="layui-this",r=a.success;return delete a.success,h.open(y.extend({type:1,skin:"layui-layer-tab"+A("tab"),resize:!1,title:function(){var e=n.length,t=1,i="";if(0'+n[0].title+"";t"+n[t].title+"";return i}(),content:'
    '+function(){var e=n.length,t=1,i="";if(0'+(n[0].content||"no content")+"";t'+(n[t].content||"no content")+"";return i}()+"
",success:function(e){var t=e.find(".layui-layer-title").children(),i=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=y(this),e=t.index();t.addClass(o).siblings().removeClass(o),i.eq(e).show().siblings().hide(),"function"==typeof a.change&&a.change(e)}),"function"==typeof r&&r(e)}},a))},h.photos=function(i,e,a){var t,n,o={};if((i=i||{}).photos){var r=i.photos.constructor===Object,l=r?i.photos:{},s=l.data||[],c=l.start||0;o.imgIndex=1+(0|c),i.img=i.img||"img";var u=i.success;if(delete i.success,r){if(0===s.length)return h.msg("没有图片")}else{var d=y(i.photos),p=function(){s=[],d.find(i.img).each(function(e){var t=y(this);t.attr("layer-index",e),s.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(p(),0===s.length)return;if(e||d.on("click",i.img,function(){var e=y(this).attr("layer-index");h.photos(y.extend(i,{photos:{start:e,data:s,tab:i.tab},full:i.full}),!0),p()}),!e)return}o.imgprev=function(e){o.imgIndex--,o.imgIndex<1&&(o.imgIndex=s.length),o.tabimg(e)},o.imgnext=function(e,t){o.imgIndex++,o.imgIndex>s.length&&(o.imgIndex=1,t)||o.tabimg(e)},o.keyup=function(e){var t;o.end||(t=e.keyCode,e.preventDefault(),37===t?o.imgprev(!0):39===t?o.imgnext(!0):27===t&&h.close(o.index))},o.tabimg=function(e){if(!(s.length<=1))return l.start=o.imgIndex-1,h.close(o.index),h.photos(i,!0,e)},o.event=function(){o.bigimg.hover(function(){o.imgsee.show()},function(){o.imgsee.hide()}),o.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),o.imgprev()}),o.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),o.imgnext()}),y(document).on("keyup",o.keyup)},o.loadi=h.load(1,{shade:!("shade"in i)&&.9,scrollbar:!1}),e=s[c].src,t=function(e){var t;h.close(o.loadi),o.index=h.open(y.extend({type:1,id:"layui-layer-photos",area:(t=[e.width,e.height],e=[y(f).width()-100,y(f).height()-100],!i.full&&(t[0]>e[0]||t[1]>e[1])&&((e=[t[0]/e[0],t[1]/e[1]])[1]'+(s[c].alt||
'+(1':"")+'
'+(s[c].alt||"")+""+o.imgIndex+"/"+s.length+"
",success:function(e,t){o.bigimg=e.find(".layui-layer-phimg"),o.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),o.event(e),i.tab&&i.tab(s[c],e),"function"==typeof u&&u(e)},end:function(){o.end=!0,y(document).off("keyup",o.keyup)}},i))},(n=new Image).src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},n.onerror=function(e){n.onerror=null,h.close(o.loadi),h.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1',' ',""].join("");Dialog.dialogContent(a,opt)},img.src=imgUrl,!1})},initSmartImage:function(){$(document).ready(function(){setTimeout(function(){$("[data-smart-image]").each(function(e,t){$(t).attr("src",$(t).attr("data-smart-image"))})},0)})},initTip:function(i){i=i||null,$(document).on("click","[data-tip-error]",function(){return i?i.tipError($(this).attr("data-tip-error")):alert($(this).attr("data-tip-error")),!1}),$(document).on("click","[data-tip-success]",function(){return i?i.tipError($(this).attr("data-tip-success")):alert($(this).attr("data-tip-success")),!1}),$(document).on("mouseover","[data-tip-popover]",function(e){var t=$(this).attr("data-tip-popover");i?i.tipPopoverShow(this,t):$(this).attr("title",t)}).on("mouseout","[data-tip-popover]",function(e){i&&i.tipPopoverHide(this)})},init:function(e){inited||(inited=!0,Convenient.initAll(e),Convenient.initSmartImage(),Convenient.initTip(e))}};module.exports=Convenient},290:function(e,t,i){!function(s){let c=i(256),u=i(254);e.exports=function(e,t){let a=s(e.lister||null),i=s(e.search||null),n=this,o={page:1,pageSize:10,field:[],order:[],search:[]},r=null,l=s.extend({server:"/path/to/server",editQuickServer:"/path/to/edit/quick",hashUrl:!0,render:function(e){}},t);this.getData=function(){return r},this.init=function(){let e=window.location.hash;0===e.indexOf("#")&&(e=e.substring(1));try{e=decodeURIComponent(e);var t,i=JSON.parse(e);for(t in i)t in o&&(o[t]=i[t])}catch(e){}a&&a.on("click","[data-refresh-button]",function(){return n.load(!0),!1})},this.initSearch=function(){i.on("click","[data-search-button]",function(){return o.page=1,n.prepareSearch(),n.load(!0),!1}),i.on("click","[data-reset-search-button]",function(){return n.resetSearch(),n.resetOrder(),n.load(!0),!1}),i.on("click","[data-expand-search-button]",function(){return i.find(".field.field-auto-hide").is(":visible")?i.find(".field.field-auto-hide").hide():i.find(".field.field-auto-hide").css("display","inline-block"),!1}),i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("init")&&s(t).data("init")(o.search)})},this.initTable=function(){},this.prepareSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("get")&&o.search.push(s(t).data("get")())})},this.resetSearch=function(){o.search=[],i.find("[data-grid-filter-field]").each(function(e,t){s(t).data("reset")&&o.search.push(s(t).data("reset")())})},this.resetOrder=function(){o.order=[]},this.setPageSize=function(e){o.pageSize=e},this.setPage=function(e){o.page=e},this.setParam=function(e,t){e in o&&(o[e]=t)},this.getParam=function(){return o},this.setOption=function(e,t){l[e]=t},this.refresh=function(){n.load()},this.load=function(){u.loadingOn(),r=null,s.post(l.server,o).done(function(e){l.hashUrl&&window.location.replace("#"+JSON.stringify(o)),u.loadingOff(),c.defaultCallback(e,{success:function(e){l.render(e.data)}})}).fail(function(e){try{u.loadingOff(),c.defaultCallback(e)}catch(e){}})},this.init(),this.initSearch(),this.initTable(),this.load()}}.call(this,i(5))},291:function(a,e,n){!function(t){function e(e){null==i&&alert("Dialog must defined"),this.opt=t.extend({limitMax:100,limitMin:1,dialogWidth:"940px",dialogHeight:"90%",server:"/path/to/link/choose/dialog",callback:function(e){alert("Select : "+JSON.stringify(e))}},e),t(window).width()<800&&(this.opt.dialogWidth="90%"),this.dialog=i,this.runtime={dialog:null}}var i=n(254);e.prototype.show=function(){var e=this;return window.__selectorDialogOption=e.opt,window.__selectorDialogItems=[],this.runtime.dialog=this.dialog.dialog(this.opt.server,{width:this.opt.dialogWidth,height:this.opt.dialogHeight,closeCallback:function(){window.__selectorDialogItems.length&&(window.__selectorDialogItems.length>e.opt.limitMax?e.dialog.tipError("Select limit max "+e.opt.limitMax+" item(s)"):window.__selectorDialogItems.length"+this+"").css({position:"absolute",float:"left","white-space":"nowrap",visibility:"hidden",font:e}).appendTo(u),e=t.width();return t.remove(),e},e.add(i).on("dblclick",function(t){var e=o(this),i=t.clientX-e.offset().left,t=e.attr("data-key").split("-"),t=l.cols[t[1]][t[2]];s(0,e,0");e?t.text(this):t.html(this),t.css({position:"absolute",float:"left","white-space":"nowrap",visibility:"hidden",font:i}).appendTo(l);i=t.width();return t.remove(),i},t("mstable",{render:function(t){i[t.id]=t;var e=this;layui.each(i,function(){!function(d,l){var t=o(l.elem),e=t.next().children(".layui-table-box").children(".layui-table-header").children("table").children("thead").children("tr").children("th"),i=t.next().children(".layui-table-box").children(".layui-table-fixed").children(".layui-table-header").children("table").children("thead").children("tr").children("th"),r=t.next().children(".layui-table-box").children(".layui-table-body").children("table").children("tbody").children("tr"),c=t.next().children(".layui-table-total").find("tr");e.add(i).on("dblclick",function(t){var e=o(this),i=t.clientX-e.offset().left,t=e.attr("data-key").split("-"),t=l.cols[t[1]][t[2]];s(0,e,0'); + if (isText) { + o.text(html) + } else { + o.html(html) + } + o.css({ + 'position': 'absolute', + 'float': 'left', + 'white-space': 'nowrap', + 'visibility': 'hidden', + 'font': f + }).appendTo(_BODY); + var w = o.width(); + o.remove(); + return w; + } + var mod = { render: function (myTable) { tables[myTable.id] = myTable @@ -19,22 +41,6 @@ layui.define([], function (exports) { fixTh = $table.next().children('.layui-table-box').children('.layui-table-fixed').children('.layui-table-header').children('table').children('thead').children('tr').children('th'), $tableBodytr = $table.next().children('.layui-table-box').children('.layui-table-body').children('table').children('tbody').children('tr'), $totalTr = $table.next().children('.layui-table-total').find('tr'); - String.prototype.width = function (font) { - var f = font || _BODY.css('font'), - o = $('
' + this + '
') - .css({ - 'position': 'absolute', - 'float': 'left', - 'white-space': 'nowrap', - 'visibility': 'hidden', - 'font': f - }) - .appendTo(_BODY), - w = o.width(); - - o.remove(); - return w; - } th.add(fixTh).on('dblclick', function (e) { var othis = $(this), pLeft = e.clientX - othis.offset().left; @@ -89,7 +95,6 @@ layui.define([], function (exports) { } } - function computeColumnWidth(myTable, othis, isHandle, config) { var key = othis.data('key') , keyArray = key.split('-') @@ -105,7 +110,7 @@ layui.define([], function (exports) { if ($(this).children().children() && $(this).children().children().length > 0) { curWidth += $(this).children().html().width(font) } else { - curWidth = $(this).text().width(font); + curWidth = $(this).text().width(font, true); } if (maxWidth < curWidth) { maxWidth = curWidth diff --git a/vendor/modstart/modstart/resources/asset/src/lib/form.js b/vendor/modstart/modstart/resources/asset/src/lib/form.js index 9ce608baca4e9271689c6e7702795d3328bd23f2..4874874908a8ec6ff5f7a111944412b900dec1f6 100644 --- a/vendor/modstart/modstart/resources/asset/src/lib/form.js +++ b/vendor/modstart/modstart/resources/asset/src/lib/form.js @@ -243,7 +243,9 @@ var Form = { if (Dialog) { var msg = $(this).attr('data-form-loading'); - Dialog.loadingOn(msg); + if ($(this).is('[data-form-loading]')) { + Dialog.loadingOn(msg); + } } return true; diff --git a/vendor/modstart/modstart/src/Module/ModuleManager.php b/vendor/modstart/modstart/src/Module/ModuleManager.php index acb9840fc8ff32d5e67125ce7faa6f1db01160cb..79322951f09593edb270d769c6e46a6b3d341ba1 100644 --- a/vendor/modstart/modstart/src/Module/ModuleManager.php +++ b/vendor/modstart/modstart/src/Module/ModuleManager.php @@ -238,7 +238,7 @@ class ModuleManager if (!$v['isDir']) { continue; } - if (starts_with($v['filename'], '_delete_.')) { + if (starts_with($v['filename'], '_delete_.') || starts_with($v['filename'], '_')) { continue; } $modules[$v['filename']] = [ diff --git a/vendor/modstart/modstart/views/core/grid/index.blade.php b/vendor/modstart/modstart/views/core/grid/index.blade.php index 98e87efb20cc79257c2bdffb30cdcaa9bb64cddc..17d20dae8d4fdeaa57dd93419f72c6f4439dbda0 100644 --- a/vendor/modstart/modstart/views/core/grid/index.blade.php +++ b/vendor/modstart/modstart/views/core/grid/index.blade.php @@ -100,7 +100,7 @@ return items; }; layui.extend({ - mstable: window.__msCDN + 'asset/layui/lay/ext/mstable' + mstable: window.__msCDN + 'asset/layui/lay/ext/mstable.js?v20220119' }); layui.use(['table', 'laypage','mstable'], function () { var table = layui.table.render({