-
Notifications
You must be signed in to change notification settings - Fork 231
/
most.min.js
2 lines (2 loc) · 42.8 KB
/
most.min.js
1
2
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.most=t.most||{})}(this,function(t){"use strict";function e(t){this.source=t}function n(t,e){var n=e.length,r=new Array(n+1);r[0]=t;for(var i=0;i<n;++i)r[i+1]=e[i];return r}function r(t,e){for(var n=e.length,r=new Array(n+1),i=0;i<n;++i)r[i]=e[i];return r[n]=t,r}function i(t,e){if(t<0)throw new TypeError("n must be >= 0");var n=e.length;return 0===t||0===n?e:t>=n?[]:o(t,e,n-t)}function o(t,e,n){for(var r=new Array(n),i=0;i<n;++i)r[i]=e[t+i];return r}function s(t){return i(1,t)}function u(t){for(var e=t.length,n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function h(t,e){for(var n=e.length,r=new Array(n),i=0;i<n;++i)r[i]=t(e[i]);return r}function c(t,e,n){for(var r=e,i=0,o=n.length;i<o;++i)r=t(r,n[i],i);return r}function p(t,e,n){if(e<0)throw new TypeError("i must be >= 0");for(var r=n.length,i=new Array(r),o=0;o<r;++o)i[o]=e===o?t:n[o];return i}function f(t,e){if(t<0)throw new TypeError("i must be >= 0");var n=e.length;return 0===n||t>=n?e:1===n?[]:a(t,e,n-1)}function a(t,e,n){var r,i=new Array(n);for(r=0;r<t;++r)i[r]=e[r];for(r=t;r<n;++r)i[r]=e[r+1];return i}function d(t,e){for(var n=e.length,r=new Array(n),i=0,o=void 0,s=0;s<n;++s)o=e[s],t(o)||(r[i]=o,++i);return r.length=i,r}function y(t,e){for(var n=0,r=e.length;n<r;++n)if(t===e[n])return n;return-1}function l(t){return null!=t&&"number"==typeof t.length&&"function"!=typeof t}function v(t,e){this._dispose=t,this._data=e}function w(){this.disposable=void 0,this.disposed=!1,this._resolve=void 0;var t=this;this.result=new Promise(function(e){t._resolve=e})}function k(t){return null!==t&&"object"==typeof t&&"function"==typeof t.then}function m(t,e,n){var r=E(e);return k(r)?r.catch(function(e){n.error(t,e)}):r}function _(t,e){return T(new v(t,e))}function b(){return new v(Hr,void 0)}function g(t){return _(x,t)}function x(t){return Promise.all(Gr(E,t))}function E(t){try{return t.dispose()}catch(t){return Promise.reject(t)}}function A(){return new w}function T(t){return new v(P,M(t))}function P(t){return t.disposed||(t.disposed=!0,t.value=E(t.disposable),t.disposable=void 0),t.value}function M(t){return{disposed:!1,disposable:t,value:void 0}}function R(t){setTimeout(function(){throw t},0)}function I(t,e,n){this._run=t,this.value=e,this.sink=n,this.active=!0}function W(t,e,n){n.error(t,e)}function L(t,e,n){n.event(t,e)}function C(t,e,n){n.end(t,e)}function N(t){return new e(new S(t))}function S(t){this.value=t}function q(t,e,n){n.event(t,e),n.end(t,void 0)}function B(){return Jr}function j(){}function V(t){return t.dispose()}function D(){return Kr}function U(){}function z(t){return new e(new O(t))}function O(t){this.array=t}function F(t,e,n){for(var r=0,i=e.length;r<i&&this.active;++r)n.event(t,e[r]);this.active&&n.end(t)}function G(t){return"function"==typeof t[Qr]}function H(t){return t[Qr]()}function J(t){return new e(new K(t))}function K(t){this.iterable=t}function Q(t,e,n){for(var r=e.next();!r.done&&this.active;)n.event(t,r.value),r=e.next();n.end(t,r.value)}function X(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}function Y(t){var e=null;if(t){var n=t[Yr];if("function"==typeof n&&(e=n.call(t),!e||"function"!=typeof e.subscribe))throw new TypeError("invalid observable "+e)}return e}function Z(t,e,n){try{n.event(t,e)}catch(e){n.error(t,e)}}function $(t,e,n){try{n.end(t,e)}catch(e){n.error(t,e)}}function tt(t){return new e(new et(t))}function et(t){this.observable=t}function nt(t,e){this.sink=t,this.scheduler=e}function rt(t){return t.unsubscribe()}function it(t){if(t instanceof e)return t;var n=Y(t);if(null!=n)return tt(n);if(Array.isArray(t)||l(t))return z(t);if(G(t))return J(t);throw new TypeError("from(x) must be observable, iterable, or array-like: "+t)}function ot(t,n){return new e(new st(t,n))}function st(t,e){this.period=t,this.value=e}function ut(t,e,n,r){this.time=t,this.period=e,this.task=n,this.scheduler=r,this.active=!0}function ht(t){return Promise.resolve(t).then(ct)}function ct(t){try{return t.run()}catch(e){return t.error(e)}}function pt(t,e){this.timer=t,this.timeline=e,this._timer=null,this._nextArrival=1/0;var n=this;this._runReadyTasksBound=function(){n._runReadyTasks(n.now())}}function ft(){}function at(t){this.f=t,this.active=!0}function dt(t){var e=new at(t);return ht(e),e}function yt(){this.tasks=[]}function lt(t,e,n){for(var r=e.events,i=0;i<r.length;++i){var o=r[i];o.active&&(t(o),o.period>=0&&o.active&&(o.time=o.time+o.period,vt(o,n)))}return n}function vt(t,e){var n=e.length;if(0===n)return void e.push(mt(t.time,[t]));var r=kt(t.time,e);r>=n?e.push(mt(t.time,[t])):t.time===e[r].time?e[r].events.push(t):e.splice(r,0,mt(t.time,[t]))}function wt(t,e){e.events=d(t,e.events)}function kt(t,e){for(var n,r,i=0,o=e.length;i<o;){if(n=Math.floor((i+o)/2),r=e[n],t===r.time)return n;t<r.time?o=n:i=n+1}return o}function mt(t,e){return{time:t,events:e}}function _t(t,e){if(null==t||"object"!=typeof t)throw new TypeError("subscriber must be an object");var n=A(),r=new bt(R,t,n);return n.setDisposable(e.source.run(r,Zr)),new gt(n)}function bt(t,e,n){this.fatalError=t,this.subscriber=e,this.disposable=n}function gt(t){this.disposable=t}function xt(t,e,n,r,i,o){Promise.resolve(i.dispose()).then(function(){"function"==typeof n&&n.call(e,o)}).catch(function(t){"function"==typeof r&&r.call(e,t)}).catch(t)}function Et(t,e){return t(e)}function At(t,e,n){this.event=t,this.source=e,this.capture=n}function Tt(t){var e=t.target;e.source.removeEventListener(e.event,t.addEvent,e.capture)}function Pt(t){this.sink=t,this.events=[],this.active=!0}function Mt(t,e,n){this.sink=t,this.events=n,this.time=e}function Rt(t,e,n){this.time=t,this.value=e,this.sink=n}function It(t,e,n){this.time=t,this.value=e,this.sink=n}function Wt(t,e){this.event=t,this.source=e}function Lt(t){var e=t.target;e.source.removeListener(e.event,t.addEvent)}function Ct(t,n,r){var i;if("function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener)arguments.length<3&&(r=!1),i=new At(t,n,r);else{if("function"!=typeof n.addListener||"function"!=typeof n.removeListener)throw new Error("source must support addEventListener/removeEventListener or addListener/removeListener");i=new Wt(t,n)}return new e(i)}function Nt(t){return St(t,Zr)}function St(t,e){return new Promise(function(n,r){qt(t,e,n,r)})}function qt(t,e,n,r){var i=A(),o=new Bt(n,r,i);i.setDisposable(t.run(o,e))}function Bt(t,e,n){this._end=t,this._error=e,this._disposable=n,this.active=!0}function jt(t,e,n,r){Promise.resolve(n.dispose()).then(function(){t(r)},e)}function Vt(t){this.sink=t}function Dt(t,e){this.p=t,this.source=e}function Ut(t,e){this.p=t,this.sink=e}function zt(t,e){return function(n){return t(n)&&e(n)}}function Ot(t,e,n){this.p=t,this.f=e,this.source=n}function Ft(t,e,n){this.p=t,this.f=e,this.sink=n}function Gt(t,e){this.f=t,this.source=e}function Ht(t,e){this.f=t,this.sink=e}function Jt(t,n){return new e(Gt.create(t,n.source))}function Kt(t,e){return Jt(function(){return t},e)}function Qt(t,n){return new e(new Xt(t,n.source))}function Xt(t,e){this.source=e,this.f=t}function Yt(t,e){this.sink=e,this.f=t}function Zt(t,e){return $t(Qt(t,e))}function $t(t){return Nt(t.source)}function te(t,n,r){return new e(new ee(t,n,r.source))}function ee(t,e,n){this.step=t,this.seed=e,this.source=n}function ne(t,e,n){this.step=t,this.seed=e,this.sink=n}function re(t,n,r){return new e(new ie(t,n,r.source))}function ie(t,e,n){this.source=n,this.f=t,this.value=e}function oe(t,e,n){this.f=t,this.value=e,this.sink=n}function se(t,e,n){return Nt(new ue(t,e,n.source))}function ue(t,e,n){this.source=n,this.f=t,this.value=e}function he(t,e,n){this.f=t,this.value=e,this.sink=n}function ce(t,n){return new e(new pe(t,n))}function pe(t,e){this.f=t,this.value=e}function fe(t,e,n,r){function i(t){s.sink.error(s.scheduler.now(),t)}function o(t){return ae(t,e)}this.f=t,this.sink=n,this.scheduler=r,this.active=!0;var s=this;Promise.resolve(this).then(o).catch(i)}function ae(t,e){var n=t.f;return Promise.resolve(n(e)).then(function(e){return de(t,e)})}function de(t,e){return e.done?(t.sink.end(t.scheduler.now(),e.value),e.value):(t.sink.event(t.scheduler.now(),e.value),t.active?ae(t,e.seed):e.value)}function ye(t,n){return new e(new le(t,n))}function le(t,e){this.f=t,this.value=e}function ve(t,e,n,r){function i(t){u.sink.error(u.scheduler.now(),t)}function o(t){return we(t,s)}this.f=t,this.sink=n,this.scheduler=r,this.active=!0;var s=e,u=this;Promise.resolve(this).then(o).catch(i)}function we(t,e){if(t.sink.event(t.scheduler.now(),e),!t.active)return e;var n=t.f;return Promise.resolve(n(e)).then(function(e){return ke(t,e)})}function ke(t,e){return t.active?we(t,e):t.value}function me(t){return new e(new _e(t,s(arguments)))}function _e(t,e){this.f=t,this.args=e}function be(t,e,n){function r(t){i.sink.error(i.scheduler.now(),t)}this.iterator=t,this.sink=e,this.scheduler=n,this.active=!0;var i=this;Promise.resolve(this).then(ge).catch(r)}function ge(t,e){return t.active?xe(t,t.iterator.next(e)):e}function xe(t,e){return e.done?t.sink.end(t.scheduler.now(),e.value):Promise.resolve(e.value).then(function(e){return Ee(t,e)},function(e){return Ae(t,e)})}function Ee(t,e){return t.sink.event(t.scheduler.now(),e),ge(t,e)}function Ae(t,e){return xe(t,t.iterator.throw(e))}function Te(t,n){return new e(new Pe(t,n.source))}function Pe(t,e){this.f=t,this.source=e}function Me(t,e,n,r){this.f=t,this.sink=n,this.scheduler=r,this.active=!0,this.disposable=T(e.run(this,r))}function Re(t,e){return Ie(N(t),e)}function Ie(t,e){return Te(function(){return e},t)}function We(t,e){this.sink=e,this.index=t,this.active=!0,this.value=void 0}function Le(t,e){switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);case 4:return t(e[0],e[1],e[2],e[3]);case 5:return t(e[0],e[1],e[2],e[3],e[4]);default:return t.apply(void 0,e)}}function Ce(t){return Ne(t,ti(arguments))}function Ne(t,n){var r=n.length;return 0===r?B():1===r?Jt(t,n[0]):new e(Se(t,n))}function Se(t,e){return new Be(t,$r(qe,e))}function qe(t){return t.source}function Be(t,e){this.f=t,this.sources=e}function je(t,e,n,r){var i=this;this.sink=n,this.disposables=t,this.sinks=e,this.f=r;var o=e.length;this.awaiting=o,this.values=new Array(o),this.hasValue=new Array(o);for(var s=0;s<o;++s)i.hasValue[s]=!1;this.activeCount=e.length}function Ve(t,e){return Ce(Fr,t,e)}function De(t,n){return new e(new Ue(t,n.source))}function Ue(t,e){this.transducer=t,this.source=e}function ze(t,e){this.xf=t,this.sink=e}function Oe(t){this.time=-(1/0),this.sink=t}function Fe(t){return"function"==typeof t["@@transducer/step"]?new Ge(t):new He(t)}function Ge(t){this.tx=t}function He(t){this.tx=t}function Je(){this.head=null,this.length=0}function Ke(t,e){return Qe(zr,t,e)}function Qe(t,n,r){return new e(new Xe(t,n,r.source))}function Xe(t,e,n){this.f=t,this.concurrency=e,this.source=n}function Ye(t,e,n,r,i){this.f=t,this.concurrency=e,this.sink=r,this.scheduler=i,this.pending=[],this.current=new Je,this.disposable=T(n.run(this,i)),this.active=!0}function Ze(t,e,n,r){return t(e).source.run(n,r)}function $e(t,e,n){this.prev=this.next=null,this.time=t,this.outer=e,this.sink=n,this.disposable=void 0}function tn(t,e){return Qe(t,1/0,e)}function en(t){return Ke(1/0,t)}function nn(t,e){return Qe(t,1,e)}function rn(){return on(ei(arguments))}function on(t){var n=t.length;return 0===n?B():1===n?t[0]:new e(sn(t))}function sn(t){return new hn(ni(un,[],t))}function un(t,e){var n=e.source;return n instanceof hn?t.concat(n.sources):t.concat(n)}function hn(t){this.sources=t}function cn(t,e,n){this.sink=n,this.disposables=t,this.activeCount=e.length}function pn(t,e){return an(t,e,i(2,arguments))}function fn(t,n){return new e(new yn(zr,t.source,[n.source]))}function an(t,n,r){return new e(new yn(t,n.source,h(dn,r)))}function dn(t){return t.source}function yn(t,e,n){this.f=t,this.sampler=e,this.sources=n}function ln(t){this.sink=t,this.hasValue=!1}function vn(t,e,n){this.f=t,this.sinks=e,this.sink=n,this.active=!1}function wn(t){return t.hasValue}function kn(t){return t.value}function mn(t){this._capacity=t||32,this._length=0,this._head=0}function _n(t,e,n,r,i){for(var o=0;o<i;++o)n[o+r]=t[o+e],t[o+e]=void 0}function bn(t){return gn(t,ii(arguments))}function gn(t,n){return 0===n.length?B():1===n.length?Jt(t,n[0]):new e(new En(t,ri(xn,n)))}function xn(t){return t.source}function En(t,e){this.f=t,this.sources=e}function An(t,e,n,r){this.f=t,this.sinks=n,this.sink=r,this.buffers=e}function Tn(t,e,n,r){r.event(e,Le(t,ri(Pn,n)))}function Pn(t){return t.shift()}function Mn(t,e){for(var n=0,r=t.length;n<r;++n)if(t[n].isEmpty()&&!e[n].active)return!0;return!1}function Rn(t){for(var e=0,n=t.length;e<n;++e)if(t[e].isEmpty())return!1;return!0}function In(t){return new e(new Wn(t.source))}function Wn(t){this.source=t}function Ln(t,e){this.sink=t,this.scheduler=e,this.current=null,this.ended=!1}function Cn(t,e,n,r){this.min=t,this.max=e,this.outer=n,this.sink=r,this.disposable=b()}function Nn(t,n){return new e(Dt.create(t,n.source))}function Sn(t){return qn(Vn,t)}function qn(t,n){return new e(new Bn(t,n.source))}function Bn(t,e){this.equals=t,this.source=e}function jn(t,e){this.equals=t,this.sink=e,this.value=void 0,this.init=!0}function Vn(t,e){return t===e}function Dn(t,e){return zn(0,t,e)}function Un(t,e){return zn(t,1/0,e)}function zn(t,n,r){return n<=t?B():new e(On(t,n,r.source))}function On(t,e,n){return n instanceof Gt?Fn(t,e,n):n instanceof Hn?Gn(t,e,n):new Hn(t,e,n)}function Fn(t,e,n){return Gt.create(n.f,On(t,e,n.source))}function Gn(t,e,n){return t+=n.min,e=Math.min(e+n.min,n.max),new Hn(t,e,n.source)}function Hn(t,e,n){this.source=n,this.min=t,this.max=e}function Jn(t,e,n){this.sink=n,this.skip=t,this.take=e}function Kn(t,n){return new e(new Qn(t,n.source))}function Qn(t,e){this.p=t,this.source=e}function Xn(t,e){this.p=t,this.sink=e,this.active=!0}function Yn(t,n){return new e(new Zn(t,n.source))}function Zn(t,e){this.p=t,this.source=e}function $n(t,e){this.p=t,this.sink=e,this.skipping=!0}function tr(t,n){return new e(new er(t,n.source))}function er(t,e){this.p=t,this.source=e}function nr(t,e){this.p=t,this.sink=e,this.skipping=!1}function rr(t,n){return new e(new sr(t.source,n.source))}function ir(t,n){return new e(new ur(t.source,n.source))}function or(t,e){return rr(en(t),ir(t,e))}function sr(t,e){this.maxSignal=t,this.source=e}function ur(t,e){this.minSignal=t,this.source=e}function hr(t,e){this.value=t,this.sink=e}function cr(t,e,n){this.min=t,this.max=e,this.sink=n}function pr(t,e,n){this.value=1/0,this.sink=e,this.disposable=t.run(this,n)}function fr(t,e,n){this.value=1/0,this.sink=e,this.disposable=t.run(this,n)}function ar(){}function dr(t,n){return t<=0?n:new e(new yr(t,n.source))}function yr(t,e){this.dt=t,this.source=e}function lr(t,e,n){this.dt=t,this.sink=e,this.scheduler=n}function vr(t){return new e(new wr(t.source))}function wr(t){this.source=t}function kr(t){this.sink=t}function mr(t,n){return new e(_r(t,n.source))}function _r(t,e){return e instanceof Gt?br(t,e):e instanceof xr?gr(t,e):new xr(t,e)}function br(t,e){return Gt.create(e.f,_r(t,e.source))}function gr(t,e){return new xr(Math.max(t,e.period),e.source)}function xr(t,e){this.period=t,this.source=e}function Er(t,e){this.time=0,this.period=t,this.sink=e}function Ar(t,n){return new e(new Tr(t,n.source))}function Tr(t,e){this.dt=t,this.source=e}function Pr(t,e,n,r){this.dt=t,this.sink=n,this.scheduler=r,this.value=void 0,this.timer=null;var i=e.run(this,r);this.disposable=g([this,i])}function Mr(t){return Rr(N(t))}function Rr(t){return new e(new Ir(t.source))}function Ir(t){this.source=t}function Wr(t,e){this.sink=t,this.scheduler=e,this.queue=Promise.resolve();var n=this;this._eventBound=function(t){n.sink.event(n.scheduler.now(),t)},this._endBound=function(t){n.sink.end(n.scheduler.now(),t)},this._errorBound=function(t){n.sink.error(n.scheduler.now(),t)}}function Lr(t){this.sink=t,this.active=!0}function Cr(t,n){return new e(new Br(t,n.source))}function Nr(t){return new e(new Sr(t))}function Sr(t){this.value=t}function qr(t,e,n){n.error(t,e)}function Br(t,e){this.f=t,this.source=e}function jr(t,e,n,r){this.f=t,this.sink=new Lr(n),this.scheduler=r,this.disposable=e.run(this,r)}function Vr(t,e,n){try{n.event(t,e)}catch(e){n.error(t,e)}}function Dr(t,e,n){try{n.end(t,e)}catch(e){n.error(t,e)}}function Ur(t){var e=t.source;return e instanceof ci?t:new t.constructor(new ci(e))}e.prototype.run=function(t,e){return this.source.run(t,e)};var zr=function(t){return t},Or=function(t,e){return function(n){return t(e(n))}},Fr=function(t,e){return t(e)};v.prototype.dispose=function(){return this._dispose(this._data)},w.prototype.setDisposable=function(t){if(void 0!==this.disposable)throw new Error("setDisposable called more than once");this.disposable=t,this.disposed&&this._resolve(t.dispose())},w.prototype.dispose=function(){return this.disposed?this.result:(this.disposed=!0,void 0!==this.disposable&&(this.result=this.disposable.dispose()),this.result)};var Gr=h,Hr=zr;I.event=function(t,e){return new I(L,t,e)},I.end=function(t,e){return new I(C,t,e)},I.error=function(t,e){return new I(W,t,e)},I.prototype.dispose=function(){this.active=!1},I.prototype.run=function(t){this.active&&this._run(t,this.value,this.sink)},I.prototype.error=function(t,e){return this.active?void this.sink.error(t,e):R(e)},S.prototype.run=function(t,e){return e.asap(new I(q,this.value,t))},j.prototype.run=function(t,e){var n=I.end(void 0,t);return e.asap(n),_(V,n)};var Jr=new e(new j);U.prototype.run=function(){return b()};var Kr=new e(new U);O.prototype.run=function(t,e){return e.asap(new I(F,this.array,t))};var Qr;Qr="function"==typeof Set&&"function"==typeof(new Set)["@@iterator"]?"@@iterator":"function"==typeof Symbol&&Symbol.iterator||"_es6shim_iterator_",K.prototype.run=function(t,e){return e.asap(new I(Q,H(this.iterable),t))};var Xr;Xr="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof module?module:Function("return this")();var Yr=X(Xr);et.prototype.run=function(t,e){var n=this.observable.subscribe(new nt(t,e));if("function"==typeof n)return _(n);if(n&&"function"==typeof n.unsubscribe)return _(rt,n);throw new TypeError("Observable returned invalid subscription "+String(n))},nt.prototype.next=function(t){Z(this.scheduler.now(),t,this.sink)},nt.prototype.complete=function(t){$(this.scheduler.now(),t,this.sink)},nt.prototype.error=function(t){this.sink.error(this.scheduler.now(),t)},st.prototype.run=function(t,e){return e.periodic(this.period,I.event(this.value,t))},ut.prototype.run=function(){return this.task.run(this.time)},ut.prototype.error=function(t){return this.task.error(this.time,t)},ut.prototype.dispose=function(){return this.scheduler.cancel(this),this.task.dispose()},pt.prototype.now=function(){return this.timer.now()},pt.prototype.asap=function(t){return this.schedule(0,-1,t)},pt.prototype.delay=function(t,e){return this.schedule(t,-1,e)},pt.prototype.periodic=function(t,e){return this.schedule(0,t,e)},pt.prototype.schedule=function(t,e,n){var r=this.now(),i=new ut(r+Math.max(0,t),e,n,this);return this.timeline.add(i),this._scheduleNextRun(r),i},pt.prototype.cancel=function(t){t.active=!1,this.timeline.remove(t)&&this._reschedule()},pt.prototype.cancelAll=function(t){this.timeline.removeAll(t),this._reschedule()},pt.prototype._reschedule=function(){this.timeline.isEmpty()?this._unschedule():this._scheduleNextRun(this.now())},pt.prototype._unschedule=function(){this.timer.clearTimer(this._timer),this._timer=null},pt.prototype._scheduleNextRun=function(t){if(!this.timeline.isEmpty()){var e=this.timeline.nextArrival();null===this._timer?this._scheduleNextArrival(e,t):e<this._nextArrival&&(this._unschedule(),this._scheduleNextArrival(e,t))}},pt.prototype._scheduleNextArrival=function(t,e){this._nextArrival=t;var n=Math.max(0,t-e);this._timer=this.timer.setTimer(this._runReadyTasksBound,n)},pt.prototype._runReadyTasks=function(t){this._timer=null,this.timeline.runTasks(t,ct),this._scheduleNextRun(this.now())},ft.prototype.now=Date.now,ft.prototype.setTimer=function(t,e){return e<=0?dt(t):setTimeout(t,e)},ft.prototype.clearTimer=function(t){return t instanceof at?t.cancel():clearTimeout(t)},at.prototype.run=function(){return this.active&&this.f()},at.prototype.error=function(t){throw t},at.prototype.cancel=function(){this.active=!1},yt.prototype.nextArrival=function(){return this.isEmpty()?1/0:this.tasks[0].time},yt.prototype.isEmpty=function(){return 0===this.tasks.length},yt.prototype.add=function(t){vt(t,this.tasks)},yt.prototype.remove=function(t){var e=kt(t.time,this.tasks);if(e>=0&&e<this.tasks.length){var n=y(t,this.tasks[e].events);if(n>=0)return this.tasks[e].events.splice(n,1),!0}return!1},yt.prototype.removeAll=function(t){for(var e=this,n=0,r=this.tasks.length;n<r;++n)wt(t,e.tasks[n])},yt.prototype.runTasks=function(t,e){for(var n=this,r=this.tasks,i=r.length,o=0;o<i&&r[o].time<=t;)++o;this.tasks=r.slice(o);for(var s=0;s<o;++s)n.tasks=lt(e,r[s],n.tasks)};var Zr=new pt(new ft,new yt);bt.prototype.event=function(t,e){this.disposable.disposed||"function"!=typeof this.subscriber.next||this.subscriber.next(e)},bt.prototype.end=function(t,e){if(!this.disposable.disposed){var n=this.subscriber;xt(this.fatalError,n,n.complete,n.error,this.disposable,e)}},bt.prototype.error=function(t,e){var n=this.subscriber;xt(this.fatalError,n,n.error,n.error,this.disposable,e)},gt.prototype.unsubscribe=function(){this.disposable.dispose()},At.prototype.run=function(t,e){function n(n){Z(e.now(),n,t)}return this.source.addEventListener(this.event,n,this.capture),_(Tt,{target:this,addEvent:n})},Pt.prototype.event=function(t,e){this.active&&(0===this.events.length&&ht(new Mt(this.sink,t,this.events)),this.events.push({time:t,value:e}))},Pt.prototype.end=function(t,e){this.active&&this._end(new Rt(t,e,this.sink))},Pt.prototype.error=function(t,e){this._end(new It(t,e,this.sink))},Pt.prototype._end=function(t){this.active=!1,ht(t)},Mt.prototype.run=function(){for(var t,e=this,n=this.events,r=this.sink,i=0,o=n.length;i<o;++i)t=n[i],e.time=t.time,r.event(t.time,t.value);n.length=0},Mt.prototype.error=function(t){this.sink.error(this.time,t)},Rt.prototype.run=function(){this.sink.end(this.time,this.value)},Rt.prototype.error=function(t){this.sink.error(this.time,t)},It.prototype.run=function(){this.sink.error(this.time,this.value)},It.prototype.error=function(t){throw t},Wt.prototype.run=function(t,e){function n(t){var n=arguments,i=arguments.length;if(i>1){for(var o=new Array(i),s=0;s<i;++s)o[s]=n[s];Z(e.now(),o,r)}else Z(e.now(),t,r)}var r=new Pt(t);return this.source.addListener(this.event,n),_(Lt,{target:this,addEvent:n})},Bt.prototype.event=function(t,e){},Bt.prototype.end=function(t,e){this.active&&(this.active=!1,jt(this._end,this._error,this._disposable,e))},Bt.prototype.error=function(t,e){this.active=!1,jt(this._error,this._error,this._disposable,e)},Vt.prototype.event=function(t,e){return this.sink.event(t,e)},Vt.prototype.end=function(t,e){return this.sink.end(t,e)},Vt.prototype.error=function(t,e){return this.sink.error(t,e)},Dt.create=function(t,e){return e instanceof Dt?new Dt(zt(e.p,t),e.source):new Dt(t,e)},Dt.prototype.run=function(t,e){return this.source.run(new Ut(this.p,t),e)},Ut.prototype.end=Vt.prototype.end,Ut.prototype.error=Vt.prototype.error,Ut.prototype.event=function(t,e){var n=this.p;n(e)&&this.sink.event(t,e)},Ot.prototype.run=function(t,e){return this.source.run(new Ft(this.p,this.f,t),e)},Ft.prototype.event=function(t,e){var n=this.f,r=this.p;r(e)&&this.sink.event(t,n(e))},Ft.prototype.end=Vt.prototype.end,Ft.prototype.error=Vt.prototype.error,Gt.create=function(t,e){return e instanceof Gt?new Gt(Or(t,e.f),e.source):e instanceof Dt?new Ot(e.p,t,e.source):new Gt(t,e)},Gt.prototype.run=function(t,e){return this.source.run(new Ht(this.f,t),e)},Ht.prototype.end=Vt.prototype.end,Ht.prototype.error=Vt.prototype.error,Ht.prototype.event=function(t,e){var n=this.f;this.sink.event(t,n(e))},Xt.prototype.run=function(t,e){return this.source.run(new Yt(this.f,t),e)},Yt.prototype.end=Vt.prototype.end,Yt.prototype.error=Vt.prototype.error,Yt.prototype.event=function(t,e){var n=this.f;n(e),this.sink.event(t,e)},ee.prototype.run=function(t,e){return this.source.run(new ne(this.step,this.seed,t),e)},ne.prototype.error=Vt.prototype.error,ne.prototype.event=function(t,e){var n=this.step(this.seed,e);this.seed=n.seed,this.sink.event(t,n.value)},ne.prototype.end=function(t){this.sink.end(t,this.seed)},ie.prototype.run=function(t,e){var n=e.asap(I.event(this.value,t)),r=this.source.run(new oe(this.f,this.value,t),e);return g([n,r])},oe.prototype.event=function(t,e){var n=this.f;this.value=n(this.value,e),this.sink.event(t,this.value)},oe.prototype.error=Vt.prototype.error,oe.prototype.end=Vt.prototype.end,ue.prototype.run=function(t,e){return this.source.run(new he(this.f,this.value,t),e)},he.prototype.event=function(t,e){var n=this.f;this.value=n(this.value,e),this.sink.event(t,this.value)},he.prototype.error=Vt.prototype.error,he.prototype.end=function(t){this.sink.end(t,this.value)},pe.prototype.run=function(t,e){return new fe(this.f,this.value,t,e)},fe.prototype.dispose=function(){this.active=!1},le.prototype.run=function(t,e){return new ve(this.f,this.value,t,e)},ve.prototype.dispose=function(){this.active=!1},_e.prototype.run=function(t,e){return new be(this.f.apply(void 0,this.args),t,e)},be.prototype.dispose=function(){this.active=!1},Pe.prototype.run=function(t,e){return new Me(this.f,this.source,t,e)},Me.prototype.error=Vt.prototype.error,Me.prototype.event=function(t,e){this.active&&this.sink.event(t,e)},Me.prototype.end=function(t,e){this.active&&(m(t,this.disposable,this.sink),this._startNext(t,e,this.sink))},Me.prototype._startNext=function(t,e,n){try{this.disposable=this._continue(this.f,e,n)}catch(e){n.error(t,e)}},Me.prototype._continue=function(t,e,n){return t(e).source.run(n,this.scheduler)},Me.prototype.dispose=function(){return this.active=!1,this.disposable.dispose()},We.prototype.event=function(t,e){this.active&&(this.value=e,this.sink.event(t,this))},We.prototype.end=function(t,e){this.active&&(this.active=!1,this.sink.end(t,{index:this.index,value:e}))},We.prototype.error=Vt.prototype.error;var $r=h,ti=s;Be.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i),s=new Array(i),u=new je(o,s,t,this.f),h=0;h<i;++h)n=s[h]=new We(h,u),o[h]=r.sources[h].run(n,e);return g(o)},je.prototype.error=Vt.prototype.error,je.prototype.event=function(t,e){var n=e.index,r=this._updateReady(n);this.values[n]=e.value,0===r&&this.sink.event(t,Le(this.f,this.values))},je.prototype._updateReady=function(t){return this.awaiting>0&&(this.hasValue[t]||(this.hasValue[t]=!0,this.awaiting-=1)),this.awaiting},je.prototype.end=function(t,e){m(t,this.disposables[e.index],this.sink),0===--this.activeCount&&this.sink.end(t,e.value)},Ue.prototype.run=function(t,e){var n=this.transducer(new Oe(t));return this.source.run(new ze(Fe(n),t),e)},ze.prototype.event=function(t,e){var n=this.xf.step(t,e);return this.xf.isReduced(n)?this.sink.end(t,this.xf.getResult(n)):n},ze.prototype.end=function(t,e){return this.xf.result(e)},ze.prototype.error=function(t,e){return this.sink.error(t,e)},Oe.prototype["@@transducer/init"]=Oe.prototype.init=function(){},Oe.prototype["@@transducer/step"]=Oe.prototype.step=function(t,e){return isNaN(t)||(this.time=Math.max(t,this.time)),this.sink.event(this.time,e)},Oe.prototype["@@transducer/result"]=Oe.prototype.result=function(t){return this.sink.end(this.time,t)},Ge.prototype.step=function(t,e){return this.tx["@@transducer/step"](t,e)},Ge.prototype.result=function(t){return this.tx["@@transducer/result"](t)},Ge.prototype.isReduced=function(t){return null!=t&&t["@@transducer/reduced"]},Ge.prototype.getResult=function(t){return t["@@transducer/value"]},He.prototype.step=function(t,e){return this.tx.step(t,e)},He.prototype.result=function(t){return this.tx.result(t)},He.prototype.isReduced=function(t){return null!=t&&t.__transducers_reduced__},He.prototype.getResult=function(t){return t.value},Je.prototype.add=function(t){null!==this.head&&(this.head.prev=t,t.next=this.head),this.head=t,++this.length},Je.prototype.remove=function(t){--this.length,t===this.head&&(this.head=this.head.next),null!==t.next&&(t.next.prev=t.prev,t.next=null),null!==t.prev&&(t.prev.next=t.next,t.prev=null)},Je.prototype.isEmpty=function(){return 0===this.length},Je.prototype.dispose=function(){if(this.isEmpty())return Promise.resolve();var t=[],e=this.head;for(this.head=null,this.length=0;null!==e;)t.push(e.dispose()),e=e.next;return Promise.all(t)},Xe.prototype.run=function(t,e){return new Ye(this.f,this.concurrency,this.source,t,e)},Ye.prototype.event=function(t,e){this._addInner(t,e)},Ye.prototype._addInner=function(t,e){this.current.length<this.concurrency?this._startInner(t,e):this.pending.push(e)},Ye.prototype._startInner=function(t,e){try{this._initInner(t,e)}catch(e){this.error(t,e)}},Ye.prototype._initInner=function(t,e){var n=new $e(t,this,this.sink);n.disposable=Ze(this.f,e,n,this.scheduler),this.current.add(n)},Ye.prototype.end=function(t,e){this.active=!1,m(t,this.disposable,this.sink),this._checkEnd(t,e)},Ye.prototype.error=function(t,e){this.active=!1,this.sink.error(t,e)},Ye.prototype.dispose=function(){return this.active=!1,this.pending.length=0,Promise.all([this.disposable.dispose(),this.current.dispose()])},Ye.prototype._endInner=function(t,e,n){this.current.remove(n),m(t,n,this),0===this.pending.length?this._checkEnd(t,e):this._startInner(t,this.pending.shift())},Ye.prototype._checkEnd=function(t,e){!this.active&&this.current.isEmpty()&&this.sink.end(t,e)},$e.prototype.event=function(t,e){this.sink.event(Math.max(t,this.time),e)},$e.prototype.end=function(t,e){this.outer._endInner(Math.max(t,this.time),e,this)},$e.prototype.error=function(t,e){this.outer.error(Math.max(t,this.time),e)},$e.prototype.dispose=function(){return this.disposable.dispose()};var ei=u,ni=c;hn.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i),s=new Array(i),u=new cn(o,s,t),h=0;h<i;++h)n=s[h]=new We(h,u),o[h]=r.sources[h].run(n,e);return g(o)},cn.prototype.error=Vt.prototype.error,cn.prototype.event=function(t,e){this.sink.event(t,e.value)},cn.prototype.end=function(t,e){m(t,this.disposables[e.index],this.sink),0===--this.activeCount&&this.sink.end(t,e.value)},yn.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i+1),s=new Array(i),u=new vn(this.f,s,t),h=0;h<i;++h)n=s[h]=new ln(u),o[h]=r.sources[h].run(n,e);return o[h]=this.sampler.run(u,e),g(o)},ln.prototype.event=function(t,e){this.value=e,this.hasValue=!0,this.sink._notify(this)},ln.prototype.end=function(){},ln.prototype.error=Vt.prototype.error,vn.prototype._notify=function(){this.active||(this.active=this.sinks.every(wn))},vn.prototype.event=function(t){this.active&&this.sink.event(t,Le(this.f,h(kn,this.sinks)))},vn.prototype.end=Vt.prototype.end,vn.prototype.error=Vt.prototype.error,mn.prototype.push=function(t){var e=this._length;this._checkCapacity(e+1);var n=this._head+e&this._capacity-1;this[n]=t,this._length=e+1},mn.prototype.shift=function(){var t=this._head,e=this[t];return this[t]=void 0,this._head=t+1&this._capacity-1,this._length--,e},mn.prototype.isEmpty=function(){return 0===this._length},mn.prototype.length=function(){return this._length},mn.prototype._checkCapacity=function(t){this._capacity<t&&this._ensureCapacity(this._capacity<<1)},mn.prototype._ensureCapacity=function(t){var e=this._capacity;this._capacity=t;var n=this._head+this._length;n>e&&_n(this,0,this,e,n&e-1)};var ri=h,ii=s;En.prototype.run=function(t,e){for(var n,r=this,i=this.sources.length,o=new Array(i),s=new Array(i),u=new Array(i),h=new An(this.f,u,s,t),c=0;c<i;++c)u[c]=new mn,
n=s[c]=new We(c,h),o[c]=r.sources[c].run(n,e);return g(o)},An.prototype.event=function(t,e){var n=this.buffers,r=n[e.index];if(r.push(e.value),1===r.length()){if(!Rn(this.buffers))return;Tn(this.f,t,n,this.sink),Mn(this.buffers,this.sinks)&&this.sink.end(t,void 0)}},An.prototype.end=function(t,e){var n=this.buffers[e.index];n.isEmpty()&&this.sink.end(t,e.value)},An.prototype.error=Vt.prototype.error,Wn.prototype.run=function(t,e){var n=new Ln(t,e);return g([n,this.source.run(n,e)])},Ln.prototype.event=function(t,e){this._disposeCurrent(t),this.current=new Cn(t,1/0,this,this.sink),this.current.disposable=e.source.run(this.current,this.scheduler)},Ln.prototype.end=function(t,e){this.ended=!0,this._checkEnd(t,e)},Ln.prototype.error=function(t,e){this.ended=!0,this.sink.error(t,e)},Ln.prototype.dispose=function(){return this._disposeCurrent(this.scheduler.now())},Ln.prototype._disposeCurrent=function(t){if(null!==this.current)return this.current._dispose(t)},Ln.prototype._disposeInner=function(t,e){e._dispose(t),e===this.current&&(this.current=null)},Ln.prototype._checkEnd=function(t,e){this.ended&&null===this.current&&this.sink.end(t,e)},Ln.prototype._endInner=function(t,e,n){this._disposeInner(t,n),this._checkEnd(t,e)},Ln.prototype._errorInner=function(t,e,n){this._disposeInner(t,n),this.sink.error(t,e)},Cn.prototype.event=function(t,e){t<this.max&&this.sink.event(Math.max(t,this.min),e)},Cn.prototype.end=function(t,e){this.outer._endInner(Math.max(t,this.min),e,this)},Cn.prototype.error=function(t,e){this.outer._errorInner(Math.max(t,this.min),e,this)},Cn.prototype._dispose=function(t){this.max=t,m(t,this.disposable,this.sink)},Bn.prototype.run=function(t,e){return this.source.run(new jn(this.equals,t),e)},jn.prototype.end=Vt.prototype.end,jn.prototype.error=Vt.prototype.error,jn.prototype.event=function(t,e){this.init?(this.init=!1,this.value=e,this.sink.event(t,e)):this.equals(this.value,e)||(this.value=e,this.sink.event(t,e))},Hn.prototype.run=function(t,e){return this.source.run(new Jn(this.min,this.max-this.min,t),e)},Jn.prototype.end=Vt.prototype.end,Jn.prototype.error=Vt.prototype.error,Jn.prototype.event=function(t,e){return this.skip>0?void(this.skip-=1):void(0!==this.take&&(this.take-=1,this.sink.event(t,e),0===this.take&&this.sink.end(t,e)))},Qn.prototype.run=function(t,e){return this.source.run(new Xn(this.p,t),e)},Xn.prototype.end=Vt.prototype.end,Xn.prototype.error=Vt.prototype.error,Xn.prototype.event=function(t,e){if(this.active){var n=this.p;this.active=n(e),this.active?this.sink.event(t,e):this.sink.end(t,e)}},Zn.prototype.run=function(t,e){return this.source.run(new $n(this.p,t),e)},$n.prototype.end=Vt.prototype.end,$n.prototype.error=Vt.prototype.error,$n.prototype.event=function(t,e){if(this.skipping){var n=this.p;if(this.skipping=n(e),this.skipping)return}this.sink.event(t,e)},er.prototype.run=function(t,e){return this.source.run(new nr(this.p,t),e)},nr.prototype.event=function(t,e){if(!this.skipping){var n=this.p;this.skipping=n(e),this.sink.event(t,e),this.skipping&&this.sink.end(t,e)}},nr.prototype.end=Vt.prototype.end,nr.prototype.error=Vt.prototype.error,sr.prototype.run=function(t,e){var n=new hr(-(1/0),t),r=new fr(this.maxSignal,t,e),i=this.source.run(new cr(n,r,t),e);return g([n,r,i])},ur.prototype.run=function(t,e){var n=new pr(this.minSignal,t,e),r=new hr(1/0,t),i=this.source.run(new cr(n,r,t),e);return g([n,r,i])},hr.prototype.error=Vt.prototype.error,hr.prototype.event=ar,hr.prototype.end=ar,hr.prototype.dispose=ar,cr.prototype.event=function(t,e){t>=this.min.value&&t<this.max.value&&this.sink.event(t,e)},cr.prototype.error=Vt.prototype.error,cr.prototype.end=Vt.prototype.end,pr.prototype.event=function(t){t<this.value&&(this.value=t)},pr.prototype.end=ar,pr.prototype.error=Vt.prototype.error,pr.prototype.dispose=function(){return this.disposable.dispose()},fr.prototype.event=function(t,e){t<this.value&&(this.value=t,this.sink.end(t,e))},fr.prototype.end=ar,fr.prototype.error=Vt.prototype.error,fr.prototype.dispose=function(){return this.disposable.dispose()},yr.prototype.run=function(t,e){var n=new lr(this.dt,t,e);return g([n,this.source.run(n,e)])},lr.prototype.dispose=function(){var t=this;this.scheduler.cancelAll(function(e){return e.sink===t.sink})},lr.prototype.event=function(t,e){this.scheduler.delay(this.dt,I.event(e,this.sink))},lr.prototype.end=function(t,e){this.scheduler.delay(this.dt,I.end(e,this.sink))},lr.prototype.error=Vt.prototype.error,wr.prototype.run=function(t,e){return this.source.run(new kr(t),e)},kr.prototype.end=Vt.prototype.end,kr.prototype.error=Vt.prototype.error,kr.prototype.event=function(t,e){this.sink.event(t,{time:t,value:e})},xr.prototype.run=function(t,e){return this.source.run(new Er(this.period,t),e)},Er.prototype.event=function(t,e){t>=this.time&&(this.time=t+this.period,this.sink.event(t,e))},Er.prototype.end=Vt.prototype.end,Er.prototype.error=Vt.prototype.error,Tr.prototype.run=function(t,e){return new Pr(this.dt,this.source,t,e)},Pr.prototype.event=function(t,e){this._clearTimer(),this.value=e,this.timer=this.scheduler.delay(this.dt,I.event(e,this.sink))},Pr.prototype.end=function(t,e){this._clearTimer()&&(this.sink.event(t,this.value),this.value=void 0),this.sink.end(t,e)},Pr.prototype.error=function(t,e){this._clearTimer(),this.sink.error(t,e)},Pr.prototype.dispose=function(){this._clearTimer()},Pr.prototype._clearTimer=function(){return null!==this.timer&&(this.timer.dispose(),this.timer=null,!0)},Ir.prototype.run=function(t,e){return this.source.run(new Wr(t,e),e)},Wr.prototype.event=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._event(e)}).catch(this._errorBound)},Wr.prototype.end=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._end(e)}).catch(this._errorBound)},Wr.prototype.error=function(t,e){var n=this;this.queue=this.queue.then(function(){return n._errorBound(e)}).catch(R)},Wr.prototype._event=function(t){return t.then(this._eventBound)},Wr.prototype._end=function(t){return Promise.resolve(t).then(this._endBound)},Lr.prototype.event=function(t,e){this.active&&this.sink.event(t,e)},Lr.prototype.end=function(t,e){this.active&&(this.disable(),this.sink.end(t,e))},Lr.prototype.error=function(t,e){this.disable(),this.sink.error(t,e)},Lr.prototype.disable=function(){return this.active=!1,this.sink};var oi=Cr;Sr.prototype.run=function(t,e){return e.asap(new I(qr,this.value,t))},Br.prototype.run=function(t,e){return new jr(this.f,this.source,t,e)},jr.prototype.event=function(t,e){Z(t,e,this.sink)},jr.prototype.end=function(t,e){$(t,e,this.sink)},jr.prototype.error=function(t,e){var n=this.sink.disable();m(t,this.disposable,this.sink),this._startNext(t,e,n)},jr.prototype._startNext=function(t,e,n){try{this.disposable=this._continue(this.f,e,n)}catch(e){n.error(t,e)}},jr.prototype._continue=function(t,e,n){var r=t(e);return r.source.run(n,this.scheduler)},jr.prototype.dispose=function(){return this.disposable.dispose()};var si=function(t,e){this.source=t,this.sink=e,this.disposed=!1};si.prototype.dispose=function(){if(!this.disposed){this.disposed=!0;var t=this.source.remove(this.sink);return 0===t&&this.source._dispose()}};var ui=function(t){return t.dispose()},hi={dispose:function(){}},ci=function(t){this.source=t,this.sinks=[],this._disposable=hi};ci.prototype.run=function(t,e){var n=this.add(t);return 1===n&&(this._disposable=this.source.run(this,e)),new si(this,t)},ci.prototype._dispose=function(){var t=this._disposable;return this._disposable=hi,Promise.resolve(t).then(ui)},ci.prototype.add=function(t){return this.sinks=r(t,this.sinks),this.sinks.length},ci.prototype.remove=function(t){var e=y(t,this.sinks);return e>=0&&(this.sinks=f(e,this.sinks)),this.sinks.length},ci.prototype.event=function(t,e){var n=this.sinks;if(1===n.length)return n[0].event(t,e);for(var r=0;r<n.length;++r)Vr(t,e,n[r])},ci.prototype.end=function(t,e){for(var n=this.sinks,r=0;r<n.length;++r)Dr(t,e,n[r])},ci.prototype.error=function(t,e){for(var n=this.sinks,r=0;r<n.length;++r)n[r].error(t,e)},e.of=N,e.empty=B,e.from=it,e.prototype.subscribe=function(t){return _t(t,this)},e.prototype[Yr]=function(){return this},e.prototype.thru=function(t){return Et(t,this)},e.prototype.observe=e.prototype.forEach=function(t){return Zt(t,this)},e.prototype.drain=function(){return $t(this)},e.prototype.loop=function(t,e){return te(t,e,this)},e.prototype.scan=function(t,e){return re(t,e,this)},e.prototype.reduce=function(t,e){return se(t,e,this)},e.prototype.concat=function(t){return Ie(this,t)},e.prototype.startWith=function(t){return Re(t,this)},e.prototype.map=function(t){return Jt(t,this)},e.prototype.ap=function(t){return Ve(this,t)},e.prototype.constant=function(t){return Kt(t,this)},e.prototype.tap=function(t){return Qt(t,this)},e.prototype.transduce=function(t){return De(t,this)},e.prototype.chain=function(t){return tn(t,this)},e.prototype.flatMap=e.prototype.chain,e.prototype.join=function(){return en(this)},e.prototype.continueWith=function(t){return Te(t,this)},e.prototype.flatMapEnd=e.prototype.continueWith,e.prototype.concatMap=function(t){return nn(t,this)},e.prototype.mergeConcurrently=function(t){return Ke(t,this)},e.prototype.merge=function(){return on(n(this,arguments))},e.prototype.combine=function(t){return Ne(t,p(this,0,arguments))},e.prototype.sampleWith=function(t){return fn(t,this)},e.prototype.sample=function(t){return an(t,this,s(arguments))},e.prototype.zip=function(t){return gn(t,p(this,0,arguments))},e.prototype.switchLatest=function(){return In(this)},e.prototype.switch=e.prototype.switchLatest,e.prototype.filter=function(t){return Nn(t,this)},e.prototype.skipRepeats=function(){return Sn(this)},e.prototype.skipRepeatsWith=function(t){return qn(t,this)},e.prototype.take=function(t){return Dn(t,this)},e.prototype.skip=function(t){return Un(t,this)},e.prototype.slice=function(t,e){return zn(t,e,this)},e.prototype.takeWhile=function(t){return Kn(t,this)},e.prototype.skipWhile=function(t){return Yn(t,this)},e.prototype.skipAfter=function(t){return tr(t,this)},e.prototype.until=function(t){return rr(t,this)},e.prototype.takeUntil=e.prototype.until,e.prototype.since=function(t){return ir(t,this)},e.prototype.skipUntil=e.prototype.since,e.prototype.during=function(t){return or(t,this)},e.prototype.delay=function(t){return dr(t,this)},e.prototype.timestamp=function(){return vr(this)},e.prototype.throttle=function(t){return mr(t,this)},e.prototype.debounce=function(t){return Ar(t,this)},e.prototype.awaitPromises=function(){return Rr(this)},e.prototype.await=e.prototype.awaitPromises,e.prototype.recoverWith=function(t){return oi(t,this)},e.prototype.flatMapError=e.prototype.recoverWith,e.prototype.multicast=function(){return Ur(this)},t.Stream=e,t.of=N,t.just=N,t.empty=B,t.never=D,t.from=it,t.periodic=ot,t.observe=Zt,t.forEach=Zt,t.drain=$t,t.loop=te,t.scan=re,t.reduce=se,t.concat=Ie,t.startWith=Re,t.map=Jt,t.constant=Kt,t.tap=Qt,t.ap=Ve,t.transduce=De,t.flatMap=tn,t.chain=tn,t.join=en,t.continueWith=Te,t.flatMapEnd=Te,t.concatMap=nn,t.mergeConcurrently=Ke,t.merge=rn,t.mergeArray=on,t.combine=Ce,t.combineArray=Ne,t.sample=pn,t.sampleArray=an,t.sampleWith=fn,t.zip=bn,t.zipArray=gn,t.switchLatest=In,t.switch=In,t.filter=Nn,t.skipRepeats=Sn,t.distinct=Sn,t.skipRepeatsWith=qn,t.distinctBy=qn,t.take=Dn,t.skip=Un,t.slice=zn,t.takeWhile=Kn,t.skipWhile=Yn,t.skipAfter=tr,t.takeUntil=rr,t.until=rr,t.skipUntil=ir,t.since=ir,t.during=or,t.delay=dr,t.timestamp=vr,t.throttle=mr,t.debounce=Ar,t.fromPromise=Mr,t.awaitPromises=Rr,t.await=Rr,t.recoverWith=Cr,t.flatMapError=oi,t.throwError=Nr,t.multicast=Ur,t.defaultScheduler=Zr,t.PropagateTask=I,t.fromEvent=Ct,t.unfold=ce,t.iterate=ye,t.generate=me,Object.defineProperty(t,"__esModule",{value:!0})});