1 line
84 KiB
JavaScript
1 line
84 KiB
JavaScript
(function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("rxjs",["exports"],t):t(n.rxjs={})})(this,function(n){function s(n,t){function i(){this.constructor=n}if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ku(n,t);n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}function yf(n,t){var u={},i,r;for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&0>t.indexOf(i)&&(u[i]=n[i]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols)for(r=0,i=Object.getOwnPropertySymbols(n);r<i.length;r++)0>t.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(n,i[r])&&(u[i[r]]=n[i[r]]);return u}function al(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})}function ar(n,t){function f(n){return function(t){return s([n,t])}}function s(f){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,u&&(i=f[0]&2?u["return"]:f[0]?u["throw"]||((i=u["return"])&&i.call(u),0):u.next)&&!(i=i.call(u,f[1])).done)return i;(u=0,i)&&(f=[f[0]&2,i.value]);switch(f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++;u=f[1];f=[0];continue;case 7:f=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=0<i.length&&i[i.length-1])&&(6===f[0]||2===f[0])){r=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3]))r.label=f[1];else if(6===f[0]&&r.label<i[1])r.label=i[1],i=f;else if(i&&r.label<i[2])r.label=i[2],r.ops.push(f);else{i[2]&&r.ops.pop();r.trys.pop();continue}}f=t.call(n,r)}catch(o){f=[6,o];u=0}finally{e=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},e,u,i,o;return o={next:f(0),"throw":f(1),"return":f(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o}function v(n){var t="function"==typeof Symbol&&Symbol.iterator,i=t&&n[t],r=0;if(i)return i.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.");}function e(n,t){var i="function"==typeof Symbol&&n[Symbol.iterator],r,u,f;if(!i)return n;n=i.call(n);u=[];try{for(;(void 0===t||0<t--)&&!(r=n.next()).done;)u.push(r.value)}catch(e){f={error:e}}finally{try{r&&!r.done&&(i=n["return"])&&i.call(n)}finally{if(f)throw f.error;}}return u}function o(n,t){for(var i=0,u=t.length,r=n.length;i<u;i++,r++)n[r]=t[i];return n}function vt(n){return this instanceof vt?(this.v=n,this):new vt(n)}function vl(n,t,i){function e(n){s[n]&&(f[n]=function(t){return new Promise(function(i,f){1<r.push([n,t,i,f])||u(n,t)})})}function u(n,t){try{var i=s[n](t);i.value instanceof vt?Promise.resolve(i.value.v).then(h,c):o(r[0][2],i)}catch(u){o(r[0][3],u)}}function h(n){u("next",n)}function c(n){u("throw",n)}function o(n,t){(n(t),r.shift(),r.length)&&u(r[0][0],r[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=i.apply(n,t||[]),f,r=[];return f={},e("next"),e("throw"),e("return"),f[Symbol.asyncIterator]=function(){return this},f}function yl(n){function i(i){t[i]=n[i]&&function(t){return new Promise(function(r,f){t=n[i](t);u(r,f,t.done,t.value)})}}function u(n,t,i,r){Promise.resolve(r).then(function(t){n({value:t,done:i})},t)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n[Symbol.asyncIterator],t;return r?r.call(n):(n="function"==typeof v?v(n):n[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t)}function r(n){return"function"==typeof n}function rt(n){return n=n(function(n){Error.call(n);n.stack=Error().stack}),n.prototype=Object.create(Error.prototype),n.prototype.constructor=n}function tt(n,t){n&&(t=n.indexOf(t),0<=t&&n.splice(t,1))}function pf(n){return n instanceof l||n&&"closed"in n&&r(n.remove)&&r(n.add)&&r(n.unsubscribe)}function wf(n){bt.setTimeout(function(){var t=ut.onUnhandledError;if(t)t(n);else throw n;})}function h(){}function w(n,t,i){return{kind:n,value:t,error:i}}function bi(n){if(ut.useDeprecatedSynchronousErrorHandling){var t=!ct;if(t&&(ct={errorThrown:!1,error:null}),n(),t&&(t=ct,n=t.errorThrown,t=t.error,ct=null,n))throw t;}else n()}function vr(n){return function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];try{n.apply(void 0,o([],e(i)))}catch(r){ut.useDeprecatedSynchronousErrorHandling?ut.useDeprecatedSynchronousErrorHandling&&ct&&(ct.errorThrown=!0,ct.error=r):wf(r)}}}function bf(n){throw n;}function yr(n,t){var i=ut.onStoppedNotification;i&&bt.setTimeout(function(){return i(n,t)})}function a(n){return n}function pr(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return kf(t)}function kf(n){return 0===n.length?a:1===n.length?n[0]:function(t){return n.reduce(function(n,t){return t(n)},t)}}function df(n){var t;return null!==(t=null!==n&&void 0!==n?n:ut.Promise)&&void 0!==t?t:Promise}function pl(n){var t;return(t=n&&n instanceof ci)||(t=n&&r(n.next)&&r(n.error)&&r(n.complete)&&pf(n)),t}function i(n){return function(t){if(r(null===t||void 0===t?void 0:t.lift))return t.lift(function(t){try{return n(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type");}}function wr(){return i(function(n,i){var r=null,u;n._refCount++;u=new t(i,void 0,void 0,void 0,function(){if(!n||0>=n._refCount||0<--n._refCount)r=null;else{var t=n._connection,u=r;r=null;!t||u&&t!==u||t.unsubscribe();i.unsubscribe()}});n.subscribe(u);u.closed||(r=n.connect())})}function gf(n){var t=ft.schedule;return new u(function(i){var r=new l,u=n||cr,e=u.now(),f=function(o){var s=u.now();i.next({timestamp:n?s:o,elapsed:s-e});i.closed||r.add(t(f))};return r.add(t(f)),r})}function ne(n){return n in tf?(delete tf[n],!0):!1}function wl(n){return new u(function(t){return n.schedule(function(){return t.complete()})})}function ki(n){return n&&r(n.schedule)}function ti(n){if(r(n[n.length-1]))return n.pop()}function it(n){if(ki(n[n.length-1]))return n.pop()}function te(n){return Symbol.asyncIterator&&r(null===n||void 0===n?void 0:n[Symbol.asyncIterator])}function ie(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function re(n){return r(null===n||void 0===n?void 0:n[ef])}function ue(n){return vl(this,arguments,function(){var t,i,r,u;return ar(this,function(f){switch(f.label){case 0:t=n.getReader();f.label=1;case 1:f.trys.push([1,,9,10]);f.label=2;case 2:return[4,vt(t.read())];case 3:return i=f.sent(),r=i.value,(u=i.done)?[4,vt(void 0)]:[3,5];case 4:return[2,f.sent()];case 5:return[4,vt(r)];case 6:return[4,f.sent()];case 7:return f.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function f(n){if(n instanceof u)return n;if(null!=n){if(r(n[li]))return bl(n);if(ff(n))return kl(n);if(r(null===n||void 0===n?void 0:n.then))return dl(n);if(te(n))return fe(n);if(re(n))return gl(n);if(r(null===n||void 0===n?void 0:n.getReader))return fe(ue(n))}throw ie(n);}function bl(n){return new u(function(t){var i=n[li]();if(r(i.subscribe))return i.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable");})}function kl(n){return new u(function(t){for(var i=0;i<n.length&&!t.closed;i++)t.next(n[i]);t.complete()})}function dl(n){return new u(function(t){n.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,wf)})}function gl(n){return new u(function(t){var u,f,r,i;try{for(r=v(n),i=r.next();!i.done;i=r.next())if(t.next(i.value),t.closed)return}catch(e){u={error:e}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(u)throw u.error;}}t.complete()})}function fe(n){return new u(function(t){na(n,t).catch(function(n){return t.error(n)})})}function na(n,t){var r,i,u,f;return al(this,void 0,void 0,function(){var e,o;return ar(this,function(s){switch(s.label){case 0:s.trys.push([0,5,6,11]);r=yl(n);s.label=1;case 1:return[4,r.next()];case 2:if(i=s.sent(),i.done)return[3,4];if(e=i.value,t.next(e),t.closed)return[2];s.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=s.sent(),u={error:o},[3,11];case 6:return s.trys.push([6,,9,10]),i&&!i.done&&(f=r.return)?[4,f.call(r)]:[3,8];case 7:s.sent();s.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function y(n,t,i,r,u){return void 0===r&&(r=0),void 0===u&&(u=!1),t=t.schedule(function(){i();u?n.add(this.schedule(null,r)):this.unsubscribe()},r),n.add(t),u?void 0:t}function ii(n,r){return void 0===r&&(r=0),i(function(i,u){i.subscribe(new t(u,function(t){return y(u,n,function(){return u.next(t)},r)},function(){return y(u,n,function(){return u.complete()},r)},function(t){return y(u,n,function(){return u.error(t)},r)}))})}function ri(n,t){return void 0===t&&(t=0),i(function(i,r){r.add(n.schedule(function(){return i.subscribe(r)},t))})}function ta(n,t){return new u(function(i){var r=0;return t.schedule(function(){r===n.length?i.complete():(i.next(n[r++]),i.closed||this.schedule())})})}function ee(n,t){return new u(function(i){var u;return y(i,t,function(){u=n[ef]();y(i,t,function(){var n,t,r;try{n=u.next();t=n.value;r=n.done}catch(f){i.error(f);return}r?i.complete():i.next(t)},0,!0)}),function(){return r(null===u||void 0===u?void 0:u.return)&&u.return()}})}function oe(n,t){if(!n)throw Error("Iterable cannot be null");return new u(function(i){y(i,t,function(){var r=n[Symbol.asyncIterator]();y(i,t,function(){r.next().then(function(n){n.done?i.complete():i.next(n.value)})},0,!0)})})}function se(n,t){if(null!=n){if(r(n[li]))return f(n).pipe(ri(t),ii(t));if(ff(n))return ta(n,t);if(r(null===n||void 0===n?void 0:n.then))return f(n).pipe(ri(t),ii(t));if(te(n))return oe(n,t);if(re(n))return ee(n,t);if(r(null===n||void 0===n?void 0:n.getReader))return oe(ue(n),t)}throw ie(n);}function b(n,t){return t?se(n,t):f(n)}function br(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return n=it(t),b(t,n)}function he(n,t){var f=r(n)?n:function(){return n},i=function(n){return n.error(f())};return new u(t?function(n){return t.schedule(i,0,n)}:i)}function di(n,t){var i,r,u,f=n.kind,e=n.value;if(n=n.error,"string"!=typeof f)throw new TypeError('Invalid notification, missing "kind"');"N"===f?null===(i=t.next)||void 0===i?void 0:i.call(t,e):"E"===f?null===(r=t.error)||void 0===r?void 0:r.call(t,n):null===(u=t.complete)||void 0===u?void 0:u.call(t)}function kr(n){return n instanceof Date&&!isNaN(n)}function dr(n,r){var h;n=kr(n)?{first:n}:"number"==typeof n?{each:n}:n;var u=n.first,e=n.each,o=n.with,c=void 0===o?ia:o,o=n.scheduler,s=void 0===o?null!==r&&void 0!==r?r:nt:o;if(r=n.meta,h=void 0===r?null:r,null==u&&null==e)throw new TypeError("No timeout provided.");return i(function(n,i){var l,r,o=null,a=0,v=function(n){r=y(i,s,function(){try{l.unsubscribe();f(c({meta:h,lastValue:o,seen:a})).subscribe(i)}catch(n){i.error(n)}},n)};l=n.subscribe(new t(i,function(n){null===r||void 0===r?void 0:r.unsubscribe();a++;i.next(o=n);0<e&&v(e)},void 0,void 0,function(){(null===r||void 0===r?0:r.closed)||(null===r||void 0===r?void 0:r.unsubscribe());o=null}));v(null!=u?"number"==typeof u?u:+u-s.now():e)})}function ia(n){throw new ul(n);}function d(n,r){return i(function(i,u){var f=0;i.subscribe(new t(u,function(t){u.next(n.call(r,t,f++))}))})}function et(n){return d(function(t){return uv(t)?n.apply(void 0,o([],e(t))):n(t)})}function gi(n,t,i,r){if(i)if(ki(i))r=i;else return function(){for(var f=[],u=0;u<arguments.length;u++)f[u]=arguments[u];return gi(n,t,r).apply(this,f).pipe(et(i))};return r?function(){for(var u=[],i=0;i<arguments.length;i++)u[i]=arguments[i];return gi(n,t).apply(this,u).pipe(ri(r),ii(r))}:function(){for(var i,f,h=this,s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];return i=new gu,f=!0,new u(function(r){if(r=i.subscribe(r),f){var u=f=!1,c=!1;t.apply(h,o(o([],e(s)),[function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];if(n&&(t=r.shift(),null!=t)){i.error(t);return}i.next(1<r.length?r:r[0]);c=!0;u&&i.complete()}]));c&&i.complete();u=!0}return r})}}function ce(n){if(1===n.length){var t=n[0];if(fv(t))return{args:t,keys:null};if(t&&"object"==typeof t&&ev(t)===ov)return n=sv(t),{args:n.map(function(n){return t[n]}),keys:n}}return{args:n,keys:null}}function le(n,t){return n.reduce(function(n,i,r){return n[i]=t[r],n},{})}function ae(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var i=it(n),t=ti(n),n=ce(n),r=n.args,f=n.keys;return 0===r.length?b([],i):(i=new u(ve(r,i,f?function(n){return le(f,n)}:a)),t?i.pipe(et(t)):i)}function ve(n,i,r){return void 0===r&&(r=a),function(u){ye(i,function(){for(var f=n.length,o=Array(f),h=f,s=f,c=function(f){ye(i,function(){var e=!1;b(n[f],i).subscribe(new t(u,function(n){o[f]=n;e||(e=!0,s--);s||u.next(r(o.slice()))},function(){--h||u.complete()}))},u)},e=0;e<f;e++)c(e)},u)}}function ye(n,t,i){n?y(i,n,t):t()}function gr(n,i,r,u,e,o,s,h){var l=[],c=0,w=0,a=!1,p=function(n){return c<u?v(n):l.push(n)},v=function(n){o&&i.next(n);c++;var h=!1;f(r(n,w++)).subscribe(new t(i,function(n){null===e||void 0===e?void 0:e(n);o?p(n):i.next(n)},function(){h=!0},void 0,function(){if(h)try{c--;for(var n=function(){var n=l.shift();s?y(i,s,function(){return v(n)}):v(n)};l.length&&c<u;)n();!a||l.length||c||i.complete()}catch(t){i.error(t)}}))};return n.subscribe(new t(i,p,function(){a=!0;!a||l.length||c||i.complete()})),function(){null===h||void 0===h?void 0:h()}}function p(n,t,u){return(void 0===u&&(u=Infinity),r(t))?p(function(i,r){return d(function(n,u){return t(i,n,r,u)})(f(n(i,r)))},u):("number"==typeof t&&(u=t),i(function(t,i){return gr(t,i,n,u)}))}function ui(n){return void 0===n&&(n=Infinity),p(a,n)}function nr(){return ui(1)}function fi(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return nr()(b(t,it(t)))}function ei(n){return new u(function(t){f(n()).subscribe(t)})}function nu(n,t,i,o){if(r(i)&&(o=i,i=void 0),o)return nu(n,t,i).pipe(et(o));o=e(fa(n)?lv.map(function(r){return function(u){return n[r](t,u,i)}}):ra(n)?cv.map(pe(n,t)):ua(n)?av.map(pe(n,t)):[],2);var s=o[0],h=o[1];if(!s&&ff(n))return p(function(n){return nu(n,t,i)})(f(n));if(!s)throw new TypeError("Invalid event target");return new u(function(n){var t=function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.next(1<t.length?t:t[0])};return s(t),function(){return h(t)}})}function pe(n,t){return function(i){return function(r){return n[i](t,r)}}}function ra(n){return r(n.addListener)&&r(n.removeListener)}function ua(n){return r(n.on)&&r(n.off)}function fa(n){return r(n.addEventListener)&&r(n.removeEventListener)}function we(n,t,i){return i?we(n,t).pipe(et(i)):new u(function(i){var u=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return i.next(1===n.length?n[0]:n)},f=n(u);if(r(t))return function(){return t(u,f)}})}function yt(n,t,i){void 0===n&&(n=0);void 0===i&&(i=yi);var r=-1;return null!=t&&(ki(t)?i=t:r=t),new u(function(t){var u=kr(n)?+n-i.now():n,f;return 0>u&&(u=0),f=0,i.schedule(function(){t.closed||(t.next(f++),0<=r?this.schedule(void 0,r):t.complete())},u)})}function be(n,t){return void 0===n&&(n=0),void 0===t&&(t=nt),0>n&&(n=0),yt(n,n,t)}function ot(n){return 1===n.length&&vv(n[0])?n[0]:n}function ke(){for(var u,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return u=ot(r),i(function(n,i){var s=o([n],e(u)),r=function(){var n,u;if(!i.closed)if(0<s.length){n=void 0;try{n=f(s.shift())}catch(e){r();return}u=new t(i,void 0,h,h);i.add(n.subscribe(u));u.add(r)}else i.complete()};r()})}function de(n,t){return function(i,r){return!n.call(t,i,r)}}function g(n,r){return i(function(i,u){var f=0;i.subscribe(new t(u,function(t){return n.call(r,t,f++)&&u.next(t)}))})}function ge(n){return function(i){for(var r=[],e=function(u){r.push(f(n[u]).subscribe(new t(i,function(n){if(r){for(var t=0;t<r.length;t++)t!==u&&r[t].unsubscribe();r=null}i.next(n)})))},u=0;r&&!i.closed&&u<n.length;u++)e(u)}}function tu(){for(var s,n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return s=ti(r),n=ot(r),n.length?new u(function(i){var r=n.map(function(){return[]}),u=n.map(function(){return!1}),c,h;for(i.add(function(){r=u=null}),c=function(h){f(n[h]).subscribe(new t(i,function(n){r[h].push(n);r.every(function(n){return n.length})&&(n=r.map(function(n){return n.shift()}),i.next(s?s.apply(void 0,o([],e(n))):n),r.some(function(n,t){return!n.length&&u[t]})&&i.complete())},function(){u[h]=!0;r[h].length||i.complete()}))},h=0;!i.closed&&h<n.length;h++)c(h);return function(){r=u=null}}):k}function iu(n){return i(function(i,r){var e=!1,o=null,u=null,s=!1,h=function(){if(null===u||void 0===u?void 0:u.unsubscribe(),u=null,e){e=!1;var n=o;o=null;r.next(n)}s&&r.complete()},c=function(){u=null;s&&r.complete()};i.subscribe(new t(r,function(i){e=!0;o=i;u||f(n(i)).subscribe(u=new t(r,h,c))},function(){s=!0;e&&u&&!u.closed||r.complete()}))})}function no(n,t){return void 0===t&&(t=yi),iu(function(){return yt(n,t)})}function to(n){return i(function(i,r){var u=[];return i.subscribe(new t(r,function(n){return u.push(n)},function(){r.next(u);r.complete()})),n.subscribe(new t(r,function(){var n=u;u=[];r.next(n)},h)),function(){u=null}})}function io(n,r){return void 0===r&&(r=null),r=null!==r&&void 0!==r?r:n,i(function(i,u){var f=[],e=0;i.subscribe(new t(u,function(t){var a,p,y,w,i=null,c,s,o,l,h;0==e++%r&&f.push([]);try{for(c=v(f),s=c.next();!s.done;s=c.next())o=s.value,o.push(t),n<=o.length&&(i=null!==i&&void 0!==i?i:[],i.push(o))}catch(b){a={error:b}}finally{try{s&&!s.done&&(p=c.return)&&p.call(c)}finally{if(a)throw a.error;}}if(i)try{for(l=v(i),h=l.next();!h.done;h=l.next())o=h.value,tt(f,o),u.next(o)}catch(b){y={error:b}}finally{try{h&&!h.done&&(w=l.return)&&w.call(l)}finally{if(y)throw y.error;}}},function(){var i,r,t,n;try{for(t=v(f),n=t.next();!n.done;n=t.next())u.next(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=t.return)&&r.call(t)}finally{if(i)throw i.error;}}u.complete()},void 0,function(){f=null}))})}function ro(n){for(var f,e,r=[],u=1;u<arguments.length;u++)r[u-1]=arguments[u];var s=null!==(f=it(r))&&void 0!==f?f:nt,o=null!==(e=r[0])&&void 0!==e?e:null,h=r[1]||Infinity;return i(function(i,r){var u=[],c=!1,a=function(n){var t=n.buffer;n.subs.unsubscribe();tt(u,n);r.next(t);c&&e()},e=function(){var t,i;u&&(t=new l,r.add(t),i={buffer:[],subs:t},u.push(i),y(t,s,function(){return a(i)},n))},f;null!==o&&0<=o?y(r,s,e,o,!0):c=!0;e();f=new t(r,function(n){var r,o,s=u.slice(),i,t,f,e;try{for(i=v(s),t=i.next();!t.done;t=i.next())f=t.value,e=f.buffer,e.push(n),h<=e.length&&a(f)}catch(c){r={error:c}}finally{try{t&&!t.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error;}}},function(){for(;null===u||void 0===u?0:u.length;)r.next(u.shift().buffer);null===f||void 0===f?void 0:f.unsubscribe();r.complete();r.unsubscribe()},void 0,function(){return u=null});i.subscribe(f)})}function uo(n,r){return i(function(i,u){var e=[];f(n).subscribe(new t(u,function(n){var i=[],o;e.push(i);o=new l;o.add(f(r(n)).subscribe(new t(u,function(){tt(e,i);u.next(i);o.unsubscribe()},h)))},h));i.subscribe(new t(u,function(n){var r,u,i,t;try{for(i=v(e),t=i.next();!t.done;t=i.next())t.value.push(n)}catch(f){r={error:f}}finally{try{t&&!t.done&&(u=i.return)&&u.call(i)}finally{if(r)throw r.error;}}},function(){for(;0<e.length;)u.next(e.shift());u.complete()}))})}function fo(n){return i(function(i,r){var u=null,e=null,o=function(){null===e||void 0===e?void 0:e.unsubscribe();var i=u;u=[];i&&r.next(i);f(n()).subscribe(e=new t(r,o,h))};o();i.subscribe(new t(r,function(n){if(null!==u&&void 0!==u)return u.push(n)},function(){u&&r.next(u);r.complete()},void 0,function(){return u=e=null}))})}function ru(n){return i(function(i,r){var u=null,o=!1,e,u=i.subscribe(new t(r,void 0,void 0,function(t){e=f(n(t,ru(n)(i)));u?(u.unsubscribe(),u=null,e.subscribe(r)):o=!0}));o&&(u.unsubscribe(),u=null,e.subscribe(r))})}function eo(n,i,r,u,f){return function(e,o){var h=r,s=i,c=0;e.subscribe(new t(o,function(t){var i=c++;s=h?n(s,t,i):(h=!0,t);u&&o.next(s)},f&&function(){h&&o.next(s);o.complete()}))}}function pt(n,t){return i(eo(n,t,2<=arguments.length,!1,!0))}function uu(){return i(function(n,t){pt(yv,[])(n).subscribe(t)})}function oo(n,t){return pr(uu(),p(function(t){return n(t)}),t?et(t):a)}function tr(n){return oo(ae,n)}function fu(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(n=ti(t))?pr(fu.apply(void 0,o([],e(t))),et(n)):i(function(n,i){ve(o([n],e(ot(t))))(i)})}function so(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return fu.apply(void 0,o([],e(t)))}function ir(n,t){return r(t)?p(n,t,1):p(n,1)}function ho(n,t){return r(t)?ir(function(){return n},t):ir(function(){return n})}function co(){for(var r,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r=it(t),i(function(n,i){nr()(b(o([n],e(t)),r)).subscribe(i)})}function lo(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return co.apply(void 0,o([],e(t)))}function ea(n){return new u(function(t){return n.subscribe(t)})}function rr(n,t){void 0===t&&(t=pv);var r=t.connector;return i(function(t,i){var u=r();b(n(ea(u))).subscribe(i);i.add(t.subscribe(u))})}function ao(n){return pt(function(t,i,r){return!n||n(i,r)?t+1:t},0)}function vo(n){return i(function(i,r){var o=!1,e=null,u=null,s=function(){if(null===u||void 0===u?void 0:u.unsubscribe(),u=null,o){o=!1;var n=e;e=null;r.next(n)}};i.subscribe(new t(r,function(i){null===u||void 0===u?void 0:u.unsubscribe();o=!0;e=i;u=new t(r,s,h);f(n(i)).subscribe(u)},function(){s();r.complete()},void 0,function(){e=u=null}))})}function yo(n,r){return void 0===r&&(r=nt),i(function(i,u){function h(){var t=o+n,i=r.now();i<t?(f=this.schedule(void 0,t-i),u.add(f)):s()}var f=null,e=null,o=null,s=function(){if(f){f.unsubscribe();f=null;var n=e;e=null;u.next(n)}};i.subscribe(new t(u,function(t){e=t;o=r.now();f||(f=r.schedule(h,n),u.add(f))},function(){s();u.complete()},void 0,function(){e=f=null}))})}function oi(n){return i(function(i,r){var u=!1;i.subscribe(new t(r,function(n){u=!0;r.next(n)},function(){u||r.next(n);r.complete()}))})}function st(n){return 0>=n?function(){return k}:i(function(i,r){var u=0;i.subscribe(new t(r,function(t){++u<=n&&(r.next(t),n<=u&&r.complete())}))})}function eu(){return i(function(n,i){n.subscribe(new t(i,h))})}function ou(n){return d(function(){return n})}function ur(n,t){return t?function(i){return fi(t.pipe(st(1),eu()),i.pipe(ur(n)))}:p(function(t,i){return n(t,i).pipe(st(1),ou(t))})}function po(n,t){void 0===t&&(t=nt);var i=yt(n,t);return ur(function(){return i})}function wo(){return i(function(n,i){n.subscribe(new t(i,function(n){return di(n,i)}))})}function bo(n,r){return i(function(i,u){var f=new Set;i.subscribe(new t(u,function(t){var i=n?n(t):t;f.has(i)||(f.add(i),u.next(t))}));null===r||void 0===r?void 0:r.subscribe(new t(u,function(){return f.clear()},h))})}function su(n,r){return void 0===r&&(r=a),n=null!==n&&void 0!==n?n:oa,i(function(i,u){var f,e=!0;i.subscribe(new t(u,function(t){var i=r(t);(e||!n(f,i))&&(e=!1,f=i,u.next(t))}))})}function oa(n,t){return n===t}function ko(n,t){return su(function(i,r){return t?t(i[n],r[n]):i[n]===r[n]})}function si(n){return void 0===n&&(n=sa),i(function(i,r){var u=!1;i.subscribe(new t(r,function(n){u=!0;r.next(n)},function(){return u?r.complete():r.error(n())}))})}function sa(){return new lt}function go(n,t){if(0>n)throw new sf;var i=2<=arguments.length;return function(r){return r.pipe(g(function(t,i){return i===n}),st(1),i?oi(t):si(function(){return new sf}))}}function ns(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(n){return fi(n,br.apply(void 0,o([],e(t))))}}function ts(n,r){return i(function(i,u){var f=0;i.subscribe(new t(u,function(t){n.call(r,t,f++,i)||(u.next(!1),u.complete())},function(){u.next(!0);u.complete()}))})}function fr(){return i(function(n,i){var u=!1,r=null;n.subscribe(new t(i,function(n){r||(r=f(n).subscribe(new t(i,void 0,function(){r=null;u&&i.complete()})))},function(){u=!0;r||i.complete()}))})}function hu(n,r){return r?function(t){return t.pipe(hu(function(t,i){return f(n(t,i)).pipe(d(function(n,u){return r(t,n,i,u)}))}))}:i(function(i,r){var o=0,u=null,e=!1;i.subscribe(new t(r,function(i){u||(u=new t(r,void 0,function(){u=null;e&&r.complete()}),f(n(i,o++)).subscribe(u))},function(){e=!0;u||r.complete()}))})}function is(n,t,r){return void 0===t&&(t=Infinity),t=1>(t||0)?Infinity:t,i(function(i,u){return gr(i,u,n,t,void 0,!0,r)})}function rs(n){return i(function(t,i){try{t.subscribe(i)}finally{i.add(n)}})}function us(n,t){return i(fs(n,t,"value"))}function fs(n,i,r){var u="index"===r;return function(r,f){var e=0;r.subscribe(new t(f,function(t){var o=e++;n.call(i,t,o,r)&&(f.next(u?o:t),f.complete())},function(){f.next(u?-1:void 0);f.complete()}))}}function es(n,t){return i(fs(n,t,"index"))}function os(n,t){var i=2<=arguments.length;return function(r){return r.pipe(n?g(function(t,i){return n(t,i,r)}):a,st(1),i?oi(t):si(function(){return new lt}))}}function ss(n,r,e,o){return i(function(i,s){function p(n,t){var i=new u(function(n){h.activeGroups++;var i=t.subscribe(n);return function(){i.unsubscribe();0==--h.activeGroups&&h.teardownAttempted&&h.unsubscribe()}});return i.key=n,i}var a;r&&"function"!=typeof r?(e=r.duration,a=r.element,o=r.connector):a=r;var l=new Map,v=function(n){l.forEach(n);n(s)},y=function(n){return v(function(t){return t.error(n)})},h=new wv(s,function(i){var u,r,w,v;try{u=n(i);r=l.get(u);r||(l.set(u,r=o?o():new c),w=p(u,r),s.next(w),e&&(v=new t(r,function(){r.complete();null===v||void 0===v?void 0:v.unsubscribe()},void 0,void 0,function(){return l.delete(u)}),h.add(f(e(w)).subscribe(v))));r.next(a?a(i):i)}catch(b){y(b)}},function(){return v(function(n){return n.complete()})},y,function(){return l.clear()});i.subscribe(h)})}function hs(){return i(function(n,i){n.subscribe(new t(i,function(){i.next(!1);i.complete()},function(){i.next(!0);i.complete()}))})}function cu(n){return 0>=n?function(){return k}:i(function(i,r){var u=[];i.subscribe(new t(r,function(t){u.push(t);n<u.length&&u.shift()},function(){var i,f,t,n;try{for(t=v(u),n=t.next();!n.done;n=t.next())r.next(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(f=t.return)&&f.call(t)}finally{if(i)throw i.error;}}r.complete()},void 0,function(){u=null}))})}function cs(n,t){var i=2<=arguments.length;return function(r){return r.pipe(n?g(function(t,i){return n(t,i,r)}):a,cu(1),i?oi(t):si(function(){return new lt}))}}function ls(){return i(function(n,i){n.subscribe(new t(i,function(n){i.next(lr.createNext(n))},function(){i.next(lr.createComplete());i.complete()},function(n){i.next(lr.createError(n));i.complete()}))})}function as(n){return pt(r(n)?function(t,i){return 0<n(t,i)?t:i}:function(n,t){return n>t?n:t})}function vs(n,t,i){return(void 0===i&&(i=Infinity),r(t))?p(function(){return n},t,i):("number"==typeof t&&(i=t),p(function(){return n},i))}function ys(n,t,r){return void 0===r&&(r=Infinity),i(function(i,u){var f=t;return gr(i,u,function(t,i){return n(f,t,i)},r,function(n){f=n},!1,void 0,function(){return f=null})})}function ps(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var r=it(n),u="number"==typeof n[n.length-1]?n.pop():Infinity,n=ot(n);return i(function(t,i){ui(u)(b(o([t],e(n)),r)).subscribe(i)})}function ws(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ps.apply(void 0,o([],e(t)))}function bs(n){return pt(r(n)?function(t,i){return 0>n(t,i)?t:i}:function(n,t){return n<t?n:t})}function er(n,t){var i=r(n)?n:function(){return n};return r(t)?rr(t,{connector:i}):function(n){return new hr(n,i)}}function ks(){return i(function(n,i){var r,u=!1;n.subscribe(new t(i,function(n){var t=r;r=n;u&&i.next([t,n]);u=!0}))})}function ds(){for(var i,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(i=t.length,0===i)throw Error("list of properties cannot be empty.");return d(function(n){var r=n;for(n=0;n<i;n++)if(r=null===r||void 0===r?void 0:r[t[n]],"undefined"==typeof r)return;return r})}function gs(n){return n?function(t){return rr(n)(t)}:function(n){return er(new c)(n)}}function nh(n){return function(t){var i=new kc(n);return new hr(t,function(){return i})}}function th(){return function(n){var t=new gu;return new hr(n,function(){return t})}}function ih(n,t,i,u){i&&!r(i)&&(u=i);var f=r(i)?i:void 0;return function(i){return er(new dt(n,t,u),f)(i)}}function lu(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.length?i(function(n,i){ge(o([n],e(t)))(i)}):a}function rh(n){return void 0===n&&(n=Infinity),0>=n?function(){return k}:i(function(i,r){var e=0,u,f=function(){var o=!1;u=i.subscribe(new t(r,void 0,function(){++e<n?u?(u.unsubscribe(),u=null,f()):o=!0:r.complete()}));o&&(u.unsubscribe(),u=null,f())};f()})}function uh(n){return i(function(i,r){var u,e=!1,f,o=!1,s=!1,l=function(){return f||(f=new c,n(f).subscribe(new t(r,function(){u?h():e=!0},function(){o=!0;s&&o&&r.complete()}))),f},h=function(){s=!1;u=i.subscribe(new t(r,void 0,function(){(s=!0,o)&&(r.complete(),!0)||l().next()}));e&&(u.unsubscribe(),u=null,e=!1,h())};h()})}function fh(n){var o;void 0===n&&(n=Infinity);n=n&&"object"==typeof n?n:{count:n};var u=n.count,e=void 0===u?Infinity:u,r=n.delay;return n=n.resetOnSuccess,o=void 0===n?!1:n,0>=e?a:i(function(n,i){var s=0,u,h=function(){var c=!1;u=n.subscribe(new t(i,function(n){o&&(s=0);i.next(n)},void 0,function(n){var o,l;s++<e?(o=function(){u?(u.unsubscribe(),u=null,h()):c=!0},null!=r?(n="number"==typeof r?yt(r):f(r(n,s)),l=new t(i,function(){l.unsubscribe();o()},function(){i.complete()}),n.subscribe(l)):o()):i.error(n)}));c&&(u.unsubscribe(),u=null,h())};h()})}function eh(n){return i(function(i,r){var f,e=!1,u,o=function(){f=i.subscribe(new t(r,void 0,void 0,function(i){u||(u=new c,n(u).subscribe(new t(r,function(){return f?o():e=!0})));u&&u.next(i)}));e&&(f.unsubscribe(),f=null,e=!1,o())};o()})}function au(n){return i(function(i,r){var u=!1,f=null;i.subscribe(new t(r,function(n){u=!0;f=n}));n.subscribe(new t(r,function(){if(u){u=!1;var n=f;f=null;r.next(n)}},h))})}function oh(n,t){return void 0===t&&(t=nt),au(be(n,t))}function vu(n,t){return i(eo(n,t,2<=arguments.length,!0))}function sh(n,r){return void 0===r&&(r=function(n,t){return n===t}),i(function(i,u){var f={buffer:[],complete:!1},e={buffer:[],complete:!1},o=function(n,i){var f=new t(u,function(t){var f=i.buffer,e=i.complete;0===f.length?e?(u.next(!1),u.complete()):n.buffer.push(t):r(t,f.shift())||(u.next(!1),u.complete())},function(){n.complete=!0;var t=i.buffer;i.complete&&(u.next(0===t.length),u.complete());null===f||void 0===f?void 0:f.unsubscribe()});return f};i.subscribe(o(f,e));n.subscribe(o(e,f))})}function yu(n){var r;void 0===n&&(n={});var t=n.connector,u=void 0===t?function(){return new c}:t,t=n.resetOnError,f=void 0===t?!0:t,t=n.resetOnComplete,e=void 0===t?!0:t;return n=n.resetOnRefCountZero,r=void 0===n?!0:n,function(n){var o=null,t=null,s=null,a=0,h=!1,c=!1,l=function(){null===t||void 0===t?void 0:t.unsubscribe();t=null},v=function(){l();o=s=null;h=c=!1},y=function(){var n=o;v();null===n||void 0===n?void 0:n.unsubscribe()};return i(function(n,i){a++;c||h||l();var p=s=null!==s&&void 0!==s?s:u();i.add(function(){a--;0!==a||c||h||(t=pu(y,r))});p.subscribe(i);o||(o=new sr({next:function(n){return p.next(n)},error:function(n){c=!0;l();t=pu(v,f,n);p.error(n)},complete:function(){h=!0;l();t=pu(v,e);p.complete()}}),b(n).subscribe(o))})(n)}}function pu(n,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return!0===t?(n(),null):!1===t?null:t.apply(void 0,o([],e(r))).pipe(st(1)).subscribe(function(){return n()})}function hh(n,t,i){var r,u,f,e=!1;return n&&"object"==typeof n?(f=null!==(r=n.bufferSize)&&void 0!==r?r:Infinity,t=null!==(u=n.windowTime)&&void 0!==u?u:Infinity,e=!!n.refCount,i=n.scheduler):f=null!==n&&void 0!==n?n:Infinity,yu({connector:function(){return new dt(f,t,i)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:e})}function ch(n){return i(function(i,r){var u=!1,f,e=!1,o=0;i.subscribe(new t(r,function(t){e=!0;(!n||n(t,o++,i))&&(u&&r.error(new rl("Too many matching values")),u=!0,f=t)},function(){u?(r.next(f),r.complete()):r.error(e?new il("No matching values"):new lt)}))})}function lh(n){return g(function(t,i){return n<=i})}function ah(n){return 0>=n?a:i(function(i,r){var u=Array(n),f=0;return i.subscribe(new t(r,function(t){var i=f++,e;i<n?u[i]=t:(i=i%n,e=u[i],u[i]=t,r.next(e))})),function(){u=null}})}function vh(n){return i(function(i,r){var e=!1,u=new t(r,function(){null===u||void 0===u?void 0:u.unsubscribe();e=!0},h);f(n).subscribe(u);i.subscribe(new t(r,function(n){return e&&r.next(n)}))})}function yh(n){return i(function(i,r){var u=!1,f=0;i.subscribe(new t(r,function(t){return(u||(u=!n(t,f++)))&&r.next(t)}))})}function ph(){for(var r,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return r=it(n),i(function(t,i){(r?fi(n,t,r):fi(n,t)).subscribe(i)})}function wt(n,r){return i(function(i,u){var e=null,s=0,o=!1;i.subscribe(new t(u,function(i){null===e||void 0===e?void 0:e.unsubscribe();var c=0,h=s++;f(n(i,h)).subscribe(e=new t(u,function(n){return u.next(r?r(i,n,h,c++):n)},function(){e=null;o&&!e&&u.complete()}))},function(){(o=!0,e)||u.complete()}))})}function wh(){return wt(a)}function bh(n,t){return r(t)?wt(function(){return n},t):wt(function(){return n})}function kh(n,t){return i(function(i,r){var u=t;return wt(function(t,i){return n(u,t,i)},function(n,t){return u=t,t})(i).subscribe(r),function(){u=null}})}function dh(n){return i(function(i,r){f(n).subscribe(new t(r,function(){return r.complete()},h));r.closed||i.subscribe(r)})}function gh(n,r){return void 0===r&&(r=!1),i(function(i,u){var f=0;i.subscribe(new t(u,function(t){var i=n(t,f++);(i||r)&&u.next(t);i||u.complete()}))})}function nc(n,u,f){var e=r(n)||u||f?{next:n,error:u,complete:f}:n;return e?i(function(n,i){var u,r;null===(u=e.subscribe)||void 0===u?void 0:u.call(e);r=!0;n.subscribe(new t(i,function(n){var t;null===(t=e.next)||void 0===t?void 0:t.call(e,n);i.next(n)},function(){var n;r=!1;null===(n=e.complete)||void 0===n?void 0:n.call(e);i.complete()},function(n){var t;r=!1;null===(t=e.error)||void 0===t?void 0:t.call(e,n);i.error(n)},function(){var n,t;r&&(null===(n=e.unsubscribe)||void 0===n?void 0:n.call(e));null===(t=e.finalize)||void 0===t?void 0:t.call(e)}))}):a}function wu(n,r){r=void 0===r?el:r;var e=r.leading,u=r.trailing;return i(function(i,r){var s=!1,c=null,o=null,h=!1,l=function(){null===o||void 0===o?void 0:o.unsubscribe();o=null;u&&(v(),h&&r.complete())},a=function(){o=null;h&&r.complete()},v=function(){if(s){s=!1;var i=c;c=null;r.next(i);h||(o=f(n(i)).subscribe(new t(r,l,a)))}};i.subscribe(new t(r,function(i){s=!0;c=i;(!o||o.closed)&&(e?v():o=f(n(i)).subscribe(new t(r,l,a)))},function(){h=!0;u&&s&&o&&!o.closed||r.complete()}))})}function tc(n,t,i){void 0===t&&(t=nt);void 0===i&&(i=el);var r=yt(n,t);return wu(function(){return r},i)}function ic(n){return void 0===n&&(n=yi),function(t){return ei(function(){return t.pipe(vu(function(t,i){return t=t.current,{value:i,current:n.now(),last:t}},{current:n.now(),value:void 0,last:void 0}),d(function(n){return new bv(n.value,n.current-n.last)}))})}}function rc(n,t,i){var r,u;if(i=null!==i&&void 0!==i?i:yi,kr(n)?r=n:"number"==typeof n&&(u=n),t)n=function(){return t};else throw new TypeError("No observable provided to switch to");if(null==r&&null==u)throw new TypeError("No timeout provided.");return dr({first:r,each:u,scheduler:i,"with":n})}function uc(n){return void 0===n&&(n=kt),d(function(t){return{value:t,timestamp:n.now()}})}function fc(n){return i(function(i,r){var u=new c,f;return r.next(u.asObservable()),f=function(n){u.error(n);r.error(n)},i.subscribe(new t(r,function(n){if(null!==u&&void 0!==u)return u.next(n)},function(){u.complete();r.complete()},f)),n.subscribe(new t(r,function(){u.complete();r.next(u=new c)},h,f)),function(){null===u||void 0===u?void 0:u.unsubscribe();u=null}})}function ec(n,r){void 0===r&&(r=0);var u=0<r?r:n;return i(function(i,r){var f=[new c],e=0;r.next(f[0].asObservable());i.subscribe(new t(r,function(t){var s,h,o,i;try{for(o=v(f),i=o.next();!i.done;i=o.next())i.value.next(t)}catch(l){s={error:l}}finally{try{i&&!i.done&&(h=o.return)&&h.call(o)}finally{if(s)throw s.error;}}t=e-n+1;0<=t&&0==t%u&&f.shift().complete();0==++e%u&&(t=new c,f.push(t),r.next(t.asObservable()))},function(){for(;0<f.length;)f.shift().complete();r.complete()},function(n){for(;0<f.length;)f.shift().error(n);r.error(n)},function(){f=null}))})}function oc(n){for(var f,e,r=[],u=1;u<arguments.length;u++)r[u-1]=arguments[u];var s=null!==(f=it(r))&&void 0!==f?f:nt,o=null!==(e=r[0])&&void 0!==e?e:null,h=r[1]||Infinity;return i(function(i,r){var u=[],a=!1,v=function(n){var t=n.subs;n.window.complete();t.unsubscribe();tt(u,n);a&&f()},f=function(){var t,i,f;u&&(t=new l,r.add(t),i=new c,f={window:i,subs:t,seen:0},u.push(f),r.next(i.asObservable()),y(t,s,function(){return v(f)},n))},e;return null!==o&&0<=o?y(r,s,f,o,!0):a=!0,f(),e=function(n){u.slice().forEach(function(t){return n(t.window)});n(r);r.unsubscribe()},i.subscribe(new t(r,function(n){u.slice().forEach(function(t){t.window.next(n);h<=++t.seen&&v(t)})},function(){return e(function(n){return n.complete()})},function(n){return e(function(t){return t.error(n)})})),function(){u=null}})}function sc(n,r){return i(function(i,u){var e=[],o=function(n){for(;0<e.length;)e.shift().error(n);u.error(n)};f(n).subscribe(new t(u,function(n){var i=new c,s,a;e.push(i);s=new l;try{a=f(r(n))}catch(v){o(v);return}u.next(i.asObservable());s.add(a.subscribe(new t(u,function(){tt(e,i);i.complete();s.unsubscribe()},h,o)))},h));i.subscribe(new t(u,function(n){var r,u,f=e.slice(),i,t;try{for(i=v(f),t=i.next();!t.done;t=i.next())t.value.next(n)}catch(o){r={error:o}}finally{try{t&&!t.done&&(u=i.return)&&u.call(i)}finally{if(r)throw r.error;}}},function(){for(;0<e.length;)e.shift().complete();u.complete()},o,function(){for(;0<e.length;)e.shift().unsubscribe()}))})}function hc(n){return i(function(i,r){var u,e,o=function(n){u.error(n);r.error(n)},s=function(){null===e||void 0===e?void 0:e.unsubscribe();null===u||void 0===u?void 0:u.complete();u=new c;r.next(u.asObservable());var i;try{i=f(n())}catch(h){o(h);return}i.subscribe(e=new t(r,s,s,o))};s();i.subscribe(new t(r,function(n){return u.next(n)},function(){u.complete();r.complete()},o,function(){null===e||void 0===e?void 0:e.unsubscribe();u=null}))})}function cc(){for(var u,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u=ti(n),i(function(i,r){for(var v=n.length,y=Array(v),s=n.map(function(){return!1}),c=!1,p=function(i){f(n[i]).subscribe(new t(r,function(n){y[i]=n;c||s[i]||(s[i]=!0,(c=s.every(a))&&(s=null))},h))},l=0;l<v;l++)p(l);i.subscribe(new t(r,function(n){c&&(n=o([n],e(y)),r.next(u?u.apply(void 0,o([],e(n))):n))}))})}function lc(n){return oo(tu,n)}function ac(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return i(function(n,i){tu.apply(void 0,o([n],e(t))).subscribe(i)})}function vc(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ac.apply(void 0,o([],e(t)))}function yc(n,t){for(var u,i=0,f=t.length;i<f;i++)for(var e=t[i],o=Object.getOwnPropertyNames(e.prototype),r=0,s=o.length;r<s;r++)u=o[r],n.prototype[u]=e.prototype[u]}function pc(n){switch(n.responseType){case"json":return"response"in n?n.response:JSON.parse(n.responseText);case"document":return n.responseXML;default:return"response"in n?n.response:n.responseText}}function ha(n,t){return at({method:"GET",url:n,headers:t})}function ca(n,t,i){return at({method:"POST",url:n,body:t,headers:i})}function la(n,t){return at({method:"DELETE",url:n,headers:t})}function aa(n,t,i){return at({method:"PUT",url:n,body:t,headers:i})}function va(n,t,i){return at({method:"PATCH",url:n,body:t,headers:i})}function ya(n,t){return ny(at({method:"GET",url:n,headers:t}))}function pa(n){return new u(function(t){var l,s,u=n.queryParams,h=n.body,a=n.headers,o=yf(n,["queryParams","body","headers"]),f=o.url,v,c,y,e,i,p,w;if(!f)throw new TypeError("url is required");if(u)if(f.includes("?")){if(f=f.split("?"),2<f.length)throw new TypeError("invalid url");v=new URLSearchParams(f[1]);new URLSearchParams(u).forEach(function(n,t){return v.set(t,n)});f=f[0]+"?"+v}else v=new URLSearchParams(u),f=f+"?"+v;if(u={},a)for(c in a)a.hasOwnProperty(c)&&(u[c.toLowerCase()]=a[c]);n.crossDomain||"x-requested-with"in u||(u["x-requested-with"]="XMLHttpRequest");y=o.xsrfCookieName;a=o.xsrfHeaderName;(o.withCredentials||!o.crossDomain)&&y&&a&&(y=null!==(s=null===(l=null===document||void 0===document?void 0:document.cookie.match(new RegExp("(^|;\\s*)("+y+")=([^;]*)")))||void 0===l?void 0:l.pop())&&void 0!==s?s:"")&&(u[a]=y);l=wa(h,u);e=ht(ht({"async":!0,crossDomain:!0,withCredentials:!1,method:"GET",timeout:0,responseType:"json"},o),{url:f,headers:u,body:l});i=n.createXHR?n.createXHR():new XMLHttpRequest;var r=n.progressSubscriber,o=n.includeDownloadProgress,o=void 0===o?!1:o;s=n.includeUploadProgress;s=void 0===s?!1:s;h=function(n,u){i.addEventListener(n,function(){var n,i=u();null===(n=null===r||void 0===r?void 0:r.error)||void 0===n?void 0:n.call(r,i);t.error(i)})};h("timeout",function(){return new sl(i,e)});h("abort",function(){return new wi("aborted",i,e)});p=function(n,r,u){n.addEventListener(r,function(n){t.next(new lf(n,i,e,u+"_"+n.type))})};s&&[af,vf,cl].forEach(function(n){return p(i.upload,n,ty)});r&&[af,vf].forEach(function(n){return i.upload.addEventListener(n,function(n){var t;if(null!==(t=null===r||void 0===r?void 0:r.next)&&void 0!==t)return t.call(r,n)})});o&&[af,vf].forEach(function(n){return p(i,n,hl)});w=function(n){t.error(new wi("ajax error"+(n?" "+n:""),i,e))};i.addEventListener("error",function(n){var t;null===(t=null===r||void 0===r?void 0:r.error)||void 0===t?void 0:t.call(r,n);w()});i.addEventListener(cl,function(n){var u,f,o=i.status;if(400>o){null===(u=null===r||void 0===r?void 0:r.complete)||void 0===u?void 0:u.call(r);u=void 0;try{u=new lf(n,i,e,hl+"_"+n.type)}catch(s){t.error(s);return}t.next(u);t.complete()}else null===(f=null===r||void 0===r?void 0:r.error)||void 0===f?void 0:f.call(r,n),w(o)});o=e.user;s=e.method;h=e.async;o?i.open(s,f,h,o,e.password):i.open(s,f,h);h&&(i.timeout=e.timeout,i.responseType=e.responseType);"withCredentials"in i&&(i.withCredentials=e.withCredentials);for(c in u)u.hasOwnProperty(c)&&i.setRequestHeader(c,u[c]);return l?i.send(l):i.send(),function(){i&&4!==i.readyState&&i.abort()}})}function wa(n,t){var i;if(!n||"string"==typeof n||"undefined"!=typeof FormData&&n instanceof FormData||"undefined"!=typeof URLSearchParams&&n instanceof URLSearchParams||bu(n,"ArrayBuffer")||bu(n,"File")||bu(n,"Blob")||"undefined"!=typeof ReadableStream&&n instanceof ReadableStream)return n;if("undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView(n))return n.buffer;if("object"==typeof n)return t["content-type"]=null!==(i=t["content-type"])&&void 0!==i?i:"application/json;charset=utf-8",JSON.stringify(n);throw new TypeError("Unknown body type");}function bu(n,t){return iy.call(n)==="[object "+t+"]"}var ku=function(n,t){return ku=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},ku(n,t)},ht=function(){return ht=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},ht.apply(this,arguments)},or=rt(function(n){return function(t){n(this);this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(n,t){return t+1+") "+n.toString()}).join("\n "):"";this.name="UnsubscriptionError";this.errors=t}}),l=function(){function n(n){this.initialTeardown=n;this.closed=!1;this._teardowns=this._parentage=null}return n.prototype.unsubscribe=function(){var n,a,l,y,t,s,h,u,c,f,p;if(!this.closed){if(this.closed=!0,s=this._parentage,s)if(this._parentage=null,Array.isArray(s))try{for(h=v(s),u=h.next();!u.done;u=h.next())u.value.remove(this)}catch(i){n={error:i}}finally{try{u&&!u.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error;}}else s.remove(this);if(n=this.initialTeardown,r(n))try{n()}catch(i){t=i instanceof or?i.errors:[i]}if(n=this._teardowns){this._teardowns=null;try{for(c=v(n),f=c.next();!f.done;f=c.next()){p=f.value;try{n=p;r(n)?n():n.unsubscribe()}catch(i){t=null!==t&&void 0!==t?t:[];i instanceof or?t=o(o([],e(t)),e(i.errors)):t.push(i)}}}catch(i){l={error:i}}finally{try{f&&!f.done&&(y=c.return)&&y.call(c)}finally{if(l)throw l.error;}}}if(t)throw new or(t);}},n.prototype.add=function(t){var i;if(t&&t!==this)if(this.closed)r(t)?t():t.unsubscribe();else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(i=this._teardowns)&&void 0!==i?i:[]).push(t)}},n.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},n.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},n.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&tt(t,n)},n.prototype.remove=function(t){var i=this._teardowns;i&&tt(i,t);t instanceof n&&t._removeParent(this)},n.EMPTY=function(){var t=new n;return t.closed=!0,t}(),n}(),wc=l.EMPTY,ut={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},bt={setTimeout:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return n=bt.delegate,((null===n||void 0===n?void 0:n.setTimeout)||setTimeout).apply(void 0,o([],e(t)))},clearTimeout:function(n){var t=bt.delegate;return((null===t||void 0===t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0},hi=w("C",void 0,void 0),ct=null,ci=function(n){function t(t){var i=n.call(this)||this;return i.isStopped=!1,t?(i.destination=t,pf(t)&&t.add(i)):i.destination=ba,i}return s(t,n),t.create=function(n,t,i){return new sr(n,t,i)},t.prototype.next=function(n){this.isStopped?yr(w("N",n,void 0),this):this._next(n)},t.prototype.error=function(n){this.isStopped?yr(w("E",void 0,n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?yr(hi,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(l),sr=function(n){function t(t,i,u){var e=n.call(this)||this,f;return r(t)?f=t:t&&(f=t.next,i=t.error,u=t.complete,e&&ut.useDeprecatedNextContext&&(t=Object.create(t),t.unsubscribe=function(){return e.unsubscribe()}),f=null===f||void 0===f?void 0:f.bind(t),i=null===i||void 0===i?void 0:i.bind(t),u=null===u||void 0===u?void 0:u.bind(t)),e.destination={next:f?vr(f,e):h,error:vr(null!==i&&void 0!==i?i:bf,e),complete:u?vr(u,e):h},e}return s(t,n),t}(ci),ba={closed:!0,next:h,error:bf,complete:h},li="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(t){var i=new n;return i.source=this,i.operator=t,i},n.prototype.subscribe=function(n,t,i){var u=this,r=pl(n)?n:new sr(n,t,i);return bi(function(){var n=u.operator,t=u.source;r.add(n?n.call(r,t):t?u._subscribe(r):u._trySubscribe(r))}),r},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},n.prototype.forEach=function(n,t){var i=this;return t=df(t),new t(function(t,r){var u;u=i.subscribe(function(t){try{n(t)}catch(i){r(i);null===u||void 0===u?void 0:u.unsubscribe()}},r,t)})},n.prototype._subscribe=function(n){var t;if(null!==(t=this.source)&&void 0!==t)return t.subscribe(n)},n.prototype[li]=function(){return this},n.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return kf(t)(this)},n.prototype.toPromise=function(n){var t=this;return n=df(n),new n(function(n,i){var r;t.subscribe(function(n){return r=n},function(n){return i(n)},function(){return n(r)})})},n.create=function(t){return new n(t)},n}(),t=function(n){function t(t,i,r,u,f){var e=n.call(this,t)||this;return e.onFinalize=f,e._next=i?function(n){try{i(n)}catch(r){t.error(r)}}:n.prototype._next,e._error=u?function(n){try{u(n)}catch(i){t.error(i)}finally{this.unsubscribe()}}:n.prototype._error,e._complete=r?function(){try{r()}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._complete,e}return s(t,n),t.prototype.unsubscribe=function(){var t,i=this.closed;n.prototype.unsubscribe.call(this);i||(null===(t=this.onFinalize)||void 0===t?void 0:t.call(this))},t}(ci),hr=function(n){function i(t,i){var u=n.call(this)||this;return u.source=t,u.subjectFactory=i,u._subject=null,u._refCount=0,u._connection=null,r(null===t||void 0===t?void 0:t.lift)&&(u.lift=t.lift),u}return s(i,n),i.prototype._subscribe=function(n){return this.getSubject().subscribe(n)},i.prototype.getSubject=function(){var n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject},i.prototype._teardown=function(){this._refCount=0;var n=this._connection;this._subject=this._connection=null;null===n||void 0===n?void 0:n.unsubscribe()},i.prototype.connect=function(){var r=this,n=this._connection,i;return n||(n=this._connection=new l,i=this.getSubject(),n.add(this.source.subscribe(new t(i,void 0,function(){r._teardown();i.complete()},function(n){r._teardown();i.error(n)},function(){return r._teardown()}))),n.closed&&(this._connection=null,n=l.EMPTY)),n},i.prototype.refCount=function(){return wr()(this)},i}(u),cr={now:function(){return(cr.delegate||performance).now()},delegate:void 0},ft={schedule:function(n){var r=requestAnimationFrame,t=cancelAnimationFrame,i=ft.delegate,u;return i&&(r=i.requestAnimationFrame,t=i.cancelAnimationFrame),u=r(function(i){t=void 0;n(i)}),new l(function(){if(null!==t&&void 0!==t)return t(u)})},requestAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return n=ft.delegate,((null===n||void 0===n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,o([],e(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return n=ft.delegate,((null===n||void 0===n?void 0:n.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,o([],e(t)))},delegate:void 0},ka=gf(),bc=rt(function(n){return function(){n(this);this.name="ObjectUnsubscribedError";this.message="object unsubscribed"}}),c=function(n){function t(){var t=n.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return s(t,n),t.prototype.lift=function(n){var t=new du(this,this);return t.operator=n,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new bc;},t.prototype.next=function(n){var t=this;bi(function(){var u,f,e,r,i;if(t._throwIfClosed(),!t.isStopped){e=t.observers.slice();try{for(r=v(e),i=r.next();!i.done;i=r.next())i.value.next(n)}catch(o){u={error:o}}finally{try{i&&!i.done&&(f=r.return)&&f.call(r)}finally{if(u)throw u.error;}}}})},t.prototype.error=function(n){var t=this;bi(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0;t.thrownError=n;for(var i=t.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;bi(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var t=n.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0;this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return 0<(null===(n=this.observers)||void 0===n?void 0:n.length)},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var i=this.isStopped,t=this.observers;return this.hasError||i?wc:(t.push(n),new l(function(){return tt(t,n)}))},t.prototype._checkFinalizedStatuses=function(n){var t=this.thrownError,i=this.isStopped;this.hasError?n.error(t):i&&n.complete()},t.prototype.asObservable=function(){var n=new u;return n.source=this,n},t.create=function(n,t){return new du(n,t)},t}(u),du=function(n){function t(t,i){var r=n.call(this)||this;return r.destination=t,r.source=i,r}return s(t,n),t.prototype.next=function(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===i?void 0:i.call(t,n)},t.prototype.error=function(n){var t,i;null===(i=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===i?void 0:i.call(t,n)},t.prototype.complete=function(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t?void 0:t.call(n)},t.prototype._subscribe=function(n){var t,i;return null!==(i=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==i?i:wc},t}(c),kc=function(n){function t(t){var i=n.call(this)||this;return i._value=t,i}return s(t,n),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(t){var i=n.prototype._subscribe.call(this,t);return i.closed||t.next(this._value),i},t.prototype.getValue=function(){var n=this.thrownError,t=this._value;if(this.hasError)throw n;return this._throwIfClosed(),t},t.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},t}(c),kt={now:function(){return(kt.delegate||Date).now()},delegate:void 0},dt=function(n){function t(t,i,r){void 0===t&&(t=Infinity);void 0===i&&(i=Infinity);void 0===r&&(r=kt);var u=n.call(this)||this;return u._bufferSize=t,u._windowTime=i,u._timestampProvider=r,u._buffer=[],u._infiniteTimeWindow=Infinity===i,u._bufferSize=Math.max(1,t),u._windowTime=Math.max(1,i),u}return s(t,n),t.prototype.next=function(t){var i=this._buffer,r=this._infiniteTimeWindow,u=this._timestampProvider,f=this._windowTime;this.isStopped||(i.push(t),!r&&i.push(u.now()+f));this._trimBuffer();n.prototype.next.call(this,t)},t.prototype._subscribe=function(n){this._throwIfClosed();this._trimBuffer();for(var r=this._innerSubscribe(n),u=this._infiniteTimeWindow,i=this._buffer.slice(),t=0;t<i.length&&!n.closed;t+=u?1:2)n.next(i[t]);return this._checkFinalizedStatuses(n),r},t.prototype._trimBuffer=function(){var r=this._bufferSize,i=this._timestampProvider,t=this._buffer,n=this._infiniteTimeWindow,u=(n?1:2)*r;if(Infinity>r&&u<t.length&&t.splice(0,t.length-u),!n){for(r=i.now(),i=0,n=1;n<t.length&&t[n]<=r;n+=2)i=n;i&&t.splice(0,i+1)}},t}(c),gu=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return s(t,n),t.prototype._checkFinalizedStatuses=function(n){var t=this._hasValue,i=this._value,r=this.thrownError,u=this.isStopped,f=this._isComplete;this.hasError?n.error(r):(u||f)&&(t&&n.next(i),n.complete())},t.prototype.next=function(n){this.isStopped||(this._value=n,this._hasValue=!0)},t.prototype.complete=function(){var t=this._hasValue,i=this._value;this._isComplete||(this._isComplete=!0,t&&n.prototype.next.call(this,i),n.prototype.complete.call(this))},t}(c),gt={setInterval:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return n=gt.delegate,((null===n||void 0===n?void 0:n.setInterval)||setInterval).apply(void 0,o([],e(t)))},clearInterval:function(n){var t=gt.delegate;return((null===t||void 0===t?void 0:t.clearInterval)||clearInterval)(n)},delegate:void 0},ai=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.scheduler=t,r.work=i,r.pending=!1,r}return s(t,n),t.prototype.schedule=function(n,t){if(void 0===t&&(t=0),this.closed)return this;this.state=n;n=this.id;var i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(n,t,i){return void 0===i&&(i=0),gt.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,t,i){if(void 0===i&&(i=0),null!=i&&this.delay===i&&!1===this.pending)return t;gt.clearInterval(t)},t.prototype.execute=function(n,t){if(this.closed)return Error("executing a cancelled action");if(this.pending=!1,n=this._execute(n,t))return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,t){t=!1;var i;try{this.work(n)}catch(r){t=!0;i=r?r:Error("Scheduled action threw falsy error")}if(t)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,i=this.scheduler,r=i.actions;this.work=this.state=this.scheduler=null;this.pending=!1;tt(r,this);null!=t&&(this.id=this.recycleAsyncId(i,t,null));this.delay=null;n.prototype.unsubscribe.call(this)}},t}(function(n){function t(){return n.call(this)||this}return s(t,n),t.prototype.schedule=function(){return this},t}(l)),da=1,nf,tf={},ga=function(n){var t=da++;return tf[t]=!0,nf||(nf=Promise.resolve()),nf.then(function(){return ne(t)&&n()}),t},nv=function(n){ne(n)},ni={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return n=ni.delegate,((null===n||void 0===n?void 0:n.setImmediate)||ga).apply(void 0,o([],e(t)))},clearImmediate:function(n){var t=ni.delegate;return((null===t||void 0===t?void 0:t.clearImmediate)||nv)(n)},delegate:void 0},tv=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.scheduler=t,r.work=i,r}return s(t,n),t.prototype.requestAsyncId=function(t,i,r){return(void 0===r&&(r=0),null!==r&&0<r)?n.prototype.requestAsyncId.call(this,t,i,r):(t.actions.push(this),t._scheduled||(t._scheduled=ni.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,i,r){if(void 0===r&&(r=0),null!=r&&0<r||null==r&&0<this.delay)return n.prototype.recycleAsyncId.call(this,t,i,r);0===t.actions.length&&(ni.clearImmediate(i),t._scheduled=void 0)},t}(ai),rf=function(){function n(t,i){void 0===i&&(i=n.now);this.schedulerActionCtor=t;this.now=i}return n.prototype.schedule=function(n,t,i){return void 0===t&&(t=0),new this.schedulerActionCtor(this,n).schedule(i,t)},n.now=kt.now,n}(),vi=function(n){function t(t,i){return void 0===i&&(i=rf.now),t=n.call(this,t,i)||this,t.actions=[],t._active=!1,t._scheduled=void 0,t}return s(t,n),t.prototype.flush=function(n){var t=this.actions,i;if(this._active)t.push(n);else{this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=t.shift());if(this._active=!1,i){for(;n=t.shift();)n.unsubscribe();throw i;}}},t}(rf),dc=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return s(t,n),t.prototype.flush=function(n){var t,i,r,u;this._active=!0;this._scheduled=void 0;t=this.actions;r=-1;n=n||t.shift();u=t.length;do if(i=n.execute(n.state,n.delay))break;while(++r<u&&(n=t.shift()));if(this._active=!1,i){for(;++r<u&&(n=t.shift());)n.unsubscribe();throw i;}},t}(vi))(tv),nt=new vi(ai),yi=nt,iv=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.scheduler=t,r.work=i,r}return s(t,n),t.prototype.schedule=function(t,i){return(void 0===i&&(i=0),0<i)?n.prototype.schedule.call(this,t,i):(this.delay=i,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,i){return 0<i||this.closed?n.prototype.execute.call(this,t,i):this._execute(t,i)},t.prototype.requestAsyncId=function(t,i,r){return void 0===r&&(r=0),null!=r&&0<r||null==r&&0<this.delay?n.prototype.requestAsyncId.call(this,t,i,r):t.flush(this)},t}(ai),gc=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return s(t,n),t}(vi))(iv),rv=function(n){function t(t,i){var r=n.call(this,t,i)||this;return r.scheduler=t,r.work=i,r}return s(t,n),t.prototype.requestAsyncId=function(t,i,r){return(void 0===r&&(r=0),null!==r&&0<r)?n.prototype.requestAsyncId.call(this,t,i,r):(t.actions.push(this),t._scheduled||(t._scheduled=ft.requestAnimationFrame(function(){return t.flush(void 0)})))},t.prototype.recycleAsyncId=function(t,i,r){if(void 0===r&&(r=0),null!=r&&0<r||null==r&&0<this.delay)return n.prototype.recycleAsyncId.call(this,t,i,r);0===t.actions.length&&(ft.cancelAnimationFrame(i),t._scheduled=void 0)},t}(ai),nl=new(function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return s(t,n),t.prototype.flush=function(n){var t,i,r,u;this._active=!0;this._scheduled=void 0;t=this.actions;r=-1;n=n||t.shift();u=t.length;do if(i=n.execute(n.state,n.delay))break;while(++r<u&&(n=t.shift()));if(this._active=!1,i){for(;++r<u&&(n=t.shift());)n.unsubscribe();throw i;}},t}(vi))(rv),tl=function(n){function t(t,i){void 0===t&&(t=uf);void 0===i&&(i=Infinity);var r=n.call(this,t,function(){return r.frame})||this;return r.maxFrames=i,r.frame=0,r.index=-1,r}return s(t,n),t.prototype.flush=function(){for(var t=this.actions,r=this.maxFrames,i,n;(n=t[0])&&n.delay<=r&&!(t.shift(),this.frame=n.delay,i=n.execute(n.state,n.delay)););if(i){for(;n=t.shift();)n.unsubscribe();throw i;}},t.frameTimeFactor=10,t}(vi),uf=function(n){function t(t,i,r){void 0===r&&(r=t.index+=1);var u=n.call(this,t,i)||this;return u.scheduler=t,u.work=i,u.index=r,u.active=!0,u.index=t.index=r,u}return s(t,n),t.prototype.schedule=function(i,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,i,r);this.active=!1;var u=new t(this.scheduler,this.work);return this.add(u),u.schedule(i,r)}return l.EMPTY},t.prototype.requestAsyncId=function(n,i,r){return void 0===r&&(r=0),this.delay=n.frame+r,n=n.actions,n.push(this),n.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(){},t.prototype._execute=function(t,i){if(!0===this.active)return n.prototype._execute.call(this,t,i)},t.sortActions=function(n,t){return n.delay===t.delay?n.index===t.index?0:n.index>t.index?1:-1:n.delay>t.delay?1:-1},t}(ai),k=new u(function(n){return n.complete()}),ff=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n},ef,cf;ef="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",function(n){n.NEXT="N";n.ERROR="E";n.COMPLETE="C"}(n.NotificationKind||(n.NotificationKind={}));var lr=function(){function n(n,t,i){this.kind=n;this.value=t;this.error=i;this.hasValue="N"===n}return n.prototype.observe=function(n){return di(this,n)},n.prototype.do=function(n,t,i){var r=this.kind,u=this.value,f=this.error;return"N"===r?null===n||void 0===n?void 0:n(u):"E"===r?null===t||void 0===t?void 0:t(f):null===i||void 0===i?void 0:i()},n.prototype.accept=function(n,t,i){return r(null===n||void 0===n?void 0:n.next)?this.observe(n):this.do(n,t,i)},n.prototype.toObservable=function(){var n=this.kind,t=this.value,i=this.error,t="N"===n?br(t):"E"===n?he(function(){return i}):"C"===n?k:0;if(!t)throw new TypeError("Unexpected notification kind "+n);return t},n.createNext=function(t){return new n("N",t)},n.createError=function(t){return new n("E",void 0,t)},n.createComplete=function(){return n.completeNotification},n.completeNotification=new n("C"),n}(),lt=rt(function(n){return function(){n(this);this.name="EmptyError";this.message="no elements in sequence"}}),sf=rt(function(n){return function(){n(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}),il=rt(function(n){return function(t){n(this);this.name="NotFoundError";this.message=t}}),rl=rt(function(n){return function(t){n(this);this.name="SequenceError";this.message=t}}),ul=rt(function(n){return function(t){void 0===t&&(t=null);n(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=t}}),uv=Array.isArray,fv=Array.isArray,ev=Object.getPrototypeOf,ov=Object.prototype,sv=Object.keys,hv={connector:function(){return new c},resetOnDisconnect:!0},cv=["addListener","removeListener"],lv=["addEventListener","removeEventListener"],av=["on","off"],fl=new u(h),vv=Array.isArray,yv=function(n,t){return n.push(t),n},pv={connector:function(){return new c}},wv=function(n){function t(){var t=null!==n&&n.apply(this,arguments)||this;return t.activeGroups=0,t.teardownAttempted=!1,t}return s(t,n),t.prototype.unsubscribe=function(){this.teardownAttempted=!0;0===this.activeGroups&&n.prototype.unsubscribe.call(this)},t}(t),el={leading:!0,trailing:!1},bv=function(){return function(n,t){this.value=n;this.interval=t}}(),kv=Object.freeze({audit:iu,auditTime:no,buffer:to,bufferCount:io,bufferTime:ro,bufferToggle:uo,bufferWhen:fo,catchError:ru,combineAll:tr,combineLatestAll:tr,combineLatest:fu,combineLatestWith:so,concat:co,concatAll:nr,concatMap:ir,concatMapTo:ho,concatWith:lo,connect:rr,count:ao,debounce:vo,debounceTime:yo,defaultIfEmpty:oi,delay:po,delayWhen:ur,dematerialize:wo,distinct:bo,distinctUntilChanged:su,distinctUntilKeyChanged:ko,elementAt:go,endWith:ns,every:ts,exhaust:fr,exhaustAll:fr,exhaustMap:hu,expand:is,filter:g,finalize:rs,find:us,findIndex:es,first:os,groupBy:ss,ignoreElements:eu,isEmpty:hs,last:cs,map:d,mapTo:ou,materialize:ls,max:as,merge:ps,mergeAll:ui,flatMap:p,mergeMap:p,mergeMapTo:vs,mergeScan:ys,mergeWith:ws,min:bs,multicast:er,observeOn:ii,onErrorResumeNext:ke,pairwise:ks,partition:function(n,t){return function(i){return[g(n,t)(i),g(de(n,t))(i)]}},pluck:ds,publish:gs,publishBehavior:nh,publishLast:th,publishReplay:ih,race:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return lu.apply(void 0,o([],e(ot(t))))},raceWith:lu,reduce:pt,repeat:rh,repeatWhen:uh,retry:fh,retryWhen:eh,refCount:wr,sample:au,sampleTime:oh,scan:vu,sequenceEqual:sh,share:yu,shareReplay:hh,single:ch,skip:lh,skipLast:ah,skipUntil:vh,skipWhile:yh,startWith:ph,subscribeOn:ri,switchAll:wh,switchMap:wt,switchMapTo:bh,switchScan:kh,take:st,takeLast:cu,takeUntil:dh,takeWhile:gh,tap:nc,throttle:wu,throttleTime:tc,throwIfEmpty:si,timeInterval:ic,timeout:dr,timeoutWith:rc,timestamp:uc,toArray:uu,window:fc,windowCount:ec,windowTime:oc,windowToggle:sc,windowWhen:hc,withLatestFrom:cc,zip:ac,zipAll:lc,zipWith:vc}),pi=function(){return function(n,t){void 0===t&&(t=Infinity);this.subscribedFrame=n;this.unsubscribedFrame=t}}(),ol=function(){function n(){this.subscriptions=[]}return n.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new pi(this.scheduler.now())),this.subscriptions.length-1},n.prototype.logUnsubscribedFrame=function(n){var t=this.subscriptions;t[n]=new pi(t[n].subscribedFrame,this.scheduler.now())},n}(),hf=function(n){function t(t,i){var r=n.call(this,function(n){var t=this,r=t.logSubscribedFrame(),i=new l;return i.add(new l(function(){t.logUnsubscribedFrame(r)})),t.scheduleMessages(n),i})||this;return r.messages=t,r.subscriptions=[],r.scheduler=i,r}return s(t,n),t.prototype.scheduleMessages=function(n){for(var i,r=this.messages.length,t=0;t<r;t++)i=this.messages[t],n.add(this.scheduler.schedule(function(n){di(n.message.notification,n.subscriber)},i.frame,{message:i,subscriber:n}))},t}(u);yc(hf,[ol]);cf=function(n){function t(t,i){var r=n.call(this)||this;return r.messages=t,r.subscriptions=[],r.scheduler=i,r}return s(t,n),t.prototype._subscribe=function(t){var r=this,u=r.logSubscribedFrame(),i=new l;return i.add(new l(function(){r.logUnsubscribedFrame(u)})),i.add(n.prototype._subscribe.call(this,t)),i},t.prototype.setup=function(){for(var n=this,i=n.messages.length,r=function(t){(function(){var i=n.messages[t],r=i.notification;n.scheduler.schedule(function(){di(r,n)},i.frame)})()},t=0;t<i;t++)r(t)},t}(c);yc(cf,[ol]);var dv=function(n){function t(t){var i=n.call(this,uf,750)||this;return i.assertDeepEqual=t,i.hotObservables=[],i.coldObservables=[],i.flushTests=[],i.runMode=!1,i}return s(t,n),t.prototype.createTime=function(n){if(n=this.runMode?n.trim().indexOf("|"):n.indexOf("|"),-1===n)throw Error('marble diagram for time should have a completion marker "|"');return n*t.frameTimeFactor},t.prototype.createColdObservable=function(n,i,r){if(-1!==n.indexOf("^"))throw Error('cold observable cannot have subscription offset "^"');if(-1!==n.indexOf("!"))throw Error('cold observable cannot have unsubscription marker "!"');return n=t.parseMarbles(n,i,r,void 0,this.runMode),n=new hf(n,this),this.coldObservables.push(n),n},t.prototype.createHotObservable=function(n,i,r){if(-1!==n.indexOf("!"))throw Error('hot observable cannot have unsubscription marker "!"');return n=t.parseMarbles(n,i,r,void 0,this.runMode),n=new cf(n,this),this.hotObservables.push(n),n},t.prototype.materializeInnerObservable=function(n,t){var r=this,i=[];return n.subscribe(function(n){i.push({frame:r.frame-t,notification:w("N",n,void 0)})},function(n){i.push({frame:r.frame-t,notification:w("E",void 0,n)})},function(){i.push({frame:r.frame-t,notification:hi})}),i},t.prototype.expectObservable=function(n,i){var r=this,e,f,o,s,h;return void 0===i&&(i=null),e=[],f={actual:e,ready:!1},i=t.parseMarblesAsSubscriptions(i,this.runMode),o=Infinity===i.subscribedFrame?0:i.subscribedFrame,i=i.unsubscribedFrame,this.schedule(function(){s=n.subscribe(function(n){n=n instanceof u?r.materializeInnerObservable(n,r.frame):n;e.push({frame:r.frame,notification:w("N",n,void 0)})},function(n){e.push({frame:r.frame,notification:w("E",void 0,n)})},function(){e.push({frame:r.frame,notification:hi})})},o),Infinity!==i&&this.schedule(function(){return s.unsubscribe()},i),this.flushTests.push(f),h=this.runMode,{toBe:function(n,i,r){f.ready=!0;f.expected=t.parseMarbles(n,i,r,!0,h)},toEqual:function(n){f.ready=!0;f.expected=[];r.schedule(function(){s=n.subscribe(function(n){n=n instanceof u?r.materializeInnerObservable(n,r.frame):n;f.expected.push({frame:r.frame,notification:w("N",n,void 0)})},function(n){f.expected.push({frame:r.frame,notification:w("E",void 0,n)})},function(){f.expected.push({frame:r.frame,notification:hi})})},o)}}},t.prototype.expectSubscriptions=function(n){var i={actual:n,ready:!1},r;return this.flushTests.push(i),r=this.runMode,{toBe:function(n){n="string"==typeof n?[n]:n;i.ready=!0;i.expected=n.map(function(n){return t.parseMarblesAsSubscriptions(n,r)}).filter(function(n){return Infinity!==n.subscribedFrame})}}},t.prototype.flush=function(){for(var i=this,t=this.hotObservables;0<t.length;)t.shift().setup();n.prototype.flush.call(this);this.flushTests=this.flushTests.filter(function(n){return n.ready?(i.assertDeepEqual(n.actual,n.expected),!1):!0})},t.parseMarblesAsSubscriptions=function(n,t){var l=this,r;if(void 0===t&&(t=!1),"string"!=typeof n)return new pi(Infinity);r=o([],e(n));n=r.length;for(var i=-1,f=Infinity,s=Infinity,u=0,a=function(n){var y=u,o=function(n){y+=n*l.frameTimeFactor},e=r[n],h,a;switch(e){case" ":t||o(1);break;case"-":o(1);break;case"(":i=u;o(1);break;case")":i=-1;o(1);break;case"^":if(Infinity!==f)throw Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");f=-1<i?i:u;o(1);break;case"!":if(Infinity!==s)throw Error("found a second unsubscription point '!' in a subscription marble diagram. There can only be one.");s=-1<i?i:u;break;default:if(t&&e.match(/^[0-9]$/)&&(0===n||" "===r[n-1])&&(h=r.slice(n).join("").match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /),h)){n+=h[0].length-1;e=parseFloat(h[1]);a=void 0;switch(h[2]){case"ms":a=e;break;case"s":a=1e3*e;break;case"m":a=6e4*e}o(a/v.frameTimeFactor);break}throw Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+e+"'.");}u=y;c=n},v=this,c,h=0;h<n;h++)a(h),h=c;return 0>s?new pi(f):new pi(f,s)},t.parseMarbles=function(n,t,i,r,u){var y=this,a,v,f;if(void 0===r&&(r=!1),void 0===u&&(u=!1),-1!==n.indexOf("!"))throw Error('conventional marble diagrams cannot have the unsubscription marker "!"');var s=o([],e(n)),p=s.length,l=[];n=u?n.replace(/^[ ]+/,"").indexOf("^"):n.indexOf("^");var h=-1===n?0:n*-this.frameTimeFactor,b="object"!=typeof t?function(n){return n}:function(n){return r&&t[n]instanceof hf?t[n].messages:t[n]},c=-1;for(n=function(n){var p=h,t=function(n){p+=n*y.frameTimeFactor},f=void 0,r=s[n],e,o;switch(r){case" ":u||t(1);break;case"-":t(1);break;case"(":c=h;t(1);break;case")":c=-1;t(1);break;case"|":f=hi;t(1);break;case"^":t(1);break;case"#":f=w("E",void 0,i||"error");t(1);break;default:if(u&&r.match(/^[0-9]$/)&&(0===n||" "===s[n-1])&&(e=s.slice(n).join("").match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /),e)){n+=e[0].length-1;r=parseFloat(e[1]);o=void 0;switch(e[2]){case"ms":o=r;break;case"s":o=1e3*r;break;case"m":o=6e4*r}t(o/a.frameTimeFactor);break}f=w("N",b(r),void 0);t(1)}f&&l.push({frame:-1<c?c:h,notification:f});h=p;v=n},a=this,f=0;f<p;f++)n(f),f=v;return l},t.prototype.createAnimator=function(){var i=this,r,n;if(!this.runMode)throw Error("animate() must only be used in run mode");return r=0,{animate:function(r){var e,o,f,u;if(n)throw Error("animate() must not be called more than once within run()");if(/[|#]/.test(r))throw Error("animate() must not complete or error");n=new Map;r=t.parseMarbles(r,void 0,void 0,void 0,!0);try{for(f=v(r),u=f.next();!u.done;u=f.next())i.schedule(function(){var u,f,o=i.now(),s=Array.from(n.values()),r,t,e;n.clear();try{for(r=(u=void 0,v(s)),t=r.next();!t.done;t=r.next())e=t.value,e(o)}catch(h){u={error:h}}finally{try{t&&!t.done&&(f=r.return)&&f.call(r)}finally{if(u)throw u.error;}}},u.value.frame)}catch(s){e={error:s}}finally{try{u&&!u.done&&(o=f.return)&&o.call(f)}finally{if(e)throw e.error;}}},delegate:{requestAnimationFrame:function(t){if(!n)throw Error("animate() was not called within run()");var i=++r;return n.set(i,t),i},cancelAnimationFrame:function(t){if(!n)throw Error("animate() was not called within run()");n.delete(t)}}}},t.prototype.createDelegates=function(){var t=this,r=0,n=new Map,i=function(){var f=t.now(),u=Array.from(n.values()).filter(function(n){return n.due<=f}),r=u.filter(function(n){return"immediate"===n.type});if(0<r.length)r=r[0],u=r.handle,r=r.handler,n.delete(u),r();else if(r=u.filter(function(n){return"interval"===n.type}),0<r.length){var u=r[0],e=u.duration,r=u.handler;u.due=f+e;u.subscription=t.schedule(i,e);r()}else if(u=u.filter(function(n){return"timeout"===n.type}),0<u.length)r=u[0],u=r.handle,r=r.handler,n.delete(u),r();else throw Error("Expected a due immediate or interval");};return{immediate:{setImmediate:function(u){var f=++r;return n.set(f,{due:t.now(),duration:0,handle:f,handler:u,subscription:t.schedule(i,0),type:"immediate"}),f},clearImmediate:function(t){var i=n.get(t);i&&(i.subscription.unsubscribe(),n.delete(t))}},interval:{setInterval:function(u,f){void 0===f&&(f=0);var e=++r;return n.set(e,{due:t.now()+f,duration:f,handle:e,handler:u,subscription:t.schedule(i,f),type:"interval"}),e},clearInterval:function(t){var i=n.get(t);i&&(i.subscription.unsubscribe(),n.delete(t))}},timeout:{setTimeout:function(u,f){void 0===f&&(f=0);var e=++r;return n.set(e,{due:t.now()+f,duration:f,handle:e,handler:u,subscription:t.schedule(i,f),type:"timeout"}),e},clearTimeout:function(t){var i=n.get(t);i&&(i.subscription.unsubscribe(),n.delete(t))}}}},t.prototype.run=function(n){var f=t.frameTimeFactor,e=this.maxFrames,i,r,u;t.frameTimeFactor=1;this.maxFrames=Infinity;this.runMode=!0;i=this.createAnimator();r=this.createDelegates();ft.delegate=i.delegate;kt.delegate=this;ni.delegate=r.immediate;gt.delegate=r.interval;bt.delegate=r.timeout;cr.delegate=this;i={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:i.animate};try{return u=n(i),this.flush(),u}finally{t.frameTimeFactor=f;this.maxFrames=e;this.runMode=!1;ft.delegate=void 0;kt.delegate=void 0;ni.delegate=void 0;gt.delegate=void 0;bt.delegate=void 0;cr.delegate=void 0}},t.frameTimeFactor=10,t}(tl),gv=Object.freeze({TestScheduler:dv}),lf=function(){return function(n,t,i,r){void 0===r&&(r="download_load");this.originalEvent=n;this.xhr=t;this.request=i;this.type=r;i=t.status;r=t.responseType;this.status=null!==i&&void 0!==i?i:0;this.responseType=null!==r&&void 0!==r?r:"";this.responseHeaders=(i=t.getAllResponseHeaders())?i.split("\n").reduce(function(n,t){var i=t.indexOf(": ");return n[t.slice(0,i)]=t.slice(i+2),n},{}):{};this.response=pc(t);t=n.total;this.loaded=n.loaded;this.total=t}}(),wi=rt(function(){return function(n,t,i){this.message=n;this.name="AjaxError";this.xhr=t;this.request=i;this.status=t.status;this.responseType=t.responseType;var r;try{r=pc(t)}catch(u){r=t.responseText}this.response=r}}),sl=function(){function n(n,t){return wi.call(this,"ajax timeout",n,t),this.name="AjaxTimeoutError",this}return n.prototype=Object.create(wi.prototype),n}(),ny=d(function(n){return n.response}),at=function(){var n=function(n){return pa("string"==typeof n?{url:n}:n)};return n.get=ha,n.post=ca,n.delete=la,n.put=aa,n.patch=va,n.getJSON=ya,n}(),ty="upload",hl="download",af="loadstart",vf="progress",cl="load",iy=Object.prototype.toString,ry=Object.freeze({ajax:at,AjaxError:wi,AjaxTimeoutError:sl,AjaxResponse:lf}),uy={url:"",deserializer:function(n){return JSON.parse(n.data)},serializer:function(n){return JSON.stringify(n)}},ll=function(n){function t(t,i){var r=n.call(this)||this,f;if(r._socket=null,t instanceof u)r.destination=i,r.source=t;else{if(i=r._config=ht({},uy),r._output=new c,"string"==typeof t)i.url=t;else for(f in t)t.hasOwnProperty(f)&&(i[f]=t[f]);if(!i.WebSocketCtor&&WebSocket)i.WebSocketCtor=WebSocket;else if(!i.WebSocketCtor)throw Error("no WebSocket constructor can be found");r.destination=new dt}return r}return s(t,n),t.prototype.lift=function(n){var i=new t(this._config,this.destination);return i.operator=n,i.source=this,i},t.prototype._resetState=function(){this._socket=null;this.source||(this.destination=new dt);this._output=new c},t.prototype.multiplex=function(n,t,i){var r=this;return new u(function(u){try{r.next(n())}catch(f){u.error(f)}var e=r.subscribe(function(n){try{i(n)&&u.next(n)}catch(t){u.error(t)}},function(n){return u.error(n)},function(){return u.complete()});return function(){try{r.next(t())}catch(n){u.error(n)}e.unsubscribe()}})},t.prototype._connectSocket=function(){var n=this,r=this._config,u=r.WebSocketCtor,f=r.protocol,e=r.url,r=r.binaryType,i=this._output,t=null,o;try{this._socket=t=f?new u(e,f):new u(e);r&&(this._socket.binaryType=r)}catch(s){i.error(s);return}o=new l(function(){n._socket=null;t&&1===t.readyState&&t.close()});t.onopen=function(r){if(n._socket){var u=n._config.openObserver;u&&u.next(r);r=n.destination;n.destination=ci.create(function(i){if(1===t.readyState)try{var r=n._config.serializer;t.send(r(i))}catch(u){n.destination.error(u)}},function(r){var u=n._config.closingObserver;u&&u.next(void 0);r&&r.code?t.close(r.code,r.reason):i.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }"));n._resetState()},function(){var i=n._config.closingObserver;i&&i.next(void 0);t.close();n._resetState()});r&&r instanceof dt&&o.add(r.subscribe(n.destination))}else t.close(),n._resetState()};t.onerror=function(t){n._resetState();i.error(t)};t.onclose=function(t){n._resetState();var r=n._config.closeObserver;r&&r.next(t);t.wasClean?i.complete():i.error(t)};t.onmessage=function(t){try{var r=n._config.deserializer;i.next(r(t))}catch(u){i.error(u)}}},t.prototype._subscribe=function(n){var t=this,i=this.source;return i?i.subscribe(n):(this._socket||this._connectSocket(),this._output.subscribe(n),n.add(function(){var n=t._socket;0===t._output.observers.length&&(!n||1!==n.readyState&&0!==n.readyState||n.close(),t._resetState())}),n)},t.prototype.unsubscribe=function(){var t=this._socket;t&&(1===t.readyState||0===t.readyState)&&t.close();this._resetState();n.prototype.unsubscribe.call(this)},t}(du),fy=Object.freeze({webSocket:function(n){return new ll(n)},WebSocketSubject:ll}),ey=Object.freeze({fromFetch:function(n,i){void 0===i&&(i={});var r=i.selector,e=yf(i,["selector"]);return new u(function(i){var u=new AbortController,l=u.signal,o=!0,s=e.signal,h,a,c;return s&&(s.aborted?u.abort():(h=function(){l.aborted||u.abort()},s.addEventListener("abort",h),i.add(function(){return s.removeEventListener("abort",h)}))),a=ht(ht({},e),{signal:l}),c=function(n){o=!1;i.error(n)},fetch(n,a).then(function(n){r?f(r(n)).subscribe(new t(i,void 0,function(){o=!1;i.complete()},c)):(o=!1,i.next(n),i.complete())}).catch(c),function(){o&&u.abort()}})}});n.operators=kv;n.testing=gv;n.ajax=ry;n.webSocket=fy;n.fetch=ey;n.Observable=u;n.ConnectableObservable=hr;n.observable=li;n.animationFrames=function(n){return n?gf(n):ka};n.Subject=c;n.BehaviorSubject=kc;n.ReplaySubject=dt;n.AsyncSubject=gu;n.asap=dc;n.asapScheduler=dc;n.async=yi;n.asyncScheduler=nt;n.queue=gc;n.queueScheduler=gc;n.animationFrame=nl;n.animationFrameScheduler=nl;n.VirtualTimeScheduler=tl;n.VirtualAction=uf;n.Scheduler=rf;n.Subscription=l;n.Subscriber=ci;n.Notification=lr;n.pipe=pr;n.noop=h;n.identity=a;n.isObservable=function(n){return!!n&&(n instanceof u||r(n.lift)&&r(n.subscribe))};n.lastValueFrom=function(n,t){var i="object"==typeof t;return new Promise(function(r,u){var f=!1,e;n.subscribe({next:function(n){e=n;f=!0},error:u,complete:function(){f?r(e):i?r(t.defaultValue):u(new lt)}})})};n.firstValueFrom=function(n,t){var i="object"==typeof t;return new Promise(function(r,u){var f=new sr({next:function(n){r(n);f.unsubscribe()},error:u,complete:function(){i?r(t.defaultValue):u(new lt)}});n.subscribe(f)})};n.ArgumentOutOfRangeError=sf;n.EmptyError=lt;n.NotFoundError=il;n.ObjectUnsubscribedError=bc;n.SequenceError=rl;n.TimeoutError=ul;n.UnsubscriptionError=or;n.bindCallback=function(n,t,i){return gi(!1,n,t,i)};n.bindNodeCallback=function(n,t,i){return gi(!0,n,t,i)};n.combineLatest=ae;n.concat=fi;n.connectable=function(n,t){var i,f,e,r;return void 0===t&&(t=hv),i=null,f=t.connector,t=t.resetOnDisconnect,e=void 0===t?!0:t,r=f(),t=new u(function(n){return r.subscribe(n)}),t.connect=function(){return(!i||i.closed)&&(i=ei(function(){return n}).subscribe(r),e&&i.add(function(){return r=f()})),i},t};n.defer=ei;n.empty=function(n){return n?wl(n):k};n.forkJoin=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var i=ti(n),n=ce(n),r=n.args,e=n.keys,n=new u(function(n){var i=r.length;if(i)for(var u=Array(i),s=i,h=i,c=function(i){var o=!1;f(r[i]).subscribe(new t(n,function(n){o||(o=!0,h--);u[i]=n},function(){return s--},void 0,function(){s&&o||(h||n.next(e?le(e,u):u),n.complete())}))},o=0;o<i;o++)c(o);else n.complete()});return i?n.pipe(et(i)):n};n.from=b;n.fromEvent=nu;n.fromEventPattern=we;n.generate=function(n,t,i,r,u){function s(){var n;return ar(this,function(r){switch(r.label){case 0:n=o;r.label=1;case 1:return t&&!t(n)?[3,4]:[4,f(n)];case 2:r.sent();r.label=3;case 3:return n=i(n),[3,1];case 4:return[2]}})}var e,f,o;return 1===arguments.length?(o=n.initialState,t=n.condition,i=n.iterate,e=n.resultSelector,f=void 0===e?a:e,u=n.scheduler):(o=n,!r||ki(r)?(f=a,u=r):f=r),ei(u?function(){return ee(s(),u)}:s)};n.iif=function(n,t,i){return ei(function(){return n()?t:i})};n.interval=be;n.merge=function(){for(var i,n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return t=it(n),i="number"==typeof n[n.length-1]?n.pop():Infinity,n.length?1===n.length?f(n[0]):ui(i)(b(n,t)):k};n.never=function(){return fl};n.of=br;n.onErrorResumeNext=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return ke(ot(t))(k)};n.pairs=function(n,t){return b(Object.entries(n),t)};n.partition=function(n,t,i){return[g(t,i)(f(n)),g(de(t,i))(f(n))]};n.race=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n=ot(n),1===n.length?f(n[0]):new u(ge(n))};n.range=function(n,t,i){if(null==t&&(t=n,n=0),0>=t)return k;var r=t+n;return new u(i?function(t){var u=n;return i.schedule(function(){u<r?(t.next(u++),this.schedule()):t.complete()})}:function(t){for(var i=n;i<r&&!t.closed;)t.next(i++);t.complete()})};n.throwError=he;n.timer=yt;n.using=function(n,t){return new u(function(i){var r=n(),u=t(r);return(u?f(u):k).subscribe(i),function(){r&&r.unsubscribe()}})};n.zip=tu;n.scheduled=se;n.EMPTY=k;n.NEVER=fl;n.config=ut;n.audit=iu;n.auditTime=no;n.buffer=to;n.bufferCount=io;n.bufferTime=ro;n.bufferToggle=uo;n.bufferWhen=fo;n.catchError=ru;n.combineAll=tr;n.combineLatestAll=tr;n.combineLatestWith=so;n.concatAll=nr;n.concatMap=ir;n.concatMapTo=ho;n.concatWith=lo;n.connect=rr;n.count=ao;n.debounce=vo;n.debounceTime=yo;n.defaultIfEmpty=oi;n.delay=po;n.delayWhen=ur;n.dematerialize=wo;n.distinct=bo;n.distinctUntilChanged=su;n.distinctUntilKeyChanged=ko;n.elementAt=go;n.endWith=ns;n.every=ts;n.exhaust=fr;n.exhaustAll=fr;n.exhaustMap=hu;n.expand=is;n.filter=g;n.finalize=rs;n.find=us;n.findIndex=es;n.first=os;n.groupBy=ss;n.ignoreElements=eu;n.isEmpty=hs;n.last=cs;n.map=d;n.mapTo=ou;n.materialize=ls;n.max=as;n.mergeAll=ui;n.flatMap=p;n.mergeMap=p;n.mergeMapTo=vs;n.mergeScan=ys;n.mergeWith=ws;n.min=bs;n.multicast=er;n.observeOn=ii;n.pairwise=ks;n.pluck=ds;n.publish=gs;n.publishBehavior=nh;n.publishLast=th;n.publishReplay=ih;n.raceWith=lu;n.reduce=pt;n.repeat=rh;n.repeatWhen=uh;n.retry=fh;n.retryWhen=eh;n.refCount=wr;n.sample=au;n.sampleTime=oh;n.scan=vu;n.sequenceEqual=sh;n.share=yu;n.shareReplay=hh;n.single=ch;n.skip=lh;n.skipLast=ah;n.skipUntil=vh;n.skipWhile=yh;n.startWith=ph;n.subscribeOn=ri;n.switchAll=wh;n.switchMap=wt;n.switchMapTo=bh;n.switchScan=kh;n.take=st;n.takeLast=cu;n.takeUntil=dh;n.takeWhile=gh;n.tap=nc;n.throttle=wu;n.throttleTime=tc;n.throwIfEmpty=si;n.timeInterval=ic;n.timeout=dr;n.timeoutWith=rc;n.timestamp=uc;n.toArray=uu;n.window=fc;n.windowCount=ec;n.windowTime=oc;n.windowToggle=sc;n.windowWhen=hc;n.withLatestFrom=cc;n.zipAll=lc;n.zipWith=vc;Object.defineProperty(n,"__esModule",{value:!0})}); |