UNPKG

chromatic

Version:

Automate visual testing across browsers. Gather UI feedback. Versioned documentation.

6 lines (5 loc) • 2.58 MB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f2af9359-4c90-50ec-b0de-0d9ac4e40e31")}catch(e){}}(); const e=require(`./chunk-gGpyby2o.cjs`),t=require(`./turbosnap-BUT48EFm.cjs`),n=require(`./src-C0CbP6lv.cjs`),r=require(`./meow-BJmmmeH9.cjs`),i=require(`./noPackageJson-CqAvIwmU.cjs`),a=require(`./from-Y7cUpUgc.cjs`),o=require(`./build-0YjH7XOc.cjs`),s=require(`./execa-BYysbdaH.cjs`),c=require(`./jsonfile-B5dFQCAM.cjs`),l=require(`./strip-ansi-DWzhKQ1g.cjs`),u=require(`./log-RFJjEu7W.cjs`),d=require(`./lib-BCQVcqZT.cjs`),f=require(`./trimStatsFile-Dx01BerQ.cjs`),p=require(`./validateStorybookVersion-C3mumbcW.cjs`);let m=require(`fs`),h=require(`path`);h=e.a(h);let g=require(`os`),v=require(`crypto`),y=require(`semver`);y=e.a(y);let b=require(`url`),x=require(`node:util`),S=require(`node:child_process`);S=e.a(S,1);let C=require(`node:fs`),w=require(`node:os`);w=e.a(w,1);let T=require(`node:path`);T=e.a(T,1);let E=require(`node:readline`);E=e.a(E,1);let D=require(`node:http`);D=e.a(D,1);let O=require(`node:https`);O=e.a(O,1);let k=require(`node:stream`);k=e.a(k,1);let A=require(`node:zlib`);A=e.a(A,1);let j=require(`node:net`),M=require(`node:process`);M=e.a(M,1);let N=require(`node:fs/promises`),P=require(`node:url`);P=e.a(P,1);let F=require(`node:module`);F=e.a(F,1);let I=require(`dns`);I=e.a(I);let L=require(`node:buffer`),R=require(`https`),z=require(`node:timers/promises`),B=require(`node:tty`),V=require(`fs/promises`),ee=require(`readline`);var te=e.t(((e,t)=>{let n=Symbol(`@@any-observable/REGISTRATION`),r;t.exports=(e,t)=>(i,a={})=>{let o=a.global!==!1;if(o&&!r&&(r=e[n]),r&&i&&r.implementation!==i)throw Error(`any-observable already defined as \`${r.implementation}\`. You can only register an implementation before the first call to \`require('any-observable')\` and an implementation cannot be changed`);return r||(r=i&&a.Observable?{Observable:a.Observable,implementation:i}:t(i),o&&(e[n]=r)),r}})),ne=e.t(((e,t)=>{t.exports=te()(global,n);function n(e){let t;if(e===`global.Observable`)t={Observable:global.Observable,implementation:`global.Observable`};else if(e){let n=require(e);t={Observable:n.Observable||n.default||n,implementation:e}}else t=r();if(!t)throw Error("Cannot find any-observable implementation nor `global.Observable`. You must install polyfill or call `require('any-observable/register') with your preferred implementation, for example, `require('any-observable/register')('rxjs')` on app load prior to any `require('any-observable').");return t}function r(){for(let e of[`rxjs`,`zen-observable`])try{return n(e)}catch{}}})),H=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Observable=void 0;function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}var i=function(){return typeof Symbol==`function`},a=function(e){return i()&&!!Symbol[e]},o=function(e){return a(e)?Symbol[e]:`@@`+e};i()&&!a(`observable`)&&(Symbol.observable=Symbol(`observable`));var s=o(`iterator`),c=o(`observable`),l=o(`species`);function u(e,t){var n=e[t];if(n!=null){if(typeof n!=`function`)throw TypeError(n+` is not a function`);return n}}function d(e){var t=e.constructor;return t!==void 0&&(t=t[l],t===null&&(t=void 0)),t===void 0?C:t}function f(e){return e instanceof C}function p(e){p.log?p.log(e):setTimeout(function(){throw e})}function m(e){Promise.resolve().then(function(){try{e()}catch(e){p(e)}})}function h(e){var t=e._cleanup;if(t!==void 0&&(e._cleanup=void 0,t))try{if(typeof t==`function`)t();else{var n=u(t,`unsubscribe`);n&&n.call(t)}}catch(e){p(e)}}function g(e){e._observer=void 0,e._queue=void 0,e._state=`closed`}function v(e){var t=e._queue;if(t){e._queue=void 0,e._state=`ready`;for(var n=0;n<t.length&&(y(e,t[n].type,t[n].value),e._state!==`closed`);++n);}}function y(e,t,n){e._state=`running`;var r=e._observer;try{var i=u(r,t);switch(t){case`next`:i&&i.call(r,n);break;case`error`:if(g(e),i)i.call(r,n);else throw n;break;case`complete`:g(e),i&&i.call(r);break}}catch(e){p(e)}e._state===`closed`?h(e):e._state===`running`&&(e._state=`ready`)}function b(e,t,n){if(e._state!==`closed`){if(e._state===`buffering`){e._queue.push({type:t,value:n});return}if(e._state!==`ready`){e._state=`buffering`,e._queue=[{type:t,value:n}],m(function(){return v(e)});return}y(e,t,n)}}var x=function(){function e(n,r){t(this,e),this._cleanup=void 0,this._observer=n,this._queue=void 0,this._state=`initializing`;var i=new S(this);try{this._cleanup=r.call(void 0,i)}catch(e){i.error(e)}this._state===`initializing`&&(this._state=`ready`)}return r(e,[{key:`unsubscribe`,value:function(){this._state!==`closed`&&(g(this),h(this))}},{key:`closed`,get:function(){return this._state===`closed`}}]),e}(),S=function(){function e(n){t(this,e),this._subscription=n}return r(e,[{key:`next`,value:function(e){b(this._subscription,`next`,e)}},{key:`error`,value:function(e){b(this._subscription,`error`,e)}},{key:`complete`,value:function(){b(this._subscription,`complete`)}},{key:`closed`,get:function(){return this._subscription._state===`closed`}}]),e}(),C=function(){function e(n){if(t(this,e),!(this instanceof e))throw TypeError(`Observable cannot be called as a function`);if(typeof n!=`function`)throw TypeError(`Observable initializer must be a function`);this._subscriber=n}return r(e,[{key:`subscribe`,value:function(e){return(typeof e!=`object`||!e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new x(e,this._subscriber)}},{key:`forEach`,value:function(e){var t=this;return new Promise(function(n,r){if(typeof e!=`function`){r(TypeError(e+` is not a function`));return}function i(){a.unsubscribe(),n()}var a=t.subscribe({next:function(t){try{e(t,i)}catch(e){r(e),a.unsubscribe()}},error:r,complete:n})})}},{key:`map`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(d(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:`filter`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);return new(d(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})}},{key:`reduce`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=d(this),r=arguments.length>1,i=!1,a=arguments[1];return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError(`Cannot reduce an empty sequence`));n.next(a),n.complete()}})})}},{key:`concat`,value:function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=d(this);return new i(function(t){var r,a=0;function o(e){r=e.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){a===n.length?(r=void 0,t.complete()):o(i.from(n[a++]))}})}return o(e),function(){r&&=(r.unsubscribe(),void 0)}})}},{key:`flatMap`,value:function(e){var t=this;if(typeof e!=`function`)throw TypeError(e+` is not a function`);var n=d(this);return new n(function(r){var i=[],a=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var a=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(a);e>=0&&i.splice(e,1),o()}});i.push(a)},error:function(e){r.error(e)},complete:function(){o()}});function o(){a.closed&&i.length===0&&r.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),a.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:`from`,value:function(t){var n=typeof this==`function`?this:e;if(t==null)throw TypeError(t+` is not an object`);var r=u(t,c);if(r){var i=r.call(t);if(Object(i)!==i)throw TypeError(i+` is not an object`);return f(i)&&i.constructor===n?i:new n(function(e){return i.subscribe(e)})}if(a(`iterator`)&&(r=u(t,s),r))return new n(function(e){m(function(){if(!e.closed){var n=!0,i=!1,a=void 0;try{for(var o=r.call(t)[Symbol.iterator](),s;!(n=(s=o.next()).done);n=!0){var c=s.value;if(e.next(c),e.closed)return}}catch(e){i=!0,a=e}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}e.complete()}})});if(Array.isArray(t))return new n(function(e){m(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})});throw TypeError(t+` is not observable`)}},{key:`of`,value:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return new(typeof this==`function`?this:e)(function(e){m(function(){if(!e.closed){for(var t=0;t<n.length;++t)if(e.next(n[t]),e.closed)return;e.complete()}})})}},{key:l,get:function(){return this}}]),e}();e.Observable=C,i()&&Object.defineProperty(C,Symbol(`extensions`),{value:{symbol:c,hostReportError:p},configurable:!0})})),U=e.t(((e,t)=>{t.exports=H().Observable}));ne()(`zen-observable`,{Observable:U()});var re=e.t(((e,t)=>{let n=(e,t,n)=>new Promise((r,i)=>{if(n=Object.assign({concurrency:1/0},n),typeof t!=`function`)throw TypeError(`Mapper function is required`);let{concurrency:a}=n;if(!(typeof a==`number`&&a>=1))throw TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${a}\` (${typeof a})`);let o=[],s=e[Symbol.iterator](),c=!1,l=!1,u=0,d=0,f=()=>{if(c)return;let e=s.next(),n=d;if(d++,e.done){l=!0,u===0&&r(o);return}u++,Promise.resolve(e.value).then(e=>t(e,n)).then(e=>{o[n]=e,u--,f()},e=>{c=!0,i(e)})};for(let e=0;e<a&&(f(),!l);e++);});t.exports=n,t.exports.default=n})),W=e.t(((e,t)=>{t.exports=n,t.exports.default=n;function n(e){return!!e&&(typeof e==`object`||typeof e==`function`)&&typeof e.then==`function`}})),ie=e.t(((e,t)=>{t.exports=ne()().Observable})),G=e.t(((e,t)=>{let n=ie();function r(e,t,n){let r=e===!1?!1:e||t;if(n&&!r||r&&typeof r!=`string`)throw TypeError(t+`Event must be a string.`);return r}t.exports=(e,t)=>{t||={};let i=!1,a=[],o=t.await,s=r(t.dataEvent,`data`,!0),c=r(t.errorEvent,`error`),l=r(t.endEvent,`end`);function u(){i=!0,a.forEach(t=>{e.removeListener(s,t)}),a=null}let d=new Promise((t,n)=>{function r(e){o?o.then(t):t(e)}l?e.once(l,r):o&&r(),c&&e.once(c,n),o&&o.catch(n)}).catch(e=>{throw u(),e}).then(e=>(u(),e));return new n(t=>{if(d.then(t.complete.bind(t)).catch(t.error.bind(t)),i)return null;let n=e=>{t.next(e)};return e.on(s,n),a.push(n),()=>{if(e.removeListener(s,n),i)return;let t=a.indexOf(n);t!==-1&&a.splice(t,1)}})}})),ae=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`function`}e.isFunction=t})),oe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e?console.warn(`DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: `+Error().stack):t&&console.log(`RxJS: Back to a better error behavior. Thank you. <3`),t=e},get useDeprecatedSynchronousErrorHandling(){return t}}})),se=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){setTimeout(function(){throw e},0)}e.hostReportError=t})),ce=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=oe(),n=se();e.empty={closed:!0,next:function(e){},error:function(e){if(t.config.useDeprecatedSynchronousErrorHandling)throw e;n.hostReportError(e)},complete:function(){}}})),le=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isArray=(function(){return Array.isArray||(function(e){return e&&typeof e.length==`number`})})()})),ue=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return typeof e==`object`&&!!e}e.isObject=t})),de=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.UnsubscriptionError=(function(){function e(e){return Error.call(this),this.message=e?e.length+` errors occurred during unsubscription: `+e.map(function(e,t){return t+1+`) `+e.toString()}).join(` `):``,this.name=`UnsubscriptionError`,this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})()})),fe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=le(),n=ue(),r=ae(),i=de();e.Subscription=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var o;if(!this.closed){var s=this,c=s._parentOrParents,l=s._ctorUnsubscribe,u=s._unsubscribe,d=s._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,c instanceof e)c.remove(this);else if(c!==null)for(var f=0;f<c.length;++f)c[f].remove(this);if(r.isFunction(u)){l&&(this._unsubscribe=void 0);try{u.call(this)}catch(e){o=e instanceof i.UnsubscriptionError?a(e.errors):[e]}}if(t.isArray(d))for(var f=-1,p=d.length;++f<p;){var m=d[f];if(n.isObject(m))try{m.unsubscribe()}catch(e){o||=[],e instanceof i.UnsubscriptionError?o=o.concat(a(e.errors)):o.push(e)}}if(o)throw new i.UnsubscriptionError(o)}},e.prototype.add=function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case`function`:n=new e(t);case`object`:if(n===this||n.closed||typeof n.unsubscribe!=`function`)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;n=new e,n._subscriptions=[r]}break;default:throw Error(`unrecognized teardown `+t+` added to Subscription.`)}var i=n._parentOrParents;if(i===null)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return n;var a=this._subscriptions;return a===null?this._subscriptions=[n]:a.push(n),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);n!==-1&&t.splice(n,1)}},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}();function a(e){return e.reduce(function(e,t){return e.concat(t instanceof i.UnsubscriptionError?t.errors:t)},[])}})),pe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.rxSubscriber=(function(){return typeof Symbol==`function`?Symbol(`rxSubscriber`):`@@rxSubscriber_`+Math.random()})(),e.$$rxSubscriber=e.rxSubscriber})),me=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=ae(),r=ce(),i=fe(),a=pe(),o=oe(),s=se(),c=function(e){t(n,e);function n(t,i,a){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=r.empty;break;case 1:if(!t){o.destination=r.empty;break}if(typeof t==`object`){t instanceof n?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(o)):(o.syncErrorThrowable=!0,o.destination=new l(o,t));break}default:o.syncErrorThrowable=!0,o.destination=new l(o,t,i,a);break}return o}return n.prototype[a.rxSubscriber]=function(){return this},n.create=function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i},n.prototype.next=function(e){this.isStopped||this._next(e)},n.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(e){this.destination.next(e)},n.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},n}(i.Subscription);e.Subscriber=c;var l=function(e){t(i,e);function i(t,i,a,o){var s=e.call(this)||this;s._parentSubscriber=t;var c,l=s;return n.isFunction(i)?c=i:i&&(c=i.next,a=i.error,o=i.complete,i!==r.empty&&(l=Object.create(i),n.isFunction(l.unsubscribe)&&s.add(l.unsubscribe.bind(l)),l.unsubscribe=s.unsubscribe.bind(s))),s._context=l,s._next=c,s._error=a,s._complete=o,s}return i.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;!o.config.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable?this.__tryOrUnsub(this._next,e):this.__tryOrSetError(t,this._next,e)&&this.unsubscribe()}},i.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=o.config.useDeprecatedSynchronousErrorHandling;if(this._error)!n||!t.syncErrorThrowable?(this.__tryOrUnsub(this._error,e),this.unsubscribe()):(this.__tryOrSetError(t,this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s.hostReportError(e)}}},i.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};!o.config.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable?(this.__tryOrUnsub(n),this.unsubscribe()):(this.__tryOrSetError(t,n),this.unsubscribe())}else this.unsubscribe()}},i.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),o.config.useDeprecatedSynchronousErrorHandling)throw e;s.hostReportError(e)}},i.prototype.__tryOrSetError=function(e,t,n){if(!o.config.useDeprecatedSynchronousErrorHandling)throw Error(`bad call`);try{t.call(this._context,n)}catch(t){return o.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(s.hostReportError(t),!0)}return!1},i.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},i}(c);e.SafeSubscriber=l})),he=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=me();function n(e){for(;e;){var n=e,r=n.closed,i=n.destination,a=n.isStopped;if(r||a)return!1;e=i&&i instanceof t.Subscriber?i:null}return!0}e.canReportError=n})),ge=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=me(),n=pe(),r=ce();function i(e,i,a){if(e){if(e instanceof t.Subscriber)return e;if(e[n.rxSubscriber])return e[n.rxSubscriber]()}return!e&&!i&&!a?new t.Subscriber(r.empty):new t.Subscriber(e,i,a)}e.toSubscriber=i})),_e=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.observable=(function(){return typeof Symbol==`function`&&Symbol.observable||`@@observable`})()})),ve=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e}e.identity=t})),ye=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ve();function n(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(e)}e.pipe=n;function r(e){return e.length===0?t.identity:e.length===1?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}e.pipeFromArray=r})),be=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=he(),n=ge(),r=_e(),i=ye(),a=oe();e.Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,r){var i=this.operator,o=n.toSubscriber(e,t,r);if(i?o.add(i.call(o,this.source)):o.add(this.source||a.config.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),a.config.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(n){a.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),t.canReportError(e)?e.error(n):console.warn(n)}},e.prototype.forEach=function(e,t){var n=this;return t=o(t),new t(function(t,r){var i=n.subscribe(function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[r.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length===0?this:i.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return e=o(e),new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function o(e){if(e||=a.config.Promise||Promise,!e)throw Error(`no Promise impl found`);return e}})),xe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.ObjectUnsubscribedError=(function(){function e(){return Error.call(this),this.message=`object unsubscribed`,this.name=`ObjectUnsubscribedError`,this}return e.prototype=Object.create(Error.prototype),e})()})),Se=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.SubjectSubscription=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,!(!t||t.length===0||e.isStopped||e.closed)){var n=t.indexOf(this.subscriber);n!==-1&&t.splice(n,1)}}},n}(fe().Subscription)})),Ce=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=be(),r=me(),i=fe(),a=xe(),o=Se(),s=pe(),c=function(e){t(n,e);function n(t){var n=e.call(this,t)||this;return n.destination=t,n}return n}(r.Subscriber);e.SubjectSubscriber=c;var l=function(e){t(r,e);function r(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.prototype[s.rxSubscriber]=function(){return new c(this)},r.prototype.lift=function(e){var t=new u(this,this);return t.operator=e,t},r.prototype.next=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},r.prototype.error=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},r.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},r.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},r.prototype._trySubscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},r.prototype._subscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),i.Subscription.EMPTY):this.isStopped?(e.complete(),i.Subscription.EMPTY):(this.observers.push(e),new o.SubjectSubscription(this,e))},r.prototype.asObservable=function(){var e=new n.Observable;return e.source=this,e},r.create=function(e,t){return new u(e,t)},r}(n.Observable);e.Subject=l;var u=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return n.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},n.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},n.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},n.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):i.Subscription.EMPTY},n}(l);e.AnonymousSubject=u})),we=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=me();function r(){return function(e){return e.lift(new i(e))}}e.refCount=r;var i=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new a(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),a=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return n.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0){this.connection=null;return}if(e._refCount=t-1,t>1){this.connection=null;return}var n=this.connection,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()},n}(n.Subscriber)})),Te=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Ce(),r=be(),i=me(),a=fe(),o=we(),s=function(e){t(n,e);function n(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return n.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},n.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,e=this._connection=new a.Subscription,e.add(this.source.subscribe(new c(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.Subscription.EMPTY)),e},n.prototype.refCount=function(){return o.refCount()(this)},n}(r.Observable);e.ConnectableObservable=s,e.connectableObservableDescriptor=(function(){var e=s.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();var c=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return n.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},n.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},n}(n.SubjectSubscriber);(function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new l(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e})();var l=function(e){t(n,e);function n(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return n.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0){this.connection=null;return}if(e._refCount=t-1,t>1){this.connection=null;return}var n=this.connection,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()},n}(i.Subscriber)})),Ee=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=me(),r=fe(),i=be(),a=Ce();function o(e,t,n,r){return function(i){return i.lift(new s(e,t,n,r))}}e.groupBy=o;var s=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),c=function(e){t(n,e);function n(t,n,r,i,a){var o=e.call(this,t)||this;return o.keySelector=n,o.elementSelector=r,o.durationSelector=i,o.subjectSelector=a,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return n.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){this.error(e);return}this._group(e,t)},n.prototype._group=function(e,t){var n=this.groups;n||=this.groups=new Map;var r=n.get(t),i;if(this.elementSelector)try{i=this.elementSelector(e)}catch(e){this.error(e)}else i=e;if(!r){r=this.subjectSelector?this.subjectSelector():new a.Subject,n.set(t,r);var o=new u(t,r,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new u(t,r))}catch(e){this.error(e);return}this.add(s.subscribe(new l(t,r,this)))}}r.closed||r.next(i)},n.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},n.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},n.prototype.removeGroup=function(e){this.groups.delete(e)},n.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&e.prototype.unsubscribe.call(this))},n}(n.Subscriber),l=function(e){t(n,e);function n(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return n.prototype._next=function(e){this.complete()},n.prototype._unsubscribe=function(){var e=this,t=e.parent,n=e.key;this.key=this.parent=null,t&&t.removeGroup(n)},n}(n.Subscriber),u=function(e){t(n,e);function n(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return n.prototype._subscribe=function(e){var t=new r.Subscription,n=this,i=n.refCountSubscription,a=n.groupSubject;return i&&!i.closed&&t.add(new d(i)),t.add(a.subscribe(e)),t},n}(i.Observable);e.GroupedObservable=u;var d=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return n.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(e.prototype.unsubscribe.call(this),--t.count,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},n}(r.Subscription)})),De=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Ce(),r=xe();e.BehaviorSubject=function(e){t(n,e);function n(t){var n=e.call(this)||this;return n._value=t,n}return Object.defineProperty(n.prototype,`value`,{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(n.Subject)})),Oe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.Action=function(e){t(n,e);function n(t,n){return e.call(this)||this}return n.prototype.schedule=function(e,t){return t===void 0&&(t=0),this},n}(fe().Subscription)})),ke=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsyncAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return n.prototype.schedule=function(e,t){if(t===void 0&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},n.prototype.requestAsyncId=function(e,t,n){return n===void 0&&(n=0),setInterval(e.flush.bind(e,this),n)},n.prototype.recycleAsyncId=function(e,t,n){if(n===void 0&&(n=0),n!==null&&this.delay===n&&this.pending===!1)return t;clearInterval(t)},n.prototype.execute=function(e,t){if(this.closed)return Error(`executing a cancelled action`);this.pending=!1;var n=this._execute(e,t);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||Error(e)}if(n)return this.unsubscribe(),r},n.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,r!==-1&&n.splice(r,1),e!=null&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},n}(Oe().Action)})),Ae=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.schedule=function(t,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},n.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!==null&&r>0||r===null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},n}(ke().AsyncAction)})),je=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.Scheduler=function(){function e(t,n){n===void 0&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return t===void 0&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()})),Me=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=je();e.AsyncScheduler=function(e){t(r,e);function r(t,i){i===void 0&&(i=n.Scheduler.now);var a=e.call(this,t,function(){return r.delegate&&r.delegate!==a?r.delegate.now():i()})||this;return a.actions=[],a.active=!1,a.scheduled=void 0,a}return r.prototype.schedule=function(t,n,i){return n===void 0&&(n=0),r.delegate&&r.delegate!==this?r.delegate.schedule(t,n,i):e.prototype.schedule.call(this,t,n,i)},r.prototype.flush=function(e){var t=this.actions;if(this.active){t.push(e);return}var n;this.active=!0;do if(n=e.execute(e.state,e.delay))break;while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}},r}(n.Scheduler)})),Ne=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.QueueScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(Me().AsyncScheduler)})),Pe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Ae();e.queueScheduler=new(Ne()).QueueScheduler(t.QueueAction),e.queue=e.queueScheduler})),Fe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=be();e.EMPTY=new t.Observable(function(e){return e.complete()});function n(t){return t?r(t):e.EMPTY}e.empty=n;function r(e){return new t.Observable(function(t){return e.schedule(function(){return t.complete()})})}})),Ie=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});function t(e){return e&&typeof e.schedule==`function`}e.isScheduler=t})),Le=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.subscribeToArray=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}})),Re=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=be(),n=fe();function r(e,r){return new t.Observable(function(t){var i=new n.Subscription,a=0;return i.add(r.schedule(function(){if(a===e.length){t.complete();return}t.next(e[a++]),t.closed||i.add(this.schedule())})),i})}e.scheduleArray=r})),ze=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=be(),n=Le(),r=Re();function i(e,i){return i?r.scheduleArray(e,i):new t.Observable(n.subscribeToArray(e))}e.fromArray=i})),Be=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Ie(),n=ze(),r=Re();function i(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var a=e[e.length-1];return t.isScheduler(a)?(e.pop(),r.scheduleArray(e,a)):n.fromArray(e)}e.of=i})),Ve=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=be();function n(e,n){return n?new t.Observable(function(t){return n.schedule(r,0,{error:e,subscriber:t})}):new t.Observable(function(t){return t.error(e)})}e.throwError=n;function r(e){var t=e.error;e.subscriber.error(t)}})),He=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Fe(),n=Be(),r=Ve();(function(e){e.NEXT=`N`,e.ERROR=`E`,e.COMPLETE=`C`})(e.NotificationKind||={}),e.Notification=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue=e===`N`}return e.prototype.observe=function(e){switch(this.kind){case`N`:return e.next&&e.next(this.value);case`E`:return e.error&&e.error(this.error);case`C`:return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case`N`:return e&&e(this.value);case`E`:return t&&t(this.error);case`C`:return n&&n()}},e.prototype.accept=function(e,t,n){return e&&typeof e.next==`function`?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case`N`:return n.of(this.value);case`E`:return r.throwError(this.error);case`C`:return t.empty()}throw Error(`unexpected notification kind value`)},e.createNext=function(t){return t===void 0?e.undefinedValueNotification:new e(`N`,t)},e.createError=function(t){return new e(`E`,void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e(`C`),e.undefinedValueNotification=new e(`N`,void 0),e}()})),Ue=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=me(),r=He();function i(e,t){return t===void 0&&(t=0),function(n){return n.lift(new a(e,t))}}e.observeOn=i;var a=function(){function e(e,t){t===void 0&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new o(e,this.scheduler,this.delay))},e}();e.ObserveOnOperator=a;var o=function(e){t(n,e);function n(t,n,r){r===void 0&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return n.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},n.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new s(e,this.destination)))},n.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},n.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e)),this.unsubscribe()},n.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete()),this.unsubscribe()},n}(n.Subscriber);e.ObserveOnSubscriber=o;var s=function(){function e(e,t){this.notification=e,this.destination=t}return e}();e.ObserveOnMessage=s})),We=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Ce(),r=Pe(),i=fe(),a=Ue(),o=xe(),s=Se();e.ReplaySubject=function(e){t(n,e);function n(t,n,r){t===void 0&&(t=1/0),n===void 0&&(n=1/0);var i=e.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===1/0?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return n.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},n.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new c(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},n.prototype._subscribe=function(e){var t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,c=n.length,l;if(this.closed)throw new o.ObjectUnsubscribedError;if(this.isStopped||this.hasError?l=i.Subscription.EMPTY:(this.observers.push(e),l=new s.SubjectSubscription(this,e)),r&&e.add(e=new a.ObserveOnSubscriber(e,r)),t)for(var u=0;u<c&&!e.closed;u++)e.next(n[u]);else for(var u=0;u<c&&!e.closed;u++)e.next(n[u].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),l},n.prototype._getNow=function(){return(this.scheduler||r.queue).now()},n.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,a=0;a<i&&!(e-r[a].time<n);)a++;return i>t&&(a=Math.max(a,i-t)),a>0&&r.splice(0,a),r},n}(n.Subject);var c=function(){function e(e,t){this.time=e,this.value=t}return e}()})),Ge=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Ce(),r=fe();e.AsyncSubject=function(e){t(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return n.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),r.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),r.Subscription.EMPTY):e.prototype._subscribe.call(this,t)},n.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},n.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},n.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},n}(n.Subject)})),Ke=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=1,n=(function(){return Promise.resolve()})(),r={};function i(e){return e in r?(delete r[e],!0):!1}e.Immediate={setImmediate:function(e){var a=t++;return r[a]=!0,n.then(function(){return i(a)&&e()}),a},clearImmediate:function(e){i(e)}},e.TestTools={pending:function(){return Object.keys(r).length}}})),qe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0});var n=Ke();e.AsapAction=function(e){t(r,e);function r(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||=n.Immediate.setImmediate(t.flush.bind(t,null)))},r.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(n.Immediate.clearImmediate(r),t.scheduled=void 0)},r}(ke().AsyncAction)})),K=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AsapScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t=this.actions,n,r=-1,i=t.length;e||=t.shift();do if(n=e.execute(e.state,e.delay))break;while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}},n}(Me().AsyncScheduler)})),Je=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=qe();e.asapScheduler=new(K()).AsapScheduler(t.AsapAction),e.asap=e.asapScheduler})),Ye=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=ke();e.asyncScheduler=new(Me()).AsyncScheduler(t.AsyncAction),e.async=e.asyncScheduler})),Xe=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameAction=function(e){t(n,e);function n(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return n.prototype.requestAsyncId=function(t,n,r){return r===void 0&&(r=0),r!==null&&r>0?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||=requestAnimationFrame(function(){return t.flush(null)}))},n.prototype.recycleAsyncId=function(t,n,r){if(r===void 0&&(r=0),r!==null&&r>0||r===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);t.actions.length===0&&(cancelAnimationFrame(n),t.scheduled=void 0)},n}(ke().AsyncAction)})),Ze=e.t((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,`__esModule`,{value:!0}),e.AnimationFrameScheduler=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t=this.actions,n,r=-1,i=t.length;e||=t.shift();do if(n=e.execute(e.state,e.delay))break;while(++r<i&&(e=t.shift()));if(this.active=!1,n){for(;++r<i&&(e=t.shift());)e.unsubscribe();throw n}},n}(Me().AsyncScheduler)})),Qe=e.t((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var t=Xe();e.animationFrameScheduler=new(Ze()).AnimationFrameScheduler(t.Anima