UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

101 lines 221 kB
/** @license Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt **/ (function(B){"object"===typeof exports&&"undefined"!==typeof module?module.exports=B():"function"===typeof define&&define.amd?define([],B):("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:this).Rx=B()})(function(){return function a(b,f,h){function k(d,c){if(!f[d]){if(!b[d]){var e="function"==typeof require&&require;if(!c&&e)return e(d,!0);if(l)return l(d,!0);e=Error("Cannot find module '"+d+"'");throw e.code="MODULE_NOT_FOUND",e;}e=f[d]={exports:{}}; b[d][0].call(e.exports,function(a){var c=b[d][1][a];return k(c?c:a)},e,e.exports,a,b,f,h)}return f[d].exports}for(var l="function"==typeof require&&require,g=0;g<h.length;g++)k(h[g]);return k}({1:[function(a,b,f){var h=this&&this.__extends||function(a,g){function d(){this.constructor=a}for(var c in g)g.hasOwnProperty(c)&&(a[c]=g[c]);a.prototype=null===g?Object.create(g):(d.prototype=g.prototype,new d)};b=a("./Subject");var k=a("./Subscription");a=function(a){function g(){a.apply(this,arguments);this.value= null;this.hasCompleted=this.hasNext=!1}h(g,a);g.prototype._subscribe=function(d){return this.hasCompleted&&this.hasNext?(d.next(this.value),d.complete(),k.Subscription.EMPTY):this.hasError?(d.error(this.thrownError),k.Subscription.EMPTY):a.prototype._subscribe.call(this,d)};g.prototype.next=function(a){this.value=a;this.hasNext=!0};g.prototype.complete=function(){this.hasCompleted=!0;this.hasNext&&a.prototype.next.call(this,this.value);a.prototype.complete.call(this)};return g}(b.Subject);f.AsyncSubject= a},{"./Subject":11,"./Subscription":14}],2:[function(a,b,f){var h=this&&this.__extends||function(a,d){function c(){this.constructor=a}for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)};b=a("./Subject");var k=a("./util/throwError"),l=a("./util/ObjectUnsubscribedError");a=function(a){function d(c){a.call(this);this._value=c}h(d,a);d.prototype.getValue=function(){if(this.hasError)k.throwError(this.thrownError);else if(this.isUnsubscribed)k.throwError(new l.ObjectUnsubscribedError); else return this._value};Object.defineProperty(d.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0});d.prototype._subscribe=function(c){var e=a.prototype._subscribe.call(this,c);e&&!e.isUnsubscribed&&c.next(this._value);return e};d.prototype.next=function(c){a.prototype.next.call(this,this._value=c)};return d}(b.Subject);f.BehaviorSubject=a},{"./Subject":11,"./util/ObjectUnsubscribedError":317,"./util/throwError":333}],3:[function(a,b,f){var h=this&&this.__extends|| function(a,b){function g(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)};a=function(a){function b(g,d,c){a.call(this);this.parent=g;this.outerValue=d;this.outerIndex=c;this.index=0}h(b,a);b.prototype._next=function(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex,this.index++,this)};b.prototype._error=function(a){this.parent.notifyError(a,this);this.unsubscribe()};b.prototype._complete=function(){this.parent.notifyComplete(this); this.unsubscribe()};return b}(a("./Subscriber").Subscriber);f.InnerSubscriber=a},{"./Subscriber":13}],4:[function(a,b,f){var h=a("./Observable");a=function(){function a(b,g,d){this.kind=b;this.value=g;this.exception=d;this.hasValue="N"===b}a.prototype.observe=function(a){switch(this.kind){case "N":return a.next&&a.next(this.value);case "E":return a.error&&a.error(this.exception);case "C":return a.complete&&a.complete()}};a.prototype["do"]=function(a,g,d){switch(this.kind){case "N":return a&&a(this.value); case "E":return g&&g(this.exception);case "C":return d&&d()}};a.prototype.accept=function(a,g,d){return a&&"function"===typeof a.next?this.observe(a):this["do"](a,g,d)};a.prototype.toObservable=function(){switch(this.kind){case "N":return h.Observable.of(this.value);case "E":return h.Observable["throw"](this.exception);case "C":return h.Observable.empty()}};a.createNext=function(b){return"undefined"!==typeof b?new a("N",b):this.undefinedValueNotification};a.createError=function(b){return new a("E", void 0,b)};a.createComplete=function(){return this.completeNotification};a.completeNotification=new a("C");a.undefinedValueNotification=new a("N",void 0);return a}();f.Notification=a},{"./Observable":5}],5:[function(a,b,f){var h=a("./util/root"),k=a("./util/toSubscriber"),l=a("symbol-observable");a=function(){function a(d){this._isScalar=!1;d&&(this._subscribe=d)}a.prototype.lift=function(d){var c=new a;c.source=this;c.operator=d;return c};a.prototype.subscribe=function(a,c,e){var m=this.operator; a=k.toSubscriber(a,c,e);m?m.call(a,this):a.add(this._subscribe(a));if(a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a};a.prototype.forEach=function(a,c){var e=this;c||(h.root.Rx&&h.root.Rx.config&&h.root.Rx.config.Promise?c=h.root.Rx.config.Promise:h.root.Promise&&(c=h.root.Promise));if(!c)throw Error("no Promise impl found");return new c(function(c,n){var b=e.subscribe(function(c){if(b)try{a(c)}catch(e){n(e),b.unsubscribe()}else a(c)},n,c)})};a.prototype._subscribe= function(a){return this.source.subscribe(a)};a.prototype[l]=function(){return this};a.create=function(d){return new a(d)};return a}();f.Observable=a},{"./util/root":331,"./util/toSubscriber":334,"symbol-observable":336}],6:[function(a,b,f){f.empty={isUnsubscribed:!0,next:function(a){},error:function(a){throw a;},complete:function(){}}},{}],7:[function(a,b,f){var h=a("./Subscriber");a=function(){function a(){}a.prototype.call=function(a,b){return b._subscribe(new h.Subscriber(a))};return a}();f.Operator= a},{"./Subscriber":13}],8:[function(a,b,f){var h=this&&this.__extends||function(a,b){function g(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)};a=function(a){function b(){a.apply(this,arguments)}h(b,a);b.prototype.notifyNext=function(a,d,c,e,m){this.destination.next(d)};b.prototype.notifyError=function(a,d){this.destination.error(a)};b.prototype.notifyComplete=function(a){this.destination.complete()};return b}(a("./Subscriber").Subscriber); f.OuterSubscriber=a},{"./Subscriber":13}],9:[function(a,b,f){var h=this&&this.__extends||function(a,c){function e(){this.constructor=a}for(var m in c)c.hasOwnProperty(m)&&(a[m]=c[m]);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)};b=a("./Subject");var k=a("./scheduler/queue"),l=a("./operator/observeOn");a=function(a){function c(c,m,n){void 0===c&&(c=Number.POSITIVE_INFINITY);void 0===m&&(m=Number.POSITIVE_INFINITY);a.call(this);this.scheduler=n;this._events=[];this._bufferSize= 1>c?1:c;this._windowTime=1>m?1:m}h(c,a);c.prototype.next=function(c){var m=this._getNow();this._events.push(new g(m,c));this._trimBufferThenGetEvents();a.prototype.next.call(this,c)};c.prototype._subscribe=function(c){var m=this._trimBufferThenGetEvents(),n=this.scheduler;n&&c.add(c=new l.ObserveOnSubscriber(c,n));for(var n=m.length,b=0;b<n&&!c.isUnsubscribed;b++)c.next(m[b].value);return a.prototype._subscribe.call(this,c)};c.prototype._getNow=function(){return(this.scheduler||k.queue).now()};c.prototype._trimBufferThenGetEvents= function(){for(var a=this._getNow(),c=this._bufferSize,d=this._windowTime,b=this._events,g=b.length,f=0;f<g&&!(a-b[f].time<d);)f++;g>c&&(f=Math.max(f,g-c));0<f&&b.splice(0,f);return b};return c}(b.Subject);f.ReplaySubject=a;var g=function(){return function(a,c){this.time=a;this.value=c}}()},{"./Subject":11,"./operator/observeOn":243,"./scheduler/queue":302}],10:[function(a,b,f){b=a("./Subject");f.Subject=b.Subject;b=a("./Observable");f.Observable=b.Observable;a("./add/observable/bindCallback");a("./add/observable/bindNodeCallback"); a("./add/observable/combineLatest");a("./add/observable/concat");a("./add/observable/defer");a("./add/observable/empty");a("./add/observable/forkJoin");a("./add/observable/from");a("./add/observable/fromEvent");a("./add/observable/fromEventPattern");a("./add/observable/fromPromise");a("./add/observable/generate");a("./add/observable/if");a("./add/observable/interval");a("./add/observable/merge");a("./add/observable/race");a("./add/observable/never");a("./add/observable/of");a("./add/observable/onErrorResumeNext"); a("./add/observable/range");a("./add/observable/using");a("./add/observable/throw");a("./add/observable/timer");a("./add/observable/zip");a("./add/observable/dom/ajax");a("./add/observable/dom/webSocket");a("./add/operator/buffer");a("./add/operator/bufferCount");a("./add/operator/bufferTime");a("./add/operator/bufferToggle");a("./add/operator/bufferWhen");a("./add/operator/cache");a("./add/operator/catch");a("./add/operator/combineAll");a("./add/operator/combineLatest");a("./add/operator/concat"); a("./add/operator/concatAll");a("./add/operator/concatMap");a("./add/operator/concatMapTo");a("./add/operator/count");a("./add/operator/dematerialize");a("./add/operator/debounce");a("./add/operator/debounceTime");a("./add/operator/defaultIfEmpty");a("./add/operator/delay");a("./add/operator/delayWhen");a("./add/operator/distinct");a("./add/operator/distinctKey");a("./add/operator/distinctUntilChanged");a("./add/operator/distinctUntilKeyChanged");a("./add/operator/do");a("./add/operator/exhaust"); a("./add/operator/exhaustMap");a("./add/operator/expand");a("./add/operator/elementAt");a("./add/operator/filter");a("./add/operator/finally");a("./add/operator/find");a("./add/operator/findIndex");a("./add/operator/first");a("./add/operator/groupBy");a("./add/operator/ignoreElements");a("./add/operator/isEmpty");a("./add/operator/audit");a("./add/operator/auditTime");a("./add/operator/last");a("./add/operator/let");a("./add/operator/every");a("./add/operator/map");a("./add/operator/mapTo");a("./add/operator/materialize"); a("./add/operator/max");a("./add/operator/merge");a("./add/operator/mergeAll");a("./add/operator/mergeMap");a("./add/operator/mergeMapTo");a("./add/operator/mergeScan");a("./add/operator/min");a("./add/operator/multicast");a("./add/operator/observeOn");a("./add/operator/onErrorResumeNext");a("./add/operator/pairwise");a("./add/operator/partition");a("./add/operator/pluck");a("./add/operator/publish");a("./add/operator/publishBehavior");a("./add/operator/publishReplay");a("./add/operator/publishLast"); a("./add/operator/race");a("./add/operator/reduce");a("./add/operator/repeat");a("./add/operator/retry");a("./add/operator/retryWhen");a("./add/operator/sample");a("./add/operator/sampleTime");a("./add/operator/scan");a("./add/operator/share");a("./add/operator/single");a("./add/operator/skip");a("./add/operator/skipUntil");a("./add/operator/skipWhile");a("./add/operator/startWith");a("./add/operator/subscribeOn");a("./add/operator/switch");a("./add/operator/switchMap");a("./add/operator/switchMapTo"); a("./add/operator/take");a("./add/operator/takeLast");a("./add/operator/takeUntil");a("./add/operator/takeWhile");a("./add/operator/throttle");a("./add/operator/throttleTime");a("./add/operator/timeInterval");a("./add/operator/timeout");a("./add/operator/timeoutWith");a("./add/operator/timestamp");a("./add/operator/toArray");a("./add/operator/toPromise");a("./add/operator/window");a("./add/operator/windowCount");a("./add/operator/windowTime");a("./add/operator/windowToggle");a("./add/operator/windowWhen"); a("./add/operator/withLatestFrom");a("./add/operator/zip");a("./add/operator/zipAll");b=a("./Operator");f.Operator=b.Operator;b=a("./Subscription");f.Subscription=b.Subscription;b=a("./Subscriber");f.Subscriber=b.Subscriber;b=a("./AsyncSubject");f.AsyncSubject=b.AsyncSubject;b=a("./ReplaySubject");f.ReplaySubject=b.ReplaySubject;b=a("./BehaviorSubject");f.BehaviorSubject=b.BehaviorSubject;b=a("./observable/MulticastObservable");f.MulticastObservable=b.MulticastObservable;b=a("./observable/ConnectableObservable"); f.ConnectableObservable=b.ConnectableObservable;b=a("./Notification");f.Notification=b.Notification;b=a("./util/EmptyError");f.EmptyError=b.EmptyError;b=a("./util/ArgumentOutOfRangeError");f.ArgumentOutOfRangeError=b.ArgumentOutOfRangeError;b=a("./util/ObjectUnsubscribedError");f.ObjectUnsubscribedError=b.ObjectUnsubscribedError;b=a("./util/UnsubscriptionError");f.UnsubscriptionError=b.UnsubscriptionError;b=a("./operator/timeInterval");f.TimeInterval=b.TimeInterval;b=a("./operator/timestamp");f.Timestamp= b.Timestamp;b=a("./testing/TestScheduler");f.TestScheduler=b.TestScheduler;b=a("./scheduler/VirtualTimeScheduler");f.VirtualTimeScheduler=b.VirtualTimeScheduler;b=a("./observable/dom/AjaxObservable");f.AjaxResponse=b.AjaxResponse;f.AjaxError=b.AjaxError;f.AjaxTimeoutError=b.AjaxTimeoutError;b=a("./scheduler/asap");var h=a("./scheduler/async"),k=a("./scheduler/queue"),l=a("./scheduler/animationFrame"),g=a("./symbol/rxSubscriber"),d=a("./symbol/iterator");a=a("symbol-observable");f.Scheduler={asap:b.asap, async:h.async,queue:k.queue,animationFrame:l.animationFrame};f.Symbol={rxSubscriber:g.$$rxSubscriber,observable:a,iterator:d.$$iterator}},{"./AsyncSubject":1,"./BehaviorSubject":2,"./Notification":4,"./Observable":5,"./Operator":7,"./ReplaySubject":9,"./Subject":11,"./Subscriber":13,"./Subscription":14,"./add/observable/bindCallback":15,"./add/observable/bindNodeCallback":16,"./add/observable/combineLatest":17,"./add/observable/concat":18,"./add/observable/defer":19,"./add/observable/dom/ajax":20, "./add/observable/dom/webSocket":21,"./add/observable/empty":22,"./add/observable/forkJoin":23,"./add/observable/from":24,"./add/observable/fromEvent":25,"./add/observable/fromEventPattern":26,"./add/observable/fromPromise":27,"./add/observable/generate":28,"./add/observable/if":29,"./add/observable/interval":30,"./add/observable/merge":31,"./add/observable/never":32,"./add/observable/of":33,"./add/observable/onErrorResumeNext":34,"./add/observable/race":35,"./add/observable/range":36,"./add/observable/throw":37, "./add/observable/timer":38,"./add/observable/using":39,"./add/observable/zip":40,"./add/operator/audit":41,"./add/operator/auditTime":42,"./add/operator/buffer":43,"./add/operator/bufferCount":44,"./add/operator/bufferTime":45,"./add/operator/bufferToggle":46,"./add/operator/bufferWhen":47,"./add/operator/cache":48,"./add/operator/catch":49,"./add/operator/combineAll":50,"./add/operator/combineLatest":51,"./add/operator/concat":52,"./add/operator/concatAll":53,"./add/operator/concatMap":54,"./add/operator/concatMapTo":55, "./add/operator/count":56,"./add/operator/debounce":57,"./add/operator/debounceTime":58,"./add/operator/defaultIfEmpty":59,"./add/operator/delay":60,"./add/operator/delayWhen":61,"./add/operator/dematerialize":62,"./add/operator/distinct":63,"./add/operator/distinctKey":64,"./add/operator/distinctUntilChanged":65,"./add/operator/distinctUntilKeyChanged":66,"./add/operator/do":67,"./add/operator/elementAt":68,"./add/operator/every":69,"./add/operator/exhaust":70,"./add/operator/exhaustMap":71,"./add/operator/expand":72, "./add/operator/filter":73,"./add/operator/finally":74,"./add/operator/find":75,"./add/operator/findIndex":76,"./add/operator/first":77,"./add/operator/groupBy":78,"./add/operator/ignoreElements":79,"./add/operator/isEmpty":80,"./add/operator/last":81,"./add/operator/let":82,"./add/operator/map":83,"./add/operator/mapTo":84,"./add/operator/materialize":85,"./add/operator/max":86,"./add/operator/merge":87,"./add/operator/mergeAll":88,"./add/operator/mergeMap":89,"./add/operator/mergeMapTo":90,"./add/operator/mergeScan":91, "./add/operator/min":92,"./add/operator/multicast":93,"./add/operator/observeOn":94,"./add/operator/onErrorResumeNext":95,"./add/operator/pairwise":96,"./add/operator/partition":97,"./add/operator/pluck":98,"./add/operator/publish":99,"./add/operator/publishBehavior":100,"./add/operator/publishLast":101,"./add/operator/publishReplay":102,"./add/operator/race":103,"./add/operator/reduce":104,"./add/operator/repeat":105,"./add/operator/retry":106,"./add/operator/retryWhen":107,"./add/operator/sample":108, "./add/operator/sampleTime":109,"./add/operator/scan":110,"./add/operator/share":111,"./add/operator/single":112,"./add/operator/skip":113,"./add/operator/skipUntil":114,"./add/operator/skipWhile":115,"./add/operator/startWith":116,"./add/operator/subscribeOn":117,"./add/operator/switch":118,"./add/operator/switchMap":119,"./add/operator/switchMapTo":120,"./add/operator/take":121,"./add/operator/takeLast":122,"./add/operator/takeUntil":123,"./add/operator/takeWhile":124,"./add/operator/throttle":125, "./add/operator/throttleTime":126,"./add/operator/timeInterval":127,"./add/operator/timeout":128,"./add/operator/timeoutWith":129,"./add/operator/timestamp":130,"./add/operator/toArray":131,"./add/operator/toPromise":132,"./add/operator/window":133,"./add/operator/windowCount":134,"./add/operator/windowTime":135,"./add/operator/windowToggle":136,"./add/operator/windowWhen":137,"./add/operator/withLatestFrom":138,"./add/operator/zip":139,"./add/operator/zipAll":140,"./observable/ConnectableObservable":145, "./observable/MulticastObservable":157,"./observable/dom/AjaxObservable":170,"./operator/timeInterval":276,"./operator/timestamp":279,"./scheduler/VirtualTimeScheduler":298,"./scheduler/animationFrame":299,"./scheduler/asap":300,"./scheduler/async":301,"./scheduler/queue":302,"./symbol/iterator":303,"./symbol/rxSubscriber":304,"./testing/TestScheduler":309,"./util/ArgumentOutOfRangeError":311,"./util/EmptyError":312,"./util/ObjectUnsubscribedError":317,"./util/UnsubscriptionError":318,"symbol-observable":336}], 11:[function(a,b,f){var h=this&&this.__extends||function(a,c){function e(){this.constructor=a}for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d]);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)},k=a("./Observable");b=a("./Subscriber");var l=a("./Subscription"),g=a("./util/ObjectUnsubscribedError"),d=a("./SubjectSubscription"),c=a("./symbol/rxSubscriber"),e=function(a){function c(e){a.call(this,e);this.destination=e}h(c,a);return c}(b.Subscriber);f.SubjectSubscriber=e;a=function(a){function b(){a.call(this); this.observers=[];this.hasError=this.isStopped=this.isUnsubscribed=!1;this.thrownError=null}h(b,a);b.prototype[c.$$rxSubscriber]=function(){return new e(this)};b.prototype.lift=function(a){var c=new m(this,this);c.operator=a;return c};b.prototype.next=function(a){if(this.isUnsubscribed)throw new g.ObjectUnsubscribedError;if(!this.isStopped)for(var c=this.observers,e=c.length,c=c.slice(),d=0;d<e;d++)c[d].next(a)};b.prototype.error=function(a){if(this.isUnsubscribed)throw new g.ObjectUnsubscribedError; this.hasError=!0;this.thrownError=a;this.isStopped=!0;for(var c=this.observers,e=c.length,c=c.slice(),d=0;d<e;d++)c[d].error(a);this.observers.length=0};b.prototype.complete=function(){if(this.isUnsubscribed)throw new g.ObjectUnsubscribedError;this.isStopped=!0;for(var a=this.observers,c=a.length,a=a.slice(),e=0;e<c;e++)a[e].complete();this.observers.length=0};b.prototype.unsubscribe=function(){this.isUnsubscribed=this.isStopped=!0;this.observers=null};b.prototype._subscribe=function(a){if(this.isUnsubscribed)throw new g.ObjectUnsubscribedError; if(this.hasError)return a.error(this.thrownError),l.Subscription.EMPTY;if(this.isStopped)return a.complete(),l.Subscription.EMPTY;this.observers.push(a);return new d.SubjectSubscription(this,a)};b.prototype.asObservable=function(){var a=new k.Observable;a.source=this;return a};b.create=function(a,c){return new m(a,c)};return b}(k.Observable);f.Subject=a;var m=function(a){function c(e,d){a.call(this);this.destination=e;this.source=d}h(c,a);c.prototype.next=function(a){var c=this.destination;c&&c.next&& c.next(a)};c.prototype.error=function(a){var c=this.destination;c&&c.error&&this.destination.error(a)};c.prototype.complete=function(){var a=this.destination;a&&a.complete&&this.destination.complete()};c.prototype._subscribe=function(a){return this.source?this.source.subscribe(a):l.Subscription.EMPTY};return c}(a);f.AnonymousSubject=m},{"./Observable":5,"./SubjectSubscription":12,"./Subscriber":13,"./Subscription":14,"./symbol/rxSubscriber":304,"./util/ObjectUnsubscribedError":317}],12:[function(a, b,f){var h=this&&this.__extends||function(a,b){function g(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)};a=function(a){function b(g,d){a.call(this);this.subject=g;this.subscriber=d;this.isUnsubscribed=!1}h(b,a);b.prototype.unsubscribe=function(){if(!this.isUnsubscribed){this.isUnsubscribed=!0;var a=this.subject,d=a.observers;this.subject=null;!d||0===d.length||a.isStopped||a.isUnsubscribed||(a=d.indexOf(this.subscriber), -1!==a&&d.splice(a,1))}};return b}(a("./Subscription").Subscription);f.SubjectSubscription=a},{"./Subscription":14}],13:[function(a,b,f){var h=this&&this.__extends||function(a,e){function d(){this.constructor=a}for(var n in e)e.hasOwnProperty(n)&&(a[n]=e[n]);a.prototype=null===e?Object.create(e):(d.prototype=e.prototype,new d)},k=a("./util/isFunction");b=a("./Subscription");var l=a("./Observer"),g=a("./symbol/rxSubscriber");a=function(a){function e(m,n,b){a.call(this);this.syncErrorValue=null;this.isStopped= this.syncErrorThrowable=this.syncErrorThrown=!1;switch(arguments.length){case 0:this.destination=l.empty;break;case 1:if(!m){this.destination=l.empty;break}if("object"===typeof m){m instanceof e?(this.destination=m,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new d(this,m));break}default:this.syncErrorThrowable=!0,this.destination=new d(this,m,n,b)}}h(e,a);e.prototype[g.$$rxSubscriber]=function(){return this};e.create=function(a,c,d){a=new e(a,c,d);a.syncErrorThrowable= !1;return a};e.prototype.next=function(a){this.isStopped||this._next(a)};e.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))};e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())};e.prototype.unsubscribe=function(){this.isUnsubscribed||(this.isStopped=!0,a.prototype.unsubscribe.call(this))};e.prototype._next=function(a){this.destination.next(a)};e.prototype._error=function(a){this.destination.error(a);this.unsubscribe()};e.prototype._complete= function(){this.destination.complete();this.unsubscribe()};return e}(b.Subscription);f.Subscriber=a;var d=function(a){function e(e,d,b,g){a.call(this);this._parent=e;var f;e=this;k.isFunction(d)?f=d:d&&(e=d,f=d.next,b=d.error,g=d.complete,k.isFunction(e.unsubscribe)&&this.add(e.unsubscribe.bind(e)),e.unsubscribe=this.unsubscribe.bind(this));this._context=e;this._next=f;this._error=b;this._complete=g}h(e,a);e.prototype.next=function(a){if(!this.isStopped&&this._next){var c=this._parent;c.syncErrorThrowable? this.__tryOrSetError(c,this._next,a)&&this.unsubscribe():this.__tryOrUnsub(this._next,a)}};e.prototype.error=function(a){if(!this.isStopped){var c=this._parent;if(this._error)c.syncErrorThrowable?this.__tryOrSetError(c,this._error,a):this.__tryOrUnsub(this._error,a),this.unsubscribe();else if(c.syncErrorThrowable)c.syncErrorValue=a,c.syncErrorThrown=!0,this.unsubscribe();else throw this.unsubscribe(),a;}};e.prototype.complete=function(){if(!this.isStopped){var a=this._parent;this._complete&&(a.syncErrorThrowable? this.__tryOrSetError(a,this._complete):this.__tryOrUnsub(this._complete));this.unsubscribe()}};e.prototype.__tryOrUnsub=function(a,c){try{a.call(this._context,c)}catch(e){throw this.unsubscribe(),e;}};e.prototype.__tryOrSetError=function(a,c,e){try{c.call(this._context,e)}catch(d){return a.syncErrorValue=d,a.syncErrorThrown=!0}return!1};e.prototype._unsubscribe=function(){var a=this._parent;this._parent=this._context=null;a.unsubscribe()};return e}(a)},{"./Observer":6,"./Subscription":14,"./symbol/rxSubscriber":304, "./util/isFunction":324}],14:[function(a,b,f){var h=a("./util/isArray"),k=a("./util/isObject"),l=a("./util/isFunction"),g=a("./util/tryCatch"),d=a("./util/errorObject"),c=a("./util/UnsubscriptionError");a=function(){function a(c){this.isUnsubscribed=!1;c&&(this._unsubscribe=c)}a.prototype.unsubscribe=function(){var a=!1,e;if(!this.isUnsubscribed){this.isUnsubscribed=!0;var b=this._unsubscribe,f=this._subscriptions;this._subscriptions=null;if(l.isFunction(b)){var p=g.tryCatch(b).call(this);p===d.errorObject&& (a=!0,(e=e||[]).push(d.errorObject.e))}if(h.isArray(f))for(var b=-1,u=f.length;++b<u;)p=f[b],k.isObject(p)&&(p=g.tryCatch(p.unsubscribe).call(p),p===d.errorObject&&(a=!0,e=e||[],p=d.errorObject.e,p instanceof c.UnsubscriptionError?e=e.concat(p.errors):e.push(p)));if(a)throw new c.UnsubscriptionError(e);}};a.prototype.add=function(c){if(c&&c!==this&&c!==a.EMPTY){var d=c;switch(typeof c){case "function":d=new a(c);case "object":d.isUnsubscribed||"function"!==typeof d.unsubscribe||(this.isUnsubscribed? d.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(d));break;default:throw Error("Unrecognized teardown "+c+" added to Subscription.");}return d}};a.prototype.remove=function(c){if(null!=c&&c!==this&&c!==a.EMPTY){var d=this._subscriptions;d&&(c=d.indexOf(c),-1!==c&&d.splice(c,1))}};a.EMPTY=function(a){a.isUnsubscribed=!0;return a}(new a);return a}();f.Subscription=a},{"./util/UnsubscriptionError":318,"./util/errorObject":321,"./util/isArray":322,"./util/isFunction":324,"./util/isObject":326, "./util/tryCatch":335}],15:[function(a,b,f){b=a("../../Observable");a=a("../../observable/bindCallback");b.Observable.bindCallback=a.bindCallback},{"../../Observable":5,"../../observable/bindCallback":165}],16:[function(a,b,f){b=a("../../Observable");a=a("../../observable/bindNodeCallback");b.Observable.bindNodeCallback=a.bindNodeCallback},{"../../Observable":5,"../../observable/bindNodeCallback":166}],17:[function(a,b,f){b=a("../../Observable");a=a("../../observable/combineLatest");b.Observable.combineLatest= a.combineLatest},{"../../Observable":5,"../../observable/combineLatest":167}],18:[function(a,b,f){b=a("../../Observable");a=a("../../observable/concat");b.Observable.concat=a.concat},{"../../Observable":5,"../../observable/concat":168}],19:[function(a,b,f){b=a("../../Observable");a=a("../../observable/defer");b.Observable.defer=a.defer},{"../../Observable":5,"../../observable/defer":169}],20:[function(a,b,f){b=a("../../../Observable");a=a("../../../observable/dom/ajax");b.Observable.ajax=a.ajax}, {"../../../Observable":5,"../../../observable/dom/ajax":172}],21:[function(a,b,f){b=a("../../../Observable");a=a("../../../observable/dom/webSocket");b.Observable.webSocket=a.webSocket},{"../../../Observable":5,"../../../observable/dom/webSocket":173}],22:[function(a,b,f){b=a("../../Observable");a=a("../../observable/empty");b.Observable.empty=a.empty},{"../../Observable":5,"../../observable/empty":174}],23:[function(a,b,f){b=a("../../Observable");a=a("../../observable/forkJoin");b.Observable.forkJoin= a.forkJoin},{"../../Observable":5,"../../observable/forkJoin":175}],24:[function(a,b,f){b=a("../../Observable");a=a("../../observable/from");b.Observable.from=a.from},{"../../Observable":5,"../../observable/from":176}],25:[function(a,b,f){b=a("../../Observable");a=a("../../observable/fromEvent");b.Observable.fromEvent=a.fromEvent},{"../../Observable":5,"../../observable/fromEvent":177}],26:[function(a,b,f){b=a("../../Observable");a=a("../../observable/fromEventPattern");b.Observable.fromEventPattern= a.fromEventPattern},{"../../Observable":5,"../../observable/fromEventPattern":178}],27:[function(a,b,f){b=a("../../Observable");a=a("../../observable/fromPromise");b.Observable.fromPromise=a.fromPromise},{"../../Observable":5,"../../observable/fromPromise":179}],28:[function(a,b,f){b=a("../../Observable");a=a("../../observable/GenerateObservable");b.Observable.generate=a.GenerateObservable.create},{"../../Observable":5,"../../observable/GenerateObservable":153}],29:[function(a,b,f){b=a("../../Observable"); a=a("../../observable/if");b.Observable["if"]=a._if},{"../../Observable":5,"../../observable/if":180}],30:[function(a,b,f){b=a("../../Observable");a=a("../../observable/interval");b.Observable.interval=a.interval},{"../../Observable":5,"../../observable/interval":181}],31:[function(a,b,f){b=a("../../Observable");a=a("../../observable/merge");b.Observable.merge=a.merge},{"../../Observable":5,"../../observable/merge":182}],32:[function(a,b,f){b=a("../../Observable");a=a("../../observable/never");b.Observable.never= a.never},{"../../Observable":5,"../../observable/never":183}],33:[function(a,b,f){b=a("../../Observable");a=a("../../observable/of");b.Observable.of=a.of},{"../../Observable":5,"../../observable/of":184}],34:[function(a,b,f){b=a("../../Observable");a=a("../../operator/onErrorResumeNext");b.Observable.onErrorResumeNext=a.onErrorResumeNextStatic},{"../../Observable":5,"../../operator/onErrorResumeNext":244}],35:[function(a,b,f){b=a("../../Observable");a=a("../../operator/race");b.Observable.race=a.raceStatic}, {"../../Observable":5,"../../operator/race":252}],36:[function(a,b,f){b=a("../../Observable");a=a("../../observable/range");b.Observable.range=a.range},{"../../Observable":5,"../../observable/range":185}],37:[function(a,b,f){b=a("../../Observable");a=a("../../observable/throw");b.Observable["throw"]=a._throw},{"../../Observable":5,"../../observable/throw":186}],38:[function(a,b,f){b=a("../../Observable");a=a("../../observable/timer");b.Observable.timer=a.timer},{"../../Observable":5,"../../observable/timer":187}], 39:[function(a,b,f){b=a("../../Observable");a=a("../../observable/using");b.Observable.using=a.using},{"../../Observable":5,"../../observable/using":188}],40:[function(a,b,f){b=a("../../Observable");a=a("../../observable/zip");b.Observable.zip=a.zip},{"../../Observable":5,"../../observable/zip":189}],41:[function(a,b,f){b=a("../../Observable");a=a("../../operator/audit");b.Observable.prototype.audit=a.audit},{"../../Observable":5,"../../operator/audit":190}],42:[function(a,b,f){b=a("../../Observable"); a=a("../../operator/auditTime");b.Observable.prototype.auditTime=a.auditTime},{"../../Observable":5,"../../operator/auditTime":191}],43:[function(a,b,f){b=a("../../Observable");a=a("../../operator/buffer");b.Observable.prototype.buffer=a.buffer},{"../../Observable":5,"../../operator/buffer":192}],44:[function(a,b,f){b=a("../../Observable");a=a("../../operator/bufferCount");b.Observable.prototype.bufferCount=a.bufferCount},{"../../Observable":5,"../../operator/bufferCount":193}],45:[function(a,b,f){b= a("../../Observable");a=a("../../operator/bufferTime");b.Observable.prototype.bufferTime=a.bufferTime},{"../../Observable":5,"../../operator/bufferTime":194}],46:[function(a,b,f){b=a("../../Observable");a=a("../../operator/bufferToggle");b.Observable.prototype.bufferToggle=a.bufferToggle},{"../../Observable":5,"../../operator/bufferToggle":195}],47:[function(a,b,f){b=a("../../Observable");a=a("../../operator/bufferWhen");b.Observable.prototype.bufferWhen=a.bufferWhen},{"../../Observable":5,"../../operator/bufferWhen":196}], 48:[function(a,b,f){b=a("../../Observable");a=a("../../operator/cache");b.Observable.prototype.cache=a.cache},{"../../Observable":5,"../../operator/cache":197}],49:[function(a,b,f){b=a("../../Observable");a=a("../../operator/catch");b.Observable.prototype["catch"]=a._catch},{"../../Observable":5,"../../operator/catch":198}],50:[function(a,b,f){b=a("../../Observable");a=a("../../operator/combineAll");b.Observable.prototype.combineAll=a.combineAll},{"../../Observable":5,"../../operator/combineAll":199}], 51:[function(a,b,f){b=a("../../Observable");a=a("../../operator/combineLatest");b.Observable.prototype.combineLatest=a.combineLatest},{"../../Observable":5,"../../operator/combineLatest":200}],52:[function(a,b,f){b=a("../../Observable");a=a("../../operator/concat");b.Observable.prototype.concat=a.concat},{"../../Observable":5,"../../operator/concat":201}],53:[function(a,b,f){b=a("../../Observable");a=a("../../operator/concatAll");b.Observable.prototype.concatAll=a.concatAll},{"../../Observable":5, "../../operator/concatAll":202}],54:[function(a,b,f){b=a("../../Observable");a=a("../../operator/concatMap");b.Observable.prototype.concatMap=a.concatMap},{"../../Observable":5,"../../operator/concatMap":203}],55:[function(a,b,f){b=a("../../Observable");a=a("../../operator/concatMapTo");b.Observable.prototype.concatMapTo=a.concatMapTo},{"../../Observable":5,"../../operator/concatMapTo":204}],56:[function(a,b,f){b=a("../../Observable");a=a("../../operator/count");b.Observable.prototype.count=a.count}, {"../../Observable":5,"../../operator/count":205}],57:[function(a,b,f){b=a("../../Observable");a=a("../../operator/debounce");b.Observable.prototype.debounce=a.debounce},{"../../Observable":5,"../../operator/debounce":206}],58:[function(a,b,f){b=a("../../Observable");a=a("../../operator/debounceTime");b.Observable.prototype.debounceTime=a.debounceTime},{"../../Observable":5,"../../operator/debounceTime":207}],59:[function(a,b,f){b=a("../../Observable");a=a("../../operator/defaultIfEmpty");b.Observable.prototype.defaultIfEmpty= a.defaultIfEmpty},{"../../Observable":5,"../../operator/defaultIfEmpty":208}],60:[function(a,b,f){b=a("../../Observable");a=a("../../operator/delay");b.Observable.prototype.delay=a.delay},{"../../Observable":5,"../../operator/delay":209}],61:[function(a,b,f){b=a("../../Observable");a=a("../../operator/delayWhen");b.Observable.prototype.delayWhen=a.delayWhen},{"../../Observable":5,"../../operator/delayWhen":210}],62:[function(a,b,f){b=a("../../Observable");a=a("../../operator/dematerialize");b.Observable.prototype.dematerialize= a.dematerialize},{"../../Observable":5,"../../operator/dematerialize":211}],63:[function(a,b,f){b=a("../../Observable");a=a("../../operator/distinct");b.Observable.prototype.distinct=a.distinct},{"../../Observable":5,"../../operator/distinct":212}],64:[function(a,b,f){b=a("../../Observable");a=a("../../operator/distinctKey");b.Observable.prototype.distinctKey=a.distinctKey},{"../../Observable":5,"../../operator/distinctKey":213}],65:[function(a,b,f){b=a("../../Observable");a=a("../../operator/distinctUntilChanged"); b.Observable.prototype.distinctUntilChanged=a.distinctUntilChanged},{"../../Observable":5,"../../operator/distinctUntilChanged":214}],66:[function(a,b,f){b=a("../../Observable");a=a("../../operator/distinctUntilKeyChanged");b.Observable.prototype.distinctUntilKeyChanged=a.distinctUntilKeyChanged},{"../../Observable":5,"../../operator/distinctUntilKeyChanged":215}],67:[function(a,b,f){b=a("../../Observable");a=a("../../operator/do");b.Observable.prototype["do"]=a._do},{"../../Observable":5,"../../operator/do":216}], 68:[function(a,b,f){b=a("../../Observable");a=a("../../operator/elementAt");b.Observable.prototype.elementAt=a.elementAt},{"../../Observable":5,"../../operator/elementAt":217}],69:[function(a,b,f){b=a("../../Observable");a=a("../../operator/every");b.Observable.prototype.every=a.every},{"../../Observable":5,"../../operator/every":218}],70:[function(a,b,f){b=a("../../Observable");a=a("../../operator/exhaust");b.Observable.prototype.exhaust=a.exhaust},{"../../Observable":5,"../../operator/exhaust":219}], 71:[function(a,b,f){b=a("../../Observable");a=a("../../operator/exhaustMap");b.Observable.prototype.exhaustMap=a.exhaustMap},{"../../Observable":5,"../../operator/exhaustMap":220}],72:[function(a,b,f){b=a("../../Observable");a=a("../../operator/expand");b.Observable.prototype.expand=a.expand},{"../../Observable":5,"../../operator/expand":221}],73:[function(a,b,f){b=a("../../Observable");a=a("../../operator/filter");b.Observable.prototype.filter=a.filter},{"../../Observable":5,"../../operator/filter":222}], 74:[function(a,b,f){b=a("../../Observable");a=a("../../operator/finally");b.Observable.prototype["finally"]=a._finally},{"../../Observable":5,"../../operator/finally":223}],75:[function(a,b,f){b=a("../../Observable");a=a("../../operator/find");b.Observable.prototype.find=a.find},{"../../Observable":5,"../../operator/find":224}],76:[function(a,b,f){b=a("../../Observable");a=a("../../operator/findIndex");b.Observable.prototype.findIndex=a.findIndex},{"../../Observable":5,"../../operator/findIndex":225}], 77:[function(a,b,f){b=a("../../Observable");a=a("../../operator/first");b.Observable.prototype.first=a.first},{"../../Observable":5,"../../operator/first":226}],78:[function(a,b,f){b=a("../../Observable");a=a("../../operator/groupBy");b.Observable.prototype.groupBy=a.groupBy},{"../../Observable":5,"../../operator/groupBy":227}],79:[function(a,b,f){b=a("../../Observable");a=a("../../operator/ignoreElements");b.Observable.prototype.ignoreElements=a.ignoreElements},{"../../Observable":5,"../../operator/ignoreElements":228}], 80:[function(a,b,f){b=a("../../Observable");a=a("../../operator/isEmpty");b.Observable.prototype.isEmpty=a.isEmpty},{"../../Observable":5,"../../operator/isEmpty":229}],81:[function(a,b,f){b=a("../../Observable");a=a("../../operator/last");b.Observable.prototype.last=a.last},{"../../Observable":5,"../../operator/last":230}],82:[function(a,b,f){b=a("../../Observable");a=a("../../operator/let");b.Observable.prototype.let=a.letProto;b.Observable.prototype.letBind=a.letProto},{"../../Observable":5,"../../operator/let":231}], 83:[function(a,b,f){b=a("../../Observable");a=a("../../operator/map");b.Observable.prototype.map=a.map},{"../../Observable":5,"../../operator/map":232}],84:[function(a,b,f){b=a("../../Observable");a=a("../../operator/mapTo");b.Observable.prototype.mapTo=a.mapTo},{"../../Observable":5,"../../operator/mapTo":233}],85:[function(a,b,f){b=a("../../Observable");a=a("../../operator/materialize");b.Observable.prototype.materialize=a.materialize},{"../../Observable":5,"../../operator/materialize":234}],86:[function(a, b,f){b=a("../../Observable");a=a("../../operator/max");b.Observable.prototype.max=a.max},{"../../Observable":5,"../../operator/max":235}],87:[function(a,b,f){b=a("../../Observable");a=a("../../operator/merge");b.Observable.prototype.merge=a.merge},{"../../Observable":5,"../../operator/merge":236}],88:[function(a,b,f){b=a("../../Observable");a=a("../../operator/mergeAll");b.Observable.prototype.mergeAll=a.mergeAll},{"../../Observable":5,"../../operator/mergeAll":237}],89:[function(a,b,f){b=a("../../Observable"); a=a("../../operator/mergeMap");b.Observable.prototype.mergeMap=a.mergeMap;b.Observable.prototype.flatMap=a.mergeMap},{"../../Observable":5,"../../operator/mergeMap":238}],90:[function(a,b,f){b=a("../../Observable");a=a("../../operator/mergeMapTo");b.Observable.prototype.flatMapTo=a.mergeMapTo;b.Observable.prototype.mergeMapTo=a.mergeMapTo},{"../../Observable":5,"../../operator/mergeMapTo":239}],91:[function(a,b,f){b=a("../../Observable");a=a("../../operator/mergeScan");b.Observable.prototype.mergeScan= a.mergeScan},{"../../Observable":5,"../../operator/mergeScan":240}],92:[function(a,b,f){b=a("../../Observable");a=a("../../operator/min");b.Observable.prototype.min=a.min},{"../../Observable":5,"../../operator/min":241}],93:[function(a,b,f){b=a("../../Observable");a=a("../../operator/multicast");b.Observable.prototype.multicast=a.multicast},{"../../Observable":5,"../../operator/multicast":242}],94:[function(a,b,f){b=a("../../Observable");a=a("../../operator/observeOn");b.Observable.prototype.observeOn= a.observeOn},{"../../Observable":5,"../../operator/observeOn":243}],95:[function(a,b,f){b=a("../../Observable");a=a("../../operator/onErrorResumeNext");b.Observable.prototype.onErrorResumeNext=a.onErrorResumeNext},{"../../Observable":5,"../../operator/onErrorResumeNext":244}],96:[function(a,b,f){b=a("../../Observable");a=a("../../operator/pairwise");b.Observable.prototype.pairwise=a.pairwise},{"../../Observable":5,"../../operator/pairwise":245}],97:[function(a,b,f){b=a("../../Observable");a=a("../../operator/partition"); b.Observable.prototype.partition=a.partition},{"../../Observable":5,"../../operator/partition":246}],98:[function(a,b,f){b=a("../../Observable");a=a("../../operator/pluck");b.Observable.prototype.pluck=a.pluck},{"../../Observable":5,"../../operator/pluck":247}],99:[function(a,b,f){b=a("../../Observable");a=a("../../operator/publish");b.Observable.prototype.publish=a.publish},{"../../Observable":5,"../../operator/publish":248}],100:[function(a,b,f){b=a("../../Observable");a=a("../../operator/publishBehavior"); b.Observable.prototype.publishBehavior=a.publishBehavior},{"../../Observable":5,"../../operator/publishBehavior":249}],101:[function(a,b,f){b=a("../../Observable");a=a("../../operator/publishLast");b.Observable.prototype.publishLast=a.publishLast},{"../../Observable":5,"../../operator/publishLast":250}],102:[function(a,b,f){b=a("../../Observable");a=a("../../operator/publishReplay");b.Observable.prototype.publishReplay=a.publishReplay},{"../../Observable":5,"../../operator/publishReplay":251}],103:[function(a, b,f){b=a("../../Observable");a=a("../../operator/race");b.Observable.prototype.race=a.race},{"../../Observable":5,"../../operator/race":252}],104:[function(a,b,f){b=a("../../Observable");a=a("../../operator/reduce");b.Observable.prototype.reduce=a.reduce},{"../../Observable":5,"../../operator/reduce":253}],105:[function(a,b,f){b=a("../../Observable");a=a("../../operator/repeat");b.Observable.prototype.repeat=a.repeat},{"../../Observable":5,"../../operator/repeat":254}],106:[function(a,b,f){b=a("../../Observable"); a=a("../../operator/retry");b.Observable.prototype.retry=a.retry},{"../../Observable":5,"../../operator/retry":255}],107:[function(a,b,f){b=a("../../Observable");a=a("../../operator/retryWhen");b.Observable.prototype.retryWhen=a.retryWhen},{"../../Observable":5,"../../operator/retryWhen":256}],108:[function(a,b,f){b=a("../../Observable");a=a("../../operator/sample");b.Observable.prototype.sample=a.sample},{"../../Observable":5,"../../operator/sample":257}],109:[function(a,b,f){b=a("../../Observable"); a=a("../../operator/sampleTime");b.Observable.prototype.sampleTime=a.sampleTime},{"../../Observable":5,"../../operator/sampleTime":258}],110:[function(a,b,f){b=a("../../Observable");a=a("../../operator/scan");b.Observable.prototype.scan=a.scan},{"../../Observable":5,"../../operator/scan":259}],111:[function(a,b,f){b=a("../../Observable");a=a("../../operator/share");b.Observable.prototype.share=a.share},{"../../Observable":5,"../../operator/share":260}],112:[function(a,b,f){b=a("../../Observable"); a=a("../../operator/single");b.Observable.prototype.single=a.single},{"../../Observable":5,"../../operator/single":261}],113:[function(a,b,f){b=a("../../Observable");a=a("../../operator/skip");b.Observable.prototype.skip=a.skip},{"../../Observable":5,"../../operator/skip":262}],114:[function(a,b,f){b=a("../../Observable");a=a("../../operator/skipUntil");b.Observable.prototype.skipUntil=a.skipUntil},{"../../Observable":5,"../../operator/skipUntil":263}],115:[function(a,b,f){b=a("../../Observable"); a=a("../../operator/skipWhile");b.Observable.prototype.skipWhile=a.skipWhile},{"../../Observable":5,"../../operator/skipWhile":264}],116:[function(a,b,f){b=a("../../Observable");a=a("../../operator/startWith");b.Observable.prototype.startWith=a.startWith},{"../../Observable":5,"../../operator/startWith":265}],117:[function(a,b,f){b=a("../../Observable");a=a("../../operator/subscribeOn");b.Observable.prototype.subscribeOn=a.subscribeOn},{"../../Observable":5,"../../operator/subscribeOn":266}],118:[function(a, b,f){b=a("../../Observable");a=a("../../operator/switch");b.Observable.prototype["switch"]=a._switch},{"../../Observable":5,"../../operator/switch":267}],119:[function(a,b,f){b=a("../../Observable");a=a("../../operator/switchMap");b.Observable.prototype.switchMap=a.switchMap},{"../../Observable":5,"../../operator/switchMap":268}],120:[function(a,b,f){b=a("../../Observable");a=a("../../operator/switchMapTo");b.Observable.prototype.switchMapTo=a.switchMapTo},{"../../Observable":5,"../../operator/switchMapTo":269}], 121:[function(a,b,f){b=a("../../Observable");a=a("../../operator/take");b.Observable.prototype.take=a.take},{"../../Observable":5,"../../operator/take":270}],122:[function(a,b,f){b=a("../../Observable");a=a("../../operator/takeLast");b.Observable.prototype.takeLast=a.takeLast},{"../../Observable":5,"../../operator/takeLast":271}],123:[function(a,b,f){b=a("../../Observable");a=a("../../operator/takeUntil");b.Observable.prototype.takeUntil=a.takeUntil},{"../../Observable":5,"../../operator/takeUntil":272}], 124:[function(a,b,f){b=a("../../Observable");a=a("../../operator/takeWhile");b.Observable.prototype.takeWhile=a.takeWhile},{"../../Observable":5,"../../operator/takeWhile":273}],125:[function(a,b,f){b=a("../../Observable");a=a("../../operator/throttle");b.Observable.prototype.throttle=a.throttle},{"../../Observable":5,"../../operator/throttle":274}],126:[function(a,b,f){b=a("../../Observable");a=a("../../operator/throttleTime");b.Observable.prototype.throttleTime=a.throttleTime},{"../../Observable":5, "../../operator/throttleTime":275}],127:[function(a,b,f){b=a("../../Observable");a=a("../../operator/timeInterval");b.Observable.prototype.timeInterval=a.timeInterval},{"../../Observable":5,"../../operator/timeInterval":276}],128:[function(a,b,f){b=a("../../Observable");a=a("../../operator/timeout");b.Observable.prototype.timeout=a.timeout},{"../../Observable":5,"../../operator/timeout":277}],129:[function(a,b,f){b=a("../../Observable");a=a("../../operator/timeoutWith");b.Observable.prototype.timeoutWith= a.timeoutWith},{"../../Observable":5,"../../operator/timeoutWith":278}],130:[function(a,b,f){b=a("../../Observable");a=a("../../operator/timestamp");b.Observable.prototype.timestamp=a.timestamp},{"../../Observable":5,"../../operator/timestamp":279}],131:[function(a,b,f){b=a("../../Observable");a=a("../../operator/toArray");b.Observable.prototype.toArray=a.toArray},{"../../Observable":5,"../../operator/toArray":280}],132:[function(a,b,f){b=a("../../Observable");a=a("../../operator/toPromise");b.Observable.prototype.toPromise= a.toPromise},{"../../Observable":5,"../../operator/toPromise":281}],133:[function(a,b,f){b=a("../../Observable");a=a("../../operator/window");b.Observable.prototype.window=a.window},{"../../Observable":5,"../../operator/window":282}],134:[function(a,b,f){b=a("../../Observable");a=a("../../operator/windowCount");b.Observable.prototype.windowCount=a.windowCount},{"../../Observable":5,"../../operator/windowCount":283}],135:[function(a,b,f){b=a("../../Observable");a=a("../../operator/windowTime");b.Observable.prototype.windowTime= a.windowTime},{"../../Observable":5,"../../operator/windowTime":284}],136:[function(a,b,f){b=a("../../Observable");a=a("../../operator/windowToggle");b.Observable.prototype.windowToggle=a.windowToggle},{"../../Observable":5,"../../operator/windowToggle":285}],137:[function(a,b,f){b=a("../../Observable");a=a("../../operator/windowWhen");b.Observable.prototype.windowWhen=a.windowWhen},{"../../Observable":5,"../../operator/windowWhen":286}],138:[function(a,b,f){b=a("../../Observable");a=a("../../operator/withLatestFrom"); b.Observable.prototype.withLatestFrom=a.withLatestFrom},{"../../Observable":5,"../../operator/withLatestFrom":287}],139:[function(a,b,f){b=a("../../Observable");a=a("../../operator/zip");b.Observable.prototype.zip=a.zipProto},{"../../Observable":5,"../../operator/zip":288}],140:[function(a,b,f){b=a("../../Observable");a=a("../../operator/zipAll");b.Observable.prototype.zipAll=a.zipAll},{"../../Observable":5,"../../operator/zipAll":289}],141:[function(a,b,f){var h=this&&this.__extends||function(a, d){function c(){this.constructor=a}for(var e in d)d.hasOwnProperty(e)&&(a[e]=d[e]);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)};b=a("../Observable");var k=a("./ScalarObservable"),l=a("./EmptyObservable");a=function(a){function d(c,e,d,n){a.call(this);this.arrayLike=c;this.scheduler=n;e||n||1!==c.length||(this._isScalar=!0,this.value=c[0]);e&&(this.mapFn=e.bind(d))}h(d,a);d.create=function(a,e,m,n){var b=a.length;return 0===b?new l.EmptyObservable:1!==b||e?new d(a,e,m,n): new k.ScalarObservable(a[0],n)};d.dispatch=function(a){var e=a.arrayLike,d=a.index,b=a.length,g=a.mapFn,f=a.subscriber;f.isUnsubscribed||(d>=b?f.complete():(e=g?g(e[d],d):e[d],f.next(e),a.index=d+1,this.schedule(a)))};d.prototype._subscribe=function(a){var e=this.arrayLike,m=this.mapFn,b=this.scheduler,g=e.length;if(b)return b.schedule(d.dispatch,0,{arrayLike:e,index:0,length:g,mapFn:m,subscriber:a});for(b=0;b<g&&!a.isUnsubscribed;b++){var f=m?m(e[b],b):e[b];a.next(f)}a.complete()};return d}(b.Observable); f.ArrayLikeObservable=a},{"../Observable":5,"./EmptyObservable":147,"./ScalarObservable":161}],142:[function(a,b,f){var h=this&&this.__extends||function(a,c){function e(){this.constructor=a}for(var m in c)c.hasOwnProperty(m)&&(a[m]=c[m]);a.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)};b=a("../Observable");var k=a("./ScalarObservable"),l=a("./EmptyObservable"),g=a("../util/isScheduler");a=function(a){function c(c,m){a.call(this);this.array=c;this.scheduler=m;m||1!==c.length|| (this._isScalar=!0,this.value=c[0])}h(c,a);c.create=function(a,d){return new c(a,d)};c.of=function(){for(var a=[],d=0;d<arguments.length;d++)a[d-0]=arguments[d];d=a[a.length-1];g.isScheduler(d)?a.pop():d=null;var b=a.length;return 1<b?new c(a,d):1===b?new k.ScalarObservable(a[0],d):new l.EmptyObservable(d)};c.dispatch=function(a){var c=a.array,d=a.index,b=a.subscriber;d>=a.count?b.complete():(b.next(c[d]),b.isUnsubscribed||(a.index=d+1,this.schedule(a)))};c.prototype._subscribe=function(a){var d= this.array,b=d.length,g=this.scheduler;if(g)return g.schedule(c.dispatch,0,{array:d,index:0,count:b,subscriber:a});for(g=0;g<b&&!a.isUnsubscribed;g++)a.next(d[g]);a.complete()};return c}(b.Observable);f.ArrayObservable=a},{"../Observable":5,"../util/isScheduler":328,"./EmptyObservable":147,"./ScalarObservable":161}],143:[function(a,b,f){function h(a){var b=this,g=a.source;a=a.subscriber;var f=g.callbackFunc,h=g.args,u=g.scheduler,q=g.subje