File manager - Edit - /usr/local/lib/node_modules/ghost-cli/node_modules/rxjs/dist/bundles/rxjs.umd.min.js
Back
/** @license Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt **/ /** @license Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt **/ /* ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *****************************************************************************/ (function(m,w){"object"===typeof exports&&"undefined"!==typeof module?w(exports):"function"===typeof define&&define.amd?define("rxjs",["exports"],w):w(m.rxjs={})})(this,function(m){function w(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Ia(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}function mb(b,a){var c={},d;for(d in b)Object.prototype.hasOwnProperty.call(b, d)&&0>a.indexOf(d)&&(c[d]=b[d]);if(null!=b&&"function"===typeof Object.getOwnPropertySymbols){var e=0;for(d=Object.getOwnPropertySymbols(b);e<d.length;e++)0>a.indexOf(d[e])&&Object.prototype.propertyIsEnumerable.call(b,d[e])&&(c[d[e]]=b[d[e]])}return c}function Ic(b,a,c,d){function e(a){return a instanceof c?a:new c(function(b){b(a)})}return new (c||(c=Promise))(function(c,g){function f(a){try{p(d.next(a))}catch(A){g(A)}}function k(a){try{p(d["throw"](a))}catch(A){g(A)}}function p(a){a.done?c(a.value): e(a.value).then(f,k)}p((d=d.apply(b,a||[])).next())})}function Ja(b,a){function c(a){return function(b){return d([a,b])}}function d(c){if(f)throw new TypeError("Generator is already executing.");for(;e;)try{if(f=1,g&&(h=c[0]&2?g["return"]:c[0]?g["throw"]||((h=g["return"])&&h.call(g),0):g.next)&&!(h=h.call(g,c[1])).done)return h;if(g=0,h)c=[c[0]&2,h.value];switch(c[0]){case 0:case 1:h=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++;g=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop(); continue;default:if(!(h=e.trys,h=0<h.length&&h[h.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!h||c[1]>h[0]&&c[1]<h[3]))e.label=c[1];else if(6===c[0]&&e.label<h[1])e.label=h[1],h=c;else if(h&&e.label<h[2])e.label=h[2],e.ops.push(c);else{h[2]&&e.ops.pop();e.trys.pop();continue}}c=a.call(b,e)}catch(q){c=[6,q],g=0}finally{f=h=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}var e={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},trys:[],ops:[]},f,g,h,k;return k= {next:c(0),"throw":c(1),"return":c(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k}function D(b){var a="function"===typeof Symbol&&Symbol.iterator,c=a&&b[a],d=0;if(c)return c.call(b);if(b&&"number"===typeof b.length)return{next:function(){b&&d>=b.length&&(b=void 0);return{value:b&&b[d++],done:!b}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.");}function x(b,a){var c="function"===typeof Symbol&&b[Symbol.iterator];if(!c)return b;b= c.call(b);var d,e=[],f;try{for(;(void 0===a||0<a--)&&!(d=b.next()).done;)e.push(d.value)}catch(g){f={error:g}}finally{try{d&&!d.done&&(c=b["return"])&&c.call(b)}finally{if(f)throw f.error;}}return e}function y(b,a){for(var c=0,d=a.length,e=b.length;c<d;c++,e++)b[e]=a[c];return b}function X(b){return this instanceof X?(this.v=b,this):new X(b)}function Jc(b,a,c){function d(a){k[a]&&(p[a]=function(c){return new Promise(function(b,d){1<q.push([a,c,b,d])||e(a,c)})})}function e(a,c){try{var b=k[a](c);b.value instanceof X?Promise.resolve(b.value.v).then(f,g):h(q[0][2],b)}catch(Z){h(q[0][3],Z)}}function f(a){e("next",a)}function g(a){e("throw",a)}function h(a,c){(a(c),q.shift(),q.length)&&e(q[0][0],q[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var k=c.apply(b,a||[]),p,q=[];return p={},d("next"),d("throw"),d("return"),p[Symbol.asyncIterator]=function(){return this},p}function Kc(b){function a(a){e[a]=b[a]&&function(d){return new Promise(function(e,f){d=b[a](d);c(e,f, d.done,d.value)})}}function c(a,c,b,d){Promise.resolve(d).then(function(c){a({value:c,done:b})},c)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=b[Symbol.asyncIterator],e;return d?d.call(b):(b="function"===typeof D?D(b):b[Symbol.iterator](),e={},a("next"),a("throw"),a("return"),e[Symbol.asyncIterator]=function(){return this},e)}function r(b){return"function"===typeof b}function M(b){b=b(function(a){Error.call(a);a.stack=Error().stack});b.prototype=Object.create(Error.prototype); return b.prototype.constructor=b}function J(b,a){b&&(a=b.indexOf(a),0<=a&&b.splice(a,1))}function nb(b){return b instanceof z||b&&"closed"in b&&r(b.remove)&&r(b.add)&&r(b.unsubscribe)}function ob(b){aa.setTimeout(function(){var a=P.onUnhandledError;if(a)a(b);else throw b;})}function B(){}function G(b,a,c){return{kind:b,value:a,error:c}}function Ka(b,a){return function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];try{b.apply(void 0,y([],x(c)))}catch(e){if(P.useDeprecatedSynchronousErrorHandling)if(a._syncErrorHack_isSubscribing)a.__syncError= e;else throw e;else ob(e)}}}function pb(b){throw b;}function La(b,a){var c=P.onStoppedNotification;c&&aa.setTimeout(function(){return c(b,a)})}function E(b){return b}function Ma(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return qb(b)}function qb(b){return 0===b.length?E:1===b.length?b[0]:function(a){return b.reduce(function(a,b){return b(a)},a)}}function rb(b){var a;return null!==(a=null!==b&&void 0!==b?b:P.Promise)&&void 0!==a?a:Promise}function n(b){return function(a){if(r(null=== a||void 0===a?void 0:a.lift))return a.lift(function(a){try{return b(a,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type");}}function sb(){return n(function(b,a){var c=null;b._refCount++;var d=new l(a,void 0,void 0,void 0,function(){if(!b||0>=b._refCount||0<--b._refCount)c=null;else{var d=b._connection,f=c;c=null;!d||f&&d!==f||d.unsubscribe();a.unsubscribe()}});b.subscribe(d);d.closed||(c=b.connect())})}function tb(b){var a=N.schedule;return new t(function(c){var d= new z,e=b||wa,f=e.now(),g=function(h){var k=e.now();c.next({timestamp:b?k:h,elapsed:k-f});c.closed||d.add(a(g))};d.add(a(g));return d})}function ub(b){return b in Na?(delete Na[b],!0):!1}function Lc(b){return new t(function(a){return b.schedule(function(){return a.complete()})})}function Oa(b,a){return new t(function(c){var d=0;return a.schedule(function(){d===b.length?c.complete():(c.next(b[d++]),c.closed||this.schedule())})})}function Mc(b,a){return new t(function(c){var d=new z;d.add(a.schedule(function(){var e= b[ba]();d.add(e.subscribe({next:function(b){d.add(a.schedule(function(){return c.next(b)}))},error:function(b){d.add(a.schedule(function(){return c.error(b)}))},complete:function(){d.add(a.schedule(function(){return c.complete()}))}}))}));return d})}function Nc(b,a){return new t(function(c){return a.schedule(function(){return b.then(function(b){c.add(a.schedule(function(){c.next(b);c.add(a.schedule(function(){return c.complete()}))}))},function(b){c.add(a.schedule(function(){return c.error(b)}))})})})} function vb(b,a,c,d){void 0===d&&(d=0);a=a.schedule(function(){try{c.call(this)}catch(e){b.error(e)}},d);b.add(a);return a}function wb(b,a){return new t(function(c){var d;c.add(a.schedule(function(){d=b[Pa]();vb(c,a,function(){var a=d.next(),b=a.value;a.done?c.complete():(c.next(b),this.schedule())})}));return function(){return r(null===d||void 0===d?void 0:d.return)&&d.return()}})}function xb(b,a){if(!b)throw Error("Iterable cannot be null");return new t(function(c){var d=new z;d.add(a.schedule(function(){var e= b[Symbol.asyncIterator]();d.add(a.schedule(function(){var a=this;e.next().then(function(b){b.done?c.complete():(c.next(b.value),a.schedule())})}))}));return d})}function yb(b){return r(null===b||void 0===b?void 0:b[Pa])}function zb(b){return Symbol.asyncIterator&&r(null===b||void 0===b?void 0:b[Symbol.asyncIterator])}function Ab(b){return new TypeError("You provided "+(null!==b&&"object"===typeof b?"an invalid object":"'"+b+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")} function Bb(b){return Jc(this,arguments,function(){var a,c,d,e;return Ja(this,function(f){switch(f.label){case 0:a=b.getReader(),f.label=1;case 1:f.trys.push([1,,9,10]),f.label=2;case 2:return[4,X(a.read())];case 3:return c=f.sent(),d=c.value,(e=c.done)?[4,X(void 0)]:[3,5];case 4:return[2,f.sent()];case 5:return[4,X(d)];case 6:return[4,f.sent()];case 7:return f.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})}function Cb(b,a){if(null!=b){if(r(b[ba]))return Mc(b, a);if(Qa(b))return Oa(b,a);if(r(null===b||void 0===b?void 0:b.then))return Nc(b,a);if(zb(b))return xb(b,a);if(yb(b))return wb(b,a);if(r(null===b||void 0===b?void 0:b.getReader))return xb(Bb(b),a)}throw Ab(b);}function ca(b,a){return a?Cb(b,a):v(b)}function v(b){if(b instanceof t)return b;if(null!=b){if(r(b[ba]))return Oc(b);if(Qa(b))return Db(b);if(r(null===b||void 0===b?void 0:b.then))return Pc(b);if(zb(b))return Eb(b);if(yb(b))return Qc(b);if(r(null===b||void 0===b?void 0:b.getReader))return Eb(Bb(b))}throw Ab(b); }function Oc(b){return new t(function(a){var c=b[ba]();if(r(c.subscribe))return c.subscribe(a);throw new TypeError("Provided object does not correctly implement Symbol.observable");})}function Db(b){return new t(function(a){for(var c=0;c<b.length&&!a.closed;c++)a.next(b[c]);a.complete()})}function Pc(b){return new t(function(a){b.then(function(b){a.closed||(a.next(b),a.complete())},function(b){return a.error(b)}).then(null,ob)})}function Qc(b){return new t(function(a){var c,d;try{for(var e=D(b),f= e.next();!f.done;f=e.next())if(a.next(f.value),a.closed)return}catch(g){c={error:g}}finally{try{f&&!f.done&&(d=e.return)&&d.call(e)}finally{if(c)throw c.error;}}a.complete()})}function Eb(b){return new t(function(a){Rc(b,a).catch(function(b){return a.error(b)})})}function Rc(b,a){var c,d,e,f;return Ic(this,void 0,void 0,function(){var g,h;return Ja(this,function(k){switch(k.label){case 0:k.trys.push([0,5,6,11]),c=Kc(b),k.label=1;case 1:return[4,c.next()];case 2:if(d=k.sent(),d.done)return[3,4];g= d.value;a.next(g);if(a.closed)return[2];k.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return h=k.sent(),e={error:h},[3,11];case 6:return k.trys.push([6,,9,10]),d&&!d.done&&(f=c.return)?[4,f.call(c)]:[3,8];case 7:k.sent(),k.label=8;case 8:return[3,10];case 9:if(e)throw e.error;return[7];case 10:return[7];case 11:return a.complete(),[2]}})})}function da(b,a){return a?Oa(b,a):Db(b)}function xa(b){return b&&r(b.schedule)}function ia(b){return r(b[b.length-1])?b.pop():void 0}function K(b){return xa(b[b.length- 1])?b.pop():void 0}function Ra(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return(a=K(b))?Oa(b,a):da(b)}function Fb(b,a){var c=r(b)?b:function(){return b},d=function(a){return a.error(c())};return new t(a?function(b){return a.schedule(d,0,b)}:d)}function ya(b,a){var c,d,e,f=b.kind,g=b.value;b=b.error;if("string"!==typeof f)throw new TypeError('Invalid notification, missing "kind"');"N"===f?null===(c=a.next)||void 0===c?void 0:c.call(a,g):"E"===f?null===(d=a.error)||void 0===d?void 0: d.call(a,b):null===(e=a.complete)||void 0===e?void 0:e.call(a)}function Sa(b){return b instanceof Date&&!isNaN(b)}function Gb(b,a){b=Sa(b)?{first:b}:"number"===typeof b?{each:b}:b;var c=b.first,d=b.each,e=b.with,f=void 0===e?Sc:e,e=b.scheduler,g=void 0===e?null!==a&&void 0!==a?a:I:e;a=b.meta;var h=void 0===a?null:a;if(null==c&&null==d)throw new TypeError("No timeout provided.");return n(function(a,b){var e,k,p=null,Y=0,Z=function(a){k=vb(b,g,function(){e.unsubscribe();v(f({meta:h,lastValue:p,seen:Y})).subscribe(b)}, a)};e=a.subscribe(new l(b,function(a){null===k||void 0===k?void 0:k.unsubscribe();Y++;b.next(p=a);0<d&&Z(d)},void 0,void 0,function(){(null===k||void 0===k?0:k.closed)||(null===k||void 0===k?void 0:k.unsubscribe());p=null}));Z(null!=c?"number"===typeof c?c:+c-g.now():d)})}function Sc(b){throw new Hb(b);}function Ib(b,a){void 0===a&&(a=0);return n(function(c,d){d.add(b.schedule(function(){return c.subscribe(d)},a))})}function O(b,a){return n(function(c,d){var e=0;c.subscribe(new l(d,function(c){d.next(b.call(a, c,e++))}))})}function Q(b){return O(function(a){return Tc(a)?b.apply(void 0,y([],x(a))):b(a)})}function Jb(b,a){void 0===a&&(a=0);return n(function(c,d){c.subscribe(new l(d,function(c){return d.add(b.schedule(function(){return d.next(c)},a))},function(){return d.add(b.schedule(function(){return d.complete()},a))},function(c){return d.add(b.schedule(function(){return d.error(c)},a))}))})}function Aa(b,a,c,d){if(c)if(xa(c))d=c;else return function(){for(var e=[],g=0;g<arguments.length;g++)e[g]=arguments[g]; return Aa(b,a,d).apply(this,e).pipe(Q(c))};if(d)return function(){for(var c=[],e=0;e<arguments.length;e++)c[e]=arguments[e];return Aa(b,a).apply(this,c).pipe(Ib(d),Jb(d))};var e=new Ta;return function(){for(var c=this,d=[],h=0;h<arguments.length;h++)d[h]=arguments[h];var k=!0;return new t(function(f){f=e.subscribe(f);if(k){var g=k=!1,h=!1;a.apply(c,y(y([],x(d)),[function(){for(var a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];if(b&&(c=a.shift(),null!=c)){e.error(c);return}e.next(1<a.length?a: a[0]);h=!0;g&&e.complete()}]));h&&e.complete();g=!0}return f})}}function Kb(b){if(1===b.length){var a=b[0];if(Uc(a))return{args:a,keys:null};if(a&&"object"===typeof a&&Vc(a)===Wc)return b=Xc(a),{args:b.map(function(b){return a[b]}),keys:b}}return{args:b,keys:null}}function Lb(b,a){return b.reduce(function(b,d,e){return b[d]=a[e],b},{})}function Mb(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=K(b),a=ia(b),b=Kb(b),d=b.args,e=b.keys;if(0===d.length)return ca([],c);c=new t(Nb(d,c, e?function(a){return Lb(e,a)}:E));return a?c.pipe(Q(a)):c}function Nb(b,a,c){void 0===c&&(c=E);return function(d){Ob(a,function(){for(var e=b.length,f=Array(e),g=e,h=e,k=function(e){Ob(a,function(){var k=!1;ca(b[e],a).subscribe(new l(d,function(a){f[e]=a;k||(k=!0,h--);h||d.next(c(f.slice()))},function(){--g||d.complete()}))},d)},p=0;p<e;p++)k(p)},d)}}function Ob(b,a,c){b?c.add(b.schedule(a)):a()}function Ua(b,a,c,d,e,f,g,h){var k=[],p=0,q=0,A=!1,u=function(a){return p<d?Y(a):k.push(a)},Y=function(b){f&& a.next(b);p++;var h=!1;v(c(b,q++)).subscribe(new l(a,function(b){null===e||void 0===e?void 0:e(b);f?u(b):a.next(b)},function(){h=!0},void 0,function(){if(h)try{p--;for(var b=function(){var b=k.shift();g?a.add(g.schedule(function(){return Y(b)})):Y(b)};k.length&&p<d;)b();!A||k.length||p||a.complete()}catch(S){a.error(S)}}))};b.subscribe(new l(a,u,function(){A=!0;!A||k.length||p||a.complete()}));return function(){null===h||void 0===h?void 0:h()}}function H(b,a,c){void 0===c&&(c=Infinity);if(r(a))return H(function(c, e){return O(function(b,d){return a(c,b,e,d)})(v(b(c,e)))},c);"number"===typeof a&&(c=a);return n(function(a,e){return Ua(a,e,b,c)})}function Ba(b){void 0===b&&(b=Infinity);return H(E,b)}function Va(){return Ba(1)}function ja(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return Va()(da(b,K(b)))}function ka(b){return new t(function(a){v(b()).subscribe(a)})}function Wa(b,a,c,d){r(c)&&(d=c,c=void 0);if(d)return Wa(b,a,c).pipe(Q(d));d=x(Yc(b)?Zc.map(function(d){return function(e){return b[d](a, e,c)}}):$c(b)?ad.map(Pb(b,a)):bd(b)?cd.map(Pb(b,a)):[],2);var e=d[0],f=d[1];if(!e&&Qa(b))return H(function(b){return Wa(b,a,c)})(da(b));if(!e)throw new TypeError("Invalid event target");return new t(function(a){var b=function(){for(var b=[],c=0;c<arguments.length;c++)b[c]=arguments[c];return a.next(1<b.length?b:b[0])};e(b);return function(){return f(b)}})}function Pb(b,a){return function(c){return function(d){return b[c](a,d)}}}function $c(b){return r(b.addListener)&&r(b.removeListener)}function bd(b){return r(b.on)&& r(b.off)}function Yc(b){return r(b.addEventListener)&&r(b.removeEventListener)}function Qb(b,a,c){return c?Qb(b,a).pipe(Q(c)):new t(function(c){var d=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return c.next(1===a.length?a[0]:a)},f=b(d);return r(a)?function(){return a(d,f)}:void 0})}function la(b,a,c){void 0===b&&(b=0);void 0===c&&(c=ma);var d=-1;null!=a&&(xa(a)?c=a:d=a);return new t(function(a){var e=Sa(b)?+b-c.now():b;0>e&&(e=0);var g=0;return c.schedule(function(){a.closed|| (a.next(g++),0<=d?this.schedule(void 0,d):a.complete())},e)})}function Rb(b,a){void 0===b&&(b=0);void 0===a&&(a=I);0>b&&(b=0);return la(b,b,a)}function T(b){return 1===b.length&&dd(b[0])?b[0]:b}function Sb(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=T(b);return n(function(a,b){var d=y([a],x(c)),e=function(){if(!b.closed)if(0<d.length){var a=void 0;try{a=v(d.shift())}catch(p){e();return}var c=new l(b,void 0,B,B);b.add(a.subscribe(c));c.add(e)}else b.complete()};e()})}function Tb(b, a){return function(c,d){return!b.call(a,c,d)}}function L(b,a){return n(function(c,d){var e=0;c.subscribe(new l(d,function(c){return b.call(a,c,e++)&&d.next(c)}))})}function Ub(b){return function(a){for(var c=[],d=function(d){c.push(v(b[d]).subscribe(new l(a,function(b){if(c){for(var e=0;e<c.length;e++)e!==d&&c[e].unsubscribe();c=null}a.next(b)})))},e=0;c&&!a.closed&&e<b.length;e++)d(e)}}function Xa(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=ia(b),d=T(b);return d.length?new t(function(a){var b= d.map(function(){return[]}),e=d.map(function(){return!1});a.add(function(){b=e=null});for(var h=function(f){v(d[f]).subscribe(new l(a,function(d){b[f].push(d);b.every(function(a){return a.length})&&(d=b.map(function(a){return a.shift()}),a.next(c?c.apply(void 0,y([],x(d))):d),b.some(function(a,b){return!a.length&&e[b]})&&a.complete())},function(){e[f]=!0;!b[f].length&&a.complete()}))},k=0;!a.closed&&k<d.length;k++)h(k);return function(){b=e=null}}):F}function Vb(b){return n(function(a,c){var d=!1, e=null,f=null,g=!1,h=function(){null===f||void 0===f?void 0:f.unsubscribe();f=null;if(d){d=!1;var a=e;e=null;c.next(a)}g&&c.complete()},k=function(){f=null;g&&c.complete()};a.subscribe(new l(c,function(a){d=!0;e=a;f||v(b(a)).subscribe(f=new l(c,h,k))},function(){g=!0;d&&f&&!f.closed||c.complete()}))})}function Wb(b){return n(function(a,c){var d=null,e=!1,f,d=a.subscribe(new l(c,void 0,void 0,function(g){f=v(b(g,Wb(b)(a)));d?(d.unsubscribe(),d=null,f.subscribe(c)):e=!0}));e&&(d.unsubscribe(),d=null, f.subscribe(c))})}function Xb(b,a,c,d,e){return function(f,g){var h=c,k=a,p=0;f.subscribe(new l(g,function(a){var c=p++;k=h?b(k,a,c):(h=!0,a);d&&g.next(k)},e&&function(){h&&g.next(k);g.complete()}))}}function na(b,a){return n(Xb(b,a,2<=arguments.length,!1,!0))}function Yb(){return n(function(b,a){na(ed,[])(b).subscribe(a)})}function Zb(b,a){return Ma(Yb(),H(function(a){return b(a)}),a?Q(a):E)}function $b(b){return Zb(Mb,b)}function Ya(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return(a= ia(b))?Ma(Ya.apply(void 0,y([],x(b))),Q(a)):n(function(a,d){Nb(y([a],x(T(b))))(d)})}function ac(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=K(b);return n(function(a,e){Va()(da(y([a],x(b)),c)).subscribe(e)})}function Za(b,a){return r(a)?H(b,a,1):H(b,1)}function fd(b){return new t(function(a){return b.subscribe(a)})}function $a(b,a){void 0===a&&(a=gd);var c=a.connector;return n(function(a,e){var d=c();ca(b(fd(d))).subscribe(e);e.add(a.subscribe(d))})}function Ca(b){return n(function(a, c){var d=!1;a.subscribe(new l(c,function(a){d=!0;c.next(a)},function(){d||c.next(b);c.complete()}))})}function oa(b){return 0>=b?function(){return F}:n(function(a,c){var d=0;a.subscribe(new l(c,function(a){++d<=b&&(c.next(a),b<=d&&c.complete())}))})}function bc(){return n(function(b,a){b.subscribe(new l(a,B))})}function cc(b){return n(function(a,c){a.subscribe(new l(c,function(){return c.next(b)}))})}function ab(b,a){return a?function(c){return ja(a.pipe(oa(1),bc()),c.pipe(ab(b)))}:H(function(a,d){return b(a, d).pipe(oa(1),cc(a))})}function dc(b,a){void 0===a&&(a=E);b=null!==b&&void 0!==b?b:hd;return n(function(c,d){var e,f=!0;c.subscribe(new l(d,function(c){var g=a(c);if(f||!b(e,g))f=!1,e=g,d.next(c)}))})}function hd(b,a){return b===a}function Da(b){void 0===b&&(b=id);return n(function(a,c){var d=!1;a.subscribe(new l(c,function(a){d=!0;c.next(a)},function(){return d?c.complete():c.error(b())}))})}function id(){return new U}function ec(){return n(function(b,a){var c=!1,d=null;b.subscribe(new l(a,function(b){d|| (d=v(b).subscribe(new l(a,void 0,function(){d=null;c&&a.complete()})))},function(){c=!0;!d&&a.complete()}))})}function fc(b,a){return a?function(c){return c.pipe(fc(function(c,e){return v(b(c,e)).pipe(O(function(b,d){return a(c,b,e,d)}))}))}:n(function(a,d){var c=0,f=null,g=!1;a.subscribe(new l(d,function(a){f||(f=new l(d,void 0,function(){f=null;g&&d.complete()}),v(b(a,c++)).subscribe(f))},function(){g=!0;!f&&d.complete()}))})}function gc(b,a,c){var d="index"===c;return function(c,f){var e=0;c.subscribe(new l(f, function(g){var h=e++;b.call(a,g,h,c)&&(f.next(d?h:g),f.complete())},function(){f.next(d?-1:void 0);f.complete()}))}}function hc(b){return 0>=b?function(){return F}:n(function(a,c){var d=[];a.subscribe(new l(c,function(a){d.push(a);b<d.length&&d.shift()},function(){var a,b;try{for(var g=D(d),h=g.next();!h.done;h=g.next())c.next(h.value)}catch(k){a={error:k}}finally{try{h&&!h.done&&(b=g.return)&&b.call(g)}finally{if(a)throw a.error;}}c.complete()},void 0,function(){d=null}))})}function ic(){for(var b= [],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=K(b),d="number"===typeof b[b.length-1]?b.pop():Infinity,b=T(b);return n(function(a,f){Ba(d)(da(y([a],x(b)),c)).subscribe(f)})}function bb(b,a){var c=r(b)?b:function(){return b};return r(a)?$a(a,{connector:c}):function(a){return new Ea(a,c)}}function jc(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return b.length?n(function(a,d){Ub(y([a],x(b)))(d)}):E}function kc(b){return n(function(a,c){var d=!1,e=null;a.subscribe(new l(c,function(a){d= !0;e=a}));b.subscribe(new l(c,function(){if(d){d=!1;var a=e;e=null;c.next(a)}},B))})}function lc(b,a){return n(Xb(b,a,2<=arguments.length,!0))}function mc(b){b=b||{};var a=b.connector,c=void 0===a?function(){return new C}:a,a=b.resetOnComplete,d=void 0===a?!0:a,a=b.resetOnError,e=void 0===a?!0:a;b=b.resetOnRefCountZero;var f=void 0===b?!0:b,g=null,h=null,k=0,p=!1,q=!1,A=function(){g=h=null;p=q=!1};return n(function(a,b){k++;h=null!==h&&void 0!==h?h:c();h.subscribe(b);g||(g=new Fa({next:function(a){return h.next(a)}, error:function(a){q=!0;var b=h;e&&A();b.error(a)},complete:function(){p=!0;var a=h;d&&A();a.complete()}}),ca(a).subscribe(g));return function(){k--;if(f&&!k&&!q&&!p){var a=g;A();null===a||void 0===a?void 0:a.unsubscribe()}}})}function pa(b,a){return n(function(c,d){var e=null,f=0,g=!1;c.subscribe(new l(d,function(c){null===e||void 0===e?void 0:e.unsubscribe();var h=0,p=f++;v(b(c,p)).subscribe(e=new l(d,function(b){return d.next(a?a(c,b,p,h++):b)},function(){e=null;g&&!e&&d.complete()}))},function(){(g= !0,!e)&&d.complete()}))})}function nc(b,a){a=void 0===a?oc:a;var c=a.leading,d=a.trailing;return n(function(a,f){var e=!1,h=null,k=null,p=!1,q=function(){null===k||void 0===k?void 0:k.unsubscribe();k=null;d&&(u(),p&&f.complete())},A=function(){k=null;p&&f.complete()},u=function(){if(e){e=!1;var a=h;h=null;f.next(a);!p&&(k=v(b(a)).subscribe(new l(f,q,A)))}};a.subscribe(new l(f,function(a){e=!0;h=a;(!k||k.closed)&&(c?u():k=v(b(a)).subscribe(new l(f,q,A)))},function(){p=!0;d&&e&&k&&!k.closed||f.complete()}))})} function pc(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return n(function(a,d){Xa.apply(void 0,y([a],x(b))).subscribe(d)})}function qc(b,a){for(var c=0,d=a.length;c<d;c++)for(var e=a[c],f=Object.getOwnPropertyNames(e.prototype),g=0,h=f.length;g<h;g++){var k=f[g];b.prototype[k]=e.prototype[k]}}function rc(b){switch(b.responseType){case "json":return"response"in b?b.response:JSON.parse(b.responseText);case "document":return b.responseXML;default:return"response"in b?b.response:b.responseText}} function jd(b,a){return V({method:"GET",url:b,headers:a})}function kd(b,a,c){return V({method:"POST",url:b,body:a,headers:c})}function ld(b,a){return V({method:"DELETE",url:b,headers:a})}function md(b,a,c){return V({method:"PUT",url:b,body:a,headers:c})}function nd(b,a,c){return V({method:"PATCH",url:b,body:a,headers:c})}function od(b,a){return pd(V({method:"GET",url:b,headers:a}))}function qd(b){return new t(function(a){var c,d,e=b.queryParams,f=b.body,g=b.headers,h=mb(b,["queryParams","body","headers"]), k=h.url;if(!k)throw new TypeError("url is required");if(e){var p;if(k.includes("?")){k=k.split("?");if(2<k.length)throw new TypeError("invalid url");p=new URLSearchParams(k[1]);(new URLSearchParams(e)).forEach(function(a,b){return p.set(b,a)});k=k[0]+"?"+p}else p=new URLSearchParams(e),k=k+"?"+p}e={};if(g)for(var q in g)g.hasOwnProperty(q)&&(e[q.toLowerCase()]=g[q]);b.crossDomain||"x-requested-with"in e||(e["x-requested-with"]="XMLHttpRequest");var A=h.xsrfCookieName,g=h.xsrfHeaderName;(h.withCredentials|| !h.crossDomain)&&A&&g&&(A=null!==(d=null===(c=null===document||void 0===document?void 0:document.cookie.match(new RegExp("(^|;\\s*)("+A+")\x3d([^;]*)")))||void 0===c?void 0:c.pop())&&void 0!==d?d:"")&&(e[g]=A);c=rd(f,e);var u=W(W({async:!0,crossDomain:!0,withCredentials:!1,method:"GET",timeout:0,responseType:"json"},h),{url:k,headers:e,body:c}),l;l=b.createXHR?b.createXHR():new XMLHttpRequest;var m=b.progressSubscriber,h=b.includeDownloadProgress,h=void 0===h?!1:h;d=b.includeUploadProgress;d=void 0=== d?!1:d;f=function(b,c){l.addEventListener(b,function(){var b,d=c();null===(b=null===m||void 0===m?void 0:m.error)||void 0===b?void 0:b.call(m,d);a.error(d)})};f("timeout",function(){return new sc(l,u)});f("abort",function(){return new qa("aborted",l,u)});var n=function(b,c,d){b.addEventListener(c,function(b){a.next(new cb(b,l,u,d+"_"+b.type))})};d&&[db,eb,tc].forEach(function(a){return n(l.upload,a,sd)});m&&[db,eb].forEach(function(a){return l.upload.addEventListener(a,function(a){var b;return null=== (b=null===m||void 0===m?void 0:m.next)||void 0===b?void 0:b.call(m,a)})});h&&[db,eb].forEach(function(a){return n(l,a,uc)});var r=function(b){a.error(new qa("ajax error"+(b?" "+b:""),l,u))};l.addEventListener("error",function(a){var b;null===(b=null===m||void 0===m?void 0:m.error)||void 0===b?void 0:b.call(m,a);r()});l.addEventListener(tc,function(b){var c,d,e=l.status;if(400>e){null===(c=null===m||void 0===m?void 0:m.complete)||void 0===c?void 0:c.call(m);c=void 0;try{c=new cb(b,l,u,uc+"_"+b.type)}catch(td){a.error(td); return}a.next(c);a.complete()}else null===(d=null===m||void 0===m?void 0:m.error)||void 0===d?void 0:d.call(m,b),r(e)});h=u.user;d=u.method;f=u.async;h?l.open(d,k,f,h,u.password):l.open(d,k,f);f&&(l.timeout=u.timeout,l.responseType=u.responseType);"withCredentials"in l&&(l.withCredentials=u.withCredentials);for(q in e)e.hasOwnProperty(q)&&l.setRequestHeader(q,e[q]);c?l.send(c):l.send();return function(){l&&4!==l.readyState&&l.abort()}})}function rd(b,a){var c;if(!b||"string"===typeof b||"undefined"!== typeof FormData&&b instanceof FormData||"undefined"!==typeof URLSearchParams&&b instanceof URLSearchParams||fb(b,"ArrayBuffer")||fb(b,"File")||fb(b,"Blob")||"undefined"!==typeof ReadableStream&&b instanceof ReadableStream)return b;if("undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView(b))return b.buffer;if("object"===typeof b)return a["content-type"]=null!==(c=a["content-type"])&&void 0!==c?c:"application/json;charset\x3dutf-8",JSON.stringify(b);throw new TypeError("Unknown body type");}function fb(b, a){return ud.call(b)==="[object "+a+"]"}var Ia=function(b,a){Ia=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return Ia(b,a)},W=function(){W=Object.assign||function(b){for(var a,c=1,d=arguments.length;c<d;c++){a=arguments[c];for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(b[e]=a[e])}return b};return W.apply(this,arguments)},Ga=M(function(b){return function(a){b(this); this.message=a?a.length+" errors occurred during unsubscription:\n"+a.map(function(a,b){return b+1+") "+a.toString()}).join("\n "):"";this.name="UnsubscriptionError";this.errors=a}}),z=function(){function b(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null}b.prototype.unsubscribe=function(){var a,b,d,e,f;if(!this.closed){this.closed=!0;var g=this._parentage;if(Array.isArray(g))try{for(var h=D(g),k=h.next();!k.done;k=h.next())k.value.remove(this)}catch(u){a={error:u}}finally{try{k&& !k.done&&(b=h.return)&&b.call(h)}finally{if(a)throw a.error;}}else null===g||void 0===g?void 0:g.remove(this);a=this.initialTeardown;if(r(a))try{a()}catch(u){f=u instanceof Ga?u.errors:[u]}if(a=this._teardowns){this._teardowns=null;try{for(var p=D(a),q=p.next();!q.done;q=p.next()){var l=q.value;try{a=l,r(a)?a():a.unsubscribe()}catch(u){f=null!==f&&void 0!==f?f:[],u instanceof Ga?f=y(y([],x(f)),x(u.errors)):f.push(u)}}}catch(u){d={error:u}}finally{try{q&&!q.done&&(e=p.return)&&e.call(p)}finally{if(d)throw d.error; }}}if(f)throw new Ga(f);}};b.prototype.add=function(a){var c;if(a&&a!==this)if(this.closed)r(a)?a():a.unsubscribe();else{if(a instanceof b){if(a.closed||a._hasParent(this))return;a._addParent(this)}(this._teardowns=null!==(c=this._teardowns)&&void 0!==c?c:[]).push(a)}};b.prototype._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};b.prototype._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};b.prototype._removeParent= function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&J(b,a)};b.prototype.remove=function(a){var c=this._teardowns;c&&J(c,a);a instanceof b&&a._removeParent(this)};b.EMPTY=function(){var a=new b;a.closed=!0;return a}();return b}(),vc=z.EMPTY,P={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},aa={setTimeout:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];a=aa.delegate; return((null===a||void 0===a?void 0:a.setTimeout)||setTimeout).apply(void 0,y([],x(b)))},clearTimeout:function(b){var a=aa.delegate;return((null===a||void 0===a?void 0:a.clearTimeout)||clearTimeout)(b)},delegate:void 0},ra=G("C",void 0,void 0),sa=function(b){function a(a){var c=b.call(this)||this;c.isStopped=!1;a?(c.destination=a,nb(a)&&a.add(c)):c.destination=vd;return c}w(a,b);a.create=function(a,b,e){return new Fa(a,b,e)};a.prototype.next=function(a){this.isStopped?La(G("N",a,void 0),this):this._next(a)}; a.prototype.error=function(a){this.isStopped?La(G("E",void 0,a),this):(this.isStopped=!0,this._error(a))};a.prototype.complete=function(){this.isStopped?La(ra,this):(this.isStopped=!0,this._complete())};a.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,b.prototype.unsubscribe.call(this),this.destination=null)};a.prototype._next=function(a){this.destination.next(a)};a.prototype._error=function(a){try{this.destination.error(a)}finally{this.unsubscribe()}};a.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}}; return a}(z),Fa=function(b){function a(a,d,e){var c=b.call(this)||this,g;r(a)?g=a:a&&(g=a.next,d=a.error,e=a.complete,c&&P.useDeprecatedNextContext&&(a=Object.create(a),a.unsubscribe=function(){return c.unsubscribe()}),g=null===g||void 0===g?void 0:g.bind(a),d=null===d||void 0===d?void 0:d.bind(a),e=null===e||void 0===e?void 0:e.bind(a));c.destination={next:g?Ka(g,c):B,error:Ka(null!==d&&void 0!==d?d:pb,c),complete:e?Ka(e,c):B};return c}w(a,b);return a}(sa),vd={closed:!0,next:B,error:pb,complete:B}, ba="function"===typeof Symbol&&Symbol.observable||"@@observable",t=function(){function b(a){a&&(this._subscribe=a)}b.prototype.lift=function(a){var c=new b;c.source=this;c.operator=a;return c};b.prototype.subscribe=function(a,b,d){var c;(c=a&&a instanceof sa)||(c=a&&r(a.next)&&r(a.error)&&r(a.complete)&&nb(a));a=c?a:new Fa(a,b,d);P.useDeprecatedSynchronousErrorHandling?this._deprecatedSyncErrorSubscribe(a):(b=this.operator,d=this.source,a.add(b?b.call(a,d):d?this._subscribe(a):this._trySubscribe(a))); return a};b.prototype._deprecatedSyncErrorSubscribe=function(a){a._syncErrorHack_isSubscribing=!0;var b=this.operator;if(b)a.add(b.call(a,this.source));else try{this._subscribe(a)}catch(d){a.__syncError=d}for(b=a;b;){if("__syncError"in b)try{throw b.__syncError;}finally{a.unsubscribe()}b=b.destination}a._syncErrorHack_isSubscribing=!1};b.prototype._trySubscribe=function(a){try{return this._subscribe(a)}catch(c){a.error(c)}};b.prototype.forEach=function(a,b){var c=this;b=rb(b);return new b(function(b, d){var e;e=c.subscribe(function(b){try{a(b)}catch(k){d(k),null===e||void 0===e?void 0:e.unsubscribe()}},d,b)})};b.prototype._subscribe=function(a){var b;return null===(b=this.source)||void 0===b?void 0:b.subscribe(a)};b.prototype[ba]=function(){return this};b.prototype.pipe=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];return a.length?qb(a)(this):this};b.prototype.toPromise=function(a){var b=this;a=rb(a);return new a(function(a,c){var d;b.subscribe(function(a){return d=a},function(a){return c(a)}, function(){return a(d)})})};b.create=function(a){return new b(a)};return b}(),l=function(b){function a(a,d,e,f,g){var c=b.call(this,a)||this;c.onFinalize=g;c._next=d?function(b){try{d(b)}catch(p){a.error(p)}}:b.prototype._next;c._error=f?function(b){try{f(b)}catch(p){a.error(p)}finally{this.unsubscribe()}}:b.prototype._error;c._complete=e?function(){try{e()}catch(k){a.error(k)}finally{this.unsubscribe()}}:b.prototype._complete;return c}w(a,b);a.prototype.unsubscribe=function(){var a,d=this.closed; b.prototype.unsubscribe.call(this);!d&&(null===(a=this.onFinalize)||void 0===a?void 0:a.call(this))};return a}(sa),Ea=function(b){function a(a,d){var c=b.call(this)||this;c.source=a;c.subjectFactory=d;c._subject=null;c._refCount=0;c._connection=null;r(null===a||void 0===a?void 0:a.lift)&&(c.lift=a.lift);return c}w(a,b);a.prototype._subscribe=function(a){return this.getSubject().subscribe(a)};a.prototype.getSubject=function(){var a=this._subject;if(!a||a.isStopped)this._subject=this.subjectFactory(); return this._subject};a.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;null===a||void 0===a?void 0:a.unsubscribe()};a.prototype.connect=function(){var a=this,b=this._connection;if(!b){var b=this._connection=new z,e=this.getSubject();b.add(this.source.subscribe(new l(e,void 0,function(){a._teardown();e.complete()},function(b){a._teardown();e.error(b)},function(){return a._teardown()})));b.closed&&(this._connection=null,b=z.EMPTY)}return b}; a.prototype.refCount=function(){return sb()(this)};return a}(t),wa={now:function(){return(wa.delegate||performance).now()},delegate:void 0},N={schedule:function(b){var a=requestAnimationFrame,c=cancelAnimationFrame,d=N.delegate;d&&(a=d.requestAnimationFrame,c=d.cancelAnimationFrame);var e=a(function(a){c=void 0;b(a)});return new z(function(){return null===c||void 0===c?void 0:c(e)})},requestAnimationFrame:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];a=N.delegate;return((null=== a||void 0===a?void 0:a.requestAnimationFrame)||requestAnimationFrame).apply(void 0,y([],x(b)))},cancelAnimationFrame:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];a=N.delegate;return((null===a||void 0===a?void 0:a.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,y([],x(b)))},delegate:void 0},wd=tb(),wc=M(function(b){return function(){b(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}}),C=function(b){function a(){var a=b.call(this)||this; a.closed=!1;a.observers=[];a.isStopped=!1;a.hasError=!1;a.thrownError=null;return a}w(a,b);a.prototype.lift=function(a){var b=new gb(this,this);b.operator=a;return b};a.prototype._throwIfClosed=function(){if(this.closed)throw new wc;};a.prototype.next=function(a){var b,c;this._throwIfClosed();if(!this.isStopped){var f=this.observers.slice();try{for(var g=D(f),h=g.next();!h.done;h=g.next())h.value.next(a)}catch(k){b={error:k}}finally{try{h&&!h.done&&(c=g.return)&&c.call(g)}finally{if(b)throw b.error; }}}};a.prototype.error=function(a){this._throwIfClosed();if(!this.isStopped){this.hasError=this.isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};a.prototype.complete=function(){this._throwIfClosed();if(!this.isStopped){this.isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null};a.prototype._trySubscribe=function(a){this._throwIfClosed();return b.prototype._trySubscribe.call(this, a)};a.prototype._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};a.prototype._innerSubscribe=function(a){var b=this.isStopped,c=this.observers;return this.hasError||b?vc:(c.push(a),new z(function(){return J(c,a)}))};a.prototype._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.isStopped;this.hasError?a.error(b):c&&a.complete()};a.prototype.asObservable=function(){var a=new t;a.source=this;return a};a.create=function(a,b){return new gb(a, b)};return a}(t),gb=function(b){function a(a,d){var c=b.call(this)||this;c.destination=a;c.source=d;return c}w(a,b);a.prototype.next=function(a){var b,c;null===(c=null===(b=this.destination)||void 0===b?void 0:b.next)||void 0===c?void 0:c.call(b,a)};a.prototype.error=function(a){var b,c;null===(c=null===(b=this.destination)||void 0===b?void 0:b.error)||void 0===c?void 0:c.call(b,a)};a.prototype.complete=function(){var a,b;null===(b=null===(a=this.destination)||void 0===a?void 0:a.complete)||void 0=== b?void 0:b.call(a)};a.prototype._subscribe=function(a){var b,c;return null!==(c=null===(b=this.source)||void 0===b?void 0:b.subscribe(a))&&void 0!==c?c:vc};return a}(C),xc=function(b){function a(a){var c=b.call(this)||this;c._value=a;return c}w(a,b);Object.defineProperty(a.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0});a.prototype._subscribe=function(a){var c=b.prototype._subscribe.call(this,a);!c.closed&&a.next(this._value);return c};a.prototype.getValue= function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};a.prototype.next=function(a){b.prototype.next.call(this,this._value=a)};return a}(C),ea={now:function(){return(ea.delegate||Date).now()},delegate:void 0},fa=function(b){function a(a,d,e){void 0===a&&(a=Infinity);void 0===d&&(d=Infinity);void 0===e&&(e=ea);var c=b.call(this)||this;c._bufferSize=a;c._windowTime=d;c._timestampProvider=e;c._buffer=[];c._infiniteTimeWindow=Infinity===d;c._bufferSize= Math.max(1,a);c._windowTime=Math.max(1,d);return c}w(a,b);a.prototype.next=function(a){var c=this._buffer,e=this._infiniteTimeWindow,f=this._timestampProvider,g=this._windowTime;this.isStopped||(c.push(a),!e&&c.push(f.now()+g));this._trimBuffer();b.prototype.next.call(this,a)};a.prototype._subscribe=function(a){this._throwIfClosed();this._trimBuffer();for(var b=this._innerSubscribe(a),c=this._infiniteTimeWindow,f=this._buffer.slice(),g=0;g<f.length&&!a.closed;g+=c?1:2)a.next(f[g]);this._checkFinalizedStatuses(a); return b};a.prototype._trimBuffer=function(){var a=this._bufferSize,b=this._timestampProvider,e=this._buffer,f=this._infiniteTimeWindow,g=(f?1:2)*a;Infinity>a&&g<e.length&&e.splice(0,e.length-g);if(!f){a=b.now();b=0;for(f=1;f<e.length&&e[f]<=a;f+=2)b=f;b&&e.splice(0,b+1)}};return a}(C),Ta=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a._value=null;a._hasValue=!1;a._isComplete=!1;return a}w(a,b);a.prototype._checkFinalizedStatuses=function(a){var b=this._hasValue,c=this._value, f=this.thrownError,g=this.isStopped;this.hasError?a.error(f):g&&(b&&a.next(c),a.complete())};a.prototype.next=function(a){this.isStopped||(this._value=a,this._hasValue=!0)};a.prototype.complete=function(){var a=this._hasValue,d=this._value;this._isComplete||(this._isComplete=!0,a&&b.prototype.next.call(this,d),b.prototype.complete.call(this))};return a}(C),ga={setInterval:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];a=ga.delegate;return((null===a||void 0===a?void 0:a.setInterval)|| setInterval).apply(void 0,y([],x(b)))},clearInterval:function(b){var a=ga.delegate;return((null===a||void 0===a?void 0:a.clearInterval)||clearInterval)(b)},delegate:void 0},ta=function(b){function a(a,d){var c=b.call(this,a,d)||this;c.scheduler=a;c.work=d;c.pending=!1;return c}w(a,b);a.prototype.schedule=function(a,b){void 0===b&&(b=0);if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;null!=a&&(this.id=this.recycleAsyncId(c,a,b));this.pending=!0;this.delay=b;this.id=this.id|| this.requestAsyncId(c,this.id,b);return this};a.prototype.requestAsyncId=function(a,b,e){void 0===e&&(e=0);return ga.setInterval(a.flush.bind(a,this),e)};a.prototype.recycleAsyncId=function(a,b,e){void 0===e&&(e=0);if(null!=e&&this.delay===e&&!1===this.pending)return b;ga.clearInterval(b)};a.prototype.execute=function(a,b){if(this.closed)return Error("executing a cancelled action");this.pending=!1;if(a=this._execute(a,b))return a;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler, this.id,null))};a.prototype._execute=function(a,b){b=!1;var c;try{this.work(a)}catch(f){b=!0,c=!!f&&f||Error(f)}if(b)return this.unsubscribe(),c};a.prototype.unsubscribe=function(){if(!this.closed){var a=this.id,d=this.scheduler,e=d.actions;this.work=this.state=this.scheduler=null;this.pending=!1;J(e,this);null!=a&&(this.id=this.recycleAsyncId(d,a,null));this.delay=null;b.prototype.unsubscribe.call(this)}};return a}(function(b){function a(a,d){return b.call(this)||this}w(a,b);a.prototype.schedule= function(a,b){return this};return a}(z)),xd=1,hb,Na={},yd=function(b){var a=xd++;Na[a]=!0;hb||(hb=Promise.resolve());hb.then(function(){return ub(a)&&b()});return a},zd=function(b){ub(b)},ha={setImmediate:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];a=ha.delegate;return((null===a||void 0===a?void 0:a.setImmediate)||yd).apply(void 0,y([],x(b)))},clearImmediate:function(b){var a=ha.delegate;return((null===a||void 0===a?void 0:a.clearImmediate)||zd)(b)},delegate:void 0},Ad=function(b){function a(a, d){var c=b.call(this,a,d)||this;c.scheduler=a;c.work=d;return c}w(a,b);a.prototype.requestAsyncId=function(a,d,e){void 0===e&&(e=0);if(null!==e&&0<e)return b.prototype.requestAsyncId.call(this,a,d,e);a.actions.push(this);return a._scheduled||(a._scheduled=ha.setImmediate(a.flush.bind(a,void 0)))};a.prototype.recycleAsyncId=function(a,d,e){void 0===e&&(e=0);if(null!=e&&0<e||null==e&&0<this.delay)return b.prototype.recycleAsyncId.call(this,a,d,e);0===a.actions.length&&(ha.clearImmediate(d),a._scheduled= void 0)};return a}(ta),ib=function(){function b(a,c){void 0===c&&(c=b.now);this.schedulerActionCtor=a;this.now=c}b.prototype.schedule=function(a,b,d){void 0===b&&(b=0);return(new this.schedulerActionCtor(this,a)).schedule(d,b)};b.now=ea.now;return b}(),ua=function(b){function a(a,d){void 0===d&&(d=ib.now);a=b.call(this,a,d)||this;a.actions=[];a._active=!1;a._scheduled=void 0;return a}w(a,b);a.prototype.flush=function(a){var b=this.actions;if(this._active)b.push(a);else{var c;this._active=!0;do if(c= a.execute(a.state,a.delay))break;while(a=b.shift());this._active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c;}}};return a}(ib),yc=new (function(b){function a(){return null!==b&&b.apply(this,arguments)||this}w(a,b);a.prototype.flush=function(a){this._active=!0;this._scheduled=void 0;var b=this.actions,c,f=-1;a=a||b.shift();var g=b.length;do if(c=a.execute(a.state,a.delay))break;while(++f<g&&(a=b.shift()));this._active=!1;if(c){for(;++f<g&&(a=b.shift());)a.unsubscribe();throw c;}};return a}(ua))(Ad), I=new ua(ta),ma=I,Bd=function(b){function a(a,d){var c=b.call(this,a,d)||this;c.scheduler=a;c.work=d;return c}w(a,b);a.prototype.schedule=function(a,d){void 0===d&&(d=0);if(0<d)return b.prototype.schedule.call(this,a,d);this.delay=d;this.state=a;this.scheduler.flush(this);return this};a.prototype.execute=function(a,d){return 0<d||this.closed?b.prototype.execute.call(this,a,d):this._execute(a,d)};a.prototype.requestAsyncId=function(a,d,e){void 0===e&&(e=0);return null!=e&&0<e||null==e&&0<this.delay? b.prototype.requestAsyncId.call(this,a,d,e):a.flush(this)};return a}(ta),zc=new (function(b){function a(){return null!==b&&b.apply(this,arguments)||this}w(a,b);return a}(ua))(Bd),Cd=function(b){function a(a,d){var c=b.call(this,a,d)||this;c.scheduler=a;c.work=d;return c}w(a,b);a.prototype.requestAsyncId=function(a,d,e){void 0===e&&(e=0);if(null!==e&&0<e)return b.prototype.requestAsyncId.call(this,a,d,e);a.actions.push(this);return a._scheduled||(a._scheduled=N.requestAnimationFrame(function(){return a.flush(void 0)}))}; a.prototype.recycleAsyncId=function(a,d,e){void 0===e&&(e=0);if(null!=e&&0<e||null==e&&0<this.delay)return b.prototype.recycleAsyncId.call(this,a,d,e);0===a.actions.length&&(N.cancelAnimationFrame(d),a._scheduled=void 0)};return a}(ta),Ac=new (function(b){function a(){return null!==b&&b.apply(this,arguments)||this}w(a,b);a.prototype.flush=function(a){this._active=!0;this._scheduled=void 0;var b=this.actions,c,f=-1;a=a||b.shift();var g=b.length;do if(c=a.execute(a.state,a.delay))break;while(++f<g&& (a=b.shift()));this._active=!1;if(c){for(;++f<g&&(a=b.shift());)a.unsubscribe();throw c;}};return a}(ua))(Cd),Bc=function(b){function a(a,d){void 0===a&&(a=jb);void 0===d&&(d=Infinity);var c=b.call(this,a,function(){return c.frame})||this;c.maxFrames=d;c.frame=0;c.index=-1;return c}w(a,b);a.prototype.flush=function(){for(var a=this.actions,b=this.maxFrames,e,f;(f=a[0])&&f.delay<=b&&!(a.shift(),this.frame=f.delay,e=f.execute(f.state,f.delay)););if(e){for(;f=a.shift();)f.unsubscribe();throw e;}};a.frameTimeFactor= 10;return a}(ua),jb=function(b){function a(a,d,e){void 0===e&&(e=a.index+=1);var c=b.call(this,a,d)||this;c.scheduler=a;c.work=d;c.index=e;c.active=!0;c.index=a.index=e;return c}w(a,b);a.prototype.schedule=function(c,d){void 0===d&&(d=0);if(Number.isFinite(d)){if(!this.id)return b.prototype.schedule.call(this,c,d);this.active=!1;var e=new a(this.scheduler,this.work);this.add(e);return e.schedule(c,d)}return z.EMPTY};a.prototype.requestAsyncId=function(b,d,e){void 0===e&&(e=0);this.delay=b.frame+e; b=b.actions;b.push(this);b.sort(a.sortActions);return!0};a.prototype.recycleAsyncId=function(a,b,e){};a.prototype._execute=function(a,d){if(!0===this.active)return b.prototype._execute.call(this,a,d)};a.sortActions=function(a,b){return a.delay===b.delay?a.index===b.index?0:a.index>b.index?1:-1:a.delay>b.delay?1:-1};return a}(ta),F=new t(function(b){return b.complete()}),Qa=function(b){return b&&"number"===typeof b.length&&"function"!==typeof b},Pa;Pa="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator: "@@iterator";(function(b){b.NEXT="N";b.ERROR="E";b.COMPLETE="C"})(m.NotificationKind||(m.NotificationKind={}));var Ha=function(){function b(a,b,d){this.kind=a;this.value=b;this.error=d;this.hasValue="N"===a}b.prototype.observe=function(a){return ya(this,a)};b.prototype.do=function(a,b,d){var c=this.kind,f=this.value,g=this.error;return"N"===c?null===a||void 0===a?void 0:a(f):"E"===c?null===b||void 0===b?void 0:b(g):null===d||void 0===d?void 0:d()};b.prototype.accept=function(a,b,d){return r(null=== a||void 0===a?void 0:a.next)?this.observe(a):this.do(a,b,d)};b.prototype.toObservable=function(){var a=this.kind,b=this.value,d=this.error,b="N"===a?Ra(b):"E"===a?Fb(function(){return d}):"C"===a?F:0;if(!b)throw new TypeError("Unexpected notification kind "+a);return b};b.createNext=function(a){return new b("N",a)};b.createError=function(a){return new b("E",void 0,a)};b.createComplete=function(){return b.completeNotification};b.completeNotification=new b("C");return b}(),U=M(function(b){return function(){b(this); this.name="EmptyError";this.message="no elements in sequence"}}),kb=M(function(b){return function(){b(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}),Cc=M(function(b){return function(a){b(this);this.name="NotFoundError";this.message=a}}),Dc=M(function(b){return function(a){b(this);this.name="SequenceError";this.message=a}}),Hb=M(function(b){return function(a){void 0===a&&(a=null);b(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=a}}), Tc=Array.isArray,Uc=Array.isArray,Vc=Object.getPrototypeOf,Wc=Object.prototype,Xc=Object.keys,Dd={connector:function(){return new C},resetOnDisconnect:!0},ad=["addListener","removeListener"],Zc=["addEventListener","removeEventListener"],cd=["on","off"],Ec=new t(B),dd=Array.isArray,ed=function(b,a){return b.push(a),b},gd={connector:function(){return new C}},Ed=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.activeGroups=0;a.teardownAttempted=!1;return a}w(a,b);a.prototype.unsubscribe= function(){this.teardownAttempted=!0;0===this.activeGroups&&b.prototype.unsubscribe.call(this)};return a}(l),oc={leading:!0,trailing:!1},Fd=function(){return function(b,a){this.value=b;this.interval=a}}(),Hd=Object.freeze({audit:Vb,auditTime:function(b,a){void 0===a&&(a=ma);return Vb(function(){return la(b,a)})},buffer:function(b){return n(function(a,c){var d=[];a.subscribe(new l(c,function(a){return d.push(a)},function(){c.next(d);c.complete()}));b.subscribe(new l(c,function(){var a=d;d=[];c.next(a)}, B));return function(){d=null}})},bufferCount:function(b,a){void 0===a&&(a=null);a=null!==a&&void 0!==a?a:b;return n(function(c,d){var e=[],f=0;c.subscribe(new l(d,function(c){var g,k,p,q,l=null;0===f++%a&&e.push([]);try{for(var m=D(e),n=m.next();!n.done;n=m.next()){var r=n.value;r.push(c);b<=r.length&&(l=null!==l&&void 0!==l?l:[],l.push(r))}}catch(S){g={error:S}}finally{try{n&&!n.done&&(k=m.return)&&k.call(m)}finally{if(g)throw g.error;}}if(l)try{for(var za=D(l),R=za.next();!R.done;R=za.next())r= R.value,J(e,r),d.next(r)}catch(S){p={error:S}}finally{try{R&&!R.done&&(q=za.return)&&q.call(za)}finally{if(p)throw p.error;}}},function(){var a,b;try{for(var c=D(e),f=c.next();!f.done;f=c.next())d.next(f.value)}catch(q){a={error:q}}finally{try{f&&!f.done&&(b=c.return)&&b.call(c)}finally{if(a)throw a.error;}}d.complete()},void 0,function(){e=null}))})},bufferTime:function(b){for(var a,c,d=[],e=1;e<arguments.length;e++)d[e-1]=arguments[e];var f=null!==(a=K(d))&&void 0!==a?a:I,g=null!==(c=d[0])&&void 0!== c?c:null,h=d[1]||Infinity;return n(function(a,c){var d=[],e=!1,k=function(a){var b=a.buffer;a.subs.unsubscribe();J(d,a);c.next(b);e&&p()},p=function(){if(d){var a=new z;c.add(a);var e={buffer:[],subs:a};d.push(e);a.add(f.schedule(function(){return k(e)},b))}};null!==g&&0<=g?c.add(f.schedule(function(){p();!this.closed&&c.add(this.schedule(null,g))},g)):e=!0;p();var m=new l(c,function(a){var b,c,e=d.slice();try{for(var f=D(e),g=f.next();!g.done;g=f.next()){var p=g.value,q=p.buffer;q.push(a);h<=q.length&& k(p)}}catch(Gd){b={error:Gd}}finally{try{g&&!g.done&&(c=f.return)&&c.call(f)}finally{if(b)throw b.error;}}},function(){for(;null===d||void 0===d?0:d.length;)c.next(d.shift().buffer);null===m||void 0===m?void 0:m.unsubscribe();c.complete();c.unsubscribe()},void 0,function(){return d=null});a.subscribe(m)})},bufferToggle:function(b,a){return n(function(c,d){var e=[];v(b).subscribe(new l(d,function(b){var c=[];e.push(c);var f=new z;f.add(v(a(b)).subscribe(new l(d,function(){J(e,c);d.next(c);f.unsubscribe()}, B)))},B));c.subscribe(new l(d,function(a){var b,c;try{for(var d=D(e),f=d.next();!f.done;f=d.next())f.value.push(a)}catch(q){b={error:q}}finally{try{f&&!f.done&&(c=d.return)&&c.call(d)}finally{if(b)throw b.error;}}},function(){for(;0<e.length;)d.next(e.shift());d.complete()}))})},bufferWhen:function(b){return n(function(a,c){var d=null,e=null,f=function(){null===e||void 0===e?void 0:e.unsubscribe();var a=d;d=[];a&&c.next(a);v(b()).subscribe(e=new l(c,f,B))};f();a.subscribe(new l(c,function(a){return null=== d||void 0===d?void 0:d.push(a)},function(){d&&c.next(d);c.complete()},void 0,function(){return d=e=null}))})},catchError:Wb,combineAll:$b,combineLatestAll:$b,combineLatest:Ya,combineLatestWith:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return Ya.apply(void 0,y([],x(b)))},concat:ac,concatAll:Va,concatMap:Za,concatMapTo:function(b,a){return r(a)?Za(function(){return b},a):Za(function(){return b})},concatWith:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a]; return ac.apply(void 0,y([],x(b)))},connect:$a,count:function(b){return na(function(a,c,d){return!b||b(c,d)?a+1:a},0)},debounce:function(b){return n(function(a,c){var d=!1,e=null,f=null,g=function(){null===f||void 0===f?void 0:f.unsubscribe();f=null;if(d){d=!1;var a=e;e=null;c.next(a)}};a.subscribe(new l(c,function(a){null===f||void 0===f?void 0:f.unsubscribe();d=!0;e=a;f=new l(c,g,B);v(b(a)).subscribe(f)},function(){g();c.complete()},void 0,function(){e=f=null}))})},debounceTime:function(b,a){void 0=== a&&(a=I);return n(function(c,d){function e(){var c=h+b,d=a.now();d<c?f=this.schedule(void 0,c-d):k()}var f=null,g=null,h=null,k=function(){if(f){f.unsubscribe();f=null;var a=g;g=null;d.next(a)}};c.subscribe(new l(d,function(c){g=c;h=a.now();f||(f=a.schedule(e,b))},function(){k();d.complete()},void 0,function(){g=f=null}))})},defaultIfEmpty:Ca,delay:function(b,a){void 0===a&&(a=I);var c=la(b,a);return ab(function(){return c})},delayWhen:ab,dematerialize:function(){return n(function(b,a){b.subscribe(new l(a, function(b){return ya(b,a)}))})},distinct:function(b,a){return n(function(c,d){var e=new Set;c.subscribe(new l(d,function(a){var c=b?b(a):a;e.has(c)||(e.add(c),d.next(a))}));null===a||void 0===a?void 0:a.subscribe(new l(d,function(){return e.clear()},B))})},distinctUntilChanged:dc,distinctUntilKeyChanged:function(b,a){return dc(function(c,d){return a?a(c[b],d[b]):c[b]===d[b]})},elementAt:function(b,a){if(0>b)throw new kb;var c=2<=arguments.length;return function(d){return d.pipe(L(function(a,c){return c=== b}),oa(1),c?Ca(a):Da(function(){return new kb}))}},endWith:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return function(a){return ja(a,Ra.apply(void 0,y([],x(b))))}},every:function(b,a){return n(function(c,d){var e=0;c.subscribe(new l(d,function(f){b.call(a,f,e++,c)||(d.next(!1),d.complete())},function(){d.next(!0);d.complete()}))})},exhaust:ec,exhaustAll:ec,exhaustMap:fc,expand:function(b,a,c){void 0===a&&(a=Infinity);a=1>(a||0)?Infinity:a;return n(function(d,e){return Ua(d, e,b,a,void 0,!0,c)})},filter:L,finalize:function(b){return n(function(a,c){try{a.subscribe(c)}finally{c.add(b)}})},find:function(b,a){return n(gc(b,a,"value"))},findIndex:function(b,a){return n(gc(b,a,"index"))},first:function(b,a){var c=2<=arguments.length;return function(d){return d.pipe(b?L(function(a,c){return b(a,c,d)}):E,oa(1),c?Ca(a):Da(function(){return new U}))}},groupBy:function(b,a,c,d){return n(function(e,f){function g(a,b){var c=new t(function(a){q.activeGroups++;var c=b.subscribe(a); return function(){c.unsubscribe();0===--q.activeGroups&&q.teardownAttempted&&q.unsubscribe()}});c.key=a;return c}var h=new Map,k=function(a){h.forEach(a);a(f)},p=function(a){return k(function(b){return b.error(a)})},q=new Ed(f,function(e){try{var k=b(e),m=h.get(k);if(!m){h.set(k,m=d?d():new C);var A=g(k,m);f.next(A);if(c){var n=new l(m,function(){m.complete();null===n||void 0===n?void 0:n.unsubscribe()},void 0,void 0,function(){return h.delete(k)});q.add(c(A).subscribe(n))}}m.next(a?a(e):e)}catch(R){p(R)}}, function(){return k(function(a){return a.complete()})},p,function(){return h.clear()});e.subscribe(q)})},ignoreElements:bc,isEmpty:function(){return n(function(b,a){b.subscribe(new l(a,function(){a.next(!1);a.complete()},function(){a.next(!0);a.complete()}))})},last:function(b,a){var c=2<=arguments.length;return function(d){return d.pipe(b?L(function(a,c){return b(a,c,d)}):E,hc(1),c?Ca(a):Da(function(){return new U}))}},map:O,mapTo:cc,materialize:function(){return n(function(b,a){b.subscribe(new l(a, function(b){a.next(Ha.createNext(b))},function(){a.next(Ha.createComplete());a.complete()},function(b){a.next(Ha.createError(b));a.complete()}))})},max:function(b){return na(r(b)?function(a,c){return 0<b(a,c)?a:c}:function(a,b){return a>b?a:b})},merge:ic,mergeAll:Ba,flatMap:H,mergeMap:H,mergeMapTo:function(b,a,c){void 0===c&&(c=Infinity);if(r(a))return H(function(){return b},a,c);"number"===typeof a&&(c=a);return H(function(){return b},c)},mergeScan:function(b,a,c){void 0===c&&(c=Infinity);return n(function(d, e){var f=a;return Ua(d,e,function(a,c){return b(f,a,c)},c,function(a){f=a},!1,void 0,function(){return f=null})})},mergeWith:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return ic.apply(void 0,y([],x(b)))},min:function(b){return na(r(b)?function(a,c){return 0>b(a,c)?a:c}:function(a,b){return a<b?a:b})},multicast:bb,observeOn:Jb,onErrorResumeNext:Sb,pairwise:function(){return n(function(b,a){var c,d=!1;b.subscribe(new l(a,function(b){var e=c;c=b;d&&a.next([e,b]);d=!0}))})}, partition:function(b,a){return function(c){return[L(b,a)(c),L(Tb(b,a))(c)]}},pluck:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=b.length;if(0===c)throw Error("list of properties cannot be empty.");return O(function(a){var d=a;for(a=0;a<c;a++)if(d=null===d||void 0===d?void 0:d[b[a]],"undefined"===typeof d)return;return d})},publish:function(b){return b?$a(b):bb(new C)},publishBehavior:function(b){var a=new xc(b);return function(b){return new Ea(b,function(){return a})}}, publishLast:function(){var b=new Ta;return function(a){return new Ea(a,function(){return b})}},publishReplay:function(b,a,c,d){c&&!r(c)&&(d=c);var e=r(c)?c:void 0,f=new fa(b,a,d);return function(a){return bb(f,e)(a)}},race:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return jc.apply(void 0,y([],x(T(b))))},raceWith:jc,reduce:na,repeat:function(b){void 0===b&&(b=Infinity);return 0>=b?function(){return F}:n(function(a,c){var d=0,e,f=function(){var g=!1;e=a.subscribe(new l(c,void 0, function(){++d<b?e?(e.unsubscribe(),e=null,f()):g=!0:c.complete()}));g&&(e.unsubscribe(),e=null,f())};f()})},repeatWhen:function(b){return n(function(a,c){var d,e=!1,f,g=!1,h=!1,k=function(){f||(f=new C,b(f).subscribe(new l(c,function(){d?p():e=!0},function(){g=!0;h&&g&&c.complete()})));return f},p=function(){h=!1;d=a.subscribe(new l(c,void 0,function(){(h=!0,g)&&(c.complete(),!0)||k().next()}));e&&(d.unsubscribe(),d=null,e=!1,p())};p()})},retry:function(b){void 0===b&&(b=Infinity);b=b&&"object"=== typeof b?b:{count:b};var a=b.count;b=b.resetOnSuccess;var c=void 0===b?!1:b;return 0>=a?function(){return F}:n(function(b,e){var d=0,g,h=function(){var f=!1;g=b.subscribe(new l(e,function(a){c&&(d=0);e.next(a)},void 0,function(b){d++<a?g?(g.unsubscribe(),g=null,h()):f=!0:e.error(b)}));f&&(g.unsubscribe(),g=null,h())};h()})},retryWhen:function(b){return n(function(a,c){var d,e=!1,f,g=function(){d=a.subscribe(new l(c,void 0,void 0,function(a){f||(f=new C,b(f).subscribe(new l(c,function(){return d?g(): e=!0})));f&&f.next(a)}));e&&(d.unsubscribe(),d=null,e=!1,g())};g()})},refCount:sb,sample:kc,sampleTime:function(b,a){void 0===a&&(a=I);return kc(Rb(b,a))},scan:lc,sequenceEqual:function(b,a){void 0===a&&(a=function(a,b){return a===b});return n(function(c,d){var e={buffer:[],complete:!1},f={buffer:[],complete:!1},g=function(b,c){var e=new l(d,function(e){var f=c.buffer,g=c.complete;0===f.length?g?(d.next(!1),d.complete()):b.buffer.push(e):a(e,f.shift())||(d.next(!1),d.complete())},function(){b.complete= !0;var a=c.buffer;c.complete&&(d.next(0===a.length),d.complete());null===e||void 0===e?void 0:e.unsubscribe()});return e};c.subscribe(g(e,f));b.subscribe(g(f,e))})},share:mc,shareReplay:function(b,a,c){var d,e,f,g=!1;b&&"object"===typeof b?(f=null!==(d=b.bufferSize)&&void 0!==d?d:Infinity,a=null!==(e=b.windowTime)&&void 0!==e?e:Infinity,g=!!b.refCount,c=b.scheduler):f=null!==b&&void 0!==b?b:Infinity;return mc({connector:function(){return new fa(f,a,c)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:g})}, single:function(b){return n(function(a,c){var d=!1,e,f=!1,g=0;a.subscribe(new l(c,function(h){f=!0;if(!b||b(h,g++,a))d&&c.error(new Dc("Too many matching values")),d=!0,e=h},function(){d?(c.next(e),c.complete()):c.error(f?new Cc("No matching values"):new U)}))})},skip:function(b){return L(function(a,c){return b<=c})},skipLast:function(b){return 0>=b?E:n(function(a,c){var d=Array(b),e=0;a.subscribe(new l(c,function(a){var f=e++;if(f<b)d[f]=a;else{var f=f%b,h=d[f];d[f]=a;c.next(h)}}));return function(){d= null}})},skipUntil:function(b){return n(function(a,c){var d=!1,e=new l(c,function(){null===e||void 0===e?void 0:e.unsubscribe();d=!0},B);v(b).subscribe(e);a.subscribe(new l(c,function(a){return d&&c.next(a)}))})},skipWhile:function(b){return n(function(a,c){var d=!1,e=0;a.subscribe(new l(c,function(a){return(d||(d=!b(a,e++)))&&c.next(a)}))})},startWith:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=K(b);return n(function(a,e){(c?ja(b,a,c):ja(b,a)).subscribe(e)})},subscribeOn:Ib, switchAll:function(){return pa(E)},switchMap:pa,switchMapTo:function(b,a){return r(a)?pa(function(){return b},a):pa(function(){return b})},switchScan:function(b,a){return n(function(c,d){var e=a;pa(function(a,c){return b(e,a,c)},function(a,b){return e=b,b})(c).subscribe(d);return function(){e=null}})},take:oa,takeLast:hc,takeUntil:function(b){return n(function(a,c){v(b).subscribe(new l(c,function(){return c.complete()},B));!c.closed&&a.subscribe(c)})},takeWhile:function(b,a){void 0===a&&(a=!1);return n(function(c, d){var e=0;c.subscribe(new l(d,function(c){var f=b(c,e++);(f||a)&&d.next(c);!f&&d.complete()}))})},tap:function(b,a,c){var d=r(b)||a||c?{next:b,error:a,complete:c}:b;return d?n(function(a,b){a.subscribe(new l(b,function(a){var c;null===(c=d.next)||void 0===c?void 0:c.call(d,a);b.next(a)},function(){var a;null===(a=d.complete)||void 0===a?void 0:a.call(d);b.complete()},function(a){var c;null===(c=d.error)||void 0===c?void 0:c.call(d,a);b.error(a)}))}):E},throttle:nc,throttleTime:function(b,a,c){void 0=== a&&(a=I);void 0===c&&(c=oc);var d=la(b,a);return nc(function(){return d},c)},throwIfEmpty:Da,timeInterval:function(b){void 0===b&&(b=ma);return function(a){return ka(function(){return a.pipe(lc(function(a,d){a=a.current;return{value:d,current:b.now(),last:a}},{current:b.now(),value:void 0,last:void 0}),O(function(a){return new Fd(a.value,a.current-a.last)}))})}},timeout:Gb,timeoutWith:function(b,a,c){var d,e;c=null!==c&&void 0!==c?c:ma;Sa(b)?d=b:"number"===typeof b&&(e=b);if(a)b=function(){return a}; else throw new TypeError("No observable provided to switch to");if(null==d&&null==e)throw new TypeError("No timeout provided.");return Gb({first:d,each:e,scheduler:c,with:b})},timestamp:function(b){void 0===b&&(b=ea);return O(function(a){return{value:a,timestamp:b.now()}})},toArray:Yb,window:function(b){return n(function(a,c){var d=new C;c.next(d.asObservable());var e=function(a){d.error(a);c.error(a)};a.subscribe(new l(c,function(a){return null===d||void 0===d?void 0:d.next(a)},function(){d.complete(); c.complete()},e));b.subscribe(new l(c,function(){d.complete();c.next(d=new C)},B,e));return function(){null===d||void 0===d?void 0:d.unsubscribe();d=null}})},windowCount:function(b,a){void 0===a&&(a=0);var c=0<a?a:b;return n(function(a,e){var d=[new C],g=0;e.next(d[0].asObservable());a.subscribe(new l(e,function(a){var f,h;try{for(var q=D(d),l=q.next();!l.done;l=q.next())l.value.next(a)}catch(u){f={error:u}}finally{try{l&&!l.done&&(h=q.return)&&h.call(q)}finally{if(f)throw f.error;}}a=g-b+1;0<=a&& 0===a%c&&d.shift().complete();0===++g%c&&(a=new C,d.push(a),e.next(a.asObservable()))},function(){for(;0<d.length;)d.shift().complete();e.complete()},function(a){for(;0<d.length;)d.shift().error(a);e.error(a)},function(){d=null}))})},windowTime:function(b){for(var a,c,d=[],e=1;e<arguments.length;e++)d[e-1]=arguments[e];var f=null!==(a=K(d))&&void 0!==a?a:I,g=null!==(c=d[0])&&void 0!==c?c:null,h=d[1]||Infinity;return n(function(a,c){var d=[],e=!1,k=function(a){var b=a.subs;a.window.complete();b.unsubscribe(); J(d,a);e&&m()},m=function(){if(d){var a=new z;c.add(a);var e=new C,g={window:e,subs:a,seen:0};d.push(g);c.next(e.asObservable());a.add(f.schedule(function(){return k(g)},b))}};null!==g&&0<=g?c.add(f.schedule(function(){m();!this.closed&&c.add(this.schedule(null,g))},g)):e=!0;m();var p=function(a){d.slice().forEach(function(b){return a(b.window)});a(c);c.unsubscribe()};a.subscribe(new l(c,function(a){d.slice().forEach(function(b){b.window.next(a);h<=++b.seen&&k(b)})},function(){return p(function(a){return a.complete()})}, function(a){return p(function(b){return b.error(a)})}));return function(){d=null}})},windowToggle:function(b,a){return n(function(c,d){var e=[],f=function(a){for(;0<e.length;)e.shift().error(a);d.error(a)};v(b).subscribe(new l(d,function(b){var c=new C;e.push(c);var g=new z,m;try{m=v(a(b))}catch(q){f(q);return}d.next(c.asObservable());g.add(m.subscribe(new l(d,function(){J(e,c);c.complete();g.unsubscribe()},B,f)))},B));c.subscribe(new l(d,function(a){var b,c,d=e.slice();try{for(var f=D(d),g=f.next();!g.done;g= f.next())g.value.next(a)}catch(u){b={error:u}}finally{try{g&&!g.done&&(c=f.return)&&c.call(f)}finally{if(b)throw b.error;}}},function(){for(;0<e.length;)e.shift().complete();d.complete()},f,function(){for(;0<e.length;)e.shift().unsubscribe()}))})},windowWhen:function(b){return n(function(a,c){var d,e,f=function(a){d.error(a);c.error(a)},g=function(){null===e||void 0===e?void 0:e.unsubscribe();null===d||void 0===d?void 0:d.complete();d=new C;c.next(d.asObservable());var a;try{a=v(b())}catch(k){f(k); return}a.subscribe(e=new l(c,g,g,f))};g();a.subscribe(new l(c,function(a){return d.next(a)},function(){d.complete();c.complete()},f,function(){null===e||void 0===e?void 0:e.unsubscribe();d=null}))})},withLatestFrom:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=ia(b);return n(function(a,e){for(var d=b.length,g=Array(d),h=b.map(function(){return!1}),k=!1,m=function(a){v(b[a]).subscribe(new l(e,function(b){g[a]=b;k||h[a]||(h[a]=!0,(k=h.every(E))&&(h=null))},B))},q=0;q<d;q++)m(q); a.subscribe(new l(e,function(a){k&&(a=y([a],x(g)),e.next(c?c.apply(void 0,y([],x(a))):a))}))})},zip:pc,zipAll:function(b){return Zb(Xa,b)},zipWith:function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return pc.apply(void 0,y([],x(b)))}}),va=function(){return function(b,a){void 0===a&&(a=Infinity);this.subscribedFrame=b;this.unsubscribedFrame=a}}(),Fc=function(){function b(){this.subscriptions=[]}b.prototype.logSubscribedFrame=function(){this.subscriptions.push(new va(this.scheduler.now())); return this.subscriptions.length-1};b.prototype.logUnsubscribedFrame=function(a){var b=this.subscriptions;b[a]=new va(b[a].subscribedFrame,this.scheduler.now())};return b}(),lb=function(b){function a(a,d){var c=b.call(this,function(a){var b=this,c=b.logSubscribedFrame(),d=new z;d.add(new z(function(){b.logUnsubscribedFrame(c)}));b.scheduleMessages(a);return d})||this;c.messages=a;c.subscriptions=[];c.scheduler=d;return c}w(a,b);a.prototype.scheduleMessages=function(a){for(var b=this.messages.length, c=0;c<b;c++){var f=this.messages[c];a.add(this.scheduler.schedule(function(a){ya(a.message.notification,a.subscriber)},f.frame,{message:f,subscriber:a}))}};return a}(t);qc(lb,[Fc]);var Gc=function(b){function a(a,d){var c=b.call(this)||this;c.messages=a;c.subscriptions=[];c.scheduler=d;return c}w(a,b);a.prototype._subscribe=function(a){var c=this,e=c.logSubscribedFrame(),f=new z;f.add(new z(function(){c.logUnsubscribedFrame(e)}));f.add(b.prototype._subscribe.call(this,a));return f};a.prototype.setup= function(){for(var a=this,b=a.messages.length,e=function(b){(function(){var c=a.messages[b],d=c.notification;a.scheduler.schedule(function(){ya(d,a)},c.frame)})()},f=0;f<b;f++)e(f)};return a}(C);qc(Gc,[Fc]);var Id=function(b){function a(a){var c=b.call(this,jb,750)||this;c.assertDeepEqual=a;c.hotObservables=[];c.coldObservables=[];c.flushTests=[];c.runMode=!1;return c}w(a,b);a.prototype.createTime=function(b){b=this.runMode?b.trim().indexOf("|"):b.indexOf("|");if(-1===b)throw Error('marble diagram for time should have a completion marker "|"'); return b*a.frameTimeFactor};a.prototype.createColdObservable=function(b,d,e){if(-1!==b.indexOf("^"))throw Error('cold observable cannot have subscription offset "^"');if(-1!==b.indexOf("!"))throw Error('cold observable cannot have unsubscription marker "!"');b=a.parseMarbles(b,d,e,void 0,this.runMode);b=new lb(b,this);this.coldObservables.push(b);return b};a.prototype.createHotObservable=function(b,d,e){if(-1!==b.indexOf("!"))throw Error('hot observable cannot have unsubscription marker "!"');b=a.parseMarbles(b, d,e,void 0,this.runMode);b=new Gc(b,this);this.hotObservables.push(b);return b};a.prototype.materializeInnerObservable=function(a,b){var c=this,d=[];a.subscribe(function(a){d.push({frame:c.frame-b,notification:G("N",a,void 0)})},function(a){d.push({frame:c.frame-b,notification:G("E",void 0,a)})},function(){d.push({frame:c.frame-b,notification:ra})});return d};a.prototype.expectObservable=function(b,d){var c=this;void 0===d&&(d=null);var f=[],g={actual:f,ready:!1};d=a.parseMarblesAsSubscriptions(d, this.runMode);var h=Infinity===d.subscribedFrame?0:d.subscribedFrame;d=d.unsubscribedFrame;var k;this.schedule(function(){k=b.subscribe(function(a){a=a instanceof t?c.materializeInnerObservable(a,c.frame):a;f.push({frame:c.frame,notification:G("N",a,void 0)})},function(a){f.push({frame:c.frame,notification:G("E",void 0,a)})},function(){f.push({frame:c.frame,notification:ra})})},h);Infinity!==d&&this.schedule(function(){return k.unsubscribe()},d);this.flushTests.push(g);var l=this.runMode;return{toBe:function(b, c,d){g.ready=!0;g.expected=a.parseMarbles(b,c,d,!0,l)},toEqual:function(a){g.ready=!0;g.expected=[];c.schedule(function(){k=a.subscribe(function(a){a=a instanceof t?c.materializeInnerObservable(a,c.frame):a;g.expected.push({frame:c.frame,notification:G("N",a,void 0)})},function(a){g.expected.push({frame:c.frame,notification:G("E",void 0,a)})},function(){g.expected.push({frame:c.frame,notification:ra})})},h)}}};a.prototype.expectSubscriptions=function(b){var c={actual:b,ready:!1};this.flushTests.push(c); var e=this.runMode;return{toBe:function(b){b="string"===typeof b?[b]:b;c.ready=!0;c.expected=b.map(function(b){return a.parseMarblesAsSubscriptions(b,e)}).filter(function(a){return Infinity!==a.subscribedFrame})}}};a.prototype.flush=function(){for(var a=this,d=this.hotObservables;0<d.length;)d.shift().setup();b.prototype.flush.call(this);this.flushTests=this.flushTests.filter(function(b){return b.ready?(a.assertDeepEqual(b.actual,b.expected),!1):!0})};a.parseMarblesAsSubscriptions=function(a,b){var c= this;void 0===b&&(b=!1);if("string"!==typeof a)return new va(Infinity);var d=y([],x(a));a=d.length;for(var g=-1,h=Infinity,k=Infinity,l=0,m=function(a){var e=l,f=function(a){e+=a*c.frameTimeFactor},m=d[a];switch(m){case " ":b||f(1);break;case "-":f(1);break;case "(":g=l;f(1);break;case ")":g=-1;f(1);break;case "^":if(Infinity!==h)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");h=-1<g?g:l;f(1);break;case "!":if(Infinity!==k)throw Error("found a second unsubscription point '!' in a subscription marble diagram. There can only be one."); k=-1<g?g:l;break;default:if(b&&m.match(/^[0-9]$/)&&(0===a||" "===d[a-1])){var q=d.slice(a).join("").match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(q){a+=q[0].length-1;var m=parseFloat(q[1]),p=void 0;switch(q[2]){case "ms":p=m;break;case "s":p=1E3*m;break;case "m":p=6E4*m}f(p/n.frameTimeFactor);break}}throw Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+m+"'.");}l=e;u=a},n=this,u,r=0;r<a;r++)m(r),r=u;return 0>k?new va(h):new va(h,k)};a.parseMarbles=function(a, b,e,f,g){var c=this;void 0===f&&(f=!1);void 0===g&&(g=!1);if(-1!==a.indexOf("!"))throw Error('conventional marble diagrams cannot have the unsubscription marker "!"');var d=y([],x(a)),l=d.length,m=[];a=g?a.replace(/^[ ]+/,"").indexOf("^"):a.indexOf("^");var n=-1===a?0:a*-this.frameTimeFactor,r="object"!==typeof b?function(a){return a}:function(a){return f&&b[a]instanceof lb?b[a].messages:b[a]},t=-1;a=function(a){var b=n,f=function(a){b+=a*c.frameTimeFactor},h=void 0,k=d[a];switch(k){case " ":g||f(1); break;case "-":f(1);break;case "(":t=n;f(1);break;case ")":t=-1;f(1);break;case "|":h=ra;f(1);break;case "^":f(1);break;case "#":h=G("E",void 0,e||"error");f(1);break;default:if(g&&k.match(/^[0-9]$/)&&(0===a||" "===d[a-1])){var l=d.slice(a).join("").match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(l){a+=l[0].length-1;var k=parseFloat(l[1]),q=void 0;switch(l[2]){case "ms":q=k;break;case "s":q=1E3*k;break;case "m":q=6E4*k}f(q/v.frameTimeFactor);break}}h=G("N",r(k),void 0);f(1)}h&&m.push({frame:-1<t?t:n, notification:h});n=b;w=a};for(var v=this,w,z=0;z<l;z++)a(z),z=w;return m};a.prototype.createAnimator=function(){var b=this;if(!this.runMode)throw Error("animate() must only be used in run mode");var d=0,e;return{animate:function(c){var d,f;if(e)throw Error("animate() must not be called more than once within run()");if(/[|#]/.test(c))throw Error("animate() must not complete or error");e=new Map;c=a.parseMarbles(c,void 0,void 0,void 0,!0);try{for(var k=D(c),l=k.next();!l.done;l=k.next())b.schedule(function(){var a, c,d=b.now(),f=Array.from(e.values());e.clear();try{for(var g=(a=void 0,D(f)),h=g.next();!h.done;h=g.next()){var k=h.value;k(d)}}catch(S){a={error:S}}finally{try{h&&!h.done&&(c=g.return)&&c.call(g)}finally{if(a)throw a.error;}}},l.value.frame)}catch(q){d={error:q}}finally{try{l&&!l.done&&(f=k.return)&&f.call(k)}finally{if(d)throw d.error;}}},delegate:{requestAnimationFrame:function(a){if(!e)throw Error("animate() was not called within run()");var b=++d;e.set(b,a);return b},cancelAnimationFrame:function(a){if(!e)throw Error("animate() was not called within run()"); e.delete(a)}}}};a.prototype.createDelegates=function(){var a=this,b=0,e=new Map,f=function(){var b=a.now(),c=Array.from(e.values()).filter(function(a){return a.due<=b}),d=c.filter(function(a){return"immediate"===a.type});if(0<d.length)d=d[0],c=d.handle,d=d.handler,e.delete(c),d();else if(d=c.filter(function(a){return"interval"===a.type}),0<d.length){var c=d[0],l=c.duration,d=c.handler;c.due=b+l;c.subscription=a.schedule(f,l);d()}else if(c=c.filter(function(a){return"timeout"===a.type}),0<c.length)d= c[0],c=d.handle,d=d.handler,e.delete(c),d();else throw Error("Expected a due immediate or interval");};return{immediate:{setImmediate:function(c){var d=++b;e.set(d,{due:a.now(),duration:0,handle:d,handler:c,subscription:a.schedule(f,0),type:"immediate"});return d},clearImmediate:function(a){var b=e.get(a);b&&(b.subscription.unsubscribe(),e.delete(a))}},interval:{setInterval:function(c,d){void 0===d&&(d=0);var g=++b;e.set(g,{due:a.now()+d,duration:d,handle:g,handler:c,subscription:a.schedule(f,d), type:"interval"});return g},clearInterval:function(a){var b=e.get(a);b&&(b.subscription.unsubscribe(),e.delete(a))}},timeout:{setTimeout:function(c,d){void 0===d&&(d=0);var g=++b;e.set(g,{due:a.now()+d,duration:d,handle:g,handler:c,subscription:a.schedule(f,d),type:"timeout"});return g},clearTimeout:function(a){var b=e.get(a);b&&(b.subscription.unsubscribe(),e.delete(a))}}}};a.prototype.run=function(b){var c=a.frameTimeFactor,e=this.maxFrames;a.frameTimeFactor=1;this.maxFrames=Infinity;this.runMode= !0;var f=this.createAnimator(),g=this.createDelegates();N.delegate=f.delegate;ea.delegate=this;ha.delegate=g.immediate;ga.delegate=g.interval;aa.delegate=g.timeout;wa.delegate=this;f={cold:this.createColdObservable.bind(this),hot:this.createHotObservable.bind(this),flush:this.flush.bind(this),time:this.createTime.bind(this),expectObservable:this.expectObservable.bind(this),expectSubscriptions:this.expectSubscriptions.bind(this),animate:f.animate};try{var h=b(f);this.flush();return h}finally{a.frameTimeFactor= c,this.maxFrames=e,this.runMode=!1,N.delegate=void 0,ea.delegate=void 0,ha.delegate=void 0,ga.delegate=void 0,aa.delegate=void 0,wa.delegate=void 0}};a.frameTimeFactor=10;return a}(Bc),Jd=Object.freeze({TestScheduler:Id}),cb=function(){return function(b,a,c,d){void 0===d&&(d="download_load");this.originalEvent=b;this.xhr=a;this.request=c;this.type=d;c=a.status;d=a.responseType;this.status=null!==c&&void 0!==c?c:0;this.responseType=null!==d&&void 0!==d?d:"";this.responseHeaders=(c=a.getAllResponseHeaders())? c.split("\n").reduce(function(a,b){var c=b.indexOf(": ");a[b.slice(0,c)]=b.slice(c+2);return a},{}):{};this.response=rc(a);a=b.total;this.loaded=b.loaded;this.total=a}}(),qa=M(function(b){return function(a,b,d){this.message=a;this.name="AjaxError";this.xhr=b;this.request=d;this.status=b.status;this.responseType=b.responseType;var c;try{c=rc(b)}catch(f){c=b.responseText}this.response=c}}),sc=function(){function b(a,b){qa.call(this,"ajax timeout",a,b);this.name="AjaxTimeoutError";return this}b.prototype= Object.create(qa.prototype);return b}(),pd=O(function(b){return b.response}),V=function(){var b=function(a){return qd("string"===typeof a?{url:a}:a)};b.get=jd;b.post=kd;b.delete=ld;b.put=md;b.patch=nd;b.getJSON=od;return b}(),sd="upload",uc="download",db="loadstart",eb="progress",tc="load",ud=Object.prototype.toString,Kd=Object.freeze({ajax:V,AjaxError:qa,AjaxTimeoutError:sc,AjaxResponse:cb}),Ld={url:"",deserializer:function(b){return JSON.parse(b.data)},serializer:function(b){return JSON.stringify(b)}}, Hc=function(b){function a(a,d){var c=b.call(this)||this;c._socket=null;if(a instanceof t)c.destination=d,c.source=a;else{d=c._config=W({},Ld);c._output=new C;if("string"===typeof a)d.url=a;else for(var f in a)a.hasOwnProperty(f)&&(d[f]=a[f]);if(!d.WebSocketCtor&&WebSocket)d.WebSocketCtor=WebSocket;else if(!d.WebSocketCtor)throw Error("no WebSocket constructor can be found");c.destination=new fa}return c}w(a,b);a.prototype.lift=function(b){var c=new a(this._config,this.destination);c.operator=b;c.source= this;return c};a.prototype._resetState=function(){this._socket=null;this.source||(this.destination=new fa);this._output=new C};a.prototype.multiplex=function(a,b,e){var c=this;return new t(function(d){try{c.next(a())}catch(k){d.error(k)}var f=c.subscribe(function(a){try{e(a)&&d.next(a)}catch(p){d.error(p)}},function(a){return d.error(a)},function(){return d.complete()});return function(){try{c.next(b())}catch(k){d.error(k)}f.unsubscribe()}})};a.prototype._connectSocket=function(){var a=this,b=this._config, e=b.WebSocketCtor,f=b.protocol,g=b.url,b=b.binaryType,h=this._output,k=null;try{this._socket=k=f?new e(g,f):new e(g),b&&(this._socket.binaryType=b)}catch(q){h.error(q);return}var l=new z(function(){a._socket=null;k&&1===k.readyState&&k.close()});k.onopen=function(b){if(a._socket){var c=a._config.openObserver;c&&c.next(b);b=a.destination;a.destination=sa.create(function(b){if(1===k.readyState)try{var c=a._config.serializer;k.send(c(b))}catch(Z){a.destination.error(Z)}},function(b){var c=a._config.closingObserver; c&&c.next(void 0);b&&b.code?k.close(b.code,b.reason):h.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }"));a._resetState()},function(){var b=a._config.closingObserver;b&&b.next(void 0);k.close();a._resetState()});b&&b instanceof fa&&l.add(b.subscribe(a.destination))}else k.close(),a._resetState()};k.onerror=function(b){a._resetState();h.error(b)};k.onclose=function(b){a._resetState();var c=a._config.closeObserver; c&&c.next(b);b.wasClean?h.complete():h.error(b)};k.onmessage=function(b){try{var c=a._config.deserializer;h.next(c(b))}catch(u){h.error(u)}}};a.prototype._subscribe=function(a){var b=this,c=this.source;if(c)return c.subscribe(a);this._socket||this._connectSocket();this._output.subscribe(a);a.add(function(){var a=b._socket;0===b._output.observers.length&&(!a||1!==a.readyState&&0!==a.readyState||a.close(),b._resetState())});return a};a.prototype.unsubscribe=function(){var a=this._socket;!a||1!==a.readyState&& 0!==a.readyState||a.close();this._resetState();b.prototype.unsubscribe.call(this)};return a}(gb),Md=Object.freeze({webSocket:function(b){return new Hc(b)},WebSocketSubject:Hc}),Nd=Object.freeze({fromFetch:function(b,a){void 0===a&&(a={});var c=a.selector,d=mb(a,["selector"]);return new t(function(a){var e=new AbortController,g=e.signal,h=!0,k=d.signal;if(k)if(k.aborted)e.abort();else{var m=function(){g.aborted||e.abort()};k.addEventListener("abort",m);a.add(function(){return k.removeEventListener("abort", m)})}var n=W(W({},d),{signal:g}),r=function(b){h=!1;a.error(b)};fetch(b,n).then(function(b){c?v(c(b)).subscribe(new l(a,void 0,function(){h=!1;a.complete()},r)):(h=!1,a.next(b),a.complete())}).catch(r);return function(){h&&e.abort()}})}});m.operators=Hd;m.testing=Jd;m.ajax=Kd;m.webSocket=Md;m.fetch=Nd;m.Observable=t;m.ConnectableObservable=Ea;m.observable=ba;m.animationFrames=function(b){return b?tb(b):wd};m.Subject=C;m.BehaviorSubject=xc;m.ReplaySubject=fa;m.AsyncSubject=Ta;m.asap=yc;m.asapScheduler= yc;m.async=ma;m.asyncScheduler=I;m.queue=zc;m.queueScheduler=zc;m.animationFrame=Ac;m.animationFrameScheduler=Ac;m.VirtualTimeScheduler=Bc;m.VirtualAction=jb;m.Scheduler=ib;m.Subscription=z;m.Subscriber=sa;m.Notification=Ha;m.pipe=Ma;m.noop=B;m.identity=E;m.isObservable=function(b){return!!b&&(b instanceof t||r(b.lift)&&r(b.subscribe))};m.lastValueFrom=function(b,a){var c="object"===typeof a;return new Promise(function(d,e){var f=!1,g;b.subscribe({next:function(a){g=a;f=!0},error:e,complete:function(){f? d(g):c?d(a.defaultValue):e(new U)}})})};m.firstValueFrom=function(b,a){var c="object"===typeof a;return new Promise(function(d,e){var f=new Fa({next:function(a){d(a);f.unsubscribe()},error:e,complete:function(){c?d(a.defaultValue):e(new U)}});b.subscribe(f)})};m.ArgumentOutOfRangeError=kb;m.EmptyError=U;m.NotFoundError=Cc;m.ObjectUnsubscribedError=wc;m.SequenceError=Dc;m.TimeoutError=Hb;m.UnsubscriptionError=Ga;m.bindCallback=function(b,a,c){return Aa(!1,b,a,c)};m.bindNodeCallback=function(b,a,c){return Aa(!0, b,a,c)};m.combineLatest=Mb;m.concat=ja;m.connectable=function(b,a){void 0===a&&(a=Dd);var c=null,d=a.connector;a=a.resetOnDisconnect;var e=void 0===a?!0:a,f=d();a=new t(function(a){return f.subscribe(a)});a.connect=function(){if(!c||c.closed)c=ka(function(){return b}).subscribe(f),e&&c.add(function(){return f=d()});return c};return a};m.defer=ka;m.empty=function(b){return b?Lc(b):F};m.forkJoin=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var a=ia(b),b=Kb(b),c=b.args,d=b.keys, b=new t(function(a){var b=c.length;if(b)for(var e=Array(b),h=b,k=b,m=function(b){var f=!1;v(c[b]).subscribe(new l(a,function(a){f||(f=!0,k--);e[b]=a},function(){--h&&f||(k||a.next(d?Lb(d,e):e),a.complete())}))},n=0;n<b;n++)m(n);else a.complete()});return a?b.pipe(Q(a)):b};m.from=ca;m.fromEvent=Wa;m.fromEventPattern=Qb;m.generate=function(b,a,c,d,e){function f(){var b;return Ja(this,function(d){switch(d.label){case 0:b=k,d.label=1;case 1:return a&&!a(b)?[3,4]:[4,h(b)];case 2:d.sent(),d.label=3;case 3:return b= c(b),[3,1];case 4:return[2]}})}var g,h,k;1===arguments.length?(k=b.initialState,a=b.condition,c=b.iterate,g=b.resultSelector,h=void 0===g?E:g,e=b.scheduler):(k=b,!d||xa(d)?(h=E,e=d):h=d);return ka(e?function(){return wb(f(),e)}:f)};m.iif=function(b,a,c){return ka(function(){return b()?a:c})};m.interval=Rb;m.merge=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var a=K(b),c="number"===typeof b[b.length-1]?b.pop():Infinity;return b.length?1===b.length?v(b[0]):Ba(c)(da(b,a)):F}; m.never=function(){return Ec};m.of=Ra;m.onErrorResumeNext=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return Sb(T(b))(F)};m.pairs=function(b,a){return ca(Object.entries(b),a)};m.partition=function(b,a,c){return[L(a,c)(v(b)),L(Tb(a,c))(v(b))]};m.race=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];b=T(b);return 1===b.length?v(b[0]):new t(Ub(b))};m.range=function(b,a,c){null==a&&(a=b,b=0);if(0>=a)return F;var d=a+b;return new t(c?function(a){var e=b;return c.schedule(function(){e< d?(a.next(e++),this.schedule()):a.complete()})}:function(a){for(var c=b;c<d&&!a.closed;)a.next(c++);a.complete()})};m.throwError=Fb;m.timer=la;m.using=function(b,a){return new t(function(c){var d=b(),e=a(d);(e?v(e):F).subscribe(c);return function(){d&&d.unsubscribe()}})};m.zip=Xa;m.scheduled=Cb;m.EMPTY=F;m.NEVER=Ec;m.config=P;Object.defineProperty(m,"__esModule",{value:!0})}); //# sourceMappingURL=rxjs.umd.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings