grid-engine
Version:
Phaser3 plugin for grid based movement on a 2D game board.
3 lines • 442 kB
JavaScript
var Vx=Object.create;var ka=Object.defineProperty;var Nx=Object.getOwnPropertyDescriptor;var Wx=Object.getOwnPropertyNames;var Ux=Object.getPrototypeOf,Gx=Object.prototype.hasOwnProperty;var _=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Bx=(r,e)=>{for(var t in e)ka(r,t,{get:e[t],enumerable:!0})},ib=(r,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Wx(e))!Gx.call(r,n)&&n!==t&&ka(r,n,{get:()=>e[n],enumerable:!(i=Nx(e,n))||i.enumerable});return r};var gt=(r,e,t)=>(t=r!=null?Vx(Ux(r)):{},ib(e||!r||!r.__esModule?ka(t,"default",{value:r,enumerable:!0}):t,r)),Hx=r=>ib(ka({},"__esModule",{value:!0}),r);var le=_(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.isFunction=void 0;function Kx(r){return typeof r=="function"}Da.isFunction=Kx});var ai=_(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.createErrorClass=void 0;function Xx(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}Ra.createErrorClass=Xx});var hp=_(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.UnsubscriptionError=void 0;var Jx=ai();za.UnsubscriptionError=Jx.createErrorClass(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(i,n){return n+1+") "+i.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}})});var zr=_(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.arrRemove=void 0;function Zx(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}Va.arrRemove=Zx});var Mt=_(bt=>{"use strict";var sb=bt&&bt.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ab=bt&&bt.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,s=[],u;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(l){u={error:l}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(u)throw u.error}}return s},ub=bt&&bt.__spreadArray||function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r};Object.defineProperty(bt,"__esModule",{value:!0});bt.isSubscription=bt.EMPTY_SUBSCRIPTION=bt.Subscription=void 0;var ds=le(),fp=hp(),cb=zr(),pp=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,n,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var l=sb(u),f=l.next();!f.done;f=l.next()){var p=f.value;p.remove(this)}}catch(M){e={error:M}}finally{try{f&&!f.done&&(t=l.return)&&t.call(l)}finally{if(e)throw e.error}}else u.remove(this);var v=this.initialTeardown;if(ds.isFunction(v))try{v()}catch(M){s=M instanceof fp.UnsubscriptionError?M.errors:[M]}var b=this._finalizers;if(b){this._finalizers=null;try{for(var T=sb(b),S=T.next();!S.done;S=T.next()){var q=S.value;try{lb(q)}catch(M){s=s??[],M instanceof fp.UnsubscriptionError?s=ub(ub([],ab(s)),ab(M.errors)):s.push(M)}}}catch(M){i={error:M}}finally{try{S&&!S.done&&(n=T.return)&&n.call(T)}finally{if(i)throw i.error}}}if(s)throw new fp.UnsubscriptionError(s)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)lb(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&cb.arrRemove(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&cb.arrRemove(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}();bt.Subscription=pp;bt.EMPTY_SUBSCRIPTION=pp.EMPTY;function eM(r){return r instanceof pp||r&&"closed"in r&&ds.isFunction(r.remove)&&ds.isFunction(r.add)&&ds.isFunction(r.unsubscribe)}bt.isSubscription=eM;function lb(r){ds.isFunction(r)?r():r.unsubscribe()}});var xn=_(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.config=void 0;Na.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var dp=_(lr=>{"use strict";var hb=lr&&lr.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,s=[],u;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(l){u={error:l}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(u)throw u.error}}return s},fb=lr&&lr.__spreadArray||function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r};Object.defineProperty(lr,"__esModule",{value:!0});lr.timeoutProvider=void 0;lr.timeoutProvider={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var n=lr.timeoutProvider.delegate;return n?.setTimeout?n.setTimeout.apply(n,fb([r,e],hb(t))):setTimeout.apply(void 0,fb([r,e],hb(t)))},clearTimeout:function(r){var e=lr.timeoutProvider.delegate;return(e?.clearTimeout||clearTimeout)(r)},delegate:void 0}});var vp=_(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.reportUnhandledError=void 0;var tM=xn(),rM=dp();function iM(r){rM.timeoutProvider.setTimeout(function(){var e=tM.config.onUnhandledError;if(e)e(r);else throw r})}Wa.reportUnhandledError=iM});var Ke=_(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.noop=void 0;function nM(){}Ua.noop=nM});var pb=_(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.createNotification=hr.nextNotification=hr.errorNotification=hr.COMPLETE_NOTIFICATION=void 0;hr.COMPLETE_NOTIFICATION=function(){return Ga("C",void 0,void 0)}();function oM(r){return Ga("E",void 0,r)}hr.errorNotification=oM;function sM(r){return Ga("N",r,void 0)}hr.nextNotification=sM;function Ga(r,e,t){return{kind:r,value:e,error:t}}hr.createNotification=Ga});var Ba=_(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.captureError=Mn.errorContext=void 0;var db=xn(),Ki=null;function aM(r){if(db.config.useDeprecatedSynchronousErrorHandling){var e=!Ki;if(e&&(Ki={errorThrown:!1,error:null}),r(),e){var t=Ki,i=t.errorThrown,n=t.error;if(Ki=null,i)throw n}}else r()}Mn.errorContext=aM;function uM(r){db.config.useDeprecatedSynchronousErrorHandling&&Ki&&(Ki.errorThrown=!0,Ki.error=r)}Mn.captureError=uM});var Ln=_(Xt=>{"use strict";var yb=Xt&&Xt.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Xt,"__esModule",{value:!0});Xt.EMPTY_OBSERVER=Xt.SafeSubscriber=Xt.Subscriber=void 0;var cM=le(),vb=Mt(),bp=xn(),lM=vp(),mb=Ke(),mp=pb(),hM=dp(),fM=Ba(),gb=function(r){yb(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,vb.isSubscription(t)&&t.add(i)):i.destination=Xt.EMPTY_OBSERVER,i}return e.create=function(t,i,n){return new bb(t,i,n)},e.prototype.next=function(t){this.isStopped?gp(mp.nextNotification(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?gp(mp.errorNotification(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?gp(mp.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(vb.Subscription);Xt.Subscriber=gb;var pM=Function.prototype.bind;function yp(r,e){return pM.call(r,e)}var dM=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){Ha(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){Ha(i)}else Ha(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Ha(t)}},r}(),bb=function(r){yb(e,r);function e(t,i,n){var s=r.call(this)||this,u;if(cM.isFunction(t)||!t)u={next:t??void 0,error:i??void 0,complete:n??void 0};else{var l;s&&bp.config.useDeprecatedNextContext?(l=Object.create(t),l.unsubscribe=function(){return s.unsubscribe()},u={next:t.next&&yp(t.next,l),error:t.error&&yp(t.error,l),complete:t.complete&&yp(t.complete,l)}):u=t}return s.destination=new dM(u),s}return e}(gb);Xt.SafeSubscriber=bb;function Ha(r){bp.config.useDeprecatedSynchronousErrorHandling?fM.captureError(r):lM.reportUnhandledError(r)}function vM(r){throw r}function gp(r,e){var t=bp.config.onStoppedNotification;t&&hM.timeoutProvider.setTimeout(function(){return t(r,e)})}Xt.EMPTY_OBSERVER={closed:!0,next:mb.noop,error:vM,complete:mb.noop}});var vs=_($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.observable=void 0;$a.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var Xe=_(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.identity=void 0;function mM(r){return r}Ya.identity=mM});var ms=_(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.pipeFromArray=jn.pipe=void 0;var yM=Xe();function gM(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];return _b(r)}jn.pipe=gM;function _b(r){return r.length===0?yM.identity:r.length===1?r[0]:function(t){return r.reduce(function(i,n){return n(i)},t)}}jn.pipeFromArray=_b});var fe=_(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.Observable=void 0;var Pp=Ln(),bM=Mt(),_M=vs(),PM=ms(),wM=xn(),_p=le(),OM=Ba(),TM=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n=this,s=CM(e)?e:new Pp.SafeSubscriber(e,t,i);return OM.errorContext(function(){var u=n,l=u.operator,f=u.source;s.add(l?l.call(s,f):f?n._subscribe(s):n._trySubscribe(s))}),s},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=Pb(t),new t(function(n,s){var u=new Pp.SafeSubscriber({next:function(l){try{e(l)}catch(f){s(f),u.unsubscribe()}},error:s,complete:n});i.subscribe(u)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[_M.observable]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return PM.pipeFromArray(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=Pb(e),new e(function(i,n){var s;t.subscribe(function(u){return s=u},function(u){return n(u)},function(){return i(s)})})},r.create=function(e){return new r(e)},r}();Qa.Observable=TM;function Pb(r){var e;return(e=r??wM.config.Promise)!==null&&e!==void 0?e:Promise}function SM(r){return r&&_p.isFunction(r.next)&&_p.isFunction(r.error)&&_p.isFunction(r.complete)}function CM(r){return r&&r instanceof Pp.Subscriber||SM(r)&&bM.isSubscription(r)}});var z=_(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.operate=In.hasLift=void 0;var AM=le();function wb(r){return AM.isFunction(r?.lift)}In.hasLift=wb;function EM(r){return function(e){if(wb(e))return e.lift(function(t){try{return r(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}In.operate=EM});var U=_(ui=>{"use strict";var qM=ui&&ui.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(ui,"__esModule",{value:!0});ui.OperatorSubscriber=ui.createOperatorSubscriber=void 0;var xM=Ln();function MM(r,e,t,i,n){return new Ob(r,e,t,i,n)}ui.createOperatorSubscriber=MM;var Ob=function(r){qM(e,r);function e(t,i,n,s,u,l){var f=r.call(this,t)||this;return f.onFinalize=u,f.shouldUnsubscribe=l,f._next=i?function(p){try{i(p)}catch(v){t.error(v)}}:r.prototype._next,f._error=s?function(p){try{s(p)}catch(v){t.error(v)}finally{this.unsubscribe()}}:r.prototype._error,f._complete=n?function(){try{n()}catch(p){t.error(p)}finally{this.unsubscribe()}}:r.prototype._complete,f}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;r.prototype.unsubscribe.call(this),!i&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(xM.Subscriber);ui.OperatorSubscriber=Ob});var Xa=_(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.refCount=void 0;var LM=z(),jM=U();function IM(){return LM.operate(function(r,e){var t=null;r._refCount++;var i=jM.createOperatorSubscriber(e,void 0,void 0,void 0,function(){if(!r||r._refCount<=0||0<--r._refCount){t=null;return}var n=r._connection,s=t;t=null,n&&(!s||n===s)&&n.unsubscribe(),e.unsubscribe()});r.subscribe(i),i.closed||(t=r.connect())})}Ka.refCount=IM});var ys=_(kn=>{"use strict";var kM=kn&&kn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(kn,"__esModule",{value:!0});kn.ConnectableObservable=void 0;var FM=fe(),Tb=Mt(),DM=Xa(),RM=U(),zM=z(),VM=function(r){kM(e,r);function e(t,i){var n=r.call(this)||this;return n.source=t,n.subjectFactory=i,n._subject=null,n._refCount=0,n._connection=null,zM.hasLift(t)&&(n.lift=t.lift),n}return e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,t?.unsubscribe()},e.prototype.connect=function(){var t=this,i=this._connection;if(!i){i=this._connection=new Tb.Subscription;var n=this.getSubject();i.add(this.source.subscribe(RM.createOperatorSubscriber(n,void 0,function(){t._teardown(),n.complete()},function(s){t._teardown(),n.error(s)},function(){return t._teardown()}))),i.closed&&(this._connection=null,i=Tb.Subscription.EMPTY)}return i},e.prototype.refCount=function(){return DM.refCount()(this)},e}(FM.Observable);kn.ConnectableObservable=VM});var Sb=_(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.performanceTimestampProvider=void 0;gs.performanceTimestampProvider={now:function(){return(gs.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var wp=_(Jt=>{"use strict";var Cb=Jt&&Jt.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,s=[],u;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(l){u={error:l}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(u)throw u.error}}return s},Ab=Jt&&Jt.__spreadArray||function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.animationFrameProvider=void 0;var NM=Mt();Jt.animationFrameProvider={schedule:function(r){var e=requestAnimationFrame,t=cancelAnimationFrame,i=Jt.animationFrameProvider.delegate;i&&(e=i.requestAnimationFrame,t=i.cancelAnimationFrame);var n=e(function(s){t=void 0,r(s)});return new NM.Subscription(function(){return t?.(n)})},requestAnimationFrame:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Jt.animationFrameProvider.delegate;return(t?.requestAnimationFrame||requestAnimationFrame).apply(void 0,Ab([],Cb(r)))},cancelAnimationFrame:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Jt.animationFrameProvider.delegate;return(t?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,Ab([],Cb(r)))},delegate:void 0}});var xb=_(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.animationFrames=void 0;var WM=fe(),UM=Sb(),Eb=wp();function GM(r){return r?qb(r):BM}Ja.animationFrames=GM;function qb(r){return new WM.Observable(function(e){var t=r||UM.performanceTimestampProvider,i=t.now(),n=0,s=function(){e.closed||(n=Eb.animationFrameProvider.requestAnimationFrame(function(u){n=0;var l=t.now();e.next({timestamp:r?l:u,elapsed:l-i}),s()}))};return s(),function(){n&&Eb.animationFrameProvider.cancelAnimationFrame(n)}})}var BM=qb()});var Op=_(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.ObjectUnsubscribedError=void 0;var HM=ai();Za.ObjectUnsubscribedError=HM.createErrorClass(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var Je=_(fr=>{"use strict";var Lb=fr&&fr.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),$M=fr&&fr.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(fr,"__esModule",{value:!0});fr.AnonymousSubject=fr.Subject=void 0;var Mb=fe(),Sp=Mt(),YM=Op(),QM=zr(),Tp=Ba(),jb=function(r){Lb(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var i=new Cp(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new YM.ObjectUnsubscribedError},e.prototype.next=function(t){var i=this;Tp.errorContext(function(){var n,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=$M(i.currentObservers),l=u.next();!l.done;l=u.next()){var f=l.value;f.next(t)}}catch(p){n={error:p}}finally{try{l&&!l.done&&(s=u.return)&&s.call(u)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var i=this;Tp.errorContext(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var n=i.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;Tp.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var i=this,n=this,s=n.hasError,u=n.isStopped,l=n.observers;return s||u?Sp.EMPTY_SUBSCRIPTION:(this.currentObservers=null,l.push(t),new Sp.Subscription(function(){i.currentObservers=null,QM.arrRemove(l,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,n=i.hasError,s=i.thrownError,u=i.isStopped;n?t.error(s):u&&t.complete()},e.prototype.asObservable=function(){var t=new Mb.Observable;return t.source=this,t},e.create=function(t,i){return new Cp(t,i)},e}(Mb.Observable);fr.Subject=jb;var Cp=function(r){Lb(e,r);function e(t,i){var n=r.call(this)||this;return n.destination=t,n.source=i,n}return e.prototype.next=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,t)},e.prototype.error=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&n!==void 0?n:Sp.EMPTY_SUBSCRIPTION},e}(jb);fr.AnonymousSubject=Cp});var Ap=_(Fn=>{"use strict";var KM=Fn&&Fn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Fn,"__esModule",{value:!0});Fn.BehaviorSubject=void 0;var XM=Je(),JM=function(r){KM(e,r);function e(t){var i=r.call(this)||this;return i._value=t,i}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var i=r.prototype._subscribe.call(this,t);return!i.closed&&t.next(this._value),i},e.prototype.getValue=function(){var t=this,i=t.hasError,n=t.thrownError,s=t._value;if(i)throw n;return this._throwIfClosed(),s},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(XM.Subject);Fn.BehaviorSubject=JM});var eu=_(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.dateTimestampProvider=void 0;bs.dateTimestampProvider={now:function(){return(bs.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var tu=_(Dn=>{"use strict";var ZM=Dn&&Dn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Dn,"__esModule",{value:!0});Dn.ReplaySubject=void 0;var eL=Je(),tL=eu(),rL=function(r){ZM(e,r);function e(t,i,n){t===void 0&&(t=1/0),i===void 0&&(i=1/0),n===void 0&&(n=tL.dateTimestampProvider);var s=r.call(this)||this;return s._bufferSize=t,s._windowTime=i,s._timestampProvider=n,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,i),s}return e.prototype.next=function(t){var i=this,n=i.isStopped,s=i._buffer,u=i._infiniteTimeWindow,l=i._timestampProvider,f=i._windowTime;n||(s.push(t),!u&&s.push(l.now()+f)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),n=this,s=n._infiniteTimeWindow,u=n._buffer,l=u.slice(),f=0;f<l.length&&!t.closed;f+=s?1:2)t.next(l[f]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,n=t._timestampProvider,s=t._buffer,u=t._infiniteTimeWindow,l=(u?1:2)*i;if(i<1/0&&l<s.length&&s.splice(0,s.length-l),!u){for(var f=n.now(),p=0,v=1;v<s.length&&s[v]<=f;v+=2)p=v;p&&s.splice(0,p+1)}},e}(eL.Subject);Dn.ReplaySubject=rL});var ru=_(Rn=>{"use strict";var iL=Rn&&Rn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Rn,"__esModule",{value:!0});Rn.AsyncSubject=void 0;var nL=Je(),oL=function(r){iL(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return e.prototype._checkFinalizedStatuses=function(t){var i=this,n=i.hasError,s=i._hasValue,u=i._value,l=i.thrownError,f=i.isStopped,p=i._isComplete;n?t.error(l):(f||p)&&(s&&t.next(u),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var t=this,i=t._hasValue,n=t._value,s=t._isComplete;s||(this._isComplete=!0,i&&r.prototype.next.call(this,n),r.prototype.complete.call(this))},e}(nL.Subject);Rn.AsyncSubject=oL});var Ib=_(zn=>{"use strict";var sL=zn&&zn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(zn,"__esModule",{value:!0});zn.Action=void 0;var aL=Mt(),uL=function(r){sL(e,r);function e(t,i){return r.call(this)||this}return e.prototype.schedule=function(t,i){return i===void 0&&(i=0),this},e}(aL.Subscription);zn.Action=uL});var Db=_(pr=>{"use strict";var kb=pr&&pr.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,s=[],u;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(l){u={error:l}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(u)throw u.error}}return s},Fb=pr&&pr.__spreadArray||function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r};Object.defineProperty(pr,"__esModule",{value:!0});pr.intervalProvider=void 0;pr.intervalProvider={setInterval:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var n=pr.intervalProvider.delegate;return n?.setInterval?n.setInterval.apply(n,Fb([r,e],kb(t))):setInterval.apply(void 0,Fb([r,e],kb(t)))},clearInterval:function(r){var e=pr.intervalProvider.delegate;return(e?.clearInterval||clearInterval)(r)},delegate:void 0}});var Nn=_(Vn=>{"use strict";var cL=Vn&&Vn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Vn,"__esModule",{value:!0});Vn.AsyncAction=void 0;var lL=Ib(),Rb=Db(),hL=zr(),fL=function(r){cL(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.scheduler=t,n.work=i,n.pending=!1,n}return e.prototype.schedule=function(t,i){var n;if(i===void 0&&(i=0),this.closed)return this;this.state=t;var s=this.id,u=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(u,s,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(u,this.id,i),this},e.prototype.requestAsyncId=function(t,i,n){return n===void 0&&(n=0),Rb.intervalProvider.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,i,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&Rb.intervalProvider.clearInterval(i)},e.prototype.execute=function(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,i){var n=!1,s;try{this.work(t)}catch(u){n=!0,s=u||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,i=t.id,n=t.scheduler,s=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,hL.arrRemove(s,this),i!=null&&(this.id=this.recycleAsyncId(n,i,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},e}(lL.Action);Vn.AsyncAction=fL});var Vb=_(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn.TestTools=Wn.Immediate=void 0;var pL=1,Ep,iu={};function zb(r){return r in iu?(delete iu[r],!0):!1}Wn.Immediate={setImmediate:function(r){var e=pL++;return iu[e]=!0,Ep||(Ep=Promise.resolve()),Ep.then(function(){return zb(e)&&r()}),e},clearImmediate:function(r){zb(r)}};Wn.TestTools={pending:function(){return Object.keys(iu).length}}});var Wb=_(dr=>{"use strict";var dL=dr&&dr.__read||function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,s=[],u;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)s.push(n.value)}catch(l){u={error:l}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(u)throw u.error}}return s},vL=dr&&dr.__spreadArray||function(r,e){for(var t=0,i=e.length,n=r.length;t<i;t++,n++)r[n]=e[t];return r};Object.defineProperty(dr,"__esModule",{value:!0});dr.immediateProvider=void 0;var Nb=Vb(),mL=Nb.Immediate.setImmediate,yL=Nb.Immediate.clearImmediate;dr.immediateProvider={setImmediate:function(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=dr.immediateProvider.delegate;return(t?.setImmediate||mL).apply(void 0,vL([],dL(r)))},clearImmediate:function(r){var e=dr.immediateProvider.delegate;return(e?.clearImmediate||yL)(r)},delegate:void 0}});var Gb=_(Un=>{"use strict";var gL=Un&&Un.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Un,"__esModule",{value:!0});Un.AsapAction=void 0;var bL=Nn(),Ub=Wb(),_L=function(r){gL(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.scheduler=t,n.work=i,n}return e.prototype.requestAsyncId=function(t,i,n){return n===void 0&&(n=0),n!==null&&n>0?r.prototype.requestAsyncId.call(this,t,i,n):(t.actions.push(this),t._scheduled||(t._scheduled=Ub.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},e.prototype.recycleAsyncId=function(t,i,n){var s;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,t,i,n);var u=t.actions;i!=null&&((s=u[u.length-1])===null||s===void 0?void 0:s.id)!==i&&(Ub.immediateProvider.clearImmediate(i),t._scheduled===i&&(t._scheduled=void 0))},e}(bL.AsyncAction);Un.AsapAction=_L});var qp=_(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.Scheduler=void 0;var PL=eu(),wL=function(){function r(e,t){t===void 0&&(t=r.now),this.schedulerActionCtor=e,this.now=t}return r.prototype.schedule=function(e,t,i){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(i,t)},r.now=PL.dateTimestampProvider.now,r}();nu.Scheduler=wL});var Bn=_(Gn=>{"use strict";var OL=Gn&&Gn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Gn,"__esModule",{value:!0});Gn.AsyncScheduler=void 0;var Bb=qp(),TL=function(r){OL(e,r);function e(t,i){i===void 0&&(i=Bb.Scheduler.now);var n=r.call(this,t,i)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var i=this.actions;if(this._active){i.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}},e}(Bb.Scheduler);Gn.AsyncScheduler=TL});var Hb=_(Hn=>{"use strict";var SL=Hn&&Hn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Hn,"__esModule",{value:!0});Hn.AsapScheduler=void 0;var CL=Bn(),AL=function(r){SL(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this._active=!0;var i=this._scheduled;this._scheduled=void 0;var n=this.actions,s;t=t||n.shift();do if(s=t.execute(t.state,t.delay))break;while((t=n[0])&&t.id===i&&n.shift());if(this._active=!1,s){for(;(t=n[0])&&t.id===i&&n.shift();)t.unsubscribe();throw s}},e}(CL.AsyncScheduler);Hn.AsapScheduler=AL});var $b=_(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.asap=Xi.asapScheduler=void 0;var EL=Gb(),qL=Hb();Xi.asapScheduler=new qL.AsapScheduler(EL.AsapAction);Xi.asap=Xi.asapScheduler});var _t=_(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});Ji.async=Ji.asyncScheduler=void 0;var xL=Nn(),ML=Bn();Ji.asyncScheduler=new ML.AsyncScheduler(xL.AsyncAction);Ji.async=Ji.asyncScheduler});var Yb=_($n=>{"use strict";var LL=$n&&$n.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty($n,"__esModule",{value:!0});$n.QueueAction=void 0;var jL=Nn(),IL=function(r){LL(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.scheduler=t,n.work=i,n}return e.prototype.schedule=function(t,i){return i===void 0&&(i=0),i>0?r.prototype.schedule.call(this,t,i):(this.delay=i,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,i){return i>0||this.closed?r.prototype.execute.call(this,t,i):this._execute(t,i)},e.prototype.requestAsyncId=function(t,i,n){return n===void 0&&(n=0),n!=null&&n>0||n==null&&this.delay>0?r.prototype.requestAsyncId.call(this,t,i,n):(t.flush(this),0)},e}(jL.AsyncAction);$n.QueueAction=IL});var Qb=_(Yn=>{"use strict";var kL=Yn&&Yn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Yn,"__esModule",{value:!0});Yn.QueueScheduler=void 0;var FL=Bn(),DL=function(r){kL(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(FL.AsyncScheduler);Yn.QueueScheduler=DL});var Kb=_(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.queue=Zi.queueScheduler=void 0;var RL=Yb(),zL=Qb();Zi.queueScheduler=new zL.QueueScheduler(RL.QueueAction);Zi.queue=Zi.queueScheduler});var Jb=_(Qn=>{"use strict";var VL=Qn&&Qn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Qn,"__esModule",{value:!0});Qn.AnimationFrameAction=void 0;var NL=Nn(),Xb=wp(),WL=function(r){VL(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.scheduler=t,n.work=i,n}return e.prototype.requestAsyncId=function(t,i,n){return n===void 0&&(n=0),n!==null&&n>0?r.prototype.requestAsyncId.call(this,t,i,n):(t.actions.push(this),t._scheduled||(t._scheduled=Xb.animationFrameProvider.requestAnimationFrame(function(){return t.flush(void 0)})))},e.prototype.recycleAsyncId=function(t,i,n){var s;if(n===void 0&&(n=0),n!=null?n>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,t,i,n);var u=t.actions;i!=null&&((s=u[u.length-1])===null||s===void 0?void 0:s.id)!==i&&(Xb.animationFrameProvider.cancelAnimationFrame(i),t._scheduled=void 0)},e}(NL.AsyncAction);Qn.AnimationFrameAction=WL});var Zb=_(Kn=>{"use strict";var UL=Kn&&Kn.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(Kn,"__esModule",{value:!0});Kn.AnimationFrameScheduler=void 0;var GL=Bn(),BL=function(r){UL(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.flush=function(t){this._active=!0;var i=this._scheduled;this._scheduled=void 0;var n=this.actions,s;t=t||n.shift();do if(s=t.execute(t.state,t.delay))break;while((t=n[0])&&t.id===i&&n.shift());if(this._active=!1,s){for(;(t=n[0])&&t.id===i&&n.shift();)t.unsubscribe();throw s}},e}(GL.AsyncScheduler);Kn.AnimationFrameScheduler=BL});var e_=_(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.animationFrame=en.animationFrameScheduler=void 0;var HL=Jb(),$L=Zb();en.animationFrameScheduler=new $L.AnimationFrameScheduler(HL.AnimationFrameAction);en.animationFrame=en.animationFrameScheduler});var i_=_(ci=>{"use strict";var t_=ci&&ci.__extends||function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=n[s])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();Object.defineProperty(ci,"__esModule",{value:!0});ci.VirtualAction=ci.VirtualTimeScheduler=void 0;var YL=Nn(),QL=Mt(),KL=Bn(),XL=function(r){t_(e,r);function e(t,i){t===void 0&&(t=r_),i===void 0&&(i=1/0);var n=r.call(this,t,function(){return n.frame})||this;return n.maxFrames=i,n.frame=0,n.index=-1,n}return e.prototype.flush=function(){for(var t=this,i=t.actions,n=t.maxFrames,s,u;(u=i[0])&&u.delay<=n&&(i.shift(),this.frame=u.delay,!(s=u.execute(u.state,u.delay))););if(s){for(;u=i.shift();)u.unsubscribe();throw s}},e.frameTimeFactor=10,e}(KL.AsyncScheduler);ci.VirtualTimeScheduler=XL;var r_=function(r){t_(e,r);function e(t,i,n){n===void 0&&(n=t.index+=1);var s=r.call(this,t,i)||this;return s.scheduler=t,s.work=i,s.index=n,s.active=!0,s.index=t.index=n,s}return e.prototype.schedule=function(t,i){if(i===void 0&&(i=0),Number.isFinite(i)){if(!this.id)return r.prototype.schedule.call(this,t,i);this.active=!1;var n=new e(this.scheduler,this.work);return this.add(n),n.schedule(t,i)}else return QL.Subscription.EMPTY},e.prototype.requestAsyncId=function(t,i,n){n===void 0&&(n=0),this.delay=t.frame+n;var s=t.actions;return s.push(this),s.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(t,i,n){n===void 0&&(n=0)},e.prototype._execute=function(t,i){if(this.active===!0)return r.prototype._execute.call(this,t,i)},e.sortActions=function(t,i){return t.delay===i.delay?t.index===i.index?0:t.index>i.index?1:-1:t.delay>i.delay?1:-1},e}(YL.AsyncAction);ci.VirtualAction=r_});var Zt=_(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.empty=tn.EMPTY=void 0;var n_=fe();tn.EMPTY=new n_.Observable(function(r){return r.complete()});function JL(r){return r?ZL(r):tn.EMPTY}tn.empty=JL;function ZL(r){return new n_.Observable(function(e){return r.schedule(function(){return e.complete()})})}});var _s=_(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.isScheduler=void 0;var ej=le();function tj(r){return r&&ej.isFunction(r.schedule)}ou.isScheduler=tj});var Pt=_(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.popNumber=li.popScheduler=li.popResultSelector=void 0;var rj=le(),ij=_s();function xp(r){return r[r.length-1]}function nj(r){return rj.isFunction(xp(r))?r.pop():void 0}li.popResultSelector=nj;function oj(r){return ij.isScheduler(xp(r))?r.pop():void 0}li.popScheduler=oj;function sj(r,e){return typeof xp(r)=="number"?r.pop():e}li.popNumber=sj});var au=_(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.isArrayLike=void 0;su.isArrayLike=function(r){return r&&typeof r.length=="number"&&typeof r!="function"}});var Mp=_(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.isPromise=void 0;var aj=le();function uj(r){return aj.isFunction(r?.then)}uu.isPromise=uj});var Lp=_(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.isInteropObservable=void 0;var cj=vs(),lj=le();function hj(r){return lj.isFunction(r[cj.observable])}cu.isInteropObservable=hj});var jp=_(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.isAsyncIterable=void 0;var fj=le();function pj(r){return Symbol.asyncIterator&&fj.isFunction(r?.[Symbol.asyncIterator])}lu.isAsyncIterable=pj});var Ip=_(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.createInvalidObservableTypeError=void 0;function dj(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.")}hu.createInvalidObservableTypeError=dj});var kp=_(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.iterator=Xn.getSymbolIterator=void 0;function o_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}Xn.getSymbolIterator=o_;Xn.iterator=o_()});var Fp=_(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.isIterable=void 0;var vj=kp(),mj=le();function yj(r){return mj.isFunction(r?.[vj.iterator])}fu.isIterable=yj});var pu=_(Ut=>{"use strict";var gj=Ut&&Ut.__generator||function(r,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(p){return function(v){return f([p,v])}}function f(p){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(s=p[0]&2?n.return:p[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,p[1])).done)return s;switch(n=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){t.label=p[1];break}if(p[0]===6&&t.label<s[1]){t.label=s[1],s=p;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(p);break}s[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(v){p=[6,v],n=0}finally{i=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Jn=Ut&&Ut.__await||function(r){return this instanceof Jn?(this.v=r,this):new Jn(r)},bj=Ut&&Ut.__asyncGenerator||function(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t.apply(r,e||[]),n,s=[];return n={},u("next"),u("throw"),u("return"),n[Symbol.asyncIterator]=function(){return this},n;function u(T){i[T]&&(n[T]=function(S){return new Promise(function(q,M){s.push([T,S,q,M])>1||l(T,S)})})}function l(T,S){try{f(i[T](S))}catch(q){b(s[0][3],q)}}function f(T){T.value instanceof Jn?Promise.resolve(T.value.v).then(p,v):b(s[0][2],T)}function p(T){l("next",T)}function v(T){l("throw",T)}function b(T,S){T(S),s.shift(),s.length&&l(s[0][0],s[0][1])}};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.isReadableStreamLike=Ut.readableStreamLikeToAsyncGenerator=void 0;var _j=le();function Pj(r){return bj(this,arguments,function(){var t,i,n,s;return gj(this,function(u){switch(u.label){case 0:t=r.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,Jn(t.read())];case 3:return i=u.sent(),n=i.value,s=i.done,s?[4,Jn(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,Jn(n)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}Ut.readableStreamLikeToAsyncGenerator=Pj;function wj(r){return _j.isFunction(r?.getReader)}Ut.isReadableStreamLike=wj});var X=_(be=>{"use strict";var Oj=be&&be.__awaiter||function(r,e,t,i){function n(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function l(v){try{p(i.next(v))}catch(b){u(b)}}function f(v){try{p(i.throw(v))}catch(b){u(b)}}function p(v){v.done?s(v.value):n(v.value).then(l,f)}p((i=i.apply(r,e||[])).next())})},Tj=be&&be.__generator||function(r,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,n,s,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(p){return function(v){return f([p,v])}}function f(p){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(s=p[0]&2?n.return:p[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,p[1])).done)return s;switch(n=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return t.label++,{value:p[1],done:!1};case 5:t.label++,n=p[1],p=[0];continue;case 7:p=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){t=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){t.label=p[1];break}if(p[0]===6&&t.label<s[1]){t.label=s[1],s=p;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(p);break}s[2]&&t.ops.pop(),t.trys.pop();continue}p=e.call(r,t)}catch(v){p=[6,v],n=0}finally{i=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Sj=be&&be.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof Dp=="function"?Dp(r):r[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(s){t[s]=r[s]&&function(u){return new Promise(function(l,f){u=r[s](u),n(l,f,u.done,u.value)})}}function n(s,u,l,f){Promise.resolve(f).then(function(p){s({value:p,done:l})},u)}},Dp=be&&be.__values||function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(be,"__esModule",{value:!0});be.fromReadableStreamLike=be.fromAsyncIterable=be.fromIterable=be.fromPromise=be.fromArrayLike=be.fromInteropObservable=be.innerFrom=void 0;var Cj=au(),Aj=Mp(),Zn=fe(),Ej=Lp(),qj=jp(),xj=Ip(),Mj=Fp(),s_=pu(),Lj=le(