@openmrs/esm-devtools-app 10.0.1-pre.5364 → 10.0.1-pre.5378
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +3 -4
- package/dist/116.js +1 -1
- package/dist/116.js.map +1 -1
- package/dist/117.js +1 -1
- package/dist/117.js.map +1 -1
- package/dist/165.js +1 -1
- package/dist/165.js.map +1 -1
- package/dist/195.js +3 -3
- package/dist/195.js.map +1 -1
- package/dist/335.js +1 -1
- package/dist/335.js.map +1 -1
- package/dist/613.js +1 -1
- package/dist/613.js.map +1 -1
- package/dist/614.js +1 -0
- package/dist/614.js.map +1 -0
- package/dist/651.js +1 -1
- package/dist/651.js.map +1 -1
- package/dist/807.js +1 -1
- package/dist/807.js.map +1 -1
- package/dist/819.js +1 -1
- package/dist/819.js.map +1 -1
- package/dist/827.css +1 -0
- package/dist/827.css.map +1 -0
- package/dist/827.js +1 -1
- package/dist/827.js.map +1 -1
- package/dist/893.css +1 -0
- package/dist/893.css.map +1 -0
- package/dist/893.js +23 -23
- package/dist/893.js.map +1 -1
- package/dist/openmrs-esm-devtools-app.js +3 -3
- package/dist/openmrs-esm-devtools-app.js.buildmanifest.json +54 -91
- package/dist/openmrs-esm-devtools-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -2
- package/dist/735.js +0 -1
- package/dist/735.js.map +0 -1
- package/dist/main.js +0 -3
- package/dist/main.js.map +0 -1
package/dist/335.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(globalThis.webpackChunk_openmrs_esm_devtools_app=globalThis.webpackChunk_openmrs_esm_devtools_app||[]).push([["335"],{
|
|
1
|
+
(globalThis.webpackChunk_openmrs_esm_devtools_app=globalThis.webpackChunk_openmrs_esm_devtools_app||[]).push([["335"],{4767(e,o,r){var n={"./en.json":["4300","117"]};function t(e){if(!r.o(n,e))return Promise.resolve().then(function(){var o=Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o});var o=n[e],t=o[0];return r.e(o[1]).then(function(){return r(t)})}t.keys=()=>Object.keys(n),t.id=4767,e.exports=t},8146(e,o,r){"use strict";r.r(o),r.d(o,{devtools:()=>a,importTranslation:()=>s,importmapOverrideModal:()=>l});var n=r(3004);let t={featureName:"devtools",moduleName:"@openmrs/esm-devtools-app"},s=r(4767),a=(0,n.getAsyncLifecycle)(()=>Promise.all([r.e("366"),r.e("611"),r.e("143"),r.e("827")]).then(r.bind(r,6662)),t),l=(0,n.getAsyncLifecycle)(()=>Promise.all([r.e("366"),r.e("611"),r.e("143"),r.e("807")]).then(r.bind(r,7986)),t)}}]);
|
package/dist/335.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"335.js","sources":["webpack://@openmrs/esm-devtools-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-devtools-app/./src/index.ts"],"names":["Promise","Error","Object","options","importTranslation","require","devtools","getAsyncLifecycle","importmapOverrideModal"],"mappings":"
|
|
1
|
+
{"version":3,"file":"335.js","sources":["webpack://@openmrs/esm-devtools-app/./translations|lazy|nonrecursive|/.json$/","webpack://@openmrs/esm-devtools-app/./src/index.ts"],"names":["Promise","Error","Object","options","importTranslation","require","devtools","getAsyncLifecycle","importmapOverrideModal"],"mappings":"mIAAA,IAAI,EAAM,CACR,YAAa,CACX,OACA,MACD,AACH,EACA,SAAS,EAAuB,CAAG,EACjC,GAAG,CAAC,EAAoB,CAAC,CAAC,EAAK,GAC7B,OAAOA,QAAQ,OAAO,GAAG,IAAI,CAAC,WAC5B,IAAI,EAAI,AAAIC,MAAM,uBAAyB,EAAM,IAEjD,OADA,EAAE,IAAI,CAAG,mBACH,CACR,GAGF,IAAI,EAAM,CAAG,CAAC,EAAI,CAAE,EAAK,CAAG,CAAC,EAAE,CAC/B,OAAO,EAAoB,CAAC,CAAC,CAAG,CAAC,EAAE,EAAE,IAAI,CAAC,WACxC,OAAO,EAAoB,EAC7B,EACF,CAEA,EAAuB,IAAI,CAAG,IAAOC,OAAO,IAAI,CAAC,GACjD,EAAuB,EAAE,CAAG,KAC5B,EAAO,OAAO,CAAG,C,6HCrBjB,IAAMC,EAAU,CACd,YAAa,WACb,WAAY,2BACd,EAEaC,EAAoBC,EAAAA,MAEpBC,EAAWC,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EAAkB,IAAM,gFAAyCJ,GAE5EK,EAAyBD,AAAAA,GAAAA,EAAAA,iBAAAA,AAAAA,EACpC,IAAM,gFACNJ,E"}
|
package/dist/613.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_devtools_app=globalThis.webpackChunk_openmrs_esm_devtools_app||[]).push([["613"],{29188(t,e,r){r.r(e),r.d(e,{never:()=>ee,noop:()=>tx,generate:()=>t2,isObservable:()=>tg,GroupedObservable:()=>F,animationFrameScheduler:()=>tv,fromEvent:()=>function t(e,r,n,i){return(s(n)&&(i=n,n=void 0),i)?t(e,r,n).pipe(tT(function(t){return l(t)?i.apply(void 0,t):i(t)})):new S(function(t){!function t(e,r,n,i,o){if((u=e)&&"function"==typeof u.addEventListener&&"function"==typeof u.removeEventListener)e.addEventListener(r,n,o),s=function(){return e.removeEventListener(r,n,o)};else if((c=e)&&"function"==typeof c.on&&"function"==typeof c.off)e.on(r,n),s=function(){return e.off(r,n)};else{if((h=e)&&"function"==typeof h.addListener&&"function"==typeof h.removeListener)e.addListener(r,n),s=function(){return e.removeListener(r,n)};else if(e&&e.length)for(var s,u,c,h,a=0,l=e.length;a<l;a++)t(e[a],r,n,i,o);else throw TypeError("Invalid event target")}i.add(s)}(e,r,function(e){arguments.length>1?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,n)})},onErrorResumeNext:()=>er,UnsubscriptionError:()=>p,ArgumentOutOfRangeError:()=>tE,asapScheduler:()=>tf,forkJoin:()=>t1,iif:()=>t6,Subject:()=>A,range:()=>ef,BehaviorSubject:()=>R,VirtualTimeScheduler:()=>tw,ReplaySubject:()=>tr,bindCallback:()=>function t(e,r,n){if(r)if(!B(r))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,n).apply(void 0,i).pipe(tT(function(t){return l(t)?r.apply(void 0,t):r(t)}))};else n=r;return function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,s={context:o,subject:t,callbackFunc:e,scheduler:n};return new S(function(i){if(n)return n.schedule(tA,0,{args:r,subscriber:i,params:s});if(!t){t=new ti;try{e.apply(o,r.concat([function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.next(e.length<=1?e[0]:e),t.complete()}]))}catch(e){w(t)?t.error(e):console.warn(e)}}return t.subscribe(i)})}},scheduled:()=>tz,using:()=>ey,asyncScheduler:()=>td,defer:()=>t0,ObjectUnsubscribedError:()=>T,asap:()=>tp,concat:()=>t$,AsyncSubject:()=>ti,zip:()=>ev,observable:()=>_,ConnectableObservable:()=>P,queue:()=>L,race:()=>eh,interval:()=>t4,bindNodeCallback:()=>function t(e,r,n){if(r)if(!B(r))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,n).apply(void 0,i).pipe(tT(function(t){return l(t)?r.apply(void 0,t):r(t)}))};else n=r;return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new S(function(r){var o=i.context,s=i.subject;if(n)return n.schedule(tN,0,{params:i,subscriber:r,context:o});if(!s){s=i.subject=new ti;try{e.apply(o,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?s.error(r):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){w(s)?s.error(t):console.warn(t)}}return s.subscribe(r)})}},pipe:()=>g,config:()=>c,EmptyError:()=>tS,Notification:()=>$,animationFrame:()=>tm,Subscriber:()=>v,Subscription:()=>d,Observable:()=>S,async:()=>tb,Scheduler:()=>U,combineLatest:()=>tY,partition:()=>ec,pairs:()=>en,NotificationKind:()=>n,from:()=>tB,EMPTY:()=>W,empty:()=>z,VirtualAction:()=>t_,merge:()=>t7,of:()=>Q,queueScheduler:()=>Y,TimeoutError:()=>tj,fromEventPattern:()=>function t(e,r,n){return n?t(e,r).pipe(tT(function(t){return l(t)?n.apply(void 0,t):n(t)})):new S(function(t){var n,i=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.next(1===e.length?e[0]:e)};try{n=e(i)}catch(e){t.error(e);return}if(s(r))return function(){return r(i,n)}})},identity:()=>x,throwError:()=>X,timer:()=>ed,NEVER:()=>et});var n,i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function o(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function s(t){return"function"==typeof t}var u=!1,c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,u=value},get useDeprecatedSynchronousErrorHandling(){return u}};function h(t){setTimeout(function(){throw t},0)}var a={closed:!0,next:function(t){},error:function(t){if(c.useDeprecatedSynchronousErrorHandling)throw t;h(t)},complete:function(){}},l=Array.isArray||function(t){return t&&"number"==typeof t.length};function f(t){return null!==t&&"object"==typeof t}var p=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),d=function(){var t;function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return e.prototype.unsubscribe=function(){if(!this.closed){var t,r=this._parentOrParents,n=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var u=0;u<r.length;++u)r[u].remove(this);if(s(i)){n&&(this._unsubscribe=void 0);try{i.call(this)}catch(e){t=e instanceof p?b(e.errors):[e]}}if(l(o))for(var u=-1,c=o.length;++u<c;){var h=o[u];if(f(h))try{h.unsubscribe()}catch(e){t=t||[],e instanceof p?t=t.concat(b(e.errors)):t.push(e)}}if(t)throw new p(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+t+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},e.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},(t=new e).closed=!0,e.EMPTY=t,e}();function b(t){return t.reduce(function(t,e){return t.concat(e instanceof p?e.errors:e)},[])}var y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=a;break;case 1:if(!r){o.destination=a;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new m(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new m(o,r,n,i)}return o}return o(e,t),e.prototype[y]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(d),m=function(t){function e(e,r,n,i){var o,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return s(r)?o=r:r&&(o=r.next,n=r.error,i=r.complete,r!==a&&(s((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=o,u._error=n,u._complete=i,u}return o(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=c.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):h(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;h(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw t;h(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!c.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(e){if(c.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=e,t.syncErrorThrown=!0,!0;return h(e),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);function w(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof v?n:null}return!0}var _="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(t){return t}function g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return E(t)}function E(t){return 0===t.length?x:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var S=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof v)return t;if(t[y])return t[y]()}return t||e||r?new v(t,e,r):new v(a)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||c.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),c.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),w(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=j(e))(function(e,n){var i;i=r.subscribe(function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[_]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:E(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=j(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function j(t){if(t||(t=c.Promise||Promise),!t)throw Error("no Promise impl found");return t}var T=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),O=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(d),k=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return o(e,t),e}(v),A=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[y]=function(){return new k(this)},e.prototype.lift=function(t){var e=new C(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new T;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new T;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new T;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(!this.closed)return t.prototype._trySubscribe.call(this,e);throw new T},e.prototype._subscribe=function(t){if(this.closed)throw new T;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new O(this,t))},e.prototype.asObservable=function(){var t=new S;return t.source=this,t},e.create=function(t,e){return new C(t,e)},e}(S),C=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return o(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):d.EMPTY},e}(A),N=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new I(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),I=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var e=t._refCount;if(e<=0||(t._refCount=e-1,e>1)){this.connection=null;return}var r=this.connection,n=t._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},e}(v),P=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return o(e,t),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.connect=function(){var t=this._connection;return!t&&(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new V(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t},e.prototype.refCount=function(){return this.lift(new N(this))},e}(S),V=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(k),F=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return o(e,t),e.prototype._subscribe=function(t){var e=new d,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new M(r)),e.add(n.subscribe(t)),e},e}(S),M=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return o(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(d),R=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new T},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(A),q=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return o(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(d)),D=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return o(e,t),e.prototype.schedule=function(e,r){return(void 0===r&&(r=0),r>0)?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(q),U=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),H=function(t){function e(r,n){void 0===n&&(n=U.now);var i=t.call(this,r,function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return o(e,t),e.prototype.schedule=function(r,n,i){return(void 0===n&&(n=0),e.delegate&&e.delegate!==this)?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e,r=this.actions;if(this.active)return void r.push(t);this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(U),Y=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(H))(D),L=Y,W=new S(function(t){return t.complete()});function z(t){var e;return t?(e=t,new S(function(t){return e.schedule(function(){return t.complete()})})):W}function B(t){return t&&"function"==typeof t.schedule}var G=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function J(t,e){return new S(function(r){var n=new d,i=0;return n.add(e.schedule(function(){i===t.length?r.complete():(r.next(t[i++]),r.closed||n.add(this.schedule()))})),n})}function K(t,e){return e?J(t,e):new S(G(t))}function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return B(r)?(t.pop(),J(t,r)):K(t)}function X(t,e){return new S(e?function(r){return e.schedule(Z,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function Z(t){var e=t.error;t.subscriber.error(e)}n||(n={});var $=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Q(this.value);case"E":return X(this.error);case"C":return z()}throw Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),tt=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return o(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new te(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage($.createNext(t))},e.prototype._error=function(t){this.scheduleMessage($.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage($.createComplete()),this.unsubscribe()},e}(v),te=function(t,e){this.notification=t,this.destination=e},tr=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===1/0?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return o(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new tn(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new T;if(this.isStopped||this.hasError?e=d.EMPTY:(this.observers.push(t),e=new O(this,t)),i&&t.add(t=new tt(t,i)),r)for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(var s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||L).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(A),tn=function(t,e){this.time=t,this.value=e},ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return o(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),d.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),d.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(A),to=1,ts=Promise.resolve(),tu={};function tc(t){return t in tu&&(delete tu[t],!0)}var th=function(t){var e=to++;return tu[e]=!0,ts.then(function(){return tc(e)&&t()}),e},ta=function(t){tc(t)},tl=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return o(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=th(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(ta(r),e.scheduled=void 0)},e}(q),tf=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(H))(tl),tp=tf,td=new H(q),tb=td,ty=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return o(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(q),tv=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(H))(ty),tm=tv,tw=function(t){function e(e,r){void 0===e&&(e=t_),void 0===r&&(r=1/0);var n=t.call(this,e,function(){return n.frame})||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return o(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(H),t_=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return o(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){if(t.delay===e.delay)if(t.index===e.index)return 0;else if(t.index>e.index)return 1;else return -1;return t.delay>e.delay?1:-1},e}(q);function tx(){}function tg(t){return!!t&&(t instanceof S||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var tE=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),tS=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),tj=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function tT(t,e){return function(r){if("function"!=typeof t)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new tO(t,e))}}var tO=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new tk(t,this.project,this.thisArg))},t}(),tk=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(v);function tA(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new ti;try{o.apply(s,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(u.schedule(tC,0,{value:n,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(n))}function tC(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function tN(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,u=r.scheduler,c=r.subject;if(!c){c=r.subject=new ti;try{o.apply(i,s.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(u.schedule(tP,0,{err:n,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(tI,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(tP,0,{err:t,subject:c}))}}this.add(c.subscribe(n))}function tI(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function tP(t){var e=t.err;t.subject.error(e)}var tV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(v),tF=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return o(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(v),tM="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",tR=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function tq(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var tD=function(t){if(t&&"function"==typeof t[_])return function(e){var r=t[_]();if("function"==typeof r.subscribe)return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")};if(tR(t))return G(t);if(tq(t))return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,h),e};if(t&&"function"==typeof t[tM])return function(e){for(var r=t[tM]();;){var n=void 0;try{n=r.next()}catch(t){return e.error(t),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof r.return&&e.add(function(){r.return&&r.return()}),e};throw TypeError("You provided "+(f(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function tU(t,e,r,n,i){if(void 0===i&&(i=new tF(t,r,n)),!i.closed)return e instanceof S?e.subscribe(i):tD(e)(i)}var tH={};function tY(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return B(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),K(t,n).lift(new tL(r))}var tL=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tW(t,this.resultSelector))},t}(),tW=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return o(e,t),e.prototype._next=function(t){this.values.push(tH),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(tU(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===tH?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(tV);function tz(t,e){if(null!=t)if(t&&"function"==typeof t[_])return new S(function(r){var n=new d;return n.add(e.schedule(function(){var i=t[_]();n.add(i.subscribe({next:function(t){n.add(e.schedule(function(){return r.next(t)}))},error:function(t){n.add(e.schedule(function(){return r.error(t)}))},complete:function(){n.add(e.schedule(function(){return r.complete()}))}}))})),n});else{if(tq(t))return new S(function(r){var n=new d;return n.add(e.schedule(function(){return t.then(function(t){n.add(e.schedule(function(){r.next(t),n.add(e.schedule(function(){return r.complete()}))}))},function(t){n.add(e.schedule(function(){return r.error(t)}))})})),n});if(tR(t))return J(t,e);if(t&&"function"==typeof t[tM]||"string"==typeof t){if(!t)throw Error("Iterable cannot be null");return new S(function(r){var n,i=new d;return i.add(function(){n&&"function"==typeof n.return&&n.return()}),i.add(e.schedule(function(){n=t[tM](),i.add(e.schedule(function(){if(!r.closed){try{var t,e,i=n.next();t=i.value,e=i.done}catch(t){r.error(t);return}e?r.complete():(r.next(t),this.schedule())}}))})),i})}}throw TypeError((null!==t&&typeof t||t)+" is not observable")}function tB(t,e){return e?tz(t,e):t instanceof S?t:new S(tD(t))}var tG=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return o(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),tJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function tK(t,e){var r;if(!e.closed){if(t instanceof S)return t.subscribe(e);try{r=tD(t)(e)}catch(t){e.error(t)}return r}}var tQ=function(){function t(t,e){void 0===e&&(e=1/0),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new tX(t,this.project,this.concurrent))},t}(),tX=function(t){function e(e,r,n){void 0===n&&(n=1/0);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){this.destination.error(t);return}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new tG(this),r=this.destination;r.add(e);var n=tK(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(tJ);function tZ(t){return void 0===t&&(t=1/0),function t(e,r,n){return(void 0===n&&(n=1/0),"function"==typeof r)?function(i){return i.pipe(t(function(t,n){return tB(e(t,n)).pipe(tT(function(e,i){return r(t,e,n,i)}))},n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new tQ(e,n))})}(x,t)}function t$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tZ(1)(Q.apply(void 0,t))}function t0(t){return new S(function(e){var r;try{r=t()}catch(t){e.error(t);return}return(r?tB(r):z()).subscribe(e)})}function t1(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(l(r))return t8(r,null);if(f(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return t8(n.map(function(t){return r[t]}),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return t8(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(tT(function(t){return i.apply(void 0,t)}))}return t8(t,null)}function t8(t,e){return new S(function(r){var n=t.length;if(0===n)return void r.complete();for(var i=Array(n),o=0,s=0,u=function(u){var c=tB(t[u]),h=!1;r.add(c.subscribe({next:function(t){!h&&(h=!0,s++),i[u]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&h||(s===n&&r.next(e?e.reduce(function(t,e,r){return t[e]=i[r],t},{}):i),r.complete())}}))},c=0;c<n;c++)u(c)})}function t2(t,e,r,n,i){if(1==arguments.length){var o,s;s=t.initialState,e=t.condition,r=t.iterate,o=t.resultSelector||x,i=t.scheduler}else void 0===n||B(n)?(s=t,o=x,i=n):(s=t,o=n);return new S(function(t){var n=s;if(i)return i.schedule(t3,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var u=void 0;try{u=e(n)}catch(e){t.error(e);return}if(!u){t.complete();break}}var c=void 0;try{c=o(n)}catch(e){t.error(e);break}if(t.next(c),t.closed)break;try{n=r(n)}catch(e){t.error(e);break}}})}function t3(t){var e,r=t.subscriber,n=t.condition;if(!r.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){r.error(t);return}else t.needIterate=!0;if(n){var i=void 0;try{i=n(t.state)}catch(t){r.error(t);return}if(!i)return void r.complete();if(r.closed)return}try{e=t.resultSelector(t.state)}catch(t){r.error(t);return}if(!r.closed&&(r.next(e),!r.closed))return this.schedule(t)}}function t6(t,e,r){return void 0===e&&(e=W),void 0===r&&(r=W),t0(function(){return t()?e:r})}function t9(t){return!l(t)&&t-parseFloat(t)+1>=0}function t4(t,e){return void 0===t&&(t=0),void 0===e&&(e=tb),(!t9(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=tb),new S(function(r){return r.add(e.schedule(t5,t,{subscriber:r,counter:0,period:t})),r})}function t5(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}function t7(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=1/0,n=null,i=t[t.length-1];return(B(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof S)?t[0]:tZ(r)(K(t,n))}var et=new S(tx);function ee(){return et}function er(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return W;var r=t[0],n=t.slice(1);return 1===t.length&&l(r)?er.apply(void 0,r):new S(function(t){var e=function(){return t.add(er.apply(void 0,n).subscribe(t))};return tB(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function en(t,e){return new S(e?function(r){var n=Object.keys(t),i=new d;return i.add(e.schedule(ei,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function ei(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed)if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function eo(t,e){return function(r){return r.lift(new es(t,e))}}var es=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new eu(t,this.predicate,this.thisArg))},t}(),eu=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}e&&this.destination.next(t)},e}(v);function ec(t,e,r){return[eo(e,r)(new S(tD(t))),eo(function(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}(e,r))(new S(tD(t)))]}function eh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)if(!l(t[0]))return t[0];else t=t[0];return K(t,void 0).lift(new ea)}var ea=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new el(t))},t}(),el=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return o(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=tU(this,t[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(tV);function ef(t,e,r){return void 0===t&&(t=0),new S(function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(ep,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}})}function ep(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}function ed(t,e,r){void 0===t&&(t=0);var n=-1;return t9(e)?n=1>Number(e)&&1||Number(e):B(e)&&(r=e),B(r)||(r=tb),new S(function(e){var i=t9(t)?t:t-r.now();return r.schedule(eb,i,{index:0,period:n,subscriber:e})})}function eb(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}function ey(t,e){return new S(function(r){try{n=t()}catch(t){r.error(t);return}try{i=e(n)}catch(t){r.error(t);return}var n,i,o=(i?tB(i):W).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}})}function ev(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),K(t,void 0).lift(new em(r))}var em=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ew(t,this.resultSelector))},t}(),ew=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return o(e,t),e.prototype._next=function(t){var e=this.iterators;l(t)?e.push(new ex(t)):"function"==typeof t[tM]?e.push(new e_(t[tM]())):e.push(new eg(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0===e)return void this.destination.complete();this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++){var i=t[n];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],n=0;n<e;n++){var i=t[n],u=i.next();if(i.hasCompleted()&&(o=!0),u.done)return void r.complete();s.push(u.value)}this.resultSelector?this._tryresultSelector(s):r.next(s),o&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(v),e_=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return!!(t&&t.done)},t}(),ex=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[tM]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),eg=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return o(e,t),e.prototype[tM]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return tK(this.observable,new tG(this))},e}(tJ)}}]);
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_devtools_app=globalThis.webpackChunk_openmrs_esm_devtools_app||[]).push([["613"],{9188(t,e,r){r.r(e),r.d(e,{never:()=>ee,noop:()=>tx,generate:()=>t3,isObservable:()=>tg,GroupedObservable:()=>F,animationFrameScheduler:()=>tv,fromEvent:()=>function t(e,r,n,i){return(s(n)&&(i=n,n=void 0),i)?t(e,r,n).pipe(tT(function(t){return l(t)?i.apply(void 0,t):i(t)})):new S(function(t){!function t(e,r,n,i,o){if((u=e)&&"function"==typeof u.addEventListener&&"function"==typeof u.removeEventListener)e.addEventListener(r,n,o),s=function(){return e.removeEventListener(r,n,o)};else if((c=e)&&"function"==typeof c.on&&"function"==typeof c.off)e.on(r,n),s=function(){return e.off(r,n)};else{if((h=e)&&"function"==typeof h.addListener&&"function"==typeof h.removeListener)e.addListener(r,n),s=function(){return e.removeListener(r,n)};else if(e&&e.length)for(var s,u,c,h,a=0,l=e.length;a<l;a++)t(e[a],r,n,i,o);else throw TypeError("Invalid event target")}i.add(s)}(e,r,function(e){arguments.length>1?t.next(Array.prototype.slice.call(arguments)):t.next(e)},t,n)})},onErrorResumeNext:()=>er,UnsubscriptionError:()=>p,ArgumentOutOfRangeError:()=>tE,asapScheduler:()=>tf,forkJoin:()=>t1,iif:()=>t9,Subject:()=>A,range:()=>ef,BehaviorSubject:()=>R,VirtualTimeScheduler:()=>tw,ReplaySubject:()=>tr,bindCallback:()=>function t(e,r,n){if(r)if(!B(r))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,n).apply(void 0,i).pipe(tT(function(t){return l(t)?r.apply(void 0,t):r(t)}))};else n=r;return function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=this,s={context:o,subject:t,callbackFunc:e,scheduler:n};return new S(function(i){if(n)return n.schedule(tA,0,{args:r,subscriber:i,params:s});if(!t){t=new ti;try{e.apply(o,r.concat([function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.next(e.length<=1?e[0]:e),t.complete()}]))}catch(e){w(t)?t.error(e):console.warn(e)}}return t.subscribe(i)})}},scheduled:()=>tz,using:()=>ey,asyncScheduler:()=>td,defer:()=>t0,ObjectUnsubscribedError:()=>T,asap:()=>tp,concat:()=>t$,AsyncSubject:()=>ti,zip:()=>ev,observable:()=>_,ConnectableObservable:()=>P,queue:()=>L,race:()=>eh,interval:()=>t4,bindNodeCallback:()=>function t(e,r,n){if(r)if(!B(r))return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t(e,n).apply(void 0,i).pipe(tT(function(t){return l(t)?r.apply(void 0,t):r(t)}))};else n=r;return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i={subject:void 0,args:t,callbackFunc:e,scheduler:n,context:this};return new S(function(r){var o=i.context,s=i.subject;if(n)return n.schedule(tN,0,{params:i,subscriber:r,context:o});if(!s){s=i.subject=new ti;try{e.apply(o,t.concat([function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t.shift();r?s.error(r):(s.next(t.length<=1?t[0]:t),s.complete())}]))}catch(t){w(s)?s.error(t):console.warn(t)}}return s.subscribe(r)})}},pipe:()=>g,config:()=>c,EmptyError:()=>tS,Notification:()=>$,animationFrame:()=>tm,Subscriber:()=>v,Subscription:()=>d,Observable:()=>S,async:()=>tb,Scheduler:()=>U,combineLatest:()=>tY,partition:()=>ec,pairs:()=>en,NotificationKind:()=>n,from:()=>tB,EMPTY:()=>W,empty:()=>z,VirtualAction:()=>t_,merge:()=>t7,of:()=>Q,queueScheduler:()=>Y,TimeoutError:()=>tj,fromEventPattern:()=>function t(e,r,n){return n?t(e,r).pipe(tT(function(t){return l(t)?n.apply(void 0,t):n(t)})):new S(function(t){var n,i=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.next(1===e.length?e[0]:e)};try{n=e(i)}catch(e){t.error(e);return}if(s(r))return function(){return r(i,n)}})},identity:()=>x,throwError:()=>X,timer:()=>ed,NEVER:()=>et});var n,i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function o(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function s(t){return"function"==typeof t}var u=!1,c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,u=value},get useDeprecatedSynchronousErrorHandling(){return u}};function h(t){setTimeout(function(){throw t},0)}var a={closed:!0,next:function(t){},error:function(t){if(c.useDeprecatedSynchronousErrorHandling)throw t;h(t)},complete:function(){}},l=Array.isArray||function(t){return t&&"number"==typeof t.length};function f(t){return null!==t&&"object"==typeof t}var p=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),d=function(){var t;function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return e.prototype.unsubscribe=function(){if(!this.closed){var t,r=this._parentOrParents,n=this._ctorUnsubscribe,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var u=0;u<r.length;++u)r[u].remove(this);if(s(i)){n&&(this._unsubscribe=void 0);try{i.call(this)}catch(e){t=e instanceof p?b(e.errors):[e]}}if(l(o))for(var u=-1,c=o.length;++u<c;){var h=o[u];if(f(h))try{h.unsubscribe()}catch(e){t=t||[],e instanceof p?t=t.concat(b(e.errors)):t.push(e)}}if(t)throw new p(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+t+" added to Subscription.")}var i=r._parentOrParents;if(null===i)r._parentOrParents=this;else if(i instanceof e){if(i===this)return r;r._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return r;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[r]:o.push(r),r},e.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},(t=new e).closed=!0,e.EMPTY=t,e}();function b(t){return t.reduce(function(t,e){return t.concat(e instanceof p?e.errors:e)},[])}var y="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),v=function(t){function e(r,n,i){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=a;break;case 1:if(!r){o.destination=a;break}if("object"==typeof r){r instanceof e?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new m(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new m(o,r,n,i)}return o}return o(e,t),e.prototype[y]=function(){return this},e.create=function(t,r,n){var i=new e(t,r,n);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(d),m=function(t){function e(e,r,n,i){var o,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return s(r)?o=r:r&&(o=r.next,n=r.error,i=r.complete,r!==a&&(s((c=Object.create(r)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=o,u._error=n,u._complete=i,u}return o(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=c.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):h(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;h(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};c.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.useDeprecatedSynchronousErrorHandling)throw t;h(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!c.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(e){if(c.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=e,t.syncErrorThrown=!0,!0;return h(e),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);function w(t){for(;t;){var e=t,r=e.closed,n=e.destination,i=e.isStopped;if(r||i)return!1;t=n&&n instanceof v?n:null}return!0}var _="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(t){return t}function g(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return E(t)}function E(t){return 0===t.length?x:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var S=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=function(t,e,r){if(t){if(t instanceof v)return t;if(t[y])return t[y]()}return t||e||r?new v(t,e,r):new v(a)}(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||c.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),c.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),w(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=j(e))(function(e,n){var i;i=r.subscribe(function(e){try{t(e)}catch(t){n(t),i&&i.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[_]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:E(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=j(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function j(t){if(t||(t=c.Promise||Promise),!t)throw Error("no Promise impl found");return t}var T=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}(),O=function(t){function e(e,r){var n=t.call(this)||this;return n.subject=e,n.subscriber=r,n.closed=!1,n}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var r=e.indexOf(this.subscriber);-1!==r&&e.splice(r,1)}}},e}(d),k=function(t){function e(e){var r=t.call(this,e)||this;return r.destination=e,r}return o(e,t),e}(v),A=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[y]=function(){return new k(this)},e.prototype.lift=function(t){var e=new C(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new T;if(!this.isStopped)for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new T;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new T;this.isStopped=!0;for(var t=this.observers,e=t.length,r=t.slice(),n=0;n<e;n++)r[n].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(!this.closed)return t.prototype._trySubscribe.call(this,e);throw new T},e.prototype._subscribe=function(t){if(this.closed)throw new T;return this.hasError?(t.error(this.thrownError),d.EMPTY):this.isStopped?(t.complete(),d.EMPTY):(this.observers.push(t),new O(this,t))},e.prototype.asObservable=function(){var t=new S;return t.source=this,t},e.create=function(t,e){return new C(t,e)},e}(S),C=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return o(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):d.EMPTY},e}(A),N=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var r=this.connectable;r._refCount++;var n=new I(t,r),i=e.subscribe(n);return n.closed||(n.connection=r.connect()),i},t}(),I=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var e=t._refCount;if(e<=0||(t._refCount=e-1,e>1)){this.connection=null;return}var r=this.connection,n=t._connection;this.connection=null,n&&(!r||n===r)&&n.unsubscribe()},e}(v),P=function(t){function e(e,r){var n=t.call(this)||this;return n.source=e,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return o(e,t),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.connect=function(){var t=this._connection;return!t&&(this._isComplete=!1,(t=this._connection=new d).add(this.source.subscribe(new V(this.getSubject(),this))),t.closed&&(this._connection=null,t=d.EMPTY)),t},e.prototype.refCount=function(){return this.lift(new N(this))},e}(S),V=function(t){function e(e,r){var n=t.call(this,e)||this;return n.connectable=r,n}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(k),F=function(t){function e(e,r,n){var i=t.call(this)||this;return i.key=e,i.groupSubject=r,i.refCountSubscription=n,i}return o(e,t),e.prototype._subscribe=function(t){var e=new d,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&e.add(new M(r)),e.add(n.subscribe(t)),e},e}(S),M=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,e.count++,r}return o(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(d),R=function(t){function e(e){var r=t.call(this)||this;return r._value=e,r}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var r=t.prototype._subscribe.call(this,e);return r&&!r.closed&&e.next(this._value),r},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new T},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(A),q=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n.pending=!1,n}return o(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r=!1,n=void 0;try{this.work(t)}catch(t){r=!0,n=!!t&&t||Error(t)}if(r)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,r=e.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,r){return t.call(this)||this}return o(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(d)),D=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return o(e,t),e.prototype.schedule=function(e,r){return(void 0===r&&(r=0),r>0)?t.prototype.schedule.call(this,e,r):(this.delay=r,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,r){return r>0||this.closed?t.prototype.execute.call(this,e,r):this._execute(e,r)},e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)?t.prototype.requestAsyncId.call(this,e,r,n):e.flush(this)},e}(q),U=function(){function t(e,r){void 0===r&&(r=t.now),this.SchedulerAction=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(r,e)},t.now=function(){return Date.now()},t}(),H=function(t){function e(r,n){void 0===n&&(n=U.now);var i=t.call(this,r,function(){return e.delegate&&e.delegate!==i?e.delegate.now():n()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return o(e,t),e.prototype.schedule=function(r,n,i){return(void 0===n&&(n=0),e.delegate&&e.delegate!==this)?e.delegate.schedule(r,n,i):t.prototype.schedule.call(this,r,n,i)},e.prototype.flush=function(t){var e,r=this.actions;if(this.active)return void r.push(t);this.active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(U),Y=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e}(H))(D),L=Y,W=new S(function(t){return t.complete()});function z(t){var e;return t?(e=t,new S(function(t){return e.schedule(function(){return t.complete()})})):W}function B(t){return t&&"function"==typeof t.schedule}var G=function(t){return function(e){for(var r=0,n=t.length;r<n&&!e.closed;r++)e.next(t[r]);e.complete()}};function J(t,e){return new S(function(r){var n=new d,i=0;return n.add(e.schedule(function(){i===t.length?r.complete():(r.next(t[i++]),r.closed||n.add(this.schedule()))})),n})}function K(t,e){return e?J(t,e):new S(G(t))}function Q(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return B(r)?(t.pop(),J(t,r)):K(t)}function X(t,e){return new S(e?function(r){return e.schedule(Z,0,{error:t,subscriber:r})}:function(e){return e.error(t)})}function Z(t){var e=t.error;t.subscriber.error(e)}n||(n={});var $=function(){function t(t,e,r){this.kind=t,this.value=e,this.error=r,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,r){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return r&&r()}},t.prototype.accept=function(t,e,r){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,r)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Q(this.value);case"E":return X(this.error);case"C":return z()}throw Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),tt=function(t){function e(e,r,n){void 0===n&&(n=0);var i=t.call(this,e)||this;return i.scheduler=r,i.delay=n,i}return o(e,t),e.dispatch=function(t){var e=t.notification,r=t.destination;e.observe(r),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new te(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage($.createNext(t))},e.prototype._error=function(t){this.scheduleMessage($.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage($.createComplete()),this.unsubscribe()},e}(v),te=function(t,e){this.notification=t,this.destination=e},tr=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0);var i=t.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=r<1?1:r,r===1/0?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return o(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var r=this._events;r.push(e),r.length>this._bufferSize&&r.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new tn(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=n.length;if(this.closed)throw new T;if(this.isStopped||this.hasError?e=d.EMPTY:(this.observers.push(t),e=new O(this,t)),i&&t.add(t=new tt(t,i)),r)for(var s=0;s<o&&!t.closed;s++)t.next(n[s]);else for(var s=0;s<o&&!t.closed;s++)t.next(n[s].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||L).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(t-n[o].time<r);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&n.splice(0,o),n},e}(A),tn=function(t,e){this.time=t,this.value=e},ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return o(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),d.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),d.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(A),to=1,ts=Promise.resolve(),tu={};function tc(t){return t in tu&&(delete tu[t],!0)}var th=function(t){var e=to++;return tu[e]=!0,ts.then(function(){return tc(e)&&t()}),e},ta=function(t){tc(t)},tl=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return o(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=th(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(ta(r),e.scheduled=void 0)},e}(q),tf=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(H))(tl),tp=tf,td=new H(q),tb=td,ty=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.scheduler=e,n.work=r,n}return o(e,t),e.prototype.requestAsyncId=function(e,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?t.prototype.requestAsyncId.call(this,e,r,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))},e.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,r,n);0===e.actions.length&&(cancelAnimationFrame(r),e.scheduled=void 0)},e}(q),tv=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,r=this.actions,n=-1,i=r.length;t=t||r.shift();do if(e=t.execute(t.state,t.delay))break;while(++n<i&&(t=r.shift()));if(this.active=!1,e){for(;++n<i&&(t=r.shift());)t.unsubscribe();throw e}},e}(H))(ty),tm=tv,tw=function(t){function e(e,r){void 0===e&&(e=t_),void 0===r&&(r=1/0);var n=t.call(this,e,function(){return n.frame})||this;return n.maxFrames=r,n.frame=0,n.index=-1,n}return o(e,t),e.prototype.flush=function(){for(var t,e,r=this.actions,n=this.maxFrames;(e=r[0])&&e.delay<=n&&(r.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(H),t_=function(t){function e(e,r,n){void 0===n&&(n=e.index+=1);var i=t.call(this,e,r)||this;return i.scheduler=e,i.work=r,i.index=n,i.active=!0,i.index=e.index=n,i}return o(e,t),e.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return t.prototype.schedule.call(this,r,n);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(r,n)},e.prototype.requestAsyncId=function(t,r,n){void 0===n&&(n=0),this.delay=t.frame+n;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,r){void 0===r&&(r=0)},e.prototype._execute=function(e,r){if(!0===this.active)return t.prototype._execute.call(this,e,r)},e.sortActions=function(t,e){if(t.delay===e.delay)if(t.index===e.index)return 0;else if(t.index>e.index)return 1;else return -1;return t.delay>e.delay?1:-1},e}(q);function tx(){}function tg(t){return!!t&&(t instanceof S||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var tE=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),tS=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),tj=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}();function tT(t,e){return function(r){if("function"!=typeof t)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new tO(t,e))}}var tO=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new tk(t,this.project,this.thisArg))},t}(),tk=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(v);function tA(t){var e=this,r=t.args,n=t.subscriber,i=t.params,o=i.callbackFunc,s=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new ti;try{o.apply(s,r.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.length<=1?t[0]:t;e.add(u.schedule(tC,0,{value:n,subject:c}))}]))}catch(t){c.error(t)}}this.add(c.subscribe(n))}function tC(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function tN(t){var e=this,r=t.params,n=t.subscriber,i=t.context,o=r.callbackFunc,s=r.args,u=r.scheduler,c=r.subject;if(!c){c=r.subject=new ti;try{o.apply(i,s.concat([function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t.shift();if(n)e.add(u.schedule(tP,0,{err:n,subject:c}));else{var i=t.length<=1?t[0]:t;e.add(u.schedule(tI,0,{value:i,subject:c}))}}]))}catch(t){this.add(u.schedule(tP,0,{err:t,subject:c}))}}this.add(c.subscribe(n))}function tI(t){var e=t.value,r=t.subject;r.next(e),r.complete()}function tP(t){var e=t.err;t.subject.error(e)}var tV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.notifyNext=function(t,e,r,n,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(v),tF=function(t){function e(e,r,n){var i=t.call(this)||this;return i.parent=e,i.outerValue=r,i.outerIndex=n,i.index=0,i}return o(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(v),tM="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",tR=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function tq(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var tD=function(t){if(t&&"function"==typeof t[_])return function(e){var r=t[_]();if("function"==typeof r.subscribe)return r.subscribe(e);throw TypeError("Provided object does not correctly implement Symbol.observable")};if(tR(t))return G(t);if(tq(t))return function(e){return t.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,h),e};if(t&&"function"==typeof t[tM])return function(e){for(var r=t[tM]();;){var n=void 0;try{n=r.next()}catch(t){return e.error(t),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof r.return&&e.add(function(){r.return&&r.return()}),e};throw TypeError("You provided "+(f(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function tU(t,e,r,n,i){if(void 0===i&&(i=new tF(t,r,n)),!i.closed)return e instanceof S?e.subscribe(i):tD(e)(i)}var tH={};function tY(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=void 0,n=void 0;return B(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),K(t,n).lift(new tL(r))}var tL=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new tW(t,this.resultSelector))},t}(),tW=function(t){function e(e,r){var n=t.call(this,e)||this;return n.resultSelector=r,n.active=0,n.values=[],n.observables=[],n}return o(e,t),e.prototype._next=function(t){this.values.push(tH),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var r=0;r<e;r++){var n=t[r];this.add(tU(this,n,void 0,r))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,r){var n=this.values,i=n[r],o=this.toRespond?i===tH?--this.toRespond:this.toRespond:0;n[r]=e,0===o&&(this.resultSelector?this._tryResultSelector(n):this.destination.next(n.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(tV);function tz(t,e){if(null!=t)if(t&&"function"==typeof t[_])return new S(function(r){var n=new d;return n.add(e.schedule(function(){var i=t[_]();n.add(i.subscribe({next:function(t){n.add(e.schedule(function(){return r.next(t)}))},error:function(t){n.add(e.schedule(function(){return r.error(t)}))},complete:function(){n.add(e.schedule(function(){return r.complete()}))}}))})),n});else{if(tq(t))return new S(function(r){var n=new d;return n.add(e.schedule(function(){return t.then(function(t){n.add(e.schedule(function(){r.next(t),n.add(e.schedule(function(){return r.complete()}))}))},function(t){n.add(e.schedule(function(){return r.error(t)}))})})),n});if(tR(t))return J(t,e);if(t&&"function"==typeof t[tM]||"string"==typeof t){if(!t)throw Error("Iterable cannot be null");return new S(function(r){var n,i=new d;return i.add(function(){n&&"function"==typeof n.return&&n.return()}),i.add(e.schedule(function(){n=t[tM](),i.add(e.schedule(function(){if(!r.closed){try{var t,e,i=n.next();t=i.value,e=i.done}catch(t){r.error(t);return}e?r.complete():(r.next(t),this.schedule())}}))})),i})}}throw TypeError((null!==t&&typeof t||t)+" is not observable")}function tB(t,e){return e?tz(t,e):t instanceof S?t:new S(tD(t))}var tG=function(t){function e(e){var r=t.call(this)||this;return r.parent=e,r}return o(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(v),tJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(v);function tK(t,e){var r;if(!e.closed){if(t instanceof S)return t.subscribe(e);try{r=tD(t)(e)}catch(t){e.error(t)}return r}}var tQ=function(){function t(t,e){void 0===e&&(e=1/0),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new tX(t,this.project,this.concurrent))},t}(),tX=function(t){function e(e,r,n){void 0===n&&(n=1/0);var i=t.call(this,e)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.project(t,r)}catch(t){this.destination.error(t);return}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new tG(this),r=this.destination;r.add(e);var n=tK(t,e);n!==e&&r.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(tJ);function tZ(t){return void 0===t&&(t=1/0),function t(e,r,n){return(void 0===n&&(n=1/0),"function"==typeof r)?function(i){return i.pipe(t(function(t,n){return tB(e(t,n)).pipe(tT(function(e,i){return r(t,e,n,i)}))},n))}:("number"==typeof r&&(n=r),function(t){return t.lift(new tQ(e,n))})}(x,t)}function t$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tZ(1)(Q.apply(void 0,t))}function t0(t){return new S(function(e){var r;try{r=t()}catch(t){e.error(t);return}return(r?tB(r):z()).subscribe(e)})}function t1(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length){var r=t[0];if(l(r))return t8(r,null);if(f(r)&&Object.getPrototypeOf(r)===Object.prototype){var n=Object.keys(r);return t8(n.map(function(t){return r[t]}),n)}}if("function"==typeof t[t.length-1]){var i=t.pop();return t8(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(tT(function(t){return i.apply(void 0,t)}))}return t8(t,null)}function t8(t,e){return new S(function(r){var n=t.length;if(0===n)return void r.complete();for(var i=Array(n),o=0,s=0,u=function(u){var c=tB(t[u]),h=!1;r.add(c.subscribe({next:function(t){!h&&(h=!0,s++),i[u]=t},error:function(t){return r.error(t)},complete:function(){++o!==n&&h||(s===n&&r.next(e?e.reduce(function(t,e,r){return t[e]=i[r],t},{}):i),r.complete())}}))},c=0;c<n;c++)u(c)})}function t3(t,e,r,n,i){if(1==arguments.length){var o,s;s=t.initialState,e=t.condition,r=t.iterate,o=t.resultSelector||x,i=t.scheduler}else void 0===n||B(n)?(s=t,o=x,i=n):(s=t,o=n);return new S(function(t){var n=s;if(i)return i.schedule(t6,0,{subscriber:t,iterate:r,condition:e,resultSelector:o,state:n});for(;;){if(e){var u=void 0;try{u=e(n)}catch(e){t.error(e);return}if(!u){t.complete();break}}var c=void 0;try{c=o(n)}catch(e){t.error(e);break}if(t.next(c),t.closed)break;try{n=r(n)}catch(e){t.error(e);break}}})}function t6(t){var e,r=t.subscriber,n=t.condition;if(!r.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){r.error(t);return}else t.needIterate=!0;if(n){var i=void 0;try{i=n(t.state)}catch(t){r.error(t);return}if(!i)return void r.complete();if(r.closed)return}try{e=t.resultSelector(t.state)}catch(t){r.error(t);return}if(!r.closed&&(r.next(e),!r.closed))return this.schedule(t)}}function t9(t,e,r){return void 0===e&&(e=W),void 0===r&&(r=W),t0(function(){return t()?e:r})}function t2(t){return!l(t)&&t-parseFloat(t)+1>=0}function t4(t,e){return void 0===t&&(t=0),void 0===e&&(e=tb),(!t2(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=tb),new S(function(r){return r.add(e.schedule(t5,t,{subscriber:r,counter:0,period:t})),r})}function t5(t){var e=t.subscriber,r=t.counter,n=t.period;e.next(r),this.schedule({subscriber:e,counter:r+1,period:n},n)}function t7(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=1/0,n=null,i=t[t.length-1];return(B(i)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(r=t.pop())):"number"==typeof i&&(r=t.pop()),null===n&&1===t.length&&t[0]instanceof S)?t[0]:tZ(r)(K(t,n))}var et=new S(tx);function ee(){return et}function er(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(0===t.length)return W;var r=t[0],n=t.slice(1);return 1===t.length&&l(r)?er.apply(void 0,r):new S(function(t){var e=function(){return t.add(er.apply(void 0,n).subscribe(t))};return tB(r).subscribe({next:function(e){t.next(e)},error:e,complete:e})})}function en(t,e){return new S(e?function(r){var n=Object.keys(t),i=new d;return i.add(e.schedule(ei,0,{keys:n,index:0,subscriber:r,subscription:i,obj:t})),i}:function(e){for(var r=Object.keys(t),n=0;n<r.length&&!e.closed;n++){var i=r[n];t.hasOwnProperty(i)&&e.next([i,t[i]])}e.complete()})}function ei(t){var e=t.keys,r=t.index,n=t.subscriber,i=t.subscription,o=t.obj;if(!n.closed)if(r<e.length){var s=e[r];n.next([s,o[s]]),i.add(this.schedule({keys:e,index:r+1,subscriber:n,subscription:i,obj:o}))}else n.complete()}function eo(t,e){return function(r){return r.lift(new es(t,e))}}var es=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new eu(t,this.predicate,this.thisArg))},t}(),eu=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}e&&this.destination.next(t)},e}(v);function ec(t,e,r){return[eo(e,r)(new S(tD(t))),eo(function(t,e){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=t,r.thisArg=e,r}(e,r))(new S(tD(t)))]}function eh(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)if(!l(t[0]))return t[0];else t=t[0];return K(t,void 0).lift(new ea)}var ea=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new el(t))},t}(),el=function(t){function e(e){var r=t.call(this,e)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return o(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var r=0;r<e&&!this.hasFirst;r++){var n=tU(this,t[r],void 0,r);this.subscriptions&&this.subscriptions.push(n),this.add(n)}this.observables=null}},e.prototype.notifyNext=function(t,e,r){if(!this.hasFirst){this.hasFirst=!0;for(var n=0;n<this.subscriptions.length;n++)if(n!==r){var i=this.subscriptions[n];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(e)},e}(tV);function ef(t,e,r){return void 0===t&&(t=0),new S(function(n){void 0===e&&(e=t,t=0);var i=0,o=t;if(r)return r.schedule(ep,0,{index:i,count:e,start:t,subscriber:n});for(;;){if(i++>=e){n.complete();break}if(n.next(o++),n.closed)break}})}function ep(t){var e=t.start,r=t.index,n=t.count,i=t.subscriber;r>=n?i.complete():(i.next(e),i.closed||(t.index=r+1,t.start=e+1,this.schedule(t)))}function ed(t,e,r){void 0===t&&(t=0);var n=-1;return t2(e)?n=1>Number(e)&&1||Number(e):B(e)&&(r=e),B(r)||(r=tb),new S(function(e){var i=t2(t)?t:t-r.now();return r.schedule(eb,i,{index:0,period:n,subscriber:e})})}function eb(t){var e=t.index,r=t.period,n=t.subscriber;if(n.next(e),!n.closed){if(-1===r)return n.complete();t.index=e+1,this.schedule(t,r)}}function ey(t,e){return new S(function(r){try{n=t()}catch(t){r.error(t);return}try{i=e(n)}catch(t){r.error(t);return}var n,i,o=(i?tB(i):W).subscribe(r);return function(){o.unsubscribe(),n&&n.unsubscribe()}})}function ev(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=t[t.length-1];return"function"==typeof r&&t.pop(),K(t,void 0).lift(new em(r))}var em=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ew(t,this.resultSelector))},t}(),ew=function(t){function e(e,r,n){void 0===n&&(n=Object.create(null));var i=t.call(this,e)||this;return i.resultSelector=r,i.iterators=[],i.active=0,i.resultSelector="function"==typeof r?r:void 0,i}return o(e,t),e.prototype._next=function(t){var e=this.iterators;l(t)?e.push(new ex(t)):"function"==typeof t[tM]?e.push(new e_(t[tM]())):e.push(new eg(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(this.unsubscribe(),0===e)return void this.destination.complete();this.active=e;for(var r=0;r<e;r++){var n=t[r];n.stillUnsubscribed?this.destination.add(n.subscribe()):this.active--}},e.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,r=this.destination,n=0;n<e;n++){var i=t[n];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],n=0;n<e;n++){var i=t[n],u=i.next();if(i.hasCompleted()&&(o=!0),u.done)return void r.complete();s.push(u.value)}this.resultSelector?this._tryresultSelector(s):r.next(s),o&&r.complete()},e.prototype._tryresultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(v),e_=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return!!(t&&t.done)},t}(),ex=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[tM]=function(){return this},t.prototype.next=function(t){var e=this.index++,r=this.array;return e<this.length?{value:r[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),eg=function(t){function e(e,r,n){var i=t.call(this,e)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return o(e,t),e.prototype[tM]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return tK(this.observable,new tG(this))},e}(tJ)}}]);
|