!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{vart;t="undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this,t.CacheP2P=e()}}(function(){vare;returnfunctiont(e,n,r){functiono(s,a){if(!n[s]){if(!e[s]){varu="function"==typeofrequire&&require;if(!a&&u)returnu(s,!0);if(i)returni(s,!0);varc=newError("Cannot find module '"+s+"'");throwc.code="MODULE_NOT_FOUND",c}varf=n[s]={exports:{}};e[s][0].call(f.exports,function(t){varn=e[s][1][t];returno(n?n:t)},f,f.exports,t,e,n,r)}returnn[s].exports}for(vari="function"==typeofrequire&&require,s=0;s<r.length;s++)o(r[s]);returno}({1:[function(e,t){varn=/^\[?([^\]]+)\]?:(\d+)$/,r={},o=0;t.exports=function(e){if(1e5===o&&t.exports.reset(),!r[e]){vari=n.exec(e);if(!i)thrownewError("invalid addr: "+e);r[e]=[i[1],Number(i[2])],o+=1}returnr[e]},t.exports.reset=function(){r={},o=0}},{}],2:[function(e,t,n){"use strict";functionr(e){vart=e.length;if(t%4>0)thrownewError("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}functiono(e){return3*e.length/4-r(e)}functioni(e){vart,n,o,i,s,a,u=e.length;s=r(e),a=newd(3*u/4-s),o=s>0?u-4:u;varc=0;for(t=0,n=0;o>t;t+=4,n+=3)i=f[e.charCodeAt(t)]<<18|f[e.charCodeAt(t+1)]<<12|f[e.charCodeAt(t+2)]<<6|f[e.charCodeAt(t+3)],a[c++]=i>>16&255,a[c++]=i>>8&255,a[c++]=255&i;return2===s?(i=f[e.charCodeAt(t)]<<2|f[e.charCodeAt(t+1)]>>4,a[c++]=255&i):1===s&&(i=f[e.charCodeAt(t)]<<10|f[e.charCodeAt(t+1)]<<4|f[e.charCodeAt(t+2)]>>2,a[c++]=i>>8&255,a[c++]=255&i),a}functions(e){returnc[e>>18&63]+c[e>>12&63]+c[e>>6&63]+c[63&e]}functiona(e,t,n){for(varr,o=[],i=t;n>i;i+=3)r=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(s(r));returno.join("")}functionu(e){for(vart,n=e.length,r=n%3,o="",i=[],s=16383,u=0,f=n-r;f>u;u+=s)i.push(a(e,u,u+s>f?f:u+s));return1===r?(t=e[n-1],o+=c[t>>2],o+=c[t<<4&63],o+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],o+=c[t>>10],o+=c[t>>4&63],o+=c[t<<2&63],o+="="),i.push(o),i.join("")}n.byteLength=o,n.toByteArray=i,n.fromByteArray=u;for(varc=[],f=[],d="undefined"!=typeofUint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,p=h.length;p>l;++l)c[l]=h[l],f[h.charCodeAt(l)]=l;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},{}],3:[function(e,t){(function(e){functionn(e,t,n){for(varr=0,o=1,i=t;n>i;i++){vars=e[i];if(58>s&&s>=48)r=10*r+(s-48);elseif(i!==t||43!==s){if(i!==t||45!==s){if(46===s)break;thrownewError("not a number: buffer["+i+"] = "+s)}o=-1}}returnr*o}functionr(t,n,o,i){returnnull==t||0===t.length?null:("number"!=typeofn&&null==i&&(i=n,n=void0),"number"!=typeofo&&null==i&&(i=o,o=void0),r.position=0,r.encoding=i||null,r.data=e.isBuffer(t)?t.slice(n,o):newe(t),r.bytes=r.data.length,r.next())}r.bytes=0,r.position=0,r.data=null,r.encoding=null,r.next=function(){switch(r.data[r.position]){case100:returnr.dictionary();case108:returnr.list();case105:returnr.integer();default:returnr.buffer()}},r.find=function(e){for(vart=r.position,n=r.data.length,o=r.data;n>t;){if(o[t]===e)returnt;t++}thrownewError('Invalid data: Missing delimiter "'+String.fromCharCode(e)+'" [0x'+e.toString(16)+"]")},r.dictionary=function(){r.position++;for(vare={};101!==r.data[r.position];)e[r.buffer()]=r.next();returnr.position++,e},r.list=function(){r.position++;for(vare=[];101!==r.data[r.position];)e.push(r.next());returnr.position++,e},r.integer=function(){vare=r.find(101),t=n(r.data,r.position+1,e);returnr.position+=e+1-r.position,t},r.buffer=function(){vare=r.find(58),t=n(r.data,r.position,e),o=++e+t;returnr.position=o,r.encoding?r.data.toString(r.encoding,e,o):r.data.slice(e,o)},t.exports=r}).call(this,e("buffer").Buffer)},{buffer:18}],4:[function(e,t){(function(e){functionn(t,r,o){vari=[],s=null;returnn._encode(i,t),s=e.concat(i),n.bytes=s.length,e.isBuffer(r)?(s.copy(r,o),r):s}n.bytes=-1,n._floatConversionDetected=!1,n._encode=function(t,r){if(e.isBuffer(r))returnt.push(newe(r.length+":")),vo
if("number"==typeofe)thrownewTypeError('"value" argument must not be a number');if("string"==typeofe)returnnewo(e,n);if("undefined"!=typeofArrayBuffer&&einstanceofArrayBuffer){vari=n;if(1===arguments.length)returnnewo(e);"undefined"==typeofi&&(i=0);vars=r;if("undefined"==typeofs&&(s=e.byteLength-i),i>=e.byteLength)thrownewRangeError("'offset' is out of bounds");if(s>e.byteLength-i)thrownewRangeError("'length' is out of bounds");returnnewo(e.slice(i,i+s))}if(o.isBuffer(e)){vara=newo(e.length);returne.copy(a,0,0,e.length),a}if(e){if(Array.isArray(e)||"undefined"!=typeofArrayBuffer&&e.bufferinstanceofArrayBuffer||"length"ine)returnnewo(e);if("Buffer"===e.type&&Array.isArray(e.data))returnnewo(e.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},n.allocUnsafeSlow=function(e){if("function"==typeofo.allocUnsafeSlow)returno.allocUnsafeSlow(e);if("number"!=typeofe)thrownewTypeError("size must be a number");if(e>=s)thrownewRangeError("size is too large");returnnewi(e)}}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{buffer:18}],18:[function(e,t,n){(function(t){"use strict";functionr(){try{vare=newUint8Array(1);returne.__proto__={__proto__:Uint8Array.prototype,foo:function(){return42}},42===e.foo()&&"function"==typeofe.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}functiono(){returns.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functioni(e,t){if(o()<t)thrownewRangeError("Invalid typed array length");returns.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t),e.__proto__=s.prototype):(null===e&&(e=news(t)),e.length=t),e}functions(e,t,n){if(!(s.TYPED_ARRAY_SUPPORT||thisinstanceofs))returnnews(e,t,n);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnf(this,e)}returna(this,e,t,n)}functiona(e,t,n,r){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?l(e,t,n,r):"string"==typeoft?d(e,t,n):p(e,t)}functionu(e){if("number"!=typeofe)thrownewTypeError('"size" argument must be a number');if(0>e)thrownewRangeError('"size" argument must not be negative')}functionc(e,t,n,r){returnu(t),0>=t?i(e,t):void0!==n?"string"==typeofr?i(e,t).fill(n,r):i(e,t).fill(n):i(e,t)}functionf(e,t){if(u(t),e=i(e,0>t?0:0|m(t)),!s.TYPED_ARRAY_SUPPORT)for(varn=0;t>n;++n)e[n]=0;returne}functiond(e,t,n){if(("string"!=typeofn||""===n)&&(n="utf8"),!s.isEncoding(n))thrownewTypeError('"encoding" must be a valid string encoding');varr=0|y(t,n);e=i(e,r);varo=e.write(t,n);returno!==r&&(e=e.slice(0,o)),e}functionh(e,t){varn=t.length<0?0:0|m(t.length);e=i(e,n);for(varr=0;n>r;r+=1)e[r]=255&t[r];returne}functionl(e,t,n,r){if(t.byteLength,0>n||t.byteLength<n)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))thrownewRangeError("'length' is out of bounds");returnt=void0===n&&void0===r?newUint8Array(t):void0===r?newUint8Array(t,n):newUint8Array(t,n,r),s.TYPED_ARRAY_SUPPORT?(e=t,e.__proto__=s.prototype):e=h(e,t),e}functionp(e,t){if(s.isBuffer(t)){varn=0|m(t.length);returne=i(e,n),0===e.length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||X(t.length)?i(e,0):h(e,t);if("Buffer"===t.type&&Q(t.data))returnh(e,t.data)}thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}functionm(e){if(e>=o())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return0|e}functiong(e){return+e!=e&&(e=0),s.alloc(+e)}functiony(e,t){if(s.isBuffer(e))returne.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(e)||einstanceofArrayBuffer))returne.byteLength;"string"!=typeofe&&(e=""+e);varn=e.length;if(0===n)return0;for(varr=!1;
return"undefined"!=typeofr&&"env"inr?r.env.DEBUG:void0}functionc(){try{returnwindow.localStorage}catch(e){}}n=t.exports=e("./debug"),n.log=s,n.formatArgs=i,n.save=a,n.load=u,n.useColors=o,n.storage="undefined"!=typeofchrome&&"undefined"!=typeofchrome.storage?chrome.storage.local:c(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(e){try{returnJSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(u())}).call(this,e("_process"))},{"./debug":25,_process:61}],25:[function(e,t,n){functionr(e){vart,r=0;for(tine)r=(r<<5)-r+e.charCodeAt(t),r|=0;returnn.colors[Math.abs(r)%n.colors.length]}functiono(e){functiont(){if(t.enabled){vare=t,r=+newDate,o=r-(c||r);e.diff=o,e.prev=c,e.curr=r,c=r;for(vari=newArray(arguments.length),s=0;s<i.length;s++)i[s]=arguments[s];i[0]=n.coerce(i[0]),"string"!=typeofi[0]&&i.unshift("%O");vara=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(t,r){if("%%"===t)returnt;a++;varo=n.formatters[r];if("function"==typeofo){vars=i[a];t=o.call(e,s),i.splice(a,1),a--}returnt}),n.formatArgs.call(e,i);varu=t.log||n.log||console.log.bind(console);u.apply(e,i)}}returnt.namespace=e,t.enabled=n.enabled(e),t.useColors=n.useColors(),t.color=r(e),"function"==typeofn.init&&n.init(t),t}functioni(e){n.save(e),n.names=[],n.skips=[];for(vart=(e||"").split(/[\s,]+/),r=t.length,o=0;r>o;o++)t[o]&&(e=t[o].replace(/\*/g,".*?"),"-"===e[0]?n.skips.push(newRegExp("^"+e.substr(1)+"$")):n.names.push(newRegExp("^"+e+"$")))}functions(){n.enable("")}functiona(e){vart,r;for(t=0,r=n.skips.length;r>t;t++)if(n.skips[t].test(e))return!1;for(t=0,r=n.names.length;r>t;t++)if(n.names[t].test(e))return!0;return!1}functionu(e){returneinstanceofError?e.stack||e.message:e}n=t.exports=o.debug=o["default"]=o,n.coerce=u,n.disable=s,n.enable=i,n.enabled=a,n.humanize=e("ms"),n.names=[],n.skips=[],n.formatters={};varc},{ms:52}],26:[function(e,t){t.exports=function(){for(vare=0;e<arguments.length;e++)if(void0!==arguments[e])returnarguments[e]}},{}],27:[function(e,t){varn=e("once"),r=function(){},o=function(e){returne.setHeader&&"function"==typeofe.abort},i=function(e){returne.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length},s=function(e,t,a){if("function"==typeoft)returns(e,null,t);t||(t={}),a=n(a||r);varu=e._writableState,c=e._readableState,f=t.readable||t.readable!==!1&&e.readable,d=t.writable||t.writable!==!1&&e.writable,h=function(){e.writable||l()},l=function(){d=!1,f||a()},p=function(){f=!1,d||a()},m=function(e){a(e?newError("exited with error code: "+e):null)},g=function(){return(!f||c&&c.ended)&&(!d||u&&u.ended)?void0:a(newError("premature close"))},y=function(){e.req.on("finish",l)};returno(e)?(e.on("complete",l),e.on("abort",g),e.req?y():e.on("request",y)):d&&!u&&(e.on("end",h),e.on("close",h)),i(e)&&e.on("exit",m),e.on("end",p),e.on("finish",l),t.error!==!1&&e.on("error",a),e.on("close",g),function(){e.removeListener("complete",l),e.removeListener("abort",g),e.removeListener("request",y),e.req&&e.req.removeListener("finish",l),e.removeListener("end",h),e.removeListener("close",h),e.removeListener("finish",l),e.removeListener("exit",m),e.removeListener("end",p),e.removeListener("error",a),e.removeListener("close",g)}};t.exports=s},{once:28}],28:[function(e,t){functionn(e){vart=function(){returnt.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};returnt.called=!1,t}varr=e("wrappy");t.exports=r(n),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){returnn(this)},configurable:!0})})},{wrappy:123}],29:[function(e,t){functionn(){this._events=this._events||{},this._maxListeners=this._maxListeners||void0}functionr(e){return"function"==typeofe}functiono(e){return"number"==typeofe}functioni(e){return"object"==typeofe&&null!==e}functions(e){returnvoid0===e}t.exports=n,n.EventEmitter=n,n.prototype._events=void0,n.prototype._maxListeners=void0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!o(e)||0>e||isNaN(e))throwTypeError("nm
})}),t._buffer&&t._write(t._buffer,null,t._cb),n},n.prototype.destroy=function(e){vart=this;t.destroyed||(t.destroyed=!0,e&&t.emit("error",e))}},{inherits:36,"readable-stream":76}],70:[function(e,t){"use strict";functionn(e){returnthisinstanceofn?(u.call(this,e),c.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),voidthis.once("end",r)):newn(e)}functionr(){this.allowHalfOpen||this._writableState.ended||s(o,this)}functiono(e){e.end()}vari=Object.keys||function(e){vart=[];for(varnine)t.push(n);returnt};t.exports=n;vars=e("process-nextick-args"),a=e("core-util-is");a.inherits=e("inherits");varu=e("./_stream_readable"),c=e("./_stream_writable");a.inherits(n,u);for(varf=i(c.prototype),d=0;d<f.length;d++){varh=f[d];n.prototype[h]||(n.prototype[h]=c.prototype[h])}},{"./_stream_readable":72,"./_stream_writable":74,"core-util-is":22,inherits:36,"process-nextick-args":60}],71:[function(e,t){"use strict";functionn(e){returnthisinstanceofn?voidr.call(this,e):newn(e)}t.exports=n;varr=e("./_stream_transform"),o=e("core-util-is");o.inherits=e("inherits"),o.inherits(n,r),n.prototype._transform=function(e,t,n){n(null,e)}},{"./_stream_transform":73,"core-util-is":22,inherits:36}],72:[function(e,t){(function(n){"use strict";functionr(e,t,n){return"function"==typeofe.prependListener?e.prependListener(t,n):void(e._events&&e._events[t]?L(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n))}functiono(t,n){T=T||e("./_stream_duplex"),t=t||{},this.objectMode=!!t.objectMode,ninstanceofT&&(this.objectMode=this.objectMode||!!t.readableObjectMode);varr=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=~~this.highWaterMark,this.buffer=newq,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.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(D||(D=e("string_decoder/").StringDecoder),this.decoder=newD(t.encoding),this.encoding=t.encoding)}functioni(t){returnT=T||e("./_stream_duplex"),thisinstanceofi?(this._readableState=newo(t,this),this.readable=!0,t&&"function"==typeoft.read&&(this._read=t.read),voidR.call(this)):newi(t)}functions(e,t,n,r,o){vari=f(t,n);if(i)e.emit("error",i);elseif(null===n)t.reading=!1,d(e,t);elseif(t.objectMode||n&&n.length>0)if(t.ended&&!o){vars=newError("stream.push() after EOF");e.emit("error",s)}elseif(t.endEmitted&&o){varu=newError("stream.unshift() after end event");e.emit("error",u)}else{varc;!t.decoder||o||r||(n=t.decoder.write(n),c=!t.objectMode&&0===n.length),o||(t.reading=!1),c||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,o?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&h(e))),p(e,t)}elseo||(t.reading=!1);returna(t)}functiona(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}functionu(e){returne>=N?e=N:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}functionc(e,t){return0>=e||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=u(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}functionf(e,t){varn=null;returnP.isBuffer(t)||"string"==typeoft||null===t||void0===t||e.objectMode||(n=newTypeError("Invalid non-string/buffer chunk")),n}functiond(e,t){if(!t.ended){if(t.decoder){varn=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,h(e)}}functionh(e){vart=e._readableState;t.needReadable=!1,t.emittedReadable||(H("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?C(l,e):l(e))}functionl(e){H("emit readable"),e.emit("readable"),b(e)}functionp(e,t){t.readingMore||(t.readingMore=!0,C(m,e,t)
r[0]=1732584193,r[1]=-271733879,r[2]=-1732584194,r[3]=271733878,r[4]=-1009589776},_=function(e,n){varr=i(e),o=newInt32Array(t.heap,0,r>>2);returns(o,e),a(o,e,n),r},v=function(e,n,r,o){d(e)(t.h8,t.h32,n,r,o||0)},b=function(e,n,r,o,i){vars=r;v(e,n,r),i&&(s=_(r,o)),t.core.hash(s,t.padMaxChunkLen)},w=function(e,t){varn=newInt32Array(e,t+320,5),r=newInt32Array(5),o=newDataView(r.buffer);returno.setInt32(0,n[0],!1),o.setInt32(4,n[1],!1),o.setInt32(8,n[2],!1),o.setInt32(12,n[3],!1),o.setInt32(16,n[4],!1),r},E=this.rawDigest=function(e){varn=e.byteLength||e.length||e.size||0;y(t.heap,t.padMaxChunkLen);varr=0,o=t.maxChunkLen;for(r=0;n>r+o;r+=o)b(e,r,o,n,!1);returnb(e,r,n-r,n,!0),w(t.heap,t.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){returnp(E(e).buffer)},this.resetState=function(){returny(t.heap,t.padMaxChunkLen),this},this.append=function(e){varn,r=0,o=e.byteLength||e.length||e.size||0,i=t.offset%t.maxChunkLen;for(t.offset+=o;o>r;)n=Math.min(o-r,t.maxChunkLen-i),v(e,r,n,i),i+=n,r+=n,i===t.maxChunkLen&&(t.core.hash(t.maxChunkLen,t.padMaxChunkLen),i=0);returnthis},this.getState=function(){vare,n=t.offset%t.maxChunkLen;if(n)e=t.heap.slice(0);else{varr=newInt32Array(t.heap,t.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:t.offset,heap:e}},this.setState=function(e){if(t.offset=e.offset,20===e.heap.byteLength){varn=newInt32Array(t.heap,t.padMaxChunkLen+320,5);n.set(newInt32Array(e.heap))}elset.h32.set(newInt32Array(e.heap));returnthis};vark=this.rawEnd=function(){vare=t.offset,n=e%t.maxChunkLen,r=_(n,e);t.core.hash(r,t.padMaxChunkLen);varo=w(t.heap,t.padMaxChunkLen);returny(t.heap,t.padMaxChunkLen),o};this.end=function(){returnp(k().buffer)}}varr={getDataType:function(t){if("string"==typeoft)return"string";if(tinstanceofArray)return"array";if("undefined"!=typeofe&&e.Buffer&&e.Buffer.isBuffer(t))return"buffer";if(tinstanceofArrayBuffer)return"arraybuffer";if(t.bufferinstanceofArrayBuffer)return"view";if(tinstanceofBlob)return"blob";thrownewError("Unsupported data type.")}};if(n._core=function(e,t,n){"use asm";functionr(e,t){e|=0,t|=0;varn=0,r=0,i=0,s=0,a=0,u=0,c=0,f=0,d=0,h=0,l=0,p=0,m=0,g=0;for(i=o[t+320>>2]|0,a=o[t+324>>2]|0,c=o[t+328>>2]|0,d=o[t+332>>2]|0,l=o[t+336>>2]|0,n=0;(n|0)<(e|0);n=n+64|0){for(s=i,u=a,f=c,h=d,p=l,r=0;(r|0)<64;r=r+4|0)g=o[n+r>>2]|0,m=((i<<5|i>>>27)+(a&c|~a&d)|0)+((g+l|0)+1518500249|0)|0,l=d,d=c,c=a<<30|a>>>2,a=i,i=m,o[e+r>>2]=g;for(r=e+64|0;(r|0)<(e+80|0);r=r+4|0)g=(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])<<1|(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])>>>31,m=((i<<5|i>>>27)+(a&c|~a&d)|0)+((g+l|0)+1518500249|0)|0,l=d,d=c,c=a<<30|a>>>2,a=i,i=m,o[r>>2]=g;for(r=e+80|0;(r|0)<(e+160|0);r=r+4|0)g=(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])<<1|(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])>>>31,m=((i<<5|i>>>27)+(a^c^d)|0)+((g+l|0)+1859775393|0)|0,l=d,d=c,c=a<<30|a>>>2,a=i,i=m,o[r>>2]=g;for(r=e+160|0;(r|0)<(e+240|0);r=r+4|0)g=(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])<<1|(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])>>>31,m=((i<<5|i>>>27)+(a&c|a&d|c&d)|0)+((g+l|0)-1894007588|0)|0,l=d,d=c,c=a<<30|a>>>2,a=i,i=m,o[r>>2]=g;for(r=e+240|0;(r|0)<(e+320|0);r=r+4|0)g=(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])<<1|(o[r-12>>2]^o[r-32>>2]^o[r-56>>2]^o[r-64>>2])>>>31,m=((i<<5|i>>>27)+(a^c^d)|0)+((g+l|0)-899497514|0)|0,l=d,d=c,c=a<<30|a>>>2,a=i,i=m,o[r>>2]=g;i=i+s|0,a=a+u|0,c=c+f|0,d=d+h|0,l=l+p|0}o[t+320>>2]=i,o[t+324>>2]=a,o[t+328>>2]=c,o[t+332>>2]=d,o[t+336>>2]=l}varo=newe.Int32Array(n);return{hash:r}},"undefined"!=typeoft?t.exports=n:"undefined"!=typeofwindow&&(window.Rusha=n),"undefined"!=typeofFileReaderSync){varo=newFileReaderSync,i=newn(4194304);self.onmessage=function(e){vart,n=e.data.data;try{t=i.digest(n),self.postMessage({id:e.data.id,hash:t})}catch(r){self.postMessage({id:e.data.id,error:r.name})}}}}()}).call(this,"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{})},{}],82:[function(e,t){t.expo
varr=t.charCodeAt(t.length-1);if(!(r>=55296&&56319>=r)){if(this.charReceived=this.charLength=0,0===e.length)returnt;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);varo=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,o),o-=this.charReceived),t+=e.toString(this.encoding,0,o);varo=t.length-1,r=t.charCodeAt(o);if(r>=55296&&56319>=r){vari=this.surrogateSize;returnthis.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),e.copy(this.charBuffer,0,0,i),t.substring(0,o)}returnt},c.prototype.detectIncompleteChar=function(e){for(vart=e.length>=3?3:e.length;t>0;t--){varn=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(2>=t&&n>>4==14){this.charLength=3;break}if(3>=t&&n>>3==30){this.charLength=4;break}}this.charReceived=t},c.prototype.end=function(e){vart="";if(e&&e.length&&(t=this.write(e)),this.charReceived){varn=this.charReceived,r=this.charBuffer,o=this.encoding;t+=r.slice(0,n).toString(o)}returnt}},{buffer:18}],97:[function(e,t,n){varr=e("./thirty-two");n.encode=r.encode,n.decode=r.decode},{"./thirty-two":98}],98:[function(e,t,n){(function(e){"use strict";functiont(e){vart=Math.floor(e.length/5);returne.length%5===0?t:t+1}varr="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",o=[255,255,26,27,28,29,30,31,255,255,255,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255,255,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,255,255,255,255,255];n.encode=function(n){e.isBuffer(n)||(n=newe(n));for(varo=0,i=0,s=0,a=0,u=newe(8*t(n));o<n.length;){varc=n[o];s>3?(a=c&255>>s,s=(s+5)%8,a=a<<s|(o+1<n.length?n[o+1]:0)>>8-s,o++):(a=c>>8-(s+5)&31,s=(s+5)%8,0===s&&o++),u[i]=r.charCodeAt(a),i++}for(o=i;o<u.length;o++)u[o]=61;returnu},n.decode=function(t){varn,r=0,i=0,s=0;e.isBuffer(t)||(t=newe(t));for(vara=newe(Math.ceil(5*t.length/8)),u=0;u<t.length&&61!==t[u];u++){varc=t[u]-48;if(!(c<o.length))thrownewError("Invalid input - it is not base32 encoded string");i=o[c],3>=r?(r=(r+5)%8,0===r?(n|=i,a[s]=n,s++,n=0):n|=255&i<<8-r):(r=(r+5)%8,n|=255&i>>>r,a[s]=n,s++,n=255&i<<8-r)}returna.slice(0,s)}}).call(this,e("buffer").Buffer)},{buffer:18}],99:[function(e,t){varn=e("buffer").Buffer;t.exports=function(e){if(einstanceofUint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)returne.buffer;if("function"==typeofe.buffer.slice)returne.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(n.isBuffer(e)){for(vart=newUint8Array(e.length),r=e.length,o=0;r>o;o++)t[o]=e[o];returnt.buffer}thrownewError("Argument must be a Buffer")}},{buffer:18}],100:[function(e,t){(function(n){functionr(e){functiont(e,t){varn=newi(t);returnn.on("warning",o._onWarning),n.on("error",o._onError),n.listen(e),o._internalDHT=!0,n}varo=this;if(!(oinstanceofr))returnnewr(e);if(s.call(o),!e.peerId)thrownewError("Option `peerId` is required");if(!e.infoHash)thrownewError("Option `infoHash` is required");if(!n.browser&&!e.port)thrownewError("Option `port` is required");o.peerId="string"==typeofe.peerId?e.peerId:e.peerId.toString("hex"),o.infoHash="string"==typeofe.infoHash?e.infoHash:e.infoHash.toString("hex"),o._port=e.port,o._userAgent=e.userAgent,o.destroyed=!1,o._announce=e.announce||[],o._intervalMs=e.intervalMs||9e5,o._trackerOpts=null,o._dhtAnnouncing=!1,o._dhtTimeout=!1,o._internalDHT=!1,o._onWarning=function(e){o.emit("warning",e)},o._onError=function(e){o.emit("error",e)},o._onDHTPeer=function(e,t){t.toString("hex")===o.infoHash&&o.emit("peer",e.host+":"+e.port,"dht")},o._onTrackerPeer=function(e){o.emit("peer",e,"tracker")},o._onTrackerAnnounce=function(){o.emit("trackerAnnounce")},e.tracker===!1?o.tracker=null:e.tracker&&"object"==typeofe.tracker?(o._trackerOpts=a(e.tracker),o.tracker=o._createTracker()):o.tracker=o._createTracker(),o.dht=e.dht===!1||"function"!=typeofi?null:e.dht&&"function"==typeofe.dht.addNode?e.dht:e.dht&&"object"==typeofe.dht?t(e.dhtPort,e.dht):t(e.dhtPort),o.dht&&(o.dht.on("peer",o._onDHTPeer),o._dhtAnnounce())}t.exports=r;
vare=i.dht.address();e&&(i.dhtPort=e.port)}),i.dht.setMaxListeners(0),i.dht.listen(i.dhtPort)):i.dht=!1,i.enableWebSeeds=e.webSeeds!==!1,void("function"==typeofm&&null!=e.blocklist?m(e.blocklist,{headers:{"user-agent":"WebTorrent/"+S+" (https://webtorrent.io)"}},function(e,n){returne?i.error("Failed to load blocklist: "+e.message):(i.blocked=n,voidt())}):n.nextTick(t))):newo(e)}functioni(e){return"object"==typeofe&&null!=e&&"function"==typeofe.pipe}functions(e){return"undefined"!=typeofFileList&&einstanceofFileList}t.exports=o;vara=e("safe-buffer").Buffer,u=e("simple-concat"),c=e("create-torrent"),f=e("debug")("webtorrent"),d=e("bittorrent-dht/client"),h=e("events").EventEmitter,l=e("xtend"),p=e("inherits"),m=e("load-ip-set"),g=e("run-parallel"),y=e("parse-torrent"),_=e("path"),v=e("simple-peer"),b=e("randombytes"),w=e("speedometer"),E=e("zero-fill"),k=e("./lib/tcp-pool"),x=e("./lib/torrent"),S=e("./package.json").version,B=S.match(/([0-9]+)/g).slice(0,2).map(function(e){returnE(2,e)}).join(""),A="-WW"+B+"-";p(o,h),o.WEBRTC_SUPPORT=v.WEBRTC_SUPPORT,Object.defineProperty(o.prototype,"downloadSpeed",{get:function(){returnthis._downloadSpeed()}}),Object.defineProperty(o.prototype,"uploadSpeed",{get:function(){returnthis._uploadSpeed()}}),Object.defineProperty(o.prototype,"progress",{get:function(){vare=this.torrents.filter(function(e){return1!==e.progress}),t=e.reduce(function(e,t){returne+t.downloaded},0),n=e.reduce(function(e,t){returne+(t.length||0)},0)||1;returnt/n}}),Object.defineProperty(o.prototype,"ratio",{get:function(){vare=this.torrents.reduce(function(e,t){returne+t.uploaded},0),t=this.torrents.reduce(function(e,t){returne+t.received},0)||1;returne/t}}),o.prototype.get=function(e){vart,n,r=this,o=r.torrents.length;if(einstanceofx){for(t=0;o>t;t++)if(n=r.torrents[t],n===e)returnn}else{vari;try{i=y(e)}catch(s){}if(!i)returnnull;if(!i.infoHash)thrownewError("Invalid torrent identifier");for(t=0;o>t;t++)if(n=r.torrents[t],n.infoHash===i.infoHash)returnn}returnnull},o.prototype.download=function(e,t,n){returnconsole.warn("WebTorrent: client.download() is deprecated. Use client.add() instead"),this.add(e,t,n)},o.prototype.add=function(e,t,n){functionr(){if(!s.destroyed)for(vare=0,t=s.torrents.length;t>e;e++){varn=s.torrents[e];if(n.infoHash===a.infoHash&&n!==a)returnvoida._destroy(newError("Cannot add duplicate torrent "+a.infoHash))}}functiono(){s.destroyed||("function"==typeofn&&n(a),s.emit("torrent",a))}functioni(){a.removeListener("_infoHash",r),a.removeListener("ready",o),a.removeListener("close",i)}vars=this;if(s.destroyed)thrownewError("client is destroyed");if("function"==typeoft)returns.add(e,null,t);s._debug("add"),t=t?l(t):{};vara=newx(e,s,t);returns.torrents.push(a),a.once("_infoHash",r),a.once("ready",o),a.once("close",i),a},o.prototype.seed=function(e,t,n){functionr(e){vart=[function(t){e.load(f,t)}];a.dht&&t.push(function(t){e.once("dhtAnnounce",t)}),g(t,function(t){returna.destroyed?void0:t?e._destroy(t):voido(e)})}functiono(e){a._debug("on seed"),"function"==typeofn&&n(e),e.emit("seed"),a.emit("seed",e)}vara=this;if(a.destroyed)thrownewError("client is destroyed");if("function"==typeoft)returna.seed(e,null,t);a._debug("seed"),t=t?l(t):{},"string"==typeofe&&(t.path=_.dirname(e)),t.createdBy||(t.createdBy="WebTorrent/"+B);varf,d=a.add(null,t,r);returns(e)&&(e=Array.prototype.slice.call(e)),Array.isArray(e)||(e=[e]),g(e.map(function(e){returnfunction(t){i(e)?u(e,t):t(null,e)}}),function(e,n){returna.destroyed?void0:e?d._destroy(e):voidc.parseInput(n,t,function(e,r){if(!a.destroyed){if(e)returnd._destroy(e);f=r.map(function(e){returne.getStream}),c(n,t,function(e,n){if(!a.destroyed){if(e)returnd._destroy(e);varr=a.get(n);r?d._destroy(newError("Cannot add duplicate torrent "+r.infoHash)):d._onTorrentId(n,t.forced_id)}})}})}),d},o.prototype.remove=function(e,t){this._debug("remove");varn=this.get(e);if(!n)thrownewError("No torrent with id "+e);this._remove(e,t)},o.prototype._remove=function(e,t){varn=this.get(e);n&&(this.torre