chatkitty
Version:
A powerful tool for integrating chat features into your web applications.
3 lines • 262 kB
JavaScript
var Vp=Object.create;var Xs=Object.defineProperty,Hp=Object.defineProperties,$p=Object.getOwnPropertyDescriptor,zp=Object.getOwnPropertyDescriptors,Gp=Object.getOwnPropertyNames,ou=Object.getOwnPropertySymbols,Jp=Object.getPrototypeOf,su=Object.prototype.hasOwnProperty,Yp=Object.prototype.propertyIsEnumerable;var Ns=(n,e,t)=>e in n?Xs(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ne=(n,e)=>{for(var t in e||(e={}))su.call(e,t)&&Ns(n,t,e[t]);if(ou)for(var t of ou(e))Yp.call(e,t)&&Ns(n,t,e[t]);return n},Oe=(n,e)=>Hp(n,zp(e));var Yt=(n=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(n,{get:(e,t)=>(typeof require!="undefined"?require:e)[t]}):n)(function(n){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var b=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Qp=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Gp(e))!su.call(n,i)&&i!==t&&Xs(n,i,{get:()=>e[i],enumerable:!(r=$p(e,i))||r.enumerable});return n};var br=(n,e,t)=>(t=n!=null?Vp(Jp(n)):{},Qp(e||!n||!n.__esModule?Xs(t,"default",{value:n,enumerable:!0}):t,n));var D=(n,e,t)=>(Ns(n,typeof e!="symbol"?e+"":e,t),t);var Q=(n,e,t)=>new Promise((r,i)=>{var o=c=>{try{a(t.next(c))}catch(u){i(u)}},s=c=>{try{a(t.throw(c))}catch(u){i(u)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((t=t.apply(n,e)).next())});var $=b(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.isFunction=void 0;function Zp(n){return typeof n=="function"}gr.isFunction=Zp});var Ee=b(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.createErrorClass=void 0;function ed(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}_r.createErrorClass=ed});var Ks=b(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.UnsubscriptionError=void 0;var td=Ee();Sr.UnsubscriptionError=td.createErrorClass(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
`+t.map(function(r,i){return i+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=t}})});var Se=b(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.arrRemove=void 0;function rd(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}wr.arrRemove=rd});var ae=b(ie=>{"use strict";var au=ie&&ie.__values||function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},uu=ie&&ie.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},cu=ie&&ie.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(ie,"__esModule",{value:!0});ie.isSubscription=ie.EMPTY_SUBSCRIPTION=ie.Subscription=void 0;var Qt=$(),Ds=Ks(),lu=Se(),Ws=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=au(s),c=a.next();!c.done;c=a.next()){var u=c.value;u.remove(this)}}catch(_){e={error:_}}finally{try{c&&!c.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}else s.remove(this);var l=this.initialTeardown;if(Qt.isFunction(l))try{l()}catch(_){o=_ instanceof Ds.UnsubscriptionError?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=au(f),h=d.next();!h.done;h=d.next()){var v=h.value;try{fu(v)}catch(_){o=o!=null?o:[],_ instanceof Ds.UnsubscriptionError?o=cu(cu([],uu(o)),uu(_.errors)):o.push(_)}}}catch(_){r={error:_}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}}if(o)throw new Ds.UnsubscriptionError(o)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)fu(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&lu.arrRemove(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&lu.arrRemove(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}();ie.Subscription=Ws;ie.EMPTY_SUBSCRIPTION=Ws.EMPTY;function nd(n){return n instanceof Ws||n&&"closed"in n&&Qt.isFunction(n.remove)&&Qt.isFunction(n.add)&&Qt.isFunction(n.unsubscribe)}ie.isSubscription=nd;function fu(n){Qt.isFunction(n)?n():n.unsubscribe()}});var ft=b(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 Bs=b(ve=>{"use strict";var pu=ve&&ve.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},du=ve&&ve.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(ve,"__esModule",{value:!0});ve.timeoutProvider=void 0;ve.timeoutProvider={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=ve.timeoutProvider.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,du([n,e],pu(t))):setTimeout.apply(void 0,du([n,e],pu(t)))},clearTimeout:function(n){var e=ve.timeoutProvider.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0}});var Vs=b(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.reportUnhandledError=void 0;var id=ft(),od=Bs();function sd(n){od.timeoutProvider.setTimeout(function(){var e=id.config.onUnhandledError;if(e)e(n);else throw n})}Cr.reportUnhandledError=sd});var Z=b(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.noop=void 0;function ad(){}xr.noop=ad});var hu=b(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.createNotification=me.nextNotification=me.errorNotification=me.COMPLETE_NOTIFICATION=void 0;me.COMPLETE_NOTIFICATION=function(){return Or("C",void 0,void 0)}();function ud(n){return Or("E",void 0,n)}me.errorNotification=ud;function cd(n){return Or("N",n,void 0)}me.nextNotification=cd;function Or(n,e,t){return{kind:n,value:e,error:t}}me.createNotification=Or});var Er=b(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.captureError=pt.errorContext=void 0;var vu=ft(),Ye=null;function ld(n){if(vu.config.useDeprecatedSynchronousErrorHandling){var e=!Ye;if(e&&(Ye={errorThrown:!1,error:null}),n(),e){var t=Ye,r=t.errorThrown,i=t.error;if(Ye=null,r)throw i}}else n()}pt.errorContext=ld;function fd(n){vu.config.useDeprecatedSynchronousErrorHandling&&Ye&&(Ye.errorThrown=!0,Ye.error=n)}pt.captureError=fd});var dt=b(fe=>{"use strict";var bu=fe&&fe.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(fe,"__esModule",{value:!0});fe.EMPTY_OBSERVER=fe.SafeSubscriber=fe.Subscriber=void 0;var pd=$(),mu=ae(),Gs=ft(),dd=Vs(),yu=Z(),Hs=hu(),hd=Bs(),vd=Er(),gu=function(n){bu(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,mu.isSubscription(t)&&t.add(r)):r.destination=fe.EMPTY_OBSERVER,r}return e.create=function(t,r,i){return new _u(t,r,i)},e.prototype.next=function(t){this.isStopped?zs(Hs.nextNotification(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?zs(Hs.errorNotification(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?zs(Hs.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.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}(mu.Subscription);fe.Subscriber=gu;var md=Function.prototype.bind;function $s(n,e){return md.call(n,e)}var yd=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){Mr(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){Mr(r)}else Mr(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Mr(t)}},n}(),_u=function(n){bu(e,n);function e(t,r,i){var o=n.call(this)||this,s;if(pd.isFunction(t)||!t)s={next:t!=null?t:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var a;o&&Gs.config.useDeprecatedNextContext?(a=Object.create(t),a.unsubscribe=function(){return o.unsubscribe()},s={next:t.next&&$s(t.next,a),error:t.error&&$s(t.error,a),complete:t.complete&&$s(t.complete,a)}):s=t}return o.destination=new yd(s),o}return e}(gu);fe.SafeSubscriber=_u;function Mr(n){Gs.config.useDeprecatedSynchronousErrorHandling?vd.captureError(n):dd.reportUnhandledError(n)}function bd(n){throw n}function zs(n,e){var t=Gs.config.onStoppedNotification;t&&hd.timeoutProvider.setTimeout(function(){return t(n,e)})}fe.EMPTY_OBSERVER={closed:!0,next:yu.noop,error:bd,complete:yu.noop}});var Zt=b(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.observable=void 0;Pr.observable=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}()});var ee=b(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.identity=void 0;function gd(n){return n}jr.identity=gd});var er=b(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.pipeFromArray=ht.pipe=void 0;var _d=ee();function Sd(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return Su(n)}ht.pipe=Sd;function Su(n){return n.length===0?_d.identity:n.length===1?n[0]:function(t){return n.reduce(function(r,i){return i(r)},t)}}ht.pipeFromArray=Su});var z=b(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.Observable=void 0;var Ys=dt(),wd=ae(),Rd=Zt(),Cd=er(),xd=ft(),Js=$(),Od=Er(),Ed=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var i=this,o=Pd(e)?e:new Ys.SafeSubscriber(e,t,r);return Od.errorContext(function(){var s=i,a=s.operator,c=s.source;o.add(a?a.call(o,c):c?i._subscribe(o):i._trySubscribe(o))}),o},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=wu(t),new t(function(i,o){var s=new Ys.SafeSubscriber({next:function(a){try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[Rd.observable]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Cd.pipeFromArray(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=wu(e),new e(function(r,i){var o;t.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},n.create=function(e){return new n(e)},n}();Tr.Observable=Ed;function wu(n){var e;return(e=n!=null?n:xd.config.Promise)!==null&&e!==void 0?e:Promise}function Md(n){return n&&Js.isFunction(n.next)&&Js.isFunction(n.error)&&Js.isFunction(n.complete)}function Pd(n){return n&&n instanceof Ys.Subscriber||Md(n)&&wd.isSubscription(n)}});var U=b(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.operate=vt.hasLift=void 0;var jd=$();function Ru(n){return jd.isFunction(n==null?void 0:n.lift)}vt.hasLift=Ru;function Td(n){return function(e){if(Ru(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}vt.operate=Td});var k=b(Me=>{"use strict";var qd=Me&&Me.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Me,"__esModule",{value:!0});Me.OperatorSubscriber=Me.createOperatorSubscriber=void 0;var Ud=dt();function Ad(n,e,t,r,i){return new Cu(n,e,t,r,i)}Me.createOperatorSubscriber=Ad;var Cu=function(n){qd(e,n);function e(t,r,i,o,s,a){var c=n.call(this,t)||this;return c.onFinalize=s,c.shouldUnsubscribe=a,c._next=r?function(u){try{r(u)}catch(l){t.error(l)}}:n.prototype._next,c._error=o?function(u){try{o(u)}catch(l){t.error(l)}finally{this.unsubscribe()}}:n.prototype._error,c._complete=i?function(){try{i()}catch(u){t.error(u)}finally{this.unsubscribe()}}:n.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(Ud.Subscriber);Me.OperatorSubscriber=Cu});var Qs=b(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.refCount=void 0;var Fd=U(),Id=k();function kd(){return Fd.operate(function(n,e){var t=null;n._refCount++;var r=Id.createOperatorSubscriber(e,void 0,void 0,void 0,function(){if(!n||n._refCount<=0||0<--n._refCount){t=null;return}var i=n._connection,o=t;t=null,i&&(!o||i===o)&&i.unsubscribe(),e.unsubscribe()});n.subscribe(r),r.closed||(t=n.connect())})}qr.refCount=kd});var tr=b(mt=>{"use strict";var Ld=mt&&mt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(mt,"__esModule",{value:!0});mt.ConnectableObservable=void 0;var Nd=z(),xu=ae(),Xd=Qs(),Kd=k(),Dd=U(),Wd=function(n){Ld(e,n);function e(t,r){var i=n.call(this)||this;return i.source=t,i.subjectFactory=r,i._subject=null,i._refCount=0,i._connection=null,Dd.hasLift(t)&&(i.lift=t.lift),i}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==null||t.unsubscribe()},e.prototype.connect=function(){var t=this,r=this._connection;if(!r){r=this._connection=new xu.Subscription;var i=this.getSubject();r.add(this.source.subscribe(Kd.createOperatorSubscriber(i,void 0,function(){t._teardown(),i.complete()},function(o){t._teardown(),i.error(o)},function(){return t._teardown()}))),r.closed&&(this._connection=null,r=xu.Subscription.EMPTY)}return r},e.prototype.refCount=function(){return Xd.refCount()(this)},e}(Nd.Observable);mt.ConnectableObservable=Wd});var Ou=b(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.performanceTimestampProvider=void 0;rr.performanceTimestampProvider={now:function(){return(rr.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}});var Zs=b(pe=>{"use strict";var Eu=pe&&pe.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},Mu=pe&&pe.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(pe,"__esModule",{value:!0});pe.animationFrameProvider=void 0;var Bd=ae();pe.animationFrameProvider={schedule:function(n){var e=requestAnimationFrame,t=cancelAnimationFrame,r=pe.animationFrameProvider.delegate;r&&(e=r.requestAnimationFrame,t=r.cancelAnimationFrame);var i=e(function(o){t=void 0,n(o)});return new Bd.Subscription(function(){return t==null?void 0:t(i)})},requestAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=pe.animationFrameProvider.delegate;return((t==null?void 0:t.requestAnimationFrame)||requestAnimationFrame).apply(void 0,Mu([],Eu(n)))},cancelAnimationFrame:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=pe.animationFrameProvider.delegate;return((t==null?void 0:t.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,Mu([],Eu(n)))},delegate:void 0}});var Tu=b(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.animationFrames=void 0;var Vd=z(),Hd=Ou(),Pu=Zs();function $d(n){return n?ju(n):zd}Ur.animationFrames=$d;function ju(n){return new Vd.Observable(function(e){var t=n||Hd.performanceTimestampProvider,r=t.now(),i=0,o=function(){e.closed||(i=Pu.animationFrameProvider.requestAnimationFrame(function(s){i=0;var a=t.now();e.next({timestamp:n?a:s,elapsed:a-r}),o()}))};return o(),function(){i&&Pu.animationFrameProvider.cancelAnimationFrame(i)}})}var zd=ju()});var ea=b(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.ObjectUnsubscribedError=void 0;var Gd=Ee();Ar.ObjectUnsubscribedError=Gd.createErrorClass(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})});var te=b(ye=>{"use strict";var Uu=ye&&ye.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Jd=ye&&ye.__values||function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(ye,"__esModule",{value:!0});ye.AnonymousSubject=ye.Subject=void 0;var qu=z(),ra=ae(),Yd=ea(),Qd=Se(),ta=Er(),Au=function(n){Uu(e,n);function e(){var t=n.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 r=new na(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Yd.ObjectUnsubscribedError},e.prototype.next=function(t){var r=this;ta.errorContext(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Jd(r.currentObservers),a=s.next();!a.done;a=s.next()){var c=a.value;c.next(t)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},e.prototype.error=function(t){var r=this;ta.errorContext(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var i=r.observers;i.length;)i.shift().error(t)}})},e.prototype.complete=function(){var t=this;ta.errorContext(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.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(),n.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 r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?ra.EMPTY_SUBSCRIPTION:(this.currentObservers=null,a.push(t),new ra.Subscription(function(){r.currentObservers=null,Qd.arrRemove(a,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?t.error(o):s&&t.complete()},e.prototype.asObservable=function(){var t=new qu.Observable;return t.source=this,t},e.create=function(t,r){return new na(t,r)},e}(qu.Observable);ye.Subject=Au;var na=function(n){Uu(e,n);function e(t,r){var i=n.call(this)||this;return i.destination=t,i.source=r,i}return e.prototype.next=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,t)},e.prototype.error=function(t){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&i!==void 0?i:ra.EMPTY_SUBSCRIPTION},e}(Au);ye.AnonymousSubject=na});var ia=b(yt=>{"use strict";var Zd=yt&&yt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(yt,"__esModule",{value:!0});yt.BehaviorSubject=void 0;var eh=te(),th=function(n){Zd(e,n);function e(t){var r=n.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,i=t.thrownError,o=t._value;if(r)throw i;return this._throwIfClosed(),o},e.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},e}(eh.Subject);yt.BehaviorSubject=th});var Fr=b(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.dateTimestampProvider=void 0;nr.dateTimestampProvider={now:function(){return(nr.dateTimestampProvider.delegate||Date).now()},delegate:void 0}});var Ir=b(bt=>{"use strict";var rh=bt&&bt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(bt,"__esModule",{value:!0});bt.ReplaySubject=void 0;var nh=te(),ih=Fr(),oh=function(n){rh(e,n);function e(t,r,i){t===void 0&&(t=1/0),r===void 0&&(r=1/0),i===void 0&&(i=ih.dateTimestampProvider);var o=n.call(this)||this;return o._bufferSize=t,o._windowTime=r,o._timestampProvider=i,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=r===1/0,o._bufferSize=Math.max(1,t),o._windowTime=Math.max(1,r),o}return e.prototype.next=function(t){var r=this,i=r.isStopped,o=r._buffer,s=r._infiniteTimeWindow,a=r._timestampProvider,c=r._windowTime;i||(o.push(t),!s&&o.push(a.now()+c)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),i=this,o=i._infiniteTimeWindow,s=i._buffer,a=s.slice(),c=0;c<a.length&&!t.closed;c+=o?1:2)t.next(a[c]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,i=t._timestampProvider,o=t._buffer,s=t._infiniteTimeWindow,a=(s?1:2)*r;if(r<1/0&&a<o.length&&o.splice(0,o.length-a),!s){for(var c=i.now(),u=0,l=1;l<o.length&&o[l]<=c;l+=2)u=l;u&&o.splice(0,u+1)}},e}(nh.Subject);bt.ReplaySubject=oh});var kr=b(gt=>{"use strict";var sh=gt&>.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(gt,"__esModule",{value:!0});gt.AsyncSubject=void 0;var ah=te(),uh=function(n){sh(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._value=null,t._hasValue=!1,t._isComplete=!1,t}return e.prototype._checkFinalizedStatuses=function(t){var r=this,i=r.hasError,o=r._hasValue,s=r._value,a=r.thrownError,c=r.isStopped,u=r._isComplete;i?t.error(a):(c||u)&&(o&&t.next(s),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var t=this,r=t._hasValue,i=t._value,o=t._isComplete;o||(this._isComplete=!0,r&&n.prototype.next.call(this,i),n.prototype.complete.call(this))},e}(ah.Subject);gt.AsyncSubject=uh});var Fu=b(_t=>{"use strict";var ch=_t&&_t.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(_t,"__esModule",{value:!0});_t.Action=void 0;var lh=ae(),fh=function(n){ch(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return r===void 0&&(r=0),this},e}(lh.Subscription);_t.Action=fh});var Lu=b(be=>{"use strict";var Iu=be&&be.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},ku=be&&be.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(be,"__esModule",{value:!0});be.intervalProvider=void 0;be.intervalProvider={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var i=be.intervalProvider.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,ku([n,e],Iu(t))):setInterval.apply(void 0,ku([n,e],Iu(t)))},clearInterval:function(n){var e=be.intervalProvider.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0}});var wt=b(St=>{"use strict";var ph=St&&St.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(St,"__esModule",{value:!0});St.AsyncAction=void 0;var dh=Fu(),Nu=Lu(),hh=Se(),vh=function(n){ph(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return e.prototype.schedule=function(t,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),Nu.intervalProvider.setInterval(t.flush.bind(t,this),i)},e.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&Nu.intervalProvider.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var i=!1,o;try{this.work(t)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,i=t.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,hh.arrRemove(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(dh.Action);St.AsyncAction=vh});var Ku=b(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.TestTools=Rt.Immediate=void 0;var mh=1,oa,Lr={};function Xu(n){return n in Lr?(delete Lr[n],!0):!1}Rt.Immediate={setImmediate:function(n){var e=mh++;return Lr[e]=!0,oa||(oa=Promise.resolve()),oa.then(function(){return Xu(e)&&n()}),e},clearImmediate:function(n){Xu(n)}};Rt.TestTools={pending:function(){return Object.keys(Lr).length}}});var Wu=b(ge=>{"use strict";var yh=ge&&ge.__read||function(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o},bh=ge&&ge.__spreadArray||function(n,e){for(var t=0,r=e.length,i=n.length;t<r;t++,i++)n[i]=e[t];return n};Object.defineProperty(ge,"__esModule",{value:!0});ge.immediateProvider=void 0;var Du=Ku(),gh=Du.Immediate.setImmediate,_h=Du.Immediate.clearImmediate;ge.immediateProvider={setImmediate:function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=ge.immediateProvider.delegate;return((t==null?void 0:t.setImmediate)||gh).apply(void 0,bh([],yh(n)))},clearImmediate:function(n){var e=ge.immediateProvider.delegate;return((e==null?void 0:e.clearImmediate)||_h)(n)},delegate:void 0}});var Vu=b(Ct=>{"use strict";var Sh=Ct&&Ct.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Ct,"__esModule",{value:!0});Ct.AsapAction=void 0;var wh=wt(),Bu=Wu(),Rh=function(n){Sh(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?n.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t._scheduled||(t._scheduled=Bu.immediateProvider.setImmediate(t.flush.bind(t,void 0))))},e.prototype.recycleAsyncId=function(t,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,i);var s=t.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(Bu.immediateProvider.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},e}(wh.AsyncAction);Ct.AsapAction=Rh});var sa=b(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.Scheduler=void 0;var Ch=Fr(),xh=function(){function n(e,t){t===void 0&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=Ch.dateTimestampProvider.now,n}();Nr.Scheduler=xh});var Ot=b(xt=>{"use strict";var Oh=xt&&xt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(xt,"__esModule",{value:!0});xt.AsyncScheduler=void 0;var Hu=sa(),Eh=function(n){Oh(e,n);function e(t,r){r===void 0&&(r=Hu.Scheduler.now);var i=n.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},e}(Hu.Scheduler);xt.AsyncScheduler=Eh});var $u=b(Et=>{"use strict";var Mh=Et&&Et.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Et,"__esModule",{value:!0});Et.AsapScheduler=void 0;var Ph=Ot(),jh=function(n){Mh(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.flush=function(t){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;t=t||i.shift();do if(o=t.execute(t.state,t.delay))break;while((t=i[0])&&t.id===r&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===r&&i.shift();)t.unsubscribe();throw o}},e}(Ph.AsyncScheduler);Et.AsapScheduler=jh});var zu=b(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.asap=Qe.asapScheduler=void 0;var Th=Vu(),qh=$u();Qe.asapScheduler=new qh.AsapScheduler(Th.AsapAction);Qe.asap=Qe.asapScheduler});var oe=b(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.async=Ze.asyncScheduler=void 0;var Uh=wt(),Ah=Ot();Ze.asyncScheduler=new Ah.AsyncScheduler(Uh.AsyncAction);Ze.async=Ze.asyncScheduler});var Gu=b(Mt=>{"use strict";var Fh=Mt&&Mt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Mt,"__esModule",{value:!0});Mt.QueueAction=void 0;var Ih=wt(),kh=function(n){Fh(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return e.prototype.schedule=function(t,r){return r===void 0&&(r=0),r>0?n.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},e.prototype.execute=function(t,r){return r>0||this.closed?n.prototype.execute.call(this,t,r):this._execute(t,r)},e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!=null&&i>0||i==null&&this.delay>0?n.prototype.requestAsyncId.call(this,t,r,i):(t.flush(this),0)},e}(Ih.AsyncAction);Mt.QueueAction=kh});var Ju=b(Pt=>{"use strict";var Lh=Pt&&Pt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Pt,"__esModule",{value:!0});Pt.QueueScheduler=void 0;var Nh=Ot(),Xh=function(n){Lh(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(Nh.AsyncScheduler);Pt.QueueScheduler=Xh});var Yu=b(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.queue=et.queueScheduler=void 0;var Kh=Gu(),Dh=Ju();et.queueScheduler=new Dh.QueueScheduler(Kh.QueueAction);et.queue=et.queueScheduler});var Zu=b(jt=>{"use strict";var Wh=jt&&jt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(jt,"__esModule",{value:!0});jt.AnimationFrameAction=void 0;var Bh=wt(),Qu=Zs(),Vh=function(n){Wh(e,n);function e(t,r){var i=n.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return e.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?n.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t._scheduled||(t._scheduled=Qu.animationFrameProvider.requestAnimationFrame(function(){return t.flush(void 0)})))},e.prototype.recycleAsyncId=function(t,r,i){var o;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return n.prototype.recycleAsyncId.call(this,t,r,i);var s=t.actions;r!=null&&((o=s[s.length-1])===null||o===void 0?void 0:o.id)!==r&&(Qu.animationFrameProvider.cancelAnimationFrame(r),t._scheduled=void 0)},e}(Bh.AsyncAction);jt.AnimationFrameAction=Vh});var ec=b(Tt=>{"use strict";var Hh=Tt&&Tt.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Tt,"__esModule",{value:!0});Tt.AnimationFrameScheduler=void 0;var $h=Ot(),zh=function(n){Hh(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.flush=function(t){this._active=!0;var r=this._scheduled;this._scheduled=void 0;var i=this.actions,o;t=t||i.shift();do if(o=t.execute(t.state,t.delay))break;while((t=i[0])&&t.id===r&&i.shift());if(this._active=!1,o){for(;(t=i[0])&&t.id===r&&i.shift();)t.unsubscribe();throw o}},e}($h.AsyncScheduler);Tt.AnimationFrameScheduler=zh});var tc=b(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.animationFrame=tt.animationFrameScheduler=void 0;var Gh=Zu(),Jh=ec();tt.animationFrameScheduler=new Jh.AnimationFrameScheduler(Gh.AnimationFrameAction);tt.animationFrame=tt.animationFrameScheduler});var ic=b(Pe=>{"use strict";var rc=Pe&&Pe.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(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");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(Pe,"__esModule",{value:!0});Pe.VirtualAction=Pe.VirtualTimeScheduler=void 0;var Yh=wt(),Qh=ae(),Zh=Ot(),ev=function(n){rc(e,n);function e(t,r){t===void 0&&(t=nc),r===void 0&&(r=1/0);var i=n.call(this,t,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return e.prototype.flush=function(){for(var t=this,r=t.actions,i=t.maxFrames,o,s;(s=r[0])&&s.delay<=i&&(r.shift(),this.frame=s.delay,!(o=s.execute(s.state,s.delay))););if(o){for(;s=r.shift();)s.unsubscribe();throw o}},e.frameTimeFactor=10,e}(Zh.AsyncScheduler);Pe.VirtualTimeScheduler=ev;var nc=function(n){rc(e,n);function e(t,r,i){i===void 0&&(i=t.index+=1);var o=n.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.index=i,o.active=!0,o.index=t.index=i,o}return e.prototype.schedule=function(t,r){if(r===void 0&&(r=0),Number.isFinite(r)){if(!this.id)return n.prototype.schedule.call(this,t,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(t,r)}else return Qh.Subscription.EMPTY},e.prototype.requestAsyncId=function(t,r,i){i===void 0&&(i=0),this.delay=t.frame+i;var o=t.actions;return o.push(this),o.sort(e.sortActions),1},e.prototype.recycleAsyncId=function(t,r,i){i===void 0&&(i=0)},e.prototype._execute=function(t,r){if(this.active===!0)return n.prototype._execute.call(this,t,r)},e.sortActions=function(t,r){return t.delay===r.delay?t.index===r.index?0:t.index>r.index?1:-1:t.delay>r.delay?1:-1},e}(Yh.AsyncAction);Pe.VirtualAction=nc});var de=b(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.empty=rt.EMPTY=void 0;var oc=z();rt.EMPTY=new oc.Observable(function(n){return n.complete()});function tv(n){return n?rv(n):rt.EMPTY}rt.empty=tv;function rv(n){return new oc.Observable(function(e){return n.schedule(function(){return e.complete()})})}});var ir=b(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.isScheduler=void 0;var nv=$();function iv(n){return n&&nv.isFunction(n.schedule)}Xr.isScheduler=iv});var se=b(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.popNumber=je.popScheduler=je.popResultSelector=void 0;var ov=$(),sv=ir();function aa(n){return n[n.length-1]}function av(n){return ov.isFunction(aa(n))?n.pop():void 0}je.popResultSelector=av;function uv(n){return sv.isScheduler(aa(n))?n.pop():void 0}je.popScheduler=uv;function cv(n,e){return typeof aa(n)=="number"?n.pop():e}je.popNumber=cv});var Dr=b(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.isArrayLike=void 0;Kr.isArrayLike=function(n){return n&&typeof n.length=="number"&&typeof n!="function"}});var ua=b(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.isPromise=void 0;var lv=$();function fv(n){return lv.isFunction(n==null?void 0:n.then)}Wr.isPromise=fv});var ca=b(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.isInteropObservable=void 0;var pv=Zt(),dv=$();function hv(n){return dv.isFunction(n[pv.observable])}Br.isInteropObservable=hv});var la=b(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.isAsyncIterable=void 0;var vv=$();function mv(n){return Symbol.asyncIterator&&vv.isFunction(n==null?void 0:n[Symbol.asyncIterator])}Vr.isAsyncIterable=mv});var fa=b(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.createInvalidObservableTypeError=void 0;function yv(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}Hr.createInvalidObservableTypeError=yv});var pa=b(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.iterator=qt.getSymbolIterator=void 0;function sc(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}qt.getSymbolIterator=sc;qt.iterator=sc()});var da=b($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.isIterable=void 0;var bv=pa(),gv=$();function _v(n){return gv.isFunction(n==null?void 0:n[bv.iterator])}$r.isIterable=_v});var zr=b(ce=>{"use strict";var Sv=ce&&ce.__generator||function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(l){u=[6,l],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Ut=ce&&ce.__await||function(n){return this instanceof Ut?(this.v=n,this):new Ut(n)},wv=ce&&ce.__asyncGenerator||function(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),i,o=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(d){r[d]&&(i[d]=function(h){return new Promise(function(v,_){o.push([d,h,v,_])>1||a(d,h)})})}function a(d,h){try{c(r[d](h))}catch(v){f(o[0][3],v)}}function c(d){d.value instanceof Ut?Promise.resolve(d.value.v).then(u,l):f(o[0][2],d)}function u(d){a("next",d)}function l(d){a("throw",d)}function f(d,h){d(h),o.shift(),o.length&&a(o[0][0],o[0][1])}};Object.defineProperty(ce,"__esModule",{value:!0});ce.isReadableStreamLike=ce.readableStreamLikeToAsyncGenerator=void 0;var Rv=$();function Cv(n){return wv(this,arguments,function(){var t,r,i,o;return Sv(this,function(s){switch(s.label){case 0:t=n.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Ut(t.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,Ut(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Ut(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}ce.readableStreamLikeToAsyncGenerator=Cv;function xv(n){return Rv.isFunction(n==null?void 0:n.getReader)}ce.isReadableStreamLike=xv});var W=b(J=>{"use strict";var Ov=J&&J.__awaiter||function(n,e,t,r){function i(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(l){try{u(r.next(l))}catch(f){s(f)}}function c(l){try{u(r.throw(l))}catch(f){s(f)}}function u(l){l.done?o(l.value):i(l.value).then(a,c)}u((r=r.apply(n,e||[])).next())})},Ev=J&&J.__generator||function(n,e){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(l){return c([u,l])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){t.label=u[1];break}if(u[0]===6&&t.label<o[1]){t.label=o[1],o=u;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(u);break}o[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(n,t)}catch(l){u=[6,l],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Mv=J&&J.__asyncValues||function(n){if(!Symbol.asyncIterator)throw n