@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
4 lines • 157 kB
JavaScript
const __esmImportMetaUrl = require('node:url').pathToFileURL(__filename).href;
"use strict";var Fs=Object.defineProperty;var u=(r,t)=>Fs(r,"name",{value:t,configurable:!0});var s=(r,t)=>()=>{try{return t||r((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}};var S=s(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.isFunction=void 0;function Is(r){return typeof r=="function"}u(Is,"isFunction");Tr.isFunction=Is});var $=s(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.createErrorClass=void 0;function Ts(r){var t=u(function(n){Error.call(n),n.stack=new Error().stack},"_super"),e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}u(Ts,"createErrorClass");xr.createErrorClass=Ts});var zi=s(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.UnsubscriptionError=void 0;var xs=$();kr.UnsubscriptionError=xs.createErrorClass(function(r){return u(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},"UnsubscriptionErrorImpl")})});var Y=s(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.arrRemove=void 0;function ks(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}u(ks,"arrRemove");Cr.arrRemove=ks});var k=s(I=>{"use strict";var to=I&&I.__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:u(function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},no=I&&I.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){a={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return o},io=I&&I.__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(I,"__esModule",{value:!0});I.isSubscription=I.EMPTY_SUBSCRIPTION=I.Subscription=void 0;var _r=S(),Bi=zi(),uo=Y(),Di=(function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return u(r,"Subscription"),r.prototype.unsubscribe=function(){var t,e,n,i,o;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var c=to(a),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 a.remove(this);var v=this.initialTeardown;if(_r.isFunction(v))try{v()}catch(_){o=_ instanceof Bi.UnsubscriptionError?_.errors:[_]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var p=to(d),y=p.next();!y.done;y=p.next()){var h=y.value;try{oo(h)}catch(_){o=o??[],_ instanceof Bi.UnsubscriptionError?o=io(io([],no(o)),no(_.errors)):o.push(_)}}}catch(_){n={error:_}}finally{try{y&&!y.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}}if(o)throw new Bi.UnsubscriptionError(o)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)oo(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)&&uo.arrRemove(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&uo.arrRemove(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=(function(){var t=new r;return t.closed=!0,t})(),r})();I.Subscription=Di;I.EMPTY_SUBSCRIPTION=Di.EMPTY;function Cs(r){return r instanceof Di||r&&"closed"in r&&_r.isFunction(r.remove)&&_r.isFunction(r.add)&&_r.isFunction(r.unsubscribe)}u(Cs,"isSubscription");I.isSubscription=Cs;function oo(r){_r.isFunction(r)?r():r.unsubscribe()}u(oo,"execFinalizer")});var xe=s(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.config=void 0;Rr.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}});var Yi=s(N=>{"use strict";var ao=N&&N.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){a={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return o},co=N&&N.__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(N,"__esModule",{value:!0});N.timeoutProvider=void 0;N.timeoutProvider={setTimeout:u(function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var i=N.timeoutProvider.delegate;return i?.setTimeout?i.setTimeout.apply(i,co([r,t],ao(e))):setTimeout.apply(void 0,co([r,t],ao(e)))},"setTimeout"),clearTimeout:u(function(r){var t=N.timeoutProvider.delegate;return(t?.clearTimeout||clearTimeout)(r)},"clearTimeout"),delegate:void 0}});var Ki=s(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.reportUnhandledError=void 0;var Rs=xe(),Ws=Yi();function Ls(r){Ws.timeoutProvider.setTimeout(function(){var t=Rs.config.onUnhandledError;if(t)t(r);else throw r})}u(Ls,"reportUnhandledError");Wr.reportUnhandledError=Ls});var A=s(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.noop=void 0;function Ns(){}u(Ns,"noop");Lr.noop=Ns});var lo=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 Nr("C",void 0,void 0)})();function Us(r){return Nr("E",void 0,r)}u(Us,"errorNotification");U.errorNotification=Us;function Vs(r){return Nr("N",r,void 0)}u(Vs,"nextNotification");U.nextNotification=Vs;function Nr(r,t,e){return{kind:r,value:t,error:e}}u(Nr,"createNotification");U.createNotification=Nr});var Ur=s(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.captureError=ke.errorContext=void 0;var so=xe(),qe=null;function zs(r){if(so.config.useDeprecatedSynchronousErrorHandling){var t=!qe;if(t&&(qe={errorThrown:!1,error:null}),r(),t){var e=qe,n=e.errorThrown,i=e.error;if(qe=null,n)throw i}}else r()}u(zs,"errorContext");ke.errorContext=zs;function Bs(r){so.config.useDeprecatedSynchronousErrorHandling&&qe&&(qe.errorThrown=!0,qe.error=r)}u(Bs,"captureError");ke.captureError=Bs});var Ce=s(R=>{"use strict";var po=R&&R.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(R,"__esModule",{value:!0});R.EMPTY_OBSERVER=R.SafeSubscriber=R.Subscriber=void 0;var Ds=S(),fo=k(),Zi=xe(),Ys=Ki(),vo=A(),Gi=lo(),Ks=Yi(),Gs=Ur(),bo=(function(r){po(t,r);function t(e){var n=r.call(this)||this;return n.isStopped=!1,e?(n.destination=e,fo.isSubscription(e)&&e.add(n)):n.destination=R.EMPTY_OBSERVER,n}return u(t,"Subscriber"),t.create=function(e,n,i){return new _o(e,n,i)},t.prototype.next=function(e){this.isStopped?Ji(Gi.nextNotification(e),this):this._next(e)},t.prototype.error=function(e){this.isStopped?Ji(Gi.errorNotification(e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?Ji(Gi.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})(fo.Subscription);R.Subscriber=bo;var Qs=Function.prototype.bind;function Qi(r,t){return Qs.call(r,t)}u(Qi,"bind");var Js=(function(){function r(t){this.partialObserver=t}return u(r,"ConsumerObserver"),r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(n){Vr(n)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(n){Vr(n)}else Vr(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){Vr(e)}},r})(),_o=(function(r){po(t,r);function t(e,n,i){var o=r.call(this)||this,a;if(Ds.isFunction(e)||!e)a={next:e??void 0,error:n??void 0,complete:i??void 0};else{var c;o&&Zi.config.useDeprecatedNextContext?(c=Object.create(e),c.unsubscribe=function(){return o.unsubscribe()},a={next:e.next&&Qi(e.next,c),error:e.error&&Qi(e.error,c),complete:e.complete&&Qi(e.complete,c)}):a=e}return o.destination=new Js(a),o}return u(t,"SafeSubscriber"),t})(bo);R.SafeSubscriber=_o;function Vr(r){Zi.config.useDeprecatedSynchronousErrorHandling?Gs.captureError(r):Ys.reportUnhandledError(r)}u(Vr,"handleUnhandledError");function Zs(r){throw r}u(Zs,"defaultErrorHandler");function Ji(r,t){var e=Zi.config.onStoppedNotification;e&&Ks.timeoutProvider.setTimeout(function(){return e(r,t)})}u(Ji,"handleStoppedNotification");R.EMPTY_OBSERVER={closed:!0,next:vo.noop,error:Zs,complete:vo.noop}});var hr=s(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.observable=void 0;zr.observable=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})()});var E=s(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.identity=void 0;function $s(r){return r}u($s,"identity");Br.identity=$s});var yr=s(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.pipeFromArray=Re.pipe=void 0;var Hs=E();function Xs(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];return ho(r)}u(Xs,"pipe");Re.pipe=Xs;function ho(r){return r.length===0?Hs.identity:r.length===1?r[0]:u(function(e){return r.reduce(function(n,i){return i(n)},e)},"piped")}u(ho,"pipeFromArray");Re.pipeFromArray=ho});var j=s(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.Observable=void 0;var Hi=Ce(),ef=k(),rf=hr(),tf=yr(),nf=xe(),$i=S(),uf=Ur(),of=(function(){function r(t){t&&(this._subscribe=t)}return u(r,"Observable"),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,o=cf(t)?t:new Hi.SafeSubscriber(t,e,n);return uf.errorContext(function(){var a=i,c=a.operator,f=a.source;o.add(c?c.call(o,f):f?i._subscribe(o):i._trySubscribe(o))}),o},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=yo(e),new e(function(i,o){var a=new Hi.SafeSubscriber({next:u(function(c){try{t(c)}catch(f){o(f),a.unsubscribe()}},"next"),error:o,complete:i});n.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[rf.observable]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tf.pipeFromArray(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=yo(t),new t(function(n,i){var o;e.subscribe(function(a){return o=a},function(a){return i(a)},function(){return n(o)})})},r.create=function(t){return new r(t)},r})();Dr.Observable=of;function yo(r){var t;return(t=r??nf.config.Promise)!==null&&t!==void 0?t:Promise}u(yo,"getPromiseCtor");function af(r){return r&&$i.isFunction(r.next)&&$i.isFunction(r.error)&&$i.isFunction(r.complete)}u(af,"isObserver");function cf(r){return r&&r instanceof Hi.Subscriber||af(r)&&ef.isSubscription(r)}u(cf,"isSubscriber")});var b=s(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.operate=We.hasLift=void 0;var lf=S();function mo(r){return lf.isFunction(r?.lift)}u(mo,"hasLift");We.hasLift=mo;function sf(r){return function(t){if(mo(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")}}u(sf,"operate");We.operate=sf});var O=s(H=>{"use strict";var ff=H&&H.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(H,"__esModule",{value:!0});H.OperatorSubscriber=H.createOperatorSubscriber=void 0;var vf=Ce();function df(r,t,e,n,i){return new Oo(r,t,e,n,i)}u(df,"createOperatorSubscriber");H.createOperatorSubscriber=df;var Oo=(function(r){ff(t,r);function t(e,n,i,o,a,c){var f=r.call(this,e)||this;return f.onFinalize=a,f.shouldUnsubscribe=c,f._next=n?function(l){try{n(l)}catch(v){e.error(v)}}:r.prototype._next,f._error=o?function(l){try{o(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 u(t,"OperatorSubscriber"),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})(vf.Subscriber);H.OperatorSubscriber=Oo});var Xi=s(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.refCount=void 0;var pf=b(),bf=O();function _f(){return pf.operate(function(r,t){var e=null;r._refCount++;var n=bf.createOperatorSubscriber(t,void 0,void 0,void 0,function(){if(!r||r._refCount<=0||0<--r._refCount){e=null;return}var i=r._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),t.unsubscribe()});r.subscribe(n),n.closed||(e=r.connect())})}u(_f,"refCount");Yr.refCount=_f});var mr=s(Le=>{"use strict";var hf=Le&&Le.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Le,"__esModule",{value:!0});Le.ConnectableObservable=void 0;var yf=j(),go=k(),mf=Xi(),Of=O(),gf=b(),qf=(function(r){hf(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,gf.hasLift(e)&&(i.lift=e.lift),i}return u(t,"ConnectableObservable"),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?.unsubscribe()},t.prototype.connect=function(){var e=this,n=this._connection;if(!n){n=this._connection=new go.Subscription;var i=this.getSubject();n.add(this.source.subscribe(Of.createOperatorSubscriber(i,void 0,function(){e._teardown(),i.complete()},function(o){e._teardown(),i.error(o)},function(){return e._teardown()}))),n.closed&&(this._connection=null,n=go.Subscription.EMPTY)}return n},t.prototype.refCount=function(){return mf.refCount()(this)},t})(yf.Observable);Le.ConnectableObservable=qf});var qo=s(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.performanceTimestampProvider=void 0;Or.performanceTimestampProvider={now:u(function(){return(Or.performanceTimestampProvider.delegate||performance).now()},"now"),delegate:void 0}});var eu=s(W=>{"use strict";var So=W&&W.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){a={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return o},jo=W&&W.__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(W,"__esModule",{value:!0});W.animationFrameProvider=void 0;var Sf=k();W.animationFrameProvider={schedule:u(function(r){var t=requestAnimationFrame,e=cancelAnimationFrame,n=W.animationFrameProvider.delegate;n&&(t=n.requestAnimationFrame,e=n.cancelAnimationFrame);var i=t(function(o){e=void 0,r(o)});return new Sf.Subscription(function(){return e?.(i)})},"schedule"),requestAnimationFrame:u(function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=W.animationFrameProvider.delegate;return(e?.requestAnimationFrame||requestAnimationFrame).apply(void 0,jo([],So(r)))},"requestAnimationFrame"),cancelAnimationFrame:u(function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=W.animationFrameProvider.delegate;return(e?.cancelAnimationFrame||cancelAnimationFrame).apply(void 0,jo([],So(r)))},"cancelAnimationFrame"),delegate:void 0}});var Ao=s(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.animationFrames=void 0;var jf=j(),Pf=qo(),Po=eu();function wf(r){return r?wo(r):Af}u(wf,"animationFrames");Kr.animationFrames=wf;function wo(r){return new jf.Observable(function(t){var e=r||Pf.performanceTimestampProvider,n=e.now(),i=0,o=u(function(){t.closed||(i=Po.animationFrameProvider.requestAnimationFrame(function(a){i=0;var c=e.now();t.next({timestamp:r?c:a,elapsed:c-n}),o()}))},"run");return o(),function(){i&&Po.animationFrameProvider.cancelAnimationFrame(i)}})}u(wo,"animationFramesFactory");var Af=wo()});var ru=s(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.ObjectUnsubscribedError=void 0;var Ef=$();Gr.ObjectUnsubscribedError=Ef.createErrorClass(function(r){return u(function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"},"ObjectUnsubscribedErrorImpl")})});var M=s(V=>{"use strict";var Mo=V&&V.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})(),Mf=V&&V.__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:u(function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(V,"__esModule",{value:!0});V.AnonymousSubject=V.Subject=void 0;var Eo=j(),nu=k(),Ff=ru(),If=Y(),tu=Ur(),Fo=(function(r){Mo(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 u(t,"Subject"),t.prototype.lift=function(e){var n=new iu(this,this);return n.operator=e,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Ff.ObjectUnsubscribedError},t.prototype.next=function(e){var n=this;tu.errorContext(function(){var i,o;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Mf(n.currentObservers),c=a.next();!c.done;c=a.next()){var f=c.value;f.next(e)}}catch(l){i={error:l}}finally{try{c&&!c.done&&(o=a.return)&&o.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(e){var n=this;tu.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;tu.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:u(function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},"get"),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,o=i.hasError,a=i.isStopped,c=i.observers;return o||a?nu.EMPTY_SUBSCRIPTION:(this.currentObservers=null,c.push(e),new nu.Subscription(function(){n.currentObservers=null,If.arrRemove(c,e)}))},t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,o=n.thrownError,a=n.isStopped;i?e.error(o):a&&e.complete()},t.prototype.asObservable=function(){var e=new Eo.Observable;return e.source=this,e},t.create=function(e,n){return new iu(e,n)},t})(Eo.Observable);V.Subject=Fo;var iu=(function(r){Mo(t,r);function t(e,n){var i=r.call(this)||this;return i.destination=e,i.source=n,i}return u(t,"AnonymousSubject"),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:nu.EMPTY_SUBSCRIPTION},t})(Fo);V.AnonymousSubject=iu});var uu=s(Ne=>{"use strict";var Tf=Ne&&Ne.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Ne,"__esModule",{value:!0});Ne.BehaviorSubject=void 0;var xf=M(),kf=(function(r){Tf(t,r);function t(e){var n=r.call(this)||this;return n._value=e,n}return u(t,"BehaviorSubject"),Object.defineProperty(t.prototype,"value",{get:u(function(){return this.getValue()},"get"),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,o=e._value;if(n)throw i;return this._throwIfClosed(),o},t.prototype.next=function(e){r.prototype.next.call(this,this._value=e)},t})(xf.Subject);Ne.BehaviorSubject=kf});var Qr=s(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.dateTimestampProvider=void 0;gr.dateTimestampProvider={now:u(function(){return(gr.dateTimestampProvider.delegate||Date).now()},"now"),delegate:void 0}});var Jr=s(Ue=>{"use strict";var Cf=Ue&&Ue.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ReplaySubject=void 0;var Rf=M(),Wf=Qr(),Lf=(function(r){Cf(t,r);function t(e,n,i){e===void 0&&(e=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Wf.dateTimestampProvider);var o=r.call(this)||this;return o._bufferSize=e,o._windowTime=n,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,n),o}return u(t,"ReplaySubject"),t.prototype.next=function(e){var n=this,i=n.isStopped,o=n._buffer,a=n._infiniteTimeWindow,c=n._timestampProvider,f=n._windowTime;i||(o.push(e),!a&&o.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,o=i._infiniteTimeWindow,a=i._buffer,c=a.slice(),f=0;f<c.length&&!e.closed;f+=o?1:2)e.next(c[f]);return this._checkFinalizedStatuses(e),n},t.prototype._trimBuffer=function(){var e=this,n=e._bufferSize,i=e._timestampProvider,o=e._buffer,a=e._infiniteTimeWindow,c=(a?1:2)*n;if(n<1/0&&c<o.length&&o.splice(0,o.length-c),!a){for(var f=i.now(),l=0,v=1;v<o.length&&o[v]<=f;v+=2)l=v;l&&o.splice(0,l+1)}},t})(Rf.Subject);Ue.ReplaySubject=Lf});var Zr=s(Ve=>{"use strict";var Nf=Ve&&Ve.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Ve,"__esModule",{value:!0});Ve.AsyncSubject=void 0;var Uf=M(),Vf=(function(r){Nf(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 u(t,"AsyncSubject"),t.prototype._checkFinalizedStatuses=function(e){var n=this,i=n.hasError,o=n._hasValue,a=n._value,c=n.thrownError,f=n.isStopped,l=n._isComplete;i?e.error(c):(f||l)&&(o&&e.next(a),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,o=e._isComplete;o||(this._isComplete=!0,n&&r.prototype.next.call(this,i),r.prototype.complete.call(this))},t})(Uf.Subject);Ve.AsyncSubject=Vf});var Io=s(ze=>{"use strict";var zf=ze&&ze.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(ze,"__esModule",{value:!0});ze.Action=void 0;var Bf=k(),Df=(function(r){zf(t,r);function t(e,n){return r.call(this)||this}return u(t,"Action"),t.prototype.schedule=function(e,n){return n===void 0&&(n=0),this},t})(Bf.Subscription);ze.Action=Df});var ko=s(z=>{"use strict";var To=z&&z.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){a={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return o},xo=z&&z.__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(z,"__esModule",{value:!0});z.intervalProvider=void 0;z.intervalProvider={setInterval:u(function(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];var i=z.intervalProvider.delegate;return i?.setInterval?i.setInterval.apply(i,xo([r,t],To(e))):setInterval.apply(void 0,xo([r,t],To(e)))},"setInterval"),clearInterval:u(function(r){var t=z.intervalProvider.delegate;return(t?.clearInterval||clearInterval)(r)},"clearInterval"),delegate:void 0}});var De=s(Be=>{"use strict";var Yf=Be&&Be.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Be,"__esModule",{value:!0});Be.AsyncAction=void 0;var Kf=Io(),Co=ko(),Gf=Y(),Qf=(function(r){Yf(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 u(t,"AsyncAction"),t.prototype.schedule=function(e,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=e;var o=this.id,a=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(a,o,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(e,n,i){return i===void 0&&(i=0),Co.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&&Co.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,o;try{this.work(e)}catch(a){i=!0,o=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var e=this,n=e.id,i=e.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Gf.arrRemove(o,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},t})(Kf.Action);Be.AsyncAction=Qf});var Wo=s(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.TestTools=Ye.Immediate=void 0;var Jf=1,ou,$r={};function Ro(r){return r in $r?(delete $r[r],!0):!1}u(Ro,"findAndClearHandle");Ye.Immediate={setImmediate:u(function(r){var t=Jf++;return $r[t]=!0,ou||(ou=Promise.resolve()),ou.then(function(){return Ro(t)&&r()}),t},"setImmediate"),clearImmediate:u(function(r){Ro(r)},"clearImmediate")};Ye.TestTools={pending:u(function(){return Object.keys($r).length},"pending")}});var No=s(B=>{"use strict";var Zf=B&&B.__read||function(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var n=e.call(r),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(c){a={error:c}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(a)throw a.error}}return o},$f=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 Lo=Wo(),Hf=Lo.Immediate.setImmediate,Xf=Lo.Immediate.clearImmediate;B.immediateProvider={setImmediate:u(function(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];var e=B.immediateProvider.delegate;return(e?.setImmediate||Hf).apply(void 0,$f([],Zf(r)))},"setImmediate"),clearImmediate:u(function(r){var t=B.immediateProvider.delegate;return(t?.clearImmediate||Xf)(r)},"clearImmediate"),delegate:void 0}});var Vo=s(Ke=>{"use strict";var ev=Ke&&Ke.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Ke,"__esModule",{value:!0});Ke.AsapAction=void 0;var rv=De(),Uo=No(),tv=(function(r){ev(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return u(t,"AsapAction"),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=Uo.immediateProvider.setImmediate(e.flush.bind(e,void 0))))},t.prototype.recycleAsyncId=function(e,n,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var a=e.actions;n!=null&&((o=a[a.length-1])===null||o===void 0?void 0:o.id)!==n&&(Uo.immediateProvider.clearImmediate(n),e._scheduled===n&&(e._scheduled=void 0))},t})(rv.AsyncAction);Ke.AsapAction=tv});var au=s(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Scheduler=void 0;var nv=Qr(),iv=(function(){function r(t,e){e===void 0&&(e=r.now),this.schedulerActionCtor=t,this.now=e}return u(r,"Scheduler"),r.prototype.schedule=function(t,e,n){return e===void 0&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},r.now=nv.dateTimestampProvider.now,r})();Hr.Scheduler=iv});var Qe=s(Ge=>{"use strict";var uv=Ge&&Ge.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Ge,"__esModule",{value:!0});Ge.AsyncScheduler=void 0;var zo=au(),ov=(function(r){uv(t,r);function t(e,n){n===void 0&&(n=zo.Scheduler.now);var i=r.call(this,e,n)||this;return i.actions=[],i._active=!1,i}return u(t,"AsyncScheduler"),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})(zo.Scheduler);Ge.AsyncScheduler=ov});var Bo=s(Je=>{"use strict";var av=Je&&Je.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Je,"__esModule",{value:!0});Je.AsapScheduler=void 0;var cv=Qe(),lv=(function(r){av(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return u(t,"AsapScheduler"),t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,o;e=e||i.shift();do if(o=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,o){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw o}},t})(cv.AsyncScheduler);Je.AsapScheduler=lv});var Do=s(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.asap=Se.asapScheduler=void 0;var sv=Vo(),fv=Bo();Se.asapScheduler=new fv.AsapScheduler(sv.AsapAction);Se.asap=Se.asapScheduler});var T=s(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.async=je.asyncScheduler=void 0;var vv=De(),dv=Qe();je.asyncScheduler=new dv.AsyncScheduler(vv.AsyncAction);je.async=je.asyncScheduler});var Yo=s(Ze=>{"use strict";var pv=Ze&&Ze.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Ze,"__esModule",{value:!0});Ze.QueueAction=void 0;var bv=De(),_v=(function(r){pv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return u(t,"QueueAction"),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})(bv.AsyncAction);Ze.QueueAction=_v});var Ko=s($e=>{"use strict";var hv=$e&&$e.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty($e,"__esModule",{value:!0});$e.QueueScheduler=void 0;var yv=Qe(),mv=(function(r){hv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return u(t,"QueueScheduler"),t})(yv.AsyncScheduler);$e.QueueScheduler=mv});var Go=s(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.queue=Pe.queueScheduler=void 0;var Ov=Yo(),gv=Ko();Pe.queueScheduler=new gv.QueueScheduler(Ov.QueueAction);Pe.queue=Pe.queueScheduler});var Jo=s(He=>{"use strict";var qv=He&&He.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(He,"__esModule",{value:!0});He.AnimationFrameAction=void 0;var Sv=De(),Qo=eu(),jv=(function(r){qv(t,r);function t(e,n){var i=r.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return u(t,"AnimationFrameAction"),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=Qo.animationFrameProvider.requestAnimationFrame(function(){return e.flush(void 0)})))},t.prototype.recycleAsyncId=function(e,n,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return r.prototype.recycleAsyncId.call(this,e,n,i);var a=e.actions;n!=null&&((o=a[a.length-1])===null||o===void 0?void 0:o.id)!==n&&(Qo.animationFrameProvider.cancelAnimationFrame(n),e._scheduled=void 0)},t})(Sv.AsyncAction);He.AnimationFrameAction=jv});var Zo=s(Xe=>{"use strict";var Pv=Xe&&Xe.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(Xe,"__esModule",{value:!0});Xe.AnimationFrameScheduler=void 0;var wv=Qe(),Av=(function(r){Pv(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return u(t,"AnimationFrameScheduler"),t.prototype.flush=function(e){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var i=this.actions,o;e=e||i.shift();do if(o=e.execute(e.state,e.delay))break;while((e=i[0])&&e.id===n&&i.shift());if(this._active=!1,o){for(;(e=i[0])&&e.id===n&&i.shift();)e.unsubscribe();throw o}},t})(wv.AsyncScheduler);Xe.AnimationFrameScheduler=Av});var $o=s(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.animationFrame=we.animationFrameScheduler=void 0;var Ev=Jo(),Mv=Zo();we.animationFrameScheduler=new Mv.AnimationFrameScheduler(Ev.AnimationFrameAction);we.animationFrame=we.animationFrameScheduler});var ea=s(X=>{"use strict";var Ho=X&&X.__extends||(function(){var r=u(function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])},r(t,e)},"extendStatics");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}u(n,"__"),t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}})();Object.defineProperty(X,"__esModule",{value:!0});X.VirtualAction=X.VirtualTimeScheduler=void 0;var Fv=De(),Iv=k(),Tv=Qe(),xv=(function(r){Ho(t,r);function t(e,n){e===void 0&&(e=Xo),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 u(t,"VirtualTimeScheduler"),t.prototype.flush=function(){for(var e=this,n=e.actions,i=e.maxFrames,o,a;(a=n[0])&&a.delay<=i&&(n.shift(),this.frame=a.delay,!(o=a.execute(a.state,a.delay))););if(o){for(;a=n.shift();)a.unsubscribe();throw o}},t.frameTimeFactor=10,t})(Tv.AsyncScheduler);X.VirtualTimeScheduler=xv;var Xo=(function(r){Ho(t,r);function t(e,n,i){i===void 0&&(i=e.index+=1);var o=r.call(this,e,n)||this;return o.scheduler=e,o.work=n,o.index=i,o.active=!0,o.index=e.index=i,o}return u(t,"VirtualAction"),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 Iv.Subscription.EMPTY},t.prototype.requestAsyncId=function(e,n,i){i===void 0&&(i=0),this.delay=e.frame+i;var o=e.actions;return o.push(this),o.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})(Fv.AsyncAction);X.VirtualAction=Xo});var L=s(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.empty=Ae.EMPTY=void 0;var ra=j();Ae.EMPTY=new ra.Observable(function(r){return r.complete()});function kv(r){return r?Cv(r):Ae.EMPTY}u(kv,"empty");Ae.empty=kv;function Cv(r){return new ra.Observable(function(t){return r.schedule(function(){return t.complete()})})}u(Cv,"emptyScheduled")});var qr=s(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.isScheduler=void 0;var Rv=S();function Wv(r){return r&&Rv.isFunction(r.schedule)}u(Wv,"isScheduler");Xr.isScheduler=Wv});var x=s(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.popNumber=ee.popScheduler=ee.popResultSelector=void 0;var Lv=S(),Nv=qr();function cu(r){return r[r.length-1]}u(cu,"last");function Uv(r){return Lv.isFunction(cu(r))?r.pop():void 0}u(Uv,"popResultSelector");ee.popResultSelector=Uv;function Vv(r){return Nv.isScheduler(cu(r))?r.pop():void 0}u(Vv,"popScheduler");ee.popScheduler=Vv;function zv(r,t){return typeof cu(r)=="number"?r.pop():t}u(zv,"popNumber");ee.popNumber=zv});var rt=s(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.isArrayLike=void 0;et.isArrayLike=(function(r){return r&&typeof r.length=="number"&&typeof r!="function"})});var lu=s(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.isPromise=void 0;var Bv=S();function Dv(r){return Bv.isFunction(r?.then)}u(Dv,"isPromise");tt.isPromise=Dv});var su=s(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.isInteropObservable=void 0;var Yv=hr(),Kv=S();function Gv(r){return Kv.isFunction(r[Yv.observable])}u(Gv,"isInteropObservable");nt.isInteropObservable=Gv});var fu=s(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.isAsyncIterable=void 0;var Qv=S();function Jv(r){return Symbol.asyncIterator&&Qv.isFunction(r?.[Symbol.asyncIterator])}u(Jv,"isAsyncIterable");it.isAsyncIterable=Jv});var vu=s(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.createInvalidObservableTypeError=void 0;function Zv(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.")}u(Zv,"createInvalidObservableTypeError");ut.createInvalidObservableTypeError=Zv});var du=s(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.iterator=er.getSymbolIterator=void 0;function ta(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}u(ta,"getSymbolIterator");er.getSymbolIterator=ta;er.iterator=ta()});var pu=s(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.isIterable=void 0;var $v=du(),Hv=S();function Xv(r){return Hv.isFunction(r?.[$v.iterator])}u(Xv,"isIterable");ot.isIterable=Xv});var at=s(C=>{"use strict";var ed=C&&C.__generator||function(r,t){var e={label:0,sent:u(function(){if(o[0]&1)throw o[1];return o[1]},"sent"),trys:[],ops:[]},n,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;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&&(o=l[0]&2?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[l[0]&2,o.value]),l[0]){case 0:case 1:o=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(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!o||l[1]>o[0]&&l[1]<o[3])){e.label=l[1];break}if(l[0]===6&&e.label<o[1]){e.label=o[1],o=l;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(l);break}o[2]&&e.ops.pop(),e.trys.pop();continue}l=t.call(r,e)}catch(v){l=[6,v],i=0}finally{n=o=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},rr=C&&C.__await||function(r){return this instanceof rr?(this.v=r,this):new rr(r)},rd=C&&C.__asyncGenerator||function(r,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(r,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(p){n[p]&&(i[p]=function(y){return new Promise(function(h,_){o.push([p,y,h,_])>1||c(p,y)})})}function c(p,y){try{f(n[p](y))}catch(h){d(o[0][3],h)}}function f(p){p.value instanceof rr?Promise.resolve(p.value.v).then(l,v):d(o[0][2],p)}function l(p){c("next",p)}function v(p){c("throw",p)}function d(p,y){p(y),o.shift(),o.length&&c(o[0][0],o[0][1])}};Object.defineProperty(C,"__esModule",{value:!0});C.isReadableStreamLike=C.readableStreamLikeToAsyncGenerator=void 0;var td=S();function nd(r){return rd(this,arguments,u(function(){var e,n,i,o;return ed(this,function(a){switch(a.label){case 0:e=r.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,rr(e.read())];case 3:return n=a.sent(),i=n.value,o=n.done,o?[4,rr(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,rr(i)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})},"readableStreamLikeToAsyncGenerator_1"))}u(nd,"readableStreamLikeToAsyncGenerator");C.readableStreamLikeToAsyncGenerator=nd;function id(r){return td.isFunction(r?.getReader)}u(id,"isReadableStreamLike");C.isReadableStreamLike=id});var q=s(w=>{"use strict";var ud=w&&w.__awaiter||function(r,t,e,n){function i(o){return o instanceof e?o:new e(function(a){a(o)})}return u(i,"adopt"),new(e||(e=Promise))(function(o,a){function c(v){try{l(n.next(v))}catch(d){a(d)}}u(c,"fulfilled");function f(v){try{l(n.throw(v))}catch(d){a(d)}}u(f,"rejected");function l(v){v.done?o(v.value):i(v.value).then(c,f)}u(l,"step"),l((n=n.apply(r,t||[])).next())})},od=w&&w.__generator||function(r,t){var e={label:0,sent:u(function(){if(o[0]&1)throw o[1