}):this.renderer.destroyView(e,this.allNodes),this.cdMode=r.f.Destroyed}},t.prototype.destroyInternal=function(){},t.prototype.detachInternal=function(){},t.prototype.detach=function(){vart=this;if(this.detachInternal(),this._animationContext?this._animationContext.onAllActiveAnimationsDone(function(){returnt._renderDetach()}):this._renderDetach(),this.declaredViewContainer&&this.declaredViewContainer!==this.viewContainer&&this.declaredViewContainer.projectedViews){vare=this.declaredViewContainer.projectedViews,n=e.indexOf(this);n>=e.length-1?e.pop():e.splice(n,1)}this.appRef=null,this.viewContainer=null,this.dirtyParentQueriesInternal()},t.prototype._renderDetach=function(){this._directRenderer?this.visitRootNodesInternal(this._directRenderer.remove,null):this.renderer.detachView(this.flatRootNodes)},t.prototype.attachToAppRef=function(t){if(this.viewContainer)thrownewError("This view is already attached to a ViewContainer!");this.appRef=t,this.dirtyParentQueriesInternal()},t.prototype.attachAfter=function(t,e){if(this.appRef)thrownewError("This view is already attached directly to the ApplicationRef!");this._renderAttach(t,e),this.viewContainer=t,this.declaredViewContainer&&this.declaredViewContainer!==t&&(this.declaredViewContainer.projectedViews||(this.declaredViewContainer.projectedViews=[]),this.declaredViewContainer.projectedViews.push(this)),this.dirtyParentQueriesInternal()},t.prototype.moveAfter=function(t,e){this._renderAttach(t,e),this.dirtyParentQueriesInternal()},t.prototype._renderAttach=function(t,e){varn=e?e.lastRootNode:t.nativeElement;if(this._directRenderer){varr=this._directRenderer.nextSibling(n);if(r)this.visitRootNodesInternal(this._directRenderer.insertBefore,r);else{vari=this._directRenderer.parentElement(n);i&&this.visitRootNodesInternal(this._directRenderer.appendChild,i)}}elsethis.renderer.attachViewAfter(n,this.flatRootNodes)},Object.defineProperty(t.prototype,"changeDetectorRef",{get:function(){returnthis.ref},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"flatRootNodes",{get:function(){vart=[];returnthis.visitRootNodesInternal(f.addToArray,t),t},enumerable:!0,configurable:!0}),t.prototype.projectNodes=function(t,e){if(this._directRenderer)this.visitProjectedNodes(e,this._directRenderer.appendChild,t);else{varn=[];this.visitProjectedNodes(e,f.addToArray,n),this.renderer.projectNodes(t,n)}},t.prototype.visitProjectedNodes=function(t,e,n){switch(this.type){casep.ViewType.EMBEDDED:this.parentView.visitProjectedNodes(t,e,n);break;casep.ViewType.COMPONENT:if(this.parentView.type===p.ViewType.HOST)for(varr=this.parentView._hostProjectableNodes[t]||[],i=0;i<r.length;i++)e(r[i],n);elsethis.parentView.visitProjectableNodesInternal(this.parentIndex,t,e,n)}},t.prototype.visitRootNodesInternal=function(t,e){},t.prototype.visitProjectableNodesInternal=function(t,e,n,r){},t.prototype.dirtyParentQueriesInternal=function(){},t.prototype.internalDetectChanges=function(t){this.cdMode!==r.f.Detached&&this.detectChanges(t)},t.prototype.detectChanges=function(t){vare=d(this.clazz);this.cdMode!==r.f.Checked&&this.cdMode!==r.f.Errored&&(this.cdMode===r.f.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(t),this.cdMode===r.f.CheckOnce&&(this.cdMode=r.f.Checked),this.numberOfChecks++,n.i(s.a)(e))},t.prototype.detectChangesInternal=function(t){},t.prototype.markAsCheckOnce=function(){this.cdMode=r.f.CheckOnce},t.prototype.markPathToRootAsCheckOnce=function(){for(vart=this;n.i(o.d)(t)&&t.cdMode!==r.f.Detached;)t.cdMode===r.f.Checked&&(t.cdMode=r.f.CheckOnce),t=t.type===p.ViewType.COMPONENT?t.parentView:t.viewContainer?t.viewContainer.parentView:null},t.prototype.eventHandler=function(t){returnt},t.prototype.throwDestroyedError=function(t){thrownewl.b(t)},t}(),v=function(t){functione(e,n,r,i,o,s,a,c,u,l){void0===l&&(l=null),t.call(this,e,n,r,i,o,s,a,c,l),this.staticNodeDebugInfos=u,this._currentDebugContext=null}return_(e,t),e.prototype.create=function(e){this._resetDebug();try{returnt.prototype.create.call(this,e)}catch(t){throwthis._reth
if(this.nestedViews)for(vare=0;e<this.nestedViews.length;e++)this.nestedViews[e].detectChanges(t)},t.prototype.destroyNestedViews=function(){if(this.nestedViews)for(vart=0;t<this.nestedViews.length;t++)this.nestedViews[t].destroy()},t.prototype.visitNestedViewRootNodes=function(t,e){if(this.nestedViews)for(varn=0;n<this.nestedViews.length;n++)this.nestedViews[n].visitRootNodesInternal(t,e)},t.prototype.mapNestedViews=function(t,e){varn=[];if(this.nestedViews)for(varr=0;r<this.nestedViews.length;r++){vari=this.nestedViews[r];i.clazz===t&&n.push(e(i))}if(this.projectedViews)for(varr=0;r<this.projectedViews.length;r++){varo=this.projectedViews[r];o.clazz===t&&n.push(e(o))}returnn},t.prototype.moveView=function(t,e){varn=this.nestedViews.indexOf(t);if(t.type===o.ViewType.COMPONENT)thrownewError("Component views can't be moved!");varr=this.nestedViews;null==r&&(r=[],this.nestedViews=r),r.splice(n,1),r.splice(e,0,t);vari=e>0?r[e-1]:null;t.moveAfter(this,i)},t.prototype.attachView=function(t,e){if(t.type===o.ViewType.COMPONENT)thrownewError("Component views can't be moved!");varn=this.nestedViews;null==n&&(n=[],this.nestedViews=n),e>=n.length?n.push(t):n.splice(e,0,t);varr=e>0?n[e-1]:null;t.attachAfter(this,r)},t.prototype.detachView=function(t){vare=this.nestedViews[t];if(t>=this.nestedViews.length-1?this.nestedViews.pop():this.nestedViews.splice(t,1),e.type===o.ViewType.COMPONENT)thrownewError("Component views can't be moved!");returne.detach(),e},t}()},function(t,e,n){varr=n(6),i=n(327),o=n(85),s=Object.defineProperty;e.f=n(31)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{returns(t,e,n)}catch(t){}if("get"inn||"set"inn)throwTypeError("Accessors not supported!");return"value"inn&&(t[e]=n.value),t}},function(t,e,n){"use strict";varr=n(23);Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"TemplateRef",function(){returno}),n.d(e,"TemplateRef_",function(){returns});vari=this&&this.__extends||function(t,e){functionn(){this.constructor=t}for(varrine)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)},o=function(){functiont(){}returnObject.defineProperty(t.prototype,"elementRef",{get:function(){returnnull},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t){},t}(),s=function(t){functione(e,n,r){t.call(this),this._parentView=e,this._nodeIndex=n,this._nativeElement=r}returni(e,t),e.prototype.createEmbeddedView=function(t){vare=this._parentView.createEmbeddedViewInternal(this._nodeIndex);returne.create(t||{}),e.ref},Object.defineProperty(e.prototype,"elementRef",{get:function(){returnnewr.ElementRef(this._nativeElement)},enumerable:!0,configurable:!0}),e}(o)},function(t,e,n){"use strict";functionr(t){vare={};returnnull!==t&&Object.keys(t).forEach(function(n){t[n].forEach(function(t){e[String(t)]=n})}),e}functioni(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(s.indexOf(e)===-1)thrownewo('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){returnt},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=r(e.styleAliases||null),a.indexOf(this.kind)===-1)thrownewo('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}varo=n(134),s=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];t.exports=i},function(t,e,n){"use strict";varr=n(67),i=n(388),o=n(269),s=n(35),a=n(32),c=n(386),u=function(){functiont(t){this.closed=!1,t&&(this._unsubscribe=t)}returnt.prototype.unsubscribe=function(){vart,e=!1;if(!this.closed){this.closed=!0;varn=this,u=n._unsubscribe,l=n._subscriptions;if(this._subscriptions=null,o.isFunction(u)){varh=s.tryCatch(u).call(this);h===a.errorObject&&(e=!0,(t=t||[]).push(a.errorObject.e))}if(r.isArray(l))for(varp=-1,f=l.length;++p<f;)
this.forkInnerZoneWithAngularBehavior()}returnt.isInAngularZone=function(){returnZone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())thrownewError("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())thrownewError("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){returnthis.inner.run(t)},t.prototype.runGuarded=function(t){returnthis.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){returnthis.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){returnthis._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){returnthis._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){returnthis._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){returnthis._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){returnthis._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){returnthis._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){returnthis._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){vart=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){returnt._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){vart=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{returnt.onEnter(),e.invokeTask(r,i,o,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,i,o,s,a){try{returnt.onEnter(),e.invoke(r,i,o,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?t.setHasMicrotask(i.microTask):"macroTask"==i.change&&t.setHasMacrotask(i.macroTask))},onHandleError:function(e,n,r,i){returne.handleError(r,i),t.triggerError(i),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}()},function(t,e,n){"use strict";varr=n(2),i=n(33);Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"EVENT_MANAGER_PLUGINS",function(){returno}),n.d(e,"EventManager",function(){returns}),n.d(e,"EventManagerPlugin",function(){returna});varo=newr.OpaqueToken("EventManagerPlugins"),s=function(){functiont(t,e){varn=this;this._zone=e,this._eventNameToPlugin=newMap,t.forEach(function(t){returnt.manager=n}),this._plugins=t.slice().reverse()}returnt.prototype.addEventListener=function(t,e,n){varr=this._findPluginFor(e);returnr.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){varr=this._findPluginFor(e);returnr.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){returnthis._zone},t.prototype._findPluginFor=function(t){vare=this._eventNameToPlugin.get(t);if(e)returne;for(varn=this._plugins,r=0;r<n.length;r++){vari=n[r];if(i.supports(t))returnthis._eventNameToPlugin.set(t,i),i}thrownewError("No event manager plugin found for event "+t)},t.decorators=[{type:r.Injectable}],t.ctorParameters=function(){return[{type:Array,decorators:[{type:r.Inject,args:[o]}]},{type:r.NgZone}]},t}(),a=function(){functiont(){}returnt.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,r){varo=n.i(i.a)().getGl
this._testability=u,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=i(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}})}returnS(e,t),e.prototype.attachView=function(t){vare=t.internalView;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){vare=t.internalView;p.d.remove(this._views,e),e.detach()},e.prototype.bootstrap=function(t){vare=this;if(!this._initStatus.done)thrownewError("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");varn;n=tinstanceofw.ComponentFactory?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);varr=n.create(this._injector,[],n.selector);r.onDestroy(function(){e._unloadComponent(r)});varo=r.injector.get(C.Testability,null);returno&&r.injector.get(C.TestabilityRegistry).registerApplication(r.location.nativeElement,o),this._loadComponent(r),i()&&this._console.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);vare=this._injector.get(m.APP_BOOTSTRAP_LISTENER,[]).concat(this._bootstrapListeners);e.forEach(function(e){returne(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),p.d.remove(this._rootComponents,t)},e.prototype.tick=function(){if(this._runningTick)thrownewError("ApplicationRef.tick is called recursively");vart=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){returnt.ref.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){returnt.ref.checkNoChanges()})}finally{this._runningTick=!1,n.i(I.a)(t)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){returnt.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){returnthis._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){returnthis._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){returnthis._rootComponents},enumerable:!0,configurable:!0}),e._tickScope=n.i(I.b)("ApplicationRef#tick()"),e.decorators=[{type:v.b}],e.ctorParameters=function(){return[{type:k.NgZone},{type:g.Console},{type:v.g},{type:h.ErrorHandler},{type:x.ComponentFactoryResolver},{type:y.ApplicationInitStatus},{type:C.TestabilityRegistry,decorators:[{type:v.d}]},{type:C.Testability,decorators:[{type:v.d}]}]},e}(P)},function(t,e,n){"use strict";varr=n(197),i=n(283),o=n(36),s=n(60);n.d(e,"l",function(){returna.SimpleChange}),n.d(e,"m",function(){returna.WrappedValue}),n.d(e,"a",function(){returna.devModeEqual});vara=n(9);n.d(e,"h",function(){returnc.a});varc=n(282),u=n(12);n.d(e,"g",function(){returnu.ChangeDetectionStrategy}),n.d(e,"f",function(){returnu.ChangeDetectorStatus}),n.d(e,"i",function(){returnr.b}),n.d(e,"j",function(){returnr.c}),n.d(e,"k",function(){returni.b}),n.d(e,"d",function(){returno.IterableDiffers}),n.d(e,"e",function(){returns.KeyValueDiffers}),n.d(e,"b",function(){returnp}),n.d(e,"c",function(){returnf});varl=[newi.a],h=[newr.a],p=newo.IterableDiffers(h),f=news.KeyValueDiffers(l)},function(t,e,n){"use strict";varr=n(54),i=n(7);Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Console",function(){returno});varo=function(){functiont(){}returnt.prototype.log=function(t){n.i(i.g)(t)},t.prototype.warn=function(t){n.i(i.h)(t)},t.decorators=[{type:r.b}],t.ctorParameters=function(){return[]},t}()},function(t,e,n){"use strict";functionr(t,e){returnnull}vari=n(437);n.d(e,"b",function(){returns}),n.d(e,"a",function(){returna}),n.d(e,"c",function(){returnc}),n.d(e,"d",function(){returnu});varo=n.i(i.a)(),s=o?i.b:function(t,e){returnr},a=o?i.c:function(t,e){returne},c=o?
vare=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeoft.transform&&(this._transform=t.transform),"function"==typeoft.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeofthis._flush?this._flush(function(t){s(e,t)}):s(e)})}functions(t,e){if(e)returnt.emit("error",e);varn=t._writableState,r=t._transformState;if(n.length)thrownewError("calling transform done when ws.length != 0");if(r.transforming)thrownewError("calling transform done when still transforming");returnt.push(null)}t.exports=o;vara=n(102),c=n(66);c.inherits=n(43),c.inherits(o,a),o.prototype.push=function(t,e){returnthis._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){thrownewError("not implemented")},o.prototype._write=function(t,e,n){varr=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){vari=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){vare=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},function(t,e,n){"use strict";(function(e){functionr(){}functioni(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}functiono(t,e){O=O||n(102),t=t||{},this.objectMode=!!t.objectMode,einstanceofO&&(this.objectMode=this.objectMode||!!t.writableObjectMode);varr=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;varo=t.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){_(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=newx(this),this.corkedRequestsFree.next=newx(this)}functions(t){returnO=O||n(102),thisinstanceofs||thisinstanceofO?(this._writableState=newo(t,this),this.writable=!0,t&&("function"==typeoft.write&&(this._write=t.write),"function"==typeoft.writev&&(this._writev=t.writev)),voidS.call(this)):news(t)}functiona(t,e){varn=newError("write after end");t.emit("error",n),I(e,n)}functionc(t,e,n,r){vari=!0;if(!k.isBuffer(n)&&"string"!=typeofn&&null!==n&&void0!==n&&!e.objectMode){varo=newTypeError("Invalid non-string/buffer chunk");t.emit("error",o),I(r,o),i=!1}returni}functionu(t,e,n){returnt.objectMode||t.decodeStrings===!1||"string"!=typeofe||(e=newk(e,n)),e}functionl(t,e,n,r,o){n=u(e,n,r),k.isBuffer(n)&&(r="buffer");vars=e.objectMode?1:n.length;e.length+=s;vara=e.length<e.highWaterMark;if(a||(e.needDrain=!0),e.writing||e.corked){varc=e.lastBufferedRequest;e.lastBufferedRequest=newi(n,r,o),c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}elseh(t,e,!1,s,n,r,o);returna}functionh(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}functionp(t,e,n,r,i){--e.pendingcb,n?I(i,r):i(r),t._writableState.errorEmitted=!0,t.emit("error",r)}functionf(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function_(t,e){varn=t._writableState,r=n.sync,i=n.writecb;if(f(n),e)p(t,n,r,e,i);else{varo=g(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||m(t,n),r?C(d,t,n,o,i):d(t,n,o,i)}}functiond(t,e,n,r){n||y(t,e),e.pendingcb--,r(),b(t,e)}functiony(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}functionm(t,e){e.bufferProcessing=!0;varn=e.bufferedRequest;if(t._writev&&n&&n.next){varr=e.bufferedRequestCount,i=newArray(r),o=e.corkedRequestsFree;o.entry=n;for(vars=0;n;)i[s]=n,n=n.next,s+=1;h(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,e.c
0===e.length&&e.ended?w(this):h(this),null;if(t=c(t,e),0===t&&e.ended)return0===e.length&&w(this),null;varr=e.needReadable;N("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,N("length less than watermark",r)),(e.ended||e.reading)&&(r=!1,N("reading or ended",r)),r&&(N("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),r&&!e.reading&&(t=c(n,e));vari;returni=t>0?b(t,e):null,null===i&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),n!==t&&e.ended&&0===e.length&&w(this),null!==i&&this.emit("data",i),i},i.prototype._read=function(t){this.emit("error",newError("not implemented"))},i.prototype.pipe=function(t,n){functionr(t){N("onunpipe"),t===h&&o()}functioni(){N("onend"),t.end()}functiono(){N("cleanup"),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("drain",y),t.removeListener("error",a),t.removeListener("unpipe",r),h.removeListener("end",i),h.removeListener("end",o),h.removeListener("data",s),m=!0,!p.awaitDrain||t._writableState&&!t._writableState.needDrain||y()}functions(e){N("ondata");varn=t.write(e);!1===n&&(1!==p.pipesCount||p.pipes[0]!==t||1!==h.listenerCount("data")||m||(N("false write response, pause",h._readableState.awaitDrain),h._readableState.awaitDrain++),h.pause())}functiona(e){N("onerror",e),l(),t.removeListener("error",a),0===O(t,"error")&&t.emit("error",e)}functionc(){t.removeListener("finish",u),l()}functionu(){N("onfinish"),t.removeListener("close",c),l()}functionl(){N("unpipe"),h.unpipe(t)}varh=this,p=this._readableState;switch(p.pipesCount){case0:p.pipes=t;break;case1:p.pipes=[p.pipes,t];break;default:p.pipes.push(t)}p.pipesCount+=1,N("pipe count=%d opts=%j",p.pipesCount,n);varf=(!n||n.end!==!1)&&t!==e.stdout&&t!==e.stderr,_=f?i:o;p.endEmitted?k(_):h.once("end",_),t.on("unpipe",r);vary=d(h);t.on("drain",y);varm=!1;returnh.on("data",s),t._events&&t._events.error?T(t._events.error)?t._events.error.unshift(a):t._events.error=[a,t._events.error]:t.on("error",a),t.once("close",c),t.once("finish",u),t.emit("pipe",h),p.flowing||(N("pipe resume"),h.resume()),t},i.prototype.unpipe=function(t){vare=this._readableState;if(0===e.pipesCount)returnthis;if(1===e.pipesCount)returnt&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){varn=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(vari=0;i<r;i++)n[i].emit("unpipe",this);returnthis}varo=C(e.pipes,t);returno===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},i.prototype.on=function(t,e){varn=E.prototype.on.call(this,t,e);if("data"===t&&!1!==this._readableState.flowing&&this.resume(),"readable"===t&&!this._readableState.endEmitted){varr=this._readableState;r.readableListening||(r.readableListening=!0,r.emittedReadable=!1,r.needReadable=!0,r.reading?r.length&&h(this,r):k(y,this))}returnn},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){vart=this._readableState;returnt.flowing||(N("resume"),t.flowing=!0,m(this,t)),this},i.prototype.pause=function(){returnN("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(N("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(t){vare=this._readableState,n=!1,r=this;t.on("end",function(){if(N("wrapped end"),e.decoder&&!e.ended){vart=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(i){if(N("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void0!==i)&&(e.objectMode||i&&i.length)){varo=r.push(i);o||(n=!0,t.pause())}});for(variint)void0===this[i]&&"function"==typeoft[i]&&(this[i]=function(e){returnfunction(){returnt[e].apply(t,arguments)}}(i));varo=["error","close","destroy","pause","resume"];returnI(o,function(e){t.on(e,r.emit.bind(r,e))}),r._read=function(e){N("wrapped _read",e),n&&(n=!1,t.resume())},r},i._fromList=b}).call(e,n(44))},function(t,e){"use strict";t.exports={Aac
}returnr(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){vart=this.connectable;if(t){this.connectable=null;vare=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),l=function(){functiont(t){this.connectable=t}returnt.prototype.call=function(t,e){varn=this.connectable;n._refCount++;varr=newh(t,n),i=e.subscribe(r);returnr.closed||(r.connection=n.connect()),i},t}(),h=function(t){functione(e,n){t.call(this,e),this.connectable=n}returnr(e,t),e.prototype._unsubscribe=function(){vart=this.connectable;if(!t)returnvoid(this.connection=null);this.connectable=null;vare=t._refCount;if(e<=0)returnvoid(this.connection=null);if(t._refCount=e-1,e>1)returnvoid(this.connection=null);varn=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber)},function(t,e,n){"use strict";varr=this&&this.__extends||function(t,e){functionn(){this.constructor=t}for(varrine)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)},i=n(67),o=n(389),s=n(368),a=n(927),c=n(74),u=n(916),l=n(139),h=n(0),p=n(266),f=n(184),_=function(t){returnt&&"number"==typeoft.length},d=function(t){functione(e,n){t.call(this,null),this.ish=e,this.scheduler=n}returnr(e,t),e.create=function(t,n){if(null!=t){if("function"==typeoft[f.$$observable])returntinstanceofh.Observable&&!n?t:newe(t,n);if(i.isArray(t))returnnewc.ArrayObservable(t,n);if(o.isPromise(t))returnnews.PromiseObservable(t,n);if("function"==typeoft[l.$$iterator]||"string"==typeoft)returnnewa.IteratorObservable(t,n);if(_(t))returnnewu.ArrayLikeObservable(t,n)}thrownewTypeError((null!==t&&typeoft||t)+" is not observable")},e.prototype._subscribe=function(t){vare=this.ish,n=this.scheduler;returnnull==n?e[f.$$observable]().subscribe(t):e[f.$$observable]().subscribe(newp.ObserveOnSubscriber(t,n,0))},e}(h.Observable);e.FromObservable=d},function(t,e,n){"use strict";functionr(t){vare=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}functioni(t){vare=t.err,n=t.subscriber;n.closed||n.error(e)}varo=this&&this.__extends||function(t,e){functionn(){this.constructor=t}for(varrine)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,newn)},s=n(34),a=n(0),c=function(t){functione(e,n){t.call(this),this.promise=e,this.scheduler=n}returno(e,t),e.create=function(t,n){returnnewe(t,n)},e.prototype._subscribe=function(t){vare=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throwt})});elseif(this._isScalar){if(!t.closed)returno.schedule(r,0,{value:this.value,subscriber:t})}elsen.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throwt})})},e}(a.Observable);e.PromiseObservable=c},function(t,e,n){"use strict";functionr(){if(h.root.XMLHttpRequest){vart=newh.root.XMLHttpRequest;return"withCredentials"int&&(t.withCredentials=!!this.withCredentials),t}if(h.root.XDomainRequest)returnnewh.root.XDomainRequest;thrownewError("CORS is not supported by your browser")}functioni(){if(h.root.XMLHttpRequest)returnnewh.root.XMLHttpRequest;vart=void0;try{for(vare=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],newh.root.ActiveXObject(t))break}catch(t){}returnnewh.root.ActiveXObject(t)}catch(t){thrownewError("XMLHttpRequest is not supported by your browser")}}functiono(t,e){returnvoid0===e&&(e=null),newm({method:"GET",url:t,headers:e})}functions(t,e,n){returnnewm({method:"POST",url:t,body:e,
vare=t._readableState;for(j("flow",e.flowing);e.flowing&&null!==t.read(););}functionw(t,e){if(0===e.length)returnnull;varn;returne.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=x(t,e.buffer,e.decoder),n}functionx(t,e,n){varr;returnt<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?I(t,e):C(t,e),r}functionI(t,e){varn=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){varo=n.data,s=t>o.length?o.length:t;if(i+=s===o.length?o:o.slice(0,t),t-=s,0===t){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}returne.length-=r,i}functionC(t,e){varn=M.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){varo=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),t-=s,0===t){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}returne.length-=i,n}functionk(t){vare=t._readableState;if(e.length>0)thrownewError('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,O(T,e,t))}functionT(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}functionS(t,e){for(varn=0,r=t.length;n<r;n++)e(t[n],n)}functionE(t,e){for(varn=0,r=t.length;n<r;n++)if(t[n]===e)returnn;return-1}t.exports=o;varO=n(112),R=n(256);o.ReadableState=i;varA,N=(n(100).EventEmitter,function(t,e){returnt.listeners(e).length});!function(){try{A=n(114)}catch(t){}finally{A||(A=n(100).EventEmitter)}}();varP=n(21).Buffer,M=n(234),D=n(66);D.inherits=n(43);varV=n(1081),j=void0;j=V&&V.debuglog?V.debuglog("stream"):function(){};varL,F=n(1065);D.inherits(o,A);varB,B;o.prototype.push=function(t,e){varn=this._readableState;returnn.objectMode||"string"!=typeoft||(e=e||n.defaultEncoding,e!==n.encoding&&(t=M.from(t,e),e="")),s(this,n,t,e,!1)},o.prototype.unshift=function(t){vare=this._readableState;returns(this,e,t,"",!0)},o.prototype.isPaused=function(){returnthis._readableState.flowing===!1},o.prototype.setEncoding=function(t){returnL||(L=n(190).StringDecoder),this._readableState.decoder=newL(t),this._readableState.encoding=t,this};varU=8388608;o.prototype.read=function(t){j("read",t),t=parseInt(t,10);vare=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))returnj("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?k(this):p(this),null;if(t=u(t,e),0===t&&e.ended)return0===e.length&&k(this),null;varr=e.needReadable;j("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,j("length less than watermark",r)),e.ended||e.reading?(r=!1,j("reading or ended",r)):r&&(j("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=u(n,e)));vari;returni=t>0?w(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&k(this)),null!==i&&this.emit("data",i),i},o.prototype._read=function(t){this.emit("error",newError("not implemented"))},o.prototype.pipe=function(t,n){functioni(t){j("onunpipe"),t===p&&s()}functiono(){j("onend"),t.end()}functions(){j("cleanup"),t.removeListener("close",u),t.removeListener("finish",l),t.removeListener("drain",m),t.removeListener("error",c),t.removeListener("unpipe",i),p.removeListener("end",o),p.removeListener("end",s),p.removeListener("data",a),g=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||m()}functiona(e){j("ondata"),v=!1;varn=t.write(e);!1!==n||v||((1===f.pipesCount&&f.pipes===t||f.pipesCount>1&&E(f.pipes,t)!==-1)&&!g&&(j("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,v=!0),p.pause())}functionc(e){j("onerror",e),h(),t.removeListener("error",c),0===N(t,"error")&&t.emit("error",e)}functionu(){t.removeListener("finish",l),h()}functionl(){j("onfinish"),t.removeListener("close",u),h()}functionh(){j("unpipe"),p.unpipe(t)}varp
l.resolve(t.result)?(t.result=l.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):_(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):_(t,"unknown tag !<"+t.tag+">");returnnull!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||y}functionM(t){vare,n,s,a,c=t.position,u=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(a=t.input.charCodeAt(t.position))&&(b(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==a));){for(u=!0,a=t.input.charCodeAt(++t.position),e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(e,t.position),s=[],n.length<1&&_(t,"directive name must not be less than one character in length");0!==a;){for(;i(a);)a=t.input.charCodeAt(++t.position);if(35===a){doa=t.input.charCodeAt(++t.position);while(0!==a&&!r(a));break}if(r(a))break;for(e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);s.push(t.input.slice(e,t.position))}0!==a&&v(t),W.call(at,n)?at[n](t,n,s):d(t,'unknown document directive "'+n+'"')}returnb(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,b(t,!0,-1)):u&&_(t,"directives end mark is expected"),P(t,t.lineIndent-1,G,!1,!0),b(t,!0,-1),t.checkLineBreaks&&tt.test(t.input.slice(c,t.position))&&d(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&w(t)?void(46===t.input.charCodeAt(t.position)&&(t.position+=3,b(t,!0,-1))):void(t.position<t.length-1&&_(t,"end of the stream or a document separator is expected"))}functionD(t,e){t=String(t),e=e||{},0!==t.length&&(10!==t.charCodeAt(t.length-1)&&13!==t.charCodeAt(t.length-1)&&(t+="\n"),65279===t.charCodeAt(0)&&(t=t.slice(1)));varn=newp(t,e);for(n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)M(n);returnn.documents}functionV(t,e,n){varr,i,o=D(t,n);for(r=0,i=o.length;r<i;r+=1)e(o[r])}functionj(t,e){varn=D(t,e);if(0!==n.length){if(1===n.length)returnn[0];thrownewU("expected a single document in the stream, but found more")}}functionL(t,e,n){V(t,e,B.extend({schema:H},n))}functionF(t,e){returnj(t,B.extend({schema:H},e))}for(varB=n(110),U=n(134),z=n(686),H=n(135),q=n(179),W=Object.prototype.hasOwnProperty,Y=1,$=2,Z=3,G=4,J=1,K=2,X=3,Q=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tt=/[\x85\u2028\u2029]/,et=/[,\[\]\{\}]/,nt=/^(?:!|!!|![a-z\-]+!)$/i,rt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,it=newArray(256),ot=newArray(256),st=0;st<256;st++)it[st]=l(st)?1:0,ot[st]=l(st);varat={YAML:function(t,e,n){varr,i,o;null!==t.version&&_(t,"duplication of %YAML directive"),1!==n.length&&_(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===r&&_(t,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&_(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,1!==o&&2!==o&&d(t,"unsupported YAML version of the document")},TAG:function(t,e,n){varr,i;2!==n.length&&_(t,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],nt.test(r)||_(t,"ill-formed tag handle (first argument) of the TAG directive"),W.call(t.tagMap,r)&&_(t,'there is a previously declared suffix for "'+r+'" tag handle'),rt.test(i)||_(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[r]=i}};t.exports.loadAll=V,t.exports.load=j,t.exports.safeLoadAll=L,t.exports.safeLoad=F},function(t,e,n){"use strict";functionr(t,e,n,r,i){this.name=t,this.buffer=e,this.position=n,this.line=r,this.column=i}vari=n(110);r.prototype.getSnippet=function(t,e){varn,r,o,s,a;if(!this.buffer)returnnull;for(t=t||4,e=e||75,n="",r=this.position;r>0&&"\0\r\n\u2028\u2029".indexOf(this.buffer.charAt(r-1))===-1;)if(r-=1,this.position-r>e/2-1){n=" ... ",r+=5;break}for(o="",s=this.position;s<this.buffer.length&&"\0
e.toSubscriber=r},function(t,e,n){(function(t){!function(){vare=function(t,n){returnnull===t.parentNode?n:e(t.parentNode,n.concat([t]))},n=function(t,e){returngetComputedStyle(t,null).getPropertyValue(e)},r=function(t){returnn(t,"overflow")+n(t,"overflow-y")+n(t,"overflow-x")},i=function(t){return/(auto|scroll)/.test(r(t))},o=function(t){if(tinstanceofHTMLElement){for(varn=e(t.parentNode,[]),r=0;r<n.length;r+=1)if(i(n[r]))returnn[r];returndocument.body}};"object"==typeoft&&null!==t?t.exports=o:window.Scrollparent=o}()}).call(e,n(399)(t))},function(t,e,n){(function(e,r,i){functiono(t){returna.fetch?"fetch":a.mozchunkedarraybuffer?"moz-chunked-arraybuffer":a.msstream?"ms-stream":a.arraybuffer&&t?"arraybuffer":a.vbArray&&t?"text:vbarray":"text"}functions(t){try{vare=t.status;returnnull!==e&&0!==e}catch(t){return!1}}vara=n(393),c=n(43),u=n(1063),l=n(397),h=n(1070),p=u.IncomingMessage,f=u.readyStates,_=t.exports=function(t){varn=this;l.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+newe(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});varr;if("prefer-streaming"===t.mode)r=!1;elseif("allow-wrong-content-type"===t.mode)r=!a.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)thrownewError("Invalid value for opts.mode");r=!0}n._mode=o(r),n.on("finish",function(){n._onFinish()})};c(_,l.Writable),_.prototype.setHeader=function(t,e){varn=this,r=t.toLowerCase();d.indexOf(r)===-1&&(n._headers[r]={name:t,value:e})},_.prototype.getHeader=function(t){vare=this;returne._headers[t.toLowerCase()].value},_.prototype.removeHeader=function(t){vare=this;deletee._headers[t.toLowerCase()]},_.prototype._onFinish=function(){vart=this;if(!t._destroyed){varn,o=t._opts,s=t._headers;if("POST"!==o.method&&"PUT"!==o.method&&"PATCH"!==o.method||(n=a.blobConstructor?newr.Blob(t._body.map(function(t){returnh(t)}),{type:(s["content-type"]||{}).value||""}):e.concat(t._body).toString()),"fetch"===t._mode){varc=Object.keys(s).map(function(t){return[s[t].name,s[t].value]});r.fetch(t._opts.url,{method:t._opts.method,headers:c,body:n,mode:"cors",credentials:o.withCredentials?"include":"same-origin"}).then(function(e){t._fetchResponse=e,t._connect()},function(e){t.emit("error",e)})}else{varu=t._xhr=newr.XMLHttpRequest;try{u.open(t._opts.method,t._opts.url,!0)}catch(e){returnvoidi.nextTick(function(){t.emit("error",e)})}"responseType"inu&&(u.responseType=t._mode.split(":")[0]),"withCredentials"inu&&(u.withCredentials=!!o.withCredentials),"text"===t._mode&&"overrideMimeType"inu&&u.overrideMimeType("text/plain; charset=x-user-defined"),Object.keys(s).forEach(function(t){u.setRequestHeader(s[t].name,s[t].value)}),t._response=null,u.onreadystatechange=function(){switch(u.readyState){casef.LOADING:casef.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(u.onprogress=function(){t._onXHRProgress()}),u.onerror=function(){t._destroyed||t.emit("error",newError("XHR error"))};try{u.send(n)}catch(e){returnvoidi.nextTick(function(){t.emit("error",e)})}}}},_.prototype._onXHRProgress=function(){vart=this;s(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},_.prototype._connect=function(){vart=this;t._destroyed||(t._response=newp(t._xhr,t._fetchResponse,t._mode),t.emit("response",t._response))},_.prototype._write=function(t,e,n){varr=this;r._body.push(t),n()},_.prototype.abort=_.prototype.destroy=function(){vart=this;t._destroyed=!0,t._response&&(t._response._destroyed=!0),t._xhr&&t._xhr.abort()},_.prototype.end=function(t,e,n){varr=this;"function"==typeoft&&(n=t,t=void0),l.Writable.prototype.end.call(r,t,e,n)},_.prototype.flushHeaders=function(){},_.prototype.setTimeout=function(){},_.prototype.setNoDelay=function(){},_.prototype.setSocketKeepAlive=function(){};vard=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","orig
this._scheduleTaskCurrZone=n&&(n.onScheduleTask?this.zone:e.zone),this._invokeTaskZS=n&&(n.onInvokeTask?n:e._invokeTaskZS),this._invokeTaskDlgt=n&&(n.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=n&&(n.onInvokeTask?this.zone:e.zone),this._cancelTaskZS=n&&(n.onCancelTask?n:e._cancelTaskZS),this._cancelTaskDlgt=n&&(n.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=n&&(n.onCancelTask?this.zone:e.zone),this._hasTaskZS=n&&(n.onHasTask?n:e._hasTaskZS),this._hasTaskDlgt=n&&(n.onHasTask?e:e._hasTaskDlgt),this._hasTaskCurrZone=n&&(n.onHasTask?this.zone:e.zone)}returnt.prototype.fork=function(t,e){returnthis._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,t,e):newd(t,e)},t.prototype.intercept=function(t,e,n){returnthis._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,t,e,n):e},t.prototype.invoke=function(t,e,n,r,i){returnthis._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,t,e,n,r,i):e.apply(n,r)},t.prototype.handleError=function(t,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,t,e)},t.prototype.scheduleTask=function(t,e){try{if(this._scheduleTaskZS)returnthis._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,t,e);if(e.scheduleFn)e.scheduleFn(e);else{if("microTask"!=e.type)thrownewError("Task is missing scheduleFn.");r(e)}returne}finally{t==this.zone&&this._updateTaskCount(e.type,1)}},t.prototype.invokeTask=function(t,e,n,r){try{returnthis._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,t,e,n,r):e.callback.apply(n,r)}finally{t!=this.zone||"eventTask"==e.type||e.data&&e.data.isPeriodic||this._updateTaskCount(e.type,-1)}},t.prototype.cancelTask=function(t,e){varn;if(this._cancelTaskZS)n=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,t,e);else{if(!e.cancelFn)thrownewError("Task does not support cancellation, or is already canceled.");n=e.cancelFn(e)}returnt==this.zone&&this._updateTaskCount(e.type,-1),n},t.prototype.hasTask=function(t,e){returnthis._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,t,e)},t.prototype._updateTaskCount=function(t,e){varn=this._taskCounts,r=n[t],i=n[t]=r+e;if(i<0)thrownewError("More tasks executed then were scheduled.");if(0==r||0==i){varo={microTask:n.microTask>0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t};try{this.hasTask(this.zone,o)}finally{this._parentDelegate&&this._parentDelegate._updateTaskCount(t,e)}}},t}(),m=function(){functiont(t,e,n,r,i,s,a){this.runCount=0,this.type=t,this.zone=e,this.source=n,this.data=i,this.scheduleFn=s,this.cancelFn=a,this.callback=r;varc=this;this.invoke=function(){S++;try{returne.runTask(c,this,arguments)}finally{1==S&&o(),S--}}}returnt.prototype.toString=function(){returnthis.data&&"undefined"!=typeofthis.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},t}(),g=function(){functiont(t,e){this.parent=t,this.zone=e}returnt}(),v=e("setTimeout"),b=e("Promise"),w=e("then"),x=newg(null,newd(null,null)),I=null,C=[],k=!1,T=[],S=0,E=e("state"),O=e("value"),R="Promise.then",A=null,N=!0,P=!1,M=0,D=function(){functiont(e){varn=this;if(!(ninstanceoft))thrownewError("Must be an instanceof Promise.");n[E]=A,n[O]=[];try{e&&e(u(n,N),u(n,P))}catch(t){l(n,!1,t)}}returnt.resolve=function(t){returnl(newthis(null),N,t)},t.reject=function(t){returnl(newthis(null),P,t)},t.race=function(t){functione(t){o&&(o=r(t))}functionn(t){o&&(o=i(t))}for(varr,i,o=newthis(function(t,e){n=[t,e],r=n[0],i=n[1];varn}),a=0,c=t;a<c.length;a++){varu=c[a];s(u)||(u=this.resolve(u)),u.then(e,n)}returno},t.all=function(t){for(vare,n,r=newthis(function(t,r){e=t,n=r}),i=0,o=[],a=0,c=t;a<c.length;a++){varu=c[a];s(u)||(u=this.resolve(u)),u.then(function(t){returnfunction(n){o[t]=n,i--,i||e(o)}}(i),n),i++}returni||e(o),r},t.prototype.then=function(t,e){varn=newthis.constructor(null),r=d.current;returnthis[E]==A?this[O].push(r,n,t,e):p(this,r,n,t,e)