UNPKG

puppeteer-core

Version:

A high-level API to control headless Chrome over the DevTools Protocol

3 lines 151 kB
"use strict";var s=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var j=s(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.isFunction=void 0;function xs(r){return typeof r=="function"}xr.isFunction=xs});var H=s(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.createErrorClass=void 0;function ks(r){var t=function(n){Error.call(n),n.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}kr.createErrorClass=ks});var Bi=s(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.UnsubscriptionError=void 0;var Cs=H();Cr.UnsubscriptionError=Cs.createErrorClass(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription: `+e.map(function(n,i){return i+1+") "+n.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=e}})});var K=s(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.arrRemove=void 0;function Rs(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}Rr.arrRemove=Rs});var C=s(T=>{"use strict";var uo=T&&T.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},oo=T&&T.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},ao=T&&T.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(T,"__esModule",{value:!0});T.isSubscription=T.EMPTY_SUBSCRIPTION=T.Subscription=void 0;var hr=j(),Di=Bi(),co=K(),Ki=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,n,i,u;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var c=uo(o),f=c.next();!f.done;f=c.next()){var l=f.value;l.remove(this)}}catch(_){t={error:_}}finally{try{f&&!f.done&&(e=c.return)&&e.call(c)}finally{if(t)throw t.error}}else o.remove(this);var v=this.initialTeardown;if(hr.isFunction(v))try{v()}catch(_){u=_ instanceof Di.UnsubscriptionError?_.errors:[_]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=uo(d),y=p.next();!y.done;y=p.next()){var h=y.value;try{lo(h)}catch(_){u=u??[],_ instanceof Di.UnsubscriptionError?u=ao(ao([],oo(u)),oo(_.errors)):u.push(_)}}}catch(_){n={error:_}}finally{try{y&&!y.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(u)throw new Di.UnsubscriptionError(u)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)lo(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&co.arrRemove(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&co.arrRemove(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}();T.Subscription=Ki;T.EMPTY_SUBSCRIPTION=Ki.EMPTY;function Ws(r){return r instanceof Ki||r&&"closed"in r&&hr.isFunction(r.remove)&&hr.isFunction(r.add)&&hr.isFunction(r.unsubscribe)}T.isSubscription=Ws;function lo(r){hr.isFunction(r)?r():r.unsubscribe()}});var ke=s(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.config=void 0;Wr.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Gi=s(V=>{"use strict";var so=V&&V.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},fo=V&&V.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(V,"__esModule",{value:!0});V.timeoutProvider=void 0;V.timeoutProvider={setTimeout:function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var i=V.timeoutProvider.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,fo([r,t],so(e))):setTimeout.apply(void 0,fo([r,t],so(e)))},clearTimeout:function(r){var t=V.timeoutProvider.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(r)},delegate:void 0}});var Qi=s(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.reportUnhandledError=void 0;var Ls=ke(),Ns=Gi();function Vs(r){Ns.timeoutProvider.setTimeout(function(){var t=Ls.config.onUnhandledError;if(t)t(r);else throw r})}Lr.reportUnhandledError=Vs});var E=s(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.noop=void 0;function Us(){}Nr.noop=Us});var vo=s(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.createNotification=U.nextNotification=U.errorNotification=U.COMPLETE_NOTIFICATION=void 0;U.COMPLETE_NOTIFICATION=function(){return Vr("C",void 0,void 0)}();function zs(r){return Vr("E",void 0,r)}U.errorNotification=zs;function Ys(r){return Vr("N",r,void 0)}U.nextNotification=Ys;function Vr(r,t,e){return{kind:r,value:t,error:e}}U.createNotification=Vr});var Ur=s(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.captureError=Ce.errorContext=void 0;var po=ke(),Se=null;function Bs(r){if(po.config.useDeprecatedSynchronousErrorHandling){var t=!Se;if(t&&(Se={errorThrown:!1,error:null}),r(),t){var e=Se,n=e.errorThrown,i=e.error;if(Se=null,n)throw i}}else r()}Ce.errorContext=Bs;function Ds(r){po.config.useDeprecatedSynchronousErrorHandling&&Se&&(Se.errorThrown=!0,Se.error=r)}Ce.captureError=Ds});var Re=s(W=>{"use strict";var ho=W&&W.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(W,"__esModule",{value:!0});W.EMPTY_OBSERVER=W.SafeSubscriber=W.Subscriber=void 0;var Ks=j(),bo=C(),Hi=ke(),Gs=Qi(),_o=E(),Ji=vo(),Qs=Gi(),Js=Ur(),yo=function(r){ho(t,r);function t(e){var n=r.call(this)||this;return n.isStopped=!1,e?(n.destination=e,bo.isSubscription(e)&&e.add(n)):n.destination=W.EMPTY_OBSERVER,n}return t.create=function(e,n,i){return new mo(e,n,i)},t.prototype.next=function(e){this.isStopped?$i(Ji.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?$i(Ji.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?$i(Ji.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(bo.Subscription);W.Subscriber=yo;var Zs=Function.prototype.bind;function Zi(r,t){return Zs.call(r,t)}var $s=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){zr(n)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){zr(n)}else zr(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){zr(e)}},r}(),mo=function(r){ho(t,r);function t(e,n,i){var u=r.call(this)||this,o;if(Ks.isFunction(e)||!e)o={next:e??void 0,error:n??void 0,complete:i??void 0};else{var c;u&&Hi.config.useDeprecatedNextContext?(c=Object.create(e),c.unsubscribe=function(){return u.unsubscribe()},o={next:e.next&&Zi(e.next,c),error:e.error&&Zi(e.error,c),complete:e.complete&&Zi(e.complete,c)}):o=e}return u.destination=new $s(o),u}return t}(yo);W.SafeSubscriber=mo;function zr(r){Hi.config.useDeprecatedSynchronousErrorHandling?Js.captureError(r):Gs.reportUnhandledError(r)}function Hs(r){throw r}function $i(r,t){var e=Hi.config.onStoppedNotification;e&&Qs.timeoutProvider.setTimeout(function(){return e(r,t)})}W.EMPTY_OBSERVER={closed:!0,next:_o.noop,error:Hs,complete:_o.noop}});var yr=s(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.observable=void 0;Yr.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var M=s(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.identity=void 0;function Xs(r){return r}Br.identity=Xs});var mr=s(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.pipeFromArray=We.pipe=void 0;var ef=M();function rf(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return Oo(r)}We.pipe=rf;function Oo(r){return r.length===0?ef.identity:r.length===1?r[0]:function(e){return r.reduce(function(n,i){return i(n)},e)}}We.pipeFromArray=Oo});var P=s(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.Observable=void 0;var eu=Re(),tf=C(),nf=yr(),uf=mr(),of=ke(),Xi=j(),af=Ur(),cf=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,n){var i=this,u=sf(t)?t:new eu.SafeSubscriber(t,e,n);return af.errorContext(function(){var o=i,c=o.operator,f=o.source;u.add(c?c.call(u,f):f?i._subscribe(u):i._trySubscribe(u))}),u},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var n=this;return e=go(e),new e(function(i,u){var o=new eu.SafeSubscriber({next:function(c){try{t(c)}catch(f){u(f),o.unsubscribe()}},error:u,complete:i});n.subscribe(o)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[nf.observable]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return uf.pipeFromArray(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=go(t),new t(function(n,i){var u;e.subscribe(function(o){return u=o},function(o){return i(o)},function(){return n(u)})})},r.create=function(t){return new r(t)},r}();Dr.Observable=cf;function go(r){var t;return(t=r??of.config.Promise)!==null&&t!==void 0?t:Promise}function lf(r){return r&&Xi.isFunction(r.next)&&Xi.isFunction(r.error)&&Xi.isFunction(r.complete)}function sf(r){return r&&r instanceof eu.Subscriber||lf(r)&&tf.isSubscription(r)}});var b=s(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.operate=Le.hasLift=void 0;var ff=j();function qo(r){return ff.isFunction(r==null?void 0:r.lift)}Le.hasLift=qo;function vf(r){return function(t){if(qo(t))return t.lift(function(e){try{return r(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}Le.operate=vf});var O=s(X=>{"use strict";var df=X&&X.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(X,"__esModule",{value:!0});X.OperatorSubscriber=X.createOperatorSubscriber=void 0;var pf=Re();function bf(r,t,e,n,i){return new So(r,t,e,n,i)}X.createOperatorSubscriber=bf;var So=function(r){df(t,r);function t(e,n,i,u,o,c){var f=r.call(this,e)||this;return f.onFinalize=o,f.shouldUnsubscribe=c,f._next=n?function(l){try{n(l)}catch(v){e.error(v)}}:r.prototype._next,f._error=u?function(l){try{u(l)}catch(v){e.error(v)}finally{this.unsubscribe()}}:r.prototype._error,f._complete=i?function(){try{i()}catch(l){e.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,f}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;r.prototype.unsubscribe.call(this),!n&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(pf.Subscriber);X.OperatorSubscriber=So});var ru=s(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.refCount=void 0;var _f=b(),hf=O();function yf(){return _f.operate(function(r,t){var e=null;r._refCount++;var n=hf.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!r||r._refCount<=0||0<--r._refCount){e=null;return}var i=r._connection,u=e;e=null,i&&(!u||i===u)&&i.unsubscribe(),t.unsubscribe()});r.subscribe(n),n.closed||(e=r.connect())})}Kr.refCount=yf});var Or=s(Ne=>{"use strict";var mf=Ne&&Ne.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ConnectableObservable=void 0;var Of=P(),jo=C(),gf=ru(),qf=O(),Sf=b(),jf=function(r){mf(t,r);function t(e,n){var i=r.call(this)||this;return i.source=e,i.subjectFactory=n,i._subject=null,i._refCount=0,i._connection=null,Sf.hasLift(e)&&(i.lift=e.lift),i}return t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype._teardown=function(){this._refCount=0;var e=this._connection;this._subject=this._connection=null,e==null||e.unsubscribe()},t.prototype.connect=function(){var e=this,n=this._connection;if(!n){n=this._connection=new jo.Subscription;var i=this.getSubject();n.add(this.source.subscribe(qf.createOperatorSubscriber(i,void 0,function(){e._teardown(),i.complete()},function(u){e._teardown(),i.error(u)},function(){return e._teardown()}))),n.closed&&(this._connection=null,n=jo.Subscription.EMPTY)}return n},t.prototype.refCount=function(){return gf.refCount()(this)},t}(Of.Observable);Ne.ConnectableObservable=jf});var Po=s(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.performanceTimestampProvider=void 0;gr.performanceTimestampProvider={now:function(){return(gr.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var tu=s(L=>{"use strict";var wo=L&&L.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ao=L&&L.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(L,"__esModule",{value:!0});L.animationFrameProvider=void 0;var Pf=C();L.animationFrameProvider={schedule:function(r){var t=requestAnimationFrame,e=cancelAnimationFrame,n=L.animationFrameProvider.delegate;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);var i=t(function(u){e=void 0,r(u)});return new Pf.Subscription(function(){return e==null?void 0:e(i)})},requestAnimationFrame:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=L.animationFrameProvider.delegate;return((e==null?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,Ao([],wo(r)))},cancelAnimationFrame:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=L.animationFrameProvider.delegate;return((e==null?void 0:e.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,Ao([],wo(r)))},delegate:void 0}});var Fo=s(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.animationFrames=void 0;var wf=P(),Af=Po(),Eo=tu();function Ef(r){return r?Mo(r):Mf}Gr.animationFrames=Ef;function Mo(r){return new wf.Observable(function(t){var e=r||Af.performanceTimestampProvider,n=e.now(),i=0,u=function(){t.closed||(i=Eo.animationFrameProvider.requestAnimationFrame(function(o){i=0;var c=e.now();t.next({timestamp:r?c:o,elapsed:c-n}),u()}))};return u(),function(){i&&Eo.animationFrameProvider.cancelAnimationFrame(i)}})}var Mf=Mo()});var nu=s(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.ObjectUnsubscribedError=void 0;var Ff=H();Qr.ObjectUnsubscribedError=Ff.createErrorClass(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var F=s(z=>{"use strict";var To=z&&z.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}(),If=z&&z.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(z,"__esModule",{value:!0});z.AnonymousSubject=z.Subject=void 0;var Io=P(),uu=C(),Tf=nu(),xf=K(),iu=Ur(),xo=function(r){To(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var n=new ou(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Tf.ObjectUnsubscribedError},t.prototype.next=function(e){var n=this;iu.errorContext(function(){var i,u;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=If(n.currentObservers),c=o.next();!c.done;c=o.next()){var f=c.value;f.next(e)}}catch(l){i={error:l}}finally{try{c&&!c.done&&(u=o.return)&&u.call(o)}finally{if(i)throw i.error}}}})},t.prototype.error=function(e){var n=this;iu.errorContext(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=e;for(var i=n.observers;i.length;)i.shift().error(e)}})},t.prototype.complete=function(){var e=this;iu.errorContext(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var n=e.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var n=this,i=this,u=i.hasError,o=i.isStopped,c=i.observers;return u||o?uu.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(e),new uu.Subscription(function(){n.currentObservers=null,xf.arrRemove(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n.thrownError,o=n.isStopped;i?e.error(u):o&&e.complete()},t.prototype.asObservable=function(){var e=new Io.Observable;return e.source=this,e},t.create=function(e,n){return new ou(e,n)},t}(Io.Observable);z.Subject=xo;var ou=function(r){To(t,r);function t(e,n){var i=r.call(this)||this;return i.destination=e,i.source=n,i}return t.prototype.next=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,e)},t.prototype.error=function(e){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,e)},t.prototype.complete=function(){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||n===void 0||n.call(e)},t.prototype._subscribe=function(e){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(e))!==null&&i!==void 0?i:uu.EMPTY_SUBSCRIPTION},t}(xo);z.AnonymousSubject=ou});var au=s(Ve=>{"use strict";var kf=Ve&&Ve.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.BehaviorSubject=void 0;var Cf=F(),Rf=function(r){kf(t,r);function t(e){var n=r.call(this)||this;return n._value=e,n}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var n=r.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},t.prototype.getValue=function(){var e=this,n=e.hasError,i=e.thrownError,u=e._value;if(n)throw i;return this._throwIfClosed(),u},t.prototype.next=function(e){r.prototype.next.call(this,this._value=e)},t}(Cf.Subject);Ve.BehaviorSubject=Rf});var Jr=s(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.dateTimestampProvider=void 0;qr.dateTimestampProvider={now:function(){return(qr.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Zr=s(Ue=>{"use strict";var Wf=Ue&&Ue.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ReplaySubject=void 0;var Lf=F(),Nf=Jr(),Vf=function(r){Wf(t,r);function t(e,n,i){e===void 0&&(e=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Nf.dateTimestampProvider);var u=r.call(this)||this;return u._bufferSize=e,u._windowTime=n,u._timestampProvider=i,u._buffer=[],u._infiniteTimeWindow=!0,u._infiniteTimeWindow=n===1/0,u._bufferSize=Math.max(1,e),u._windowTime=Math.max(1,n),u}return t.prototype.next=function(e){var n=this,i=n.isStopped,u=n._buffer,o=n._infiniteTimeWindow,c=n._timestampProvider,f=n._windowTime;i||(u.push(e),!o&&u.push(c.now()+f)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(e),i=this,u=i._infiniteTimeWindow,o=i._buffer,c=o.slice(),f=0;f<c.length&&!e.closed;f+=u?1:2)e.next(c[f]);return this._checkFinalizedStatuses(e),n},t.prototype._trimBuffer=function(){var e=this,n=e._bufferSize,i=e._timestampProvider,u=e._buffer,o=e._infiniteTimeWindow,c=(o?1:2)*n;if(n<1/0&&c<u.length&&u.splice(0,u.length-c),!o){for(var f=i.now(),l=0,v=1;v<u.length&&u[v]<=f;v+=2)l=v;l&&u.splice(0,l+1)}},t}(Lf.Subject);Ue.ReplaySubject=Vf});var $r=s(ze=>{"use strict";var Uf=ze&&ze.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ze,"__esModule",{value:!0});ze.AsyncSubject=void 0;var zf=F(),Yf=function(r){Uf(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}return t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,u=n._hasValue,o=n._value,c=n.thrownError,f=n.isStopped,l=n._isComplete;i?e.error(c):(f||l)&&(u&&e.next(o),e.complete())},t.prototype.next=function(e){this.isStopped||(this._value=e,this._hasValue=!0)},t.prototype.complete=function(){var e=this,n=e._hasValue,i=e._value,u=e._isComplete;u||(this._isComplete=!0,n&&r.prototype.next.call(this,i),r.prototype.complete.call(this))},t}(zf.Subject);ze.AsyncSubject=Yf});var ko=s(Ye=>{"use strict";var Bf=Ye&&Ye.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ye,"__esModule",{value:!0});Ye.Action=void 0;var Df=C(),Kf=function(r){Bf(t,r);function t(e,n){return r.call(this)||this}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),this},t}(Df.Subscription);Ye.Action=Kf});var Wo=s(Y=>{"use strict";var Co=Y&&Y.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Ro=Y&&Y.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(Y,"__esModule",{value:!0});Y.intervalProvider=void 0;Y.intervalProvider={setInterval:function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var i=Y.intervalProvider.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Ro([r,t],Co(e))):setInterval.apply(void 0,Ro([r,t],Co(e)))},clearInterval:function(r){var t=Y.intervalProvider.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(r)},delegate:void 0}});var De=s(Be=>{"use strict";var Gf=Be&&Be.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Be,"__esModule",{value:!0});Be.AsyncAction=void 0;var Qf=ko(),Lo=Wo(),Jf=K(),Zf=function(r){Gf(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return t.prototype.schedule=function(e,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=e;var u=this.id,o=this.scheduler;return u!=null&&(this.id=this.recycleAsyncId(o,u,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,n),this},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),Lo.intervalProvider.setInterval(e.flush.bind(e,this),i)},t.prototype.recycleAsyncId=function(e,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&Lo.intervalProvider.clearInterval(n)},t.prototype.execute=function(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(e,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,n){var i=!1,u;try{this.work(e)}catch(o){i=!0,u=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),u},t.prototype.unsubscribe=function(){if(!this.closed){var e=this,n=e.id,i=e.scheduler,u=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Jf.arrRemove(u,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},t}(Qf.Action);Be.AsyncAction=Zf});var Vo=s(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.TestTools=Ke.Immediate=void 0;var $f=1,cu,Hr={};function No(r){return r in Hr?(delete Hr[r],!0):!1}Ke.Immediate={setImmediate:function(r){var t=$f++;return Hr[t]=!0,cu||(cu=Promise.resolve()),cu.then(function(){return No(t)&&r()}),t},clearImmediate:function(r){No(r)}};Ke.TestTools={pending:function(){return Object.keys(Hr).length}}});var zo=s(B=>{"use strict";var Hf=B&&B.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,u=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)u.push(i.value)}catch(c){o={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(o)throw o.error}}return u},Xf=B&&B.__spreadArray||function(r,t){for(var e=0,n=t.length,i=r.length;e<n;e++,i++)r[i]=t[e];return r};Object.defineProperty(B,"__esModule",{value:!0});B.immediateProvider=void 0;var Uo=Vo(),ev=Uo.Immediate.setImmediate,rv=Uo.Immediate.clearImmediate;B.immediateProvider={setImmediate:function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=B.immediateProvider.delegate;return((e==null?void 0:e.setImmediate)||ev).apply(void 0,Xf([],Hf(r)))},clearImmediate:function(r){var t=B.immediateProvider.delegate;return((t==null?void 0:t.clearImmediate)||rv)(r)},delegate:void 0}});var Bo=s(Ge=>{"use strict";var tv=Ge&&Ge.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.AsapAction=void 0;var nv=De(),Yo=zo(),iv=function(r){tv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=Yo.immediateProvider.setImmediate(e.flush.bind(e,void 0))))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&(Yo.immediateProvider.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},t}(nv.AsyncAction);Ge.AsapAction=iv});var lu=s(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Scheduler=void 0;var uv=Jr(),ov=function(){function r(t,e){e===void 0&&(e=r.now),this.schedulerActionCtor=t,this.now=e}return r.prototype.schedule=function(t,e,n){return e===void 0&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},r.now=uv.dateTimestampProvider.now,r}();Xr.Scheduler=ov});var Je=s(Qe=>{"use strict";var av=Qe&&Qe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Qe,"__esModule",{value:!0});Qe.AsyncScheduler=void 0;var Do=lu(),cv=function(r){av(t,r);function t(e,n){n===void 0&&(n=Do.Scheduler.now);var i=r.call(this,e,n)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(e){var n=this.actions;if(this._active){n.push(e);return}var i;this._active=!0;do if(i=e.execute(e.state,e.delay))break;while(e=n.shift());if(this._active=!1,i){for(;e=n.shift();)e.unsubscribe();throw i}},t}(Do.Scheduler);Qe.AsyncScheduler=cv});var Ko=s(Ze=>{"use strict";var lv=Ze&&Ze.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.AsapScheduler=void 0;var sv=Je(),fv=function(r){lv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(sv.AsyncScheduler);Ze.AsapScheduler=fv});var Go=s(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.asap=je.asapScheduler=void 0;var vv=Bo(),dv=Ko();je.asapScheduler=new dv.AsapScheduler(vv.AsapAction);je.asap=je.asapScheduler});var x=s(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.async=Pe.asyncScheduler=void 0;var pv=De(),bv=Je();Pe.asyncScheduler=new bv.AsyncScheduler(pv.AsyncAction);Pe.async=Pe.asyncScheduler});var Qo=s($e=>{"use strict";var _v=$e&&$e.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty($e,"__esModule",{value:!0});$e.QueueAction=void 0;var hv=De(),yv=function(r){_v(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.schedule=function(e,n){return n===void 0&&(n=0),n>0?r.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},t.prototype.execute=function(e,n){return n>0||this.closed?r.prototype.execute.call(this,e,n):this._execute(e,n)},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.flush(this),0)},t}(hv.AsyncAction);$e.QueueAction=yv});var Jo=s(He=>{"use strict";var mv=He&&He.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(He,"__esModule",{value:!0});He.QueueScheduler=void 0;var Ov=Je(),gv=function(r){mv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Ov.AsyncScheduler);He.QueueScheduler=gv});var Zo=s(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.queue=we.queueScheduler=void 0;var qv=Qo(),Sv=Jo();we.queueScheduler=new Sv.QueueScheduler(qv.QueueAction);we.queue=we.queueScheduler});var Ho=s(Xe=>{"use strict";var jv=Xe&&Xe.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.AnimationFrameAction=void 0;var Pv=De(),$o=tu(),wv=function(r){jv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),i!==null&&i>0?r.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e._scheduled||(e._scheduled=$o.animationFrameProvider.requestAnimationFrame(function(){return e.flush(void 0)})))},t.prototype.recycleAsyncId=function(e,n,i){var u;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var o=e.actions;n!=null&&((u=o[o.length-1])===null||u===void 0?void 0:u.id)!==n&&($o.animationFrameProvider.cancelAnimationFrame(n),e._scheduled=void 0)},t}(Pv.AsyncAction);Xe.AnimationFrameAction=wv});var Xo=s(er=>{"use strict";var Av=er&&er.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(er,"__esModule",{value:!0});er.AnimationFrameScheduler=void 0;var Ev=Je(),Mv=function(r){Av(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,u;e=e||i.shift();do if(u=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,u){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw u}},t}(Ev.AsyncScheduler);er.AnimationFrameScheduler=Mv});var ea=s(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.animationFrame=Ae.animationFrameScheduler=void 0;var Fv=Ho(),Iv=Xo();Ae.animationFrameScheduler=new Iv.AnimationFrameScheduler(Fv.AnimationFrameAction);Ae.animationFrame=Ae.animationFrameScheduler});var na=s(ee=>{"use strict";var ra=ee&&ee.__extends||function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var u in i)Object.prototype.hasOwnProperty.call(i,u)&&(n[u]=i[u])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}}();Object.defineProperty(ee,"__esModule",{value:!0});ee.VirtualAction=ee.VirtualTimeScheduler=void 0;var Tv=De(),xv=C(),kv=Je(),Cv=function(r){ra(t,r);function t(e,n){e===void 0&&(e=ta),n===void 0&&(n=1/0);var i=r.call(this,e,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return t.prototype.flush=function(){for(var e=this,n=e.actions,i=e.maxFrames,u,o;(o=n[0])&&o.delay<=i&&(n.shift(),this.frame=o.delay,!(u=o.execute(o.state,o.delay))););if(u){for(;o=n.shift();)o.unsubscribe();throw u}},t.frameTimeFactor=10,t}(kv.AsyncScheduler);ee.VirtualTimeScheduler=Cv;var ta=function(r){ra(t,r);function t(e,n,i){i===void 0&&(i=e.index+=1);var u=r.call(this,e,n)||this;return u.scheduler=e,u.work=n,u.index=i,u.active=!0,u.index=e.index=i,u}return t.prototype.schedule=function(e,n){if(n===void 0&&(n=0),Number.isFinite(n)){if(!this.id)return r.prototype.schedule.call(this,e,n);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(e,n)}else return xv.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,i){i===void 0&&(i=0),this.delay=e.frame+i;var u=e.actions;return u.push(this),u.sort(t.sortActions),1},t.prototype.recycleAsyncId=function(e,n,i){i===void 0&&(i=0)},t.prototype._execute=function(e,n){if(this.active===!0)return r.prototype._execute.call(this,e,n)},t.sortActions=function(e,n){return e.delay===n.delay?e.index===n.index?0:e.index>n.index?1:-1:e.delay>n.delay?1:-1},t}(Tv.AsyncAction);ee.VirtualAction=ta});var N=s(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.empty=Ee.EMPTY=void 0;var ia=P();Ee.EMPTY=new ia.Observable(function(r){return r.complete()});function Rv(r){return r?Wv(r):Ee.EMPTY}Ee.empty=Rv;function Wv(r){return new ia.Observable(function(t){return r.schedule(function(){return t.complete()})})}});var Sr=s(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.isScheduler=void 0;var Lv=j();function Nv(r){return r&&Lv.isFunction(r.schedule)}et.isScheduler=Nv});var k=s(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.popNumber=re.popScheduler=re.popResultSelector=void 0;var Vv=j(),Uv=Sr();function su(r){return r[r.length-1]}function zv(r){return Vv.isFunction(su(r))?r.pop():void 0}re.popResultSelector=zv;function Yv(r){return Uv.isScheduler(su(r))?r.pop():void 0}re.popScheduler=Yv;function Bv(r,t){return typeof su(r)=="number"?r.pop():t}re.popNumber=Bv});var tt=s(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.isArrayLike=void 0;rt.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var fu=s(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.isPromise=void 0;var Dv=j();function Kv(r){return Dv.isFunction(r==null?void 0:r.then)}nt.isPromise=Kv});var vu=s(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isInteropObservable=void 0;var Gv=yr(),Qv=j();function Jv(r){return Qv.isFunction(r[Gv.observable])}it.isInteropObservable=Jv});var du=s(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.isAsyncIterable=void 0;var Zv=j();function $v(r){return Symbol.asyncIterator&&Zv.isFunction(r==null?void 0:r[Symbol.asyncIterator])}ut.isAsyncIterable=$v});var pu=s(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.createInvalidObservableTypeError=void 0;function Hv(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}ot.createInvalidObservableTypeError=Hv});var bu=s(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.iterator=rr.getSymbolIterator=void 0;function ua(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}rr.getSymbolIterator=ua;rr.iterator=ua()});var _u=s(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.isIterable=void 0;var Xv=bu(),ed=j();function rd(r){return ed.isFunction(r==null?void 0:r[Xv.iterator])}at.isIterable=rd});var ct=s(R=>{"use strict";var td=R&&R.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){e.label=l[1];break}if(l[0]===6&&e.label<u[1]){e.label=u[1],u=l;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(l);break}u[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(r,e)}catch(v){l=[6,v],i=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},tr=R&&R.__await||function(r){return this instanceof tr?(this.v=r,this):new tr(r)},nd=R&&R.__asyncGenerator||function(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,u=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(p){n[p]&&(i[p]=function(y){return new Promise(function(h,_){u.push([p,y,h,_])>1||c(p,y)})})}function c(p,y){try{f(n[p](y))}catch(h){d(u[0][3],h)}}function f(p){p.value instanceof tr?Promise.resolve(p.value.v).then(l,v):d(u[0][2],p)}function l(p){c("next",p)}function v(p){c("throw",p)}function d(p,y){p(y),u.shift(),u.length&&c(u[0][0],u[0][1])}};Object.defineProperty(R,"__esModule",{value:!0});R.isReadableStreamLike=R.readableStreamLikeToAsyncGenerator=void 0;var id=j();function ud(r){return nd(this,arguments,function(){var e,n,i,u;return td(this,function(o){switch(o.label){case 0:e=r.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,tr(e.read())];case 3:return n=o.sent(),i=n.value,u=n.done,u?[4,tr(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,tr(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}R.readableStreamLikeToAsyncGenerator=ud;function od(r){return id.isFunction(r==null?void 0:r.getReader)}R.isReadableStreamLike=od});var q=s(A=>{"use strict";var ad=A&&A.__awaiter||function(r,t,e,n){function i(u){return u instanceof e?u:new e(function(o){o(u)})}return new(e||(e=Promise))(function(u,o){function c(v){try{l(n.next(v))}catch(d){o(d)}}function f(v){try{l(n.throw(v))}catch(d){o(d)}}function l(v){v.done?u(v.value):i(v.value).then(c,f)}l((n=n.apply(r,t||[])).next())})},cd=A&&A.__generator||function(r,t){var e={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},n,i,u,o;return o={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function c(l){return function(v){return f([l,v])}}function f(l){if(n)throw new TypeError("Generator is already executing.");for(;e;)try{if(n=1,i&&(u=l[0]&2?i.return:l[0]?i.throw||((u=i.return)&&u.call(i),0):i.next)&&!(u=u.call(i,l[1])).done)return u;switch(i=0,u&&(l=[l[0]&2,u.value]),l[0]){case 0:case 1:u=l;break;case 4:return e.label++,{value:l[1],done:!1};case 5:e.label++,i=l[1],l=[0];continue;case 7:l=e.ops.pop(),e.trys.pop();continue;default:if(u=e.trys,!(u=u.length>0&&u[u.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!u||l[1]>u[0]&&l[1]<u[3])){e.label=l[1];break}if(l[0]===6&&e.label<u[1]){e.label=u[1],u=l;break}if(u&&e.label<u[2]){e.label=u[2],e.ops.push(l);break}u[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(r,e)}catch(v){l=[6,v],i=0}finally{n=u=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},ld=A&&A.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof hu=="function"?hu(r):r[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(u){e[u]=r[u]&&function(o){return new Promise(function(c,f){o=r[u](o),i(c,f,o.done,o.value)})}}function i(u,o,c,f){Promise.resolve(f).then(function(l){u({value:l,done:c})},o)}},hu=A&&A.__values||function(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],n=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0});A.fromReadableStreamLike=A.fromAsyncIterable=A.fromIterable=A.fromPromise=A.fromArrayLike=A.fromInteropObservable=A.innerFrom=void 0;var sd=tt(),fd=fu(),nr=P(),vd=vu(),dd=du(),pd=pu(),bd=_u(),oa=ct(),_d=j(),hd=Qi(),yd=yr();function md(r){if(r instanceof nr.Observable)return r;if(r!=null){if(vd.isInteropObservable(r))return aa(r);if(sd.isArrayLike(r))return ca(r);if(fd.isPromise(r))return la(r);if(dd.isAsyncIterable(r))return yu(r);if(bd.isIterable(r))return sa(r);if(oa.isReadableStreamLike(r))return fa(r)}throw pd.createInvalidObservableTypeError(r)}A.innerFrom=md;function aa(r){return new nr.Observable(function(t){var e=r[yd.observable]();if(_d.isFunction(e.subscribe))return e.subscribe(t);throw new TypeError("Provided obj