varOrbitDB=function(modules){function__webpack_require__(moduleId){if(installedModules[moduleId])returninstalledModules[moduleId].exports;varmodule=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};returnmodules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}varinstalledModules={};return__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.i=function(value){returnvalue},__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){vargetter=module&&module.__esModule?function(){returnmodule.default}:function(){returnmodule};return__webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){returnObject.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=198)}([function(module,exports){"use strict";exports.__esModule=!0,exports.default=function(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}},function(module,exports,__webpack_require__){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0;var_defineProperty=__webpack_require__(56),_defineProperty2=_interopRequireDefault(_defineProperty);exports.default=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"indescriptor&&(descriptor.writable=!0),(0,_defineProperty2.default)(target,descriptor.key,descriptor)}}returnfunction(Constructor,protoProps,staticProps){returnprotoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}()},function(module,exports){varcore=module.exports={version:"2.4.0"};"number"==typeof__e&&(__e=core)},function(module,exports,__webpack_require__){varstore=__webpack_require__(45)("wks"),uid=__webpack_require__(35),Symbol=__webpack_require__(4).Symbol,USE_SYMBOL="function"==typeofSymbol,$exports=module.exports=function(name){returnstore[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))};$exports.store=store},function(module,exports){varglobal=module.exports="undefined"!=typeofwindow&&window.Math==Math?window:"undefined"!=typeofself&&self.Math==Math?self:Function("return this")();"number"==typeof__g&&(__g=global)},function(module,exports){varg;g=function(){returnthis}();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeofwindow&&(g=window)}module.exports=g},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(107),__esModule:!0}},function(module,exports,__webpack_require__){varisObject=__webpack_require__(19);module.exports=function(it){if(!isObject(it))throwTypeError(it+" is not an object!");returnit}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(18)(function(){return7!=Object.defineProperty({},"a",{get:function(){return7}}).a})},function(module,exports,__webpack_require__){varglobal=__webpack_require__(4),core=__webpack_require__(2),ctx=__webpack_require__(23),hide=__webpack_require__(12),PROTOTYPE="prototype",$export=function(type,name,source){varkey,own,out,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,IS_WRAP=type&$export.W,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports[PROTOTYPE],target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE];IS_GLOBAL&&(source=name);for(keyinsource)own=!IS_FORCED&&target&&void0!==target[key],own&&keyinexports||(out=own?target[key]:source[key],exports[key]=IS_GLOBAL&&"function"!=typeoftarget[key]?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?functi
functionFeedIndex(){return(0,_classCallCheck3.default)(this,FeedIndex),(0,_possibleConstructorReturn3.default)(this,(FeedIndex.__proto__||(0,_getPrototypeOf2.default)(FeedIndex)).apply(this,arguments))}return(0,_inherits3.default)(FeedIndex,_EventIndex),(0,_createClass3.default)(FeedIndex,[{key:"updateIndex",value:function(oplog,added){var_this2=this;added.reduce(function(handled,item){returnhandled.includes(item.hash)||(handled.push(item.hash),"ADD"===item.payload.op?_this2._index[item.hash]=item:"DEL"===item.payload.op&&delete_this2._index[item.payload.value]),handled},[])}}]),FeedIndex}(EventIndex);module.exports=FeedIndex},function(module,exports,__webpack_require__){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj}}var_classCallCheck2=__webpack_require__(0),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(1),_createClass3=_interopRequireDefault(_createClass2),KeyValueIndex=function(){functionKeyValueIndex(){(0,_classCallCheck3.default)(this,KeyValueIndex),this._index={}}return(0,_createClass3.default)(KeyValueIndex,[{key:"get",value:function(key){returnthis._index[key]}},{key:"updateIndex",value:function(oplog,added){var_this=this;added.reverse().reduce(function(handled,item){returnhandled.includes(item.payload.key)||(handled.push(item.payload.key),"PUT"===item.payload.op?_this._index[item.payload.key]=item.payload.value:"DEL"===item.payload.op&&delete_this._index[item.payload.key]),handled},[])}}]),KeyValueIndex}();module.exports=KeyValueIndex},function(module,exports,__webpack_require__){"use strict";(function(Buffer){function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj}}var_keys=__webpack_require__(14),_keys2=_interopRequireDefault(_keys),_classCallCheck2=__webpack_require__(0),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(1),_createClass3=_interopRequireDefault(_createClass2),Logger=__webpack_require__(92),logger=Logger.create("orbit-db.ipfs-pubsub");Logger.setLogLevel("ERROR");varIPFSPubsub=function(){functionIPFSPubsub(ipfs){(0,_classCallCheck3.default)(this,IPFSPubsub),this._ipfs=ipfs,this._subscriptions={},null===this._ipfs.pubsub&&logger.error("The provided version of ipfs doesn't have pubsub support. Messages will not be exchanged.")}return(0,_createClass3.default)(IPFSPubsub,[{key:"subscribe",value:function(hash,onMessageCallback){this._subscriptions[hash]||(this._subscriptions[hash]={onMessage:onMessageCallback},this._ipfs.pubsub&&this._ipfs.pubsub.subscribe(hash,{discover:!0},this._handleMessage.bind(this)))}},{key:"unsubscribe",value:function(hash){this._subscriptions[hash]&&(this._ipfs.pubsub.unsubscribe(hash,this._handleMessage),deletethis._subscriptions[hash],logger.debug("Unsubscribed from '"+hash+"'"))}},{key:"publish",value:function(hash,message){this._subscriptions[hash]&&this._ipfs.pubsub&&this._ipfs.pubsub.publish(hash,newBuffer(message))}},{key:"disconnect",value:function(){var_this=this;(0,_keys2.default)(this._subscriptions).forEach(function(e){return_this.unsubscribe(e)})}},{key:"_handleMessage",value:function(message){varhash=message.topicCIDs[0],data=message.data.toString(),subscription=this._subscriptions[hash];subscription&&subscription.onMessage&&data&&subscription.onMessage(hash,data)}}]),IPFSPubsub}();module.exports=IPFSPubsub}).call(exports,__webpack_require__(21).Buffer)},function(module,exports,__webpack_require__){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{default:obj}}var_classCallCheck2=__webpack_require__(0),_classCallCheck3=_interopRequireDefault(_classCallCheck2),_createClass2=__webpack_require__(1),_createClass3=_interopRequireDefault(_createClass2),Index=function(){functionIndex(id){(0,_classCallCheck3.default)(this,Index),this.id=id,this._index=[]}return(0,_createClass3.default)(Index,[{key:"get",value:function(){returnthis._index}},{key:"updateIndex",value:function(oplog,entries){this._index=oplog.ops}}]),Index}();module.exports=Index},function(module
{longStackTraces:function(){returnconfig.longStackTraces},warnings:function(){returnconfig.warnings},cancellation:function(){returnconfig.cancellation},monitoring:function(){returnconfig.monitoring},propagateFromFunction:function(){returnpropagateFromFunction},boundValueFunction:function(){returnboundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:fireDomEvent,fireGlobalEvent:fireGlobalEvent}}},{"./errors":12,"./util":36}],10:[function(_dereq_,module,exports){"use strict";module.exports=function(Promise){functionreturner(){returnthis.value}functionthrower(){throwthis.reason}Promise.prototype.return=Promise.prototype.thenReturn=function(value){returnvalueinstanceofPromise&&value.suppressUnhandledRejections(),this._then(returner,void0,void0,{value:value},void0)},Promise.prototype.throw=Promise.prototype.thenThrow=function(reason){returnthis._then(thrower,void0,void0,{reason:reason},void0)},Promise.prototype.catchThrow=function(reason){if(arguments.length<=1)returnthis._then(void0,thrower,void0,{reason:reason},void0);var_reason=arguments[1],handler=function(){throw_reason};returnthis.caught(reason,handler)},Promise.prototype.catchReturn=function(value){if(arguments.length<=1)returnvalueinstanceofPromise&&value.suppressUnhandledRejections(),this._then(void0,returner,void0,{value:value},void0);var_value=arguments[1];_valueinstanceofPromise&&_value.suppressUnhandledRejections();varhandler=function(){return_value};returnthis.caught(value,handler)}}},{}],11:[function(_dereq_,module,exports){"use strict";module.exports=function(Promise,INTERNAL){functionpromiseAllThis(){returnPromiseAll(this)}functionPromiseMapSeries(promises,fn){returnPromiseReduce(promises,fn,INTERNAL,INTERNAL)}varPromiseReduce=Promise.reduce,PromiseAll=Promise.all;Promise.prototype.each=function(fn){returnPromiseReduce(this,fn,INTERNAL,0)._then(promiseAllThis,void0,void0,this,void0)},Promise.prototype.mapSeries=function(fn){returnPromiseReduce(this,fn,INTERNAL,INTERNAL)},Promise.each=function(promises,fn){returnPromiseReduce(promises,fn,INTERNAL,0)._then(promiseAllThis,void0,void0,promises,void0)},Promise.mapSeries=PromiseMapSeries}},{}],12:[function(_dereq_,module,exports){"use strict";functionsubError(nameProperty,defaultMessage){functionSubError(message){returnthisinstanceofSubError?(notEnumerableProp(this,"message","string"==typeofmessage?message:defaultMessage),notEnumerableProp(this,"name",nameProperty),void(Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this))):newSubError(message)}returninherits(SubError,Error),SubError}functionOperationalError(message){returnthisinstanceofOperationalError?(notEnumerableProp(this,"name","OperationalError"),notEnumerableProp(this,"message",message),this.cause=message,this.isOperational=!0,void(messageinstanceofError?(notEnumerableProp(this,"message",message.message),notEnumerableProp(this,"stack",message.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor))):newOperationalError(message)}var_TypeError,_RangeError,es5=_dereq_("./es5"),Objectfreeze=es5.freeze,util=_dereq_("./util"),inherits=util.inherits,notEnumerableProp=util.notEnumerableProp,Warning=subError("Warning","warning"),CancellationError=subError("CancellationError","cancellation error"),TimeoutError=subError("TimeoutError","timeout error"),AggregateError=subError("AggregateError","aggregate error");try{_TypeError=TypeError,_RangeError=RangeError}catch(e){_TypeError=subError("TypeError","type error"),_RangeError=subError("RangeError","range error")}for(varmethods="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),i=0;i<methods.length;++i)"function"==typeofArray.prototype[methods[i]]&&(AggregateError.prototype[methods[i]]=Array.prototype[methods[i]]);es5.defineProperty(AggregateError.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0
}returnthis._setLength(index+1),index},Promise.prototype._proxy=function(proxyable,arg){this._addCallbacks(void0,void0,arg,proxyable,null)},Promise.prototype._resolveCallback=function(value,shouldBind){if(0===(117506048&this._bitField)){if(value===this)returnthis._rejectCallback(makeSelfResolutionError(),!1);varmaybePromise=tryConvertToPromise(value,this);if(!(maybePromiseinstanceofPromise))returnthis._fulfill(value);shouldBind&&this._propagateFrom(maybePromise,2);varpromise=maybePromise._target();if(promise===this)returnvoidthis._reject(makeSelfResolutionError());varbitField=promise._bitField;if(0===(50397184&bitField)){varlen=this._length();len>0&&promise._migrateCallback0(this);for(vari=1;i<len;++i)promise._migrateCallbackAt(this,i);this._setFollowing(),this._setLength(0),this._setFollowee(promise)}elseif(0!==(33554432&bitField))this._fulfill(promise._value());elseif(0!==(16777216&bitField))this._reject(promise._reason());else{varreason=newCancellationError("late cancellation observer");promise._attachExtraTrace(reason),this._reject(reason)}}},Promise.prototype._rejectCallback=function(reason,synchronous,ignoreNonErrorWarnings){vartrace=util.ensureErrorObject(reason),hasStack=trace===reason;if(!hasStack&&!ignoreNonErrorWarnings&&debug.warnings()){varmessage="a promise was rejected with a non-error: "+util.classString(reason);this._warn(message,!0)}this._attachExtraTrace(trace,!!synchronous&&hasStack),this._reject(reason)},Promise.prototype._resolveFromExecutor=function(executor){varpromise=this;this._captureStackTrace(),this._pushContext();varsynchronous=!0,r=this._execute(executor,function(value){promise._resolveCallback(value)},function(reason){promise._rejectCallback(reason,synchronous)});synchronous=!1,this._popContext(),void0!==r&&promise._rejectCallback(r,!0)},Promise.prototype._settlePromiseFromHandler=function(handler,receiver,value,promise){varbitField=promise._bitField;if(0===(65536&bitField)){promise._pushContext();varx;receiver===APPLY?value&&"number"==typeofvalue.length?x=tryCatch(handler).apply(this._boundValue(),value):(x=errorObj,x.e=newTypeError("cannot .spread() a non-array: "+util.classString(value))):x=tryCatch(handler).call(receiver,value);varpromiseCreated=promise._popContext();bitField=promise._bitField,0===(65536&bitField)&&(x===NEXT_FILTER?promise._reject(value):x===errorObj?promise._rejectCallback(x.e,!1):(debug.checkForgottenReturns(x,promiseCreated,"",promise,this),promise._resolveCallback(x)))}},Promise.prototype._target=function(){for(varret=this;ret._isFollowing();)ret=ret._followee();returnret},Promise.prototype._followee=function(){returnthis._rejectionHandler0},Promise.prototype._setFollowee=function(promise){this._rejectionHandler0=promise},Promise.prototype._settlePromise=function(promise,handler,receiver,value){varisPromise=promiseinstanceofPromise,bitField=this._bitField,asyncGuaranteed=0!==(134217728&bitField);0!==(65536&bitField)?(isPromise&&promise._invokeInternalOnCancel(),receiverinstanceofPassThroughHandlerContext&&receiver.isFinallyHandler()?(receiver.cancelPromise=promise,tryCatch(handler).call(receiver,value)===errorObj&&promise._reject(errorObj.e)):handler===reflectHandler?promise._fulfill(reflectHandler.call(receiver)):receiverinstanceofProxyable?receiver._promiseCancelled(promise):isPromise||promiseinstanceofPromiseArray?promise._cancel():receiver.cancel()):"function"==typeofhandler?isPromise?(asyncGuaranteed&&promise._setAsyncGuaranteed(),this._settlePromiseFromHandler(handler,receiver,value,promise)):handler.call(receiver,value,promise):receiverinstanceofProxyable?receiver._isResolved()||(0!==(33554432&bitField)?receiver._promiseFulfilled(value,promise):receiver._promiseRejected(value,promise)):isPromise&&(asyncGuaranteed&&promise._setAsyncGuaranteed(),0!==(33554432&bitField)?promise._fulfill(value):promise._reject(value))},Promise.prototype._settlePromiseLateCancellationObserver=function(ctx){varhandler=ctx.handler,promise=ctx.promise,receiver=ctx.receiver,value=ctx.value;"function"==typeofhandler?promiseinstanceofProm
value:value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}functionlastIndex(arr){returnarr.length-1}functionlast(arr){returnarr[lastIndex(arr)]}functionensureBuffer(data){returnBuffer.isBuffer(data)?data:Buffer.from(data)}var_createClass=function(){functiondefineProperties(target,props){for(vari=0;i<props.length;i++){vardescriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"indescriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}returnfunction(Constructor,protoProps,staticProps){returnprotoProps&&defineProperties(Constructor.prototype,protoProps),staticProps&&defineProperties(Constructor,staticProps),Constructor}}(),Dexie=__webpack_require__(153),_write=__webpack_require__(191),pushable=__webpack_require__(168),toBuffer=__webpack_require__(193),defer=__webpack_require__(167),toWindow=__webpack_require__(190).recent,pull=__webpack_require__(77);module.exports=function(){functionIdbBlobStore(dbname){_classCallCheck(this,IdbBlobStore),this.path=dbname||"pull-blob-store-"+Math.random().toString().slice(2,10),this.db=newDexie(this.path),this.db.version(1).stores(_defineProperty({},this.path,"++,key,blob"))}return_createClass(IdbBlobStore,[{key:"write",value:function(key,cb){var_this=this;cb=cb||function(){};vard=defer();returnkey?(this.remove(key,function(err){functionwriter(data,cb){varblobs=data.map(function(blob){return{key:key,blob:blob}});table.bulkPut(blobs).then(function(){returncb()}).catch(cb)}functionreduce(queue,data){returnqueue=queue||[],Array.isArray(data)||(data=[data]),data=data.map(ensureBuffer),!queue.length||last(queue).length>99?queue.push(Buffer.concat(data)):queue[lastIndex(queue)]=Buffer.concat(last(queue).concat(data)),queue}if(err)returncb(err);vartable=_this.table;d.resolve(pull(toWindow(100,10),_write(writer,reduce,100,cb)))}),d):(cb(newError("Missing key")),d)}},{key:"read",value:function(key){var_this2=this,p=pushable();returnkey?(this.exists(key,function(err,exists){returnerr?p.end(err):exists?void_this2.table.where("key").equals(key).each(function(val){returnp.push(toBuffer(val.blob))}).catch(function(err){returnp.end(err)}).then(function(){returnp.end()}):p.end(newError("Not found"))}),p):(p.end(newError("Missing key")),p)}},{key:"exists",value:function(key,cb){returncb=cb||function(){},key?voidthis.table.where("key").equals(key).count().then(function(val){returncb(null,Boolean(val))}).catch(cb):cb(newError("Missing key"))}},{key:"remove",value:function(key,cb){if(cb=cb||function(){},!key)returncb(newError("Missing key"));varcoll=this.table.where("key").equals(key);coll.count(function(count){returncount>0?coll.delete():null}).then(function(){returncb()}).catch(cb)}},{key:"table",get:function(){returnthis.db[this.path]}}]),IdbBlobStore}()}).call(exports,__webpack_require__(21).Buffer)},function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){vare,m,eLen=8*nBytes-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)returnm?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){vare,m,c,eLen=8*nBytes-mLen-1,eMax=(1<<eLen)-1,eBias=eMax>>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=value<0||0===value&&1/value<0?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.po
(ended=ended||end)?cb(ended):test(data)?cb(null,data):(ended=!0,last?cb(null,data):terminate(cb))})}}}},function(module,exports){"use strict";module.exports=function(op,onEnd){functiononce(abort){!a&&onEnd&&(a=!0,onEnd(abort===!0?null:abort))}vara=!1;returnfunction(read){returnfunction(end,cb){returnend&&once(end),read(end,function(end,data){end?once(end):op&&op(data),cb(end,data)})}}}},function(module,exports,__webpack_require__){varlooper=__webpack_require__(165),window=module.exports=function(init,start){returnfunction(read){start=start||function(start,data){return{start:start,data:data}};varwindows=[],output=[],ended=null,j=0;returnfunction(abort,cb){if(output.length)returncb(null,output.shift());if(ended)returncb(ended);j++;read(abort,looper(function(end,data){function_update(end,_data){once||(once=!0,deletewindows[windows.indexOf(update)],output.push(start(data,_data)))}varupdate,next=this,once=!1;returnend&&(ended=end),ended||(update=init(data,_update)),update?windows.push(update):once=!0,windows.forEach(function(update,i){update(end,data)}),output.length?cb(null,output.shift()):ended?cb(ended):voidread(null,next)}))}}};window.recent=function(size,time){varcurrent=null;returnwindow(function(data,cb){functiondone(){var_current=current;current=null,clearTimeout(timer),cb(null,_current)}if(!current){current=[];vartimer;returntime&&(timer=setTimeout(done,time)),function(end,data){returnend?done():(current.push(data),void(null!=size&¤t.length>=size&&done()))}}},function(_,data){returndata})},window.sliding=function(reduce,width){width=width||10;vark=0;returnwindow(function(data,cb){varacc,i=0;k++;returnfunction(end,data){end||(acc=reduce(acc,data),width<=++i&&cb(null,acc))}})}},function(module,exports){functionappend(array,item){return(array=array||[]).push(item),array}module.exports=function(write,reduce,max,cb){functionreader(read){functionmore(){reading||ended||(reading=!0,read(null,function(err,data){reading=!1,next(err,data)}))}functionflush(){if(!writing){var_queue=queue;queue=null,writing=!0,length=0,write(_queue,function(err){writing=!1,ended!==!0||length?ended&&ended!==!0?(cb(ended),_cb&&_cb()):err?read(ended=err,cb):length?flush():more():cb(err)})}}functionnext(end,data){ended||(ended=end,ended?writing||cb(ended===!0?null:ended):(queue=reduce(queue,data),length=queue&&queue.length||0,null!=queue&&flush(),length<max&&more()))}varqueue=null,writing=!1,length=0;if(_read=read,ended)returnread(ended,function(err){cb(err),_cb&&_cb()});varreading=!1;reader.abort=function(__cb){_cb=function(end){__cb&&__cb()},read(ended=newError("aborted"),function(end){end=end===!0?null:end,writing||(cb&&cb(end),_cb&&_cb(end))})},more()}reduce=reduce||append;varended,_cb,_read;returnreader.abort=function(cb){ended=newError("aborted before connecting"),_cb=function(err){cb&&cb()}},reader}},function(module,exports,__webpack_require__){(function(global,process){!function(global,undefined){"use strict";functionsetImmediate(callback){"function"!=typeofcallback&&(callback=newFunction(""+callback));for(varargs=newArray(arguments.length-1),i=0;i<args.length;i++)args[i]=arguments[i+1];vartask={callback:callback,args:args};returntasksByHandle[nextHandle]=task,registerImmediate(nextHandle),nextHandle++}functionclearImmediate(handle){deletetasksByHandle[handle]}functionrun(task){varcallback=task.callback,args=task.args;switch(args.length){case0:callback();break;case1:callback(args[0]);break;case2:callback(args[0],args[1]);break;case3:callback(args[0],args[1],args[2]);break;default:callback.apply(undefined,args)}}functionrunIfPresent(handle){if(currentlyRunningATask)setTimeout(runIfPresent,0,handle);else{vartask=tasksByHandle[handle];if(task){currentlyRunningATask=!0;try{run(task)}finally{clearImmediate(handle),currentlyRunningATask=!1}}}}functioninstallNextTickImplementation(){registerImmediate=function(handle){process.nextTick(function(){runIfPresent(handle)})}}functioncanUsePostMessage(){if(global.postMessage&&!global.importScripts){varpostMessageIsAsynchronous=!0,oldOnMessag