@blackglory/observe 0.1.6 → 0.1.7

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.
@@ -12,5 +12,5 @@
12
12
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
13
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
14
  PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,e)};function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function r(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))}function o(t,n){var e,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=n.call(t,a)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function i(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}function c(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function u(t){return this instanceof u?(this.v=t,this):new u(t)}function s(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof u?Promise.resolve(e.value.v).then(s,l):f(i[0][2],e)}catch(t){f(i[0][3],t)}var e}function s(t){c("next",t)}function l(t){c("throw",t)}function f(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}}function l(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=i(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function f(t){return"function"==typeof t}function y(t){var n=t((function(t){Error.call(t),t.stack=(new Error).stack}));return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var d=y((function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}}));function h(t,n){if(t){var e=t.indexOf(n);0<=e&&t.splice(e,1)}}var v=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var n;return t.prototype.unsubscribe=function(){var t,n,e,r,o;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var s=i(u),l=s.next();!l.done;l=s.next()){l.value.remove(this)}}catch(n){t={error:n}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}else u.remove(this);var y=this.initialTeardown;if(f(y))try{y()}catch(t){o=t instanceof d?t.errors:[t]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var v=i(h),p=v.next();!p.done;p=v.next()){var b=p.value;try{m(b)}catch(t){o=null!=o?o:[],t instanceof d?o=c(c([],a(o)),a(t.errors)):o.push(t)}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=v.return)&&r.call(v)}finally{if(e)throw e.error}}}if(o)throw new d(o)}},t.prototype.add=function(n){var e;if(n&&n!==this)if(this.closed)m(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}},t.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},t.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},t.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&h(n,t)},t.prototype.remove=function(n){var e=this._finalizers;e&&h(e,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t}(),p=v.EMPTY;function b(t){return t instanceof v||t&&"closed"in t&&f(t.remove)&&f(t.add)&&f(t.unsubscribe)}function m(t){f(t)?t():t.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},A=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,c([t,n],a(e)))};function g(t){A((function(){throw t}))}function _(){}function I(t){t()}var S=function(t){function n(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,b(n)&&n.add(e)):e.destination=j,e}return e(n,t),n.create=function(t,n,e){return new B(t,n,e)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(v),O=Function.prototype.bind;function x(t,n){return O.call(t,n)}var T=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){P(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){P(t)}else P(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){P(t)}},t}(),B=function(t){function n(n,e,r){var o,i,a=t.call(this)||this;f(n)||!n?o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:a&&w.useDeprecatedNextContext?((i=Object.create(n)).unsubscribe=function(){return a.unsubscribe()},o={next:n.next&&x(n.next,i),error:n.error&&x(n.error,i),complete:n.complete&&x(n.complete,i)}):o=n;return a.destination=new T(o),a}return e(n,t),n}(S);function P(t){g(t)}var j={closed:!0,next:_,error:function(t){throw t},complete:_},E="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(t){return t}function C(t){return 0===t.length?k:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}var N=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var e=new t;return e.source=this,e.operator=n,e},t.prototype.subscribe=function(t,n,e){var r,o=this,i=(r=t)&&r instanceof S||function(t){return t&&f(t.next)&&f(t.error)&&f(t.complete)}(r)&&b(r)?t:new B(t,n,e);return I((function(){var t=o,n=t.operator,e=t.source;i.add(n?n.call(i,e):e?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var e=this;return new(n=q(n))((function(n,r){var o=new B({next:function(n){try{t(n)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n});e.subscribe(o)}))},t.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},t.prototype[E]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return C(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=q(t))((function(t,e){var r;n.subscribe((function(t){return r=t}),(function(t){return e(t)}),(function(){return t(r)}))}))},t.create=function(n){return new t(n)},t}();function q(t){var n;return null!==(n=null!=t?t:w.Promise)&&void 0!==n?n:Promise}function D(t){return f(null==t?void 0:t.lift)}function F(t){return function(n){if(D(n))return n.lift((function(n){try{return t(n,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")}}function R(t,n,e,r,o){return new U(t,n,e,r,o)}var U=function(t){function n(n,e,r,o,i,a){var c=t.call(this,n)||this;return c.onFinalize=i,c.shouldUnsubscribe=a,c._next=e?function(t){try{e(t)}catch(t){n.error(t)}}:t.prototype._next,c._error=o?function(t){try{o(t)}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e(n,t),n.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;t.prototype.unsubscribe.call(this),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}},n}(S);!function(t){function n(n,e){var r=t.call(this)||this;return r.source=n,r.subjectFactory=e,r._subject=null,r._refCount=0,r._connection=null,D(n)&&(r.lift=n.lift),r}e(n,t),n.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},n.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},n.prototype.connect=function(){var t=this,n=this._connection;if(!n){n=this._connection=new v;var e=this.getSubject();n.add(this.source.subscribe(R(e,void 0,(function(){t._teardown(),e.complete()}),(function(n){t._teardown(),e.error(n)}),(function(){return t._teardown()})))),n.closed&&(this._connection=null,n=v.EMPTY)}return n},n.prototype.refCount=function(){return F((function(t,n){var e=null;t._refCount++;var r=R(n,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)e=null;else{var r=t._connection,o=e;e=null,!r||o&&r!==o||r.unsubscribe(),n.unsubscribe()}}));t.subscribe(r),r.closed||(e=t.connect())}))(this)}}(N);var M={now:function(){return(M.delegate||performance).now()},delegate:void 0},z={schedule:function(t){var n=requestAnimationFrame,e=cancelAnimationFrame,r=n((function(n){e=void 0,t(n)}));return new v((function(){return null==e?void 0:e(r)}))},requestAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=z.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],a(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cancelAnimationFrame.apply(void 0,c([],a(t)))},delegate:void 0};function V(t){var n=z.schedule;return new N((function(e){var r=new v,o=t||M,i=o.now(),a=function(c){var u=o.now();e.next({timestamp:t?u:c,elapsed:u-i}),e.closed||r.add(n(a))};return r.add(n(a)),r}))}var L=V(),G=y((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),J=function(t){function n(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e(n,t),n.prototype.lift=function(t){var n=new W(this,this);return n.operator=t,n},n.prototype._throwIfClosed=function(){if(this.closed)throw new G},n.prototype.next=function(t){var n=this;I((function(){var e,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=i(n.currentObservers),a=o.next();!a.done;a=o.next()){a.value.next(t)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}}))},n.prototype.error=function(t){var n=this;I((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}}))},n.prototype.complete=function(){var t=this;I((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var n=this,e=this,r=e.hasError,o=e.isStopped,i=e.observers;return r||o?p:(this.currentObservers=null,i.push(t),new v((function(){n.currentObservers=null,h(i,t)})))},n.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n.thrownError,o=n.isStopped;e?t.error(r):o&&t.complete()},n.prototype.asObservable=function(){var t=new N;return t.source=this,t},n.create=function(t,n){return new W(t,n)},n}(N),W=function(t){function n(n,e){var r=t.call(this)||this;return r.destination=n,r.source=e,r}return e(n,t),n.prototype.next=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===e||e.call(n,t)},n.prototype.error=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===e||e.call(n,t)},n.prototype.complete=function(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)},n.prototype._subscribe=function(t){var n,e;return null!==(e=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==e?e:p},n}(J);!function(t){function n(n){var e=t.call(this)||this;return e._value=n,e}e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(n){var e=t.prototype._subscribe.call(this,n);return!e.closed&&n.next(this._value),e},n.prototype.getValue=function(){var t=this,n=t.hasError,e=t.thrownError,r=t._value;if(n)throw e;return this._throwIfClosed(),r},n.prototype.next=function(n){t.prototype.next.call(this,this._value=n)}}(J);var Z={now:function(){return(Z.delegate||Date).now()},delegate:void 0};!function(t){function n(n,e,r){void 0===n&&(n=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Z);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,e),o}e(n,t),n.prototype.next=function(n){var e=this,r=e.isStopped,o=e._buffer,i=e._infiniteTimeWindow,a=e._timestampProvider,c=e._windowTime;r||(o.push(n),!i&&o.push(a.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},n.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),e=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=e?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),n},n.prototype._trimBuffer=function(){var t=this,n=t._bufferSize,e=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var a=e.now(),c=0,u=1;u<r.length&&r[u]<=a;u+=2)c=u;c&&r.splice(0,c+1)}}}(J),function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}e(n,t),n.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n._hasValue,o=n._value,i=n.thrownError,a=n.isStopped,c=n._isComplete;e?t.error(i):(a||c)&&(r&&t.next(o),t.complete())},n.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},n.prototype.complete=function(){var n=this,e=n._hasValue,r=n._value;n._isComplete||(this._isComplete=!0,e&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(J);var Y,H=function(t){function n(n,e){return t.call(this)||this}return e(n,t),n.prototype.schedule=function(t,n){return this},n}(v),X=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setInterval.apply(void 0,c([t,n],a(e)))},K=function(t){return clearInterval(t)},Q=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r.pending=!1,r}return e(n,t),n.prototype.schedule=function(t,n){if(void 0===n&&(n=0),this.closed)return this;this.state=t;var e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this},n.prototype.requestAsyncId=function(t,n,e){return void 0===e&&(e=0),X(t.flush.bind(t,this),e)},n.prototype.recycleAsyncId=function(t,n,e){if(void 0===e&&(e=0),null!=e&&this.delay===e&&!1===this.pending)return n;K(n)},n.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,n);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,n){var e,r=!1;try{this.work(t)}catch(t){r=!0,e=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),e},n.prototype.unsubscribe=function(){if(!this.closed){var n=this.id,e=this.scheduler,r=e.actions;this.work=this.state=this.scheduler=null,this.pending=!1,h(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},n}(H),$=1,tt={};function nt(t){return t in tt&&(delete tt[t],!0)}var et=function(t){var n=$++;return tt[n]=!0,Y||(Y=Promise.resolve()),Y.then((function(){return nt(n)&&t()})),n},rt=function(t){nt(t)},ot={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=ot.delegate;return((null==e?void 0:e.setImmediate)||et).apply(void 0,c([],a(t)))},clearImmediate:function(t){return rt(t)},delegate:void 0},it=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=ot.setImmediate(n.flush.bind(n,void 0))))},n.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(ot.clearImmediate(e),n._scheduled=void 0)},n}(Q),at=function(){function t(n,e){void 0===e&&(e=t.now),this.schedulerActionCtor=n,this.now=e}return t.prototype.schedule=function(t,n,e){return void 0===n&&(n=0),new this.schedulerActionCtor(this,t).schedule(e,n)},t.now=Z.now,t}(),ct=function(t){function n(n,e){void 0===e&&(e=at.now);var r=t.call(this,n,e)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return e(n,t),n.prototype.flush=function(t){var n=this.actions;if(this._active)n.push(t);else{var e;this._active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}}},n}(at);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},n}(ct))(it),new ct(Q);var ut=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.prototype.schedule=function(n,e){return void 0===e&&(e=0),e>0?t.prototype.schedule.call(this,n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)},n.prototype.execute=function(n,e){return e>0||this.closed?t.prototype.execute.call(this,n,e):this._execute(n,e)},n.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,n,e,r):n.flush(this)},n}(Q);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(ct))(ut);var st=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=z.requestAnimationFrame((function(){return n.flush(void 0)}))))},n.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(z.cancelAnimationFrame(e),n._scheduled=void 0)},n}(Q);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},n}(ct))(st),function(t){function n(n,e){void 0===n&&(n=lt),void 0===e&&(e=1/0);var r=t.call(this,n,(function(){return r.frame}))||this;return r.maxFrames=e,r.frame=0,r.index=-1,r}e(n,t),n.prototype.flush=function(){for(var t,n,e=this.actions,r=this.maxFrames;(n=e[0])&&n.delay<=r&&(e.shift(),this.frame=n.delay,!(t=n.execute(n.state,n.delay))););if(t){for(;n=e.shift();)n.unsubscribe();throw t}},n.frameTimeFactor=10}(ct);var lt=function(t){function n(n,e,r){void 0===r&&(r=n.index+=1);var o=t.call(this,n,e)||this;return o.scheduler=n,o.work=e,o.index=r,o.active=!0,o.index=n.index=r,o}return e(n,t),n.prototype.schedule=function(e,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,e,r);this.active=!1;var o=new n(this.scheduler,this.work);return this.add(o),o.schedule(e,r)}return v.EMPTY},n.prototype.requestAsyncId=function(t,e,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(t,n,e){},n.prototype._execute=function(n,e){if(!0===this.active)return t.prototype._execute.call(this,n,e)},n.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},n}(Q),ft=new N((function(t){return t.complete()}));function yt(t){return t[t.length-1]}function dt(t){return(n=yt(t))&&f(n.schedule)?t.pop():void 0;var n}function ht(t,n){return"number"==typeof yt(t)?t.pop():n}var vt=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function pt(t){return f(null==t?void 0:t.then)}function bt(t){return f(t[E])}function mt(t){return Symbol.asyncIterator&&f(null==t?void 0:t[Symbol.asyncIterator])}function wt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var At,gt="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function _t(t){return f(null==t?void 0:t[gt])}function It(t){return s(this,arguments,(function(){var n,e,r;return o(this,(function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,u(n.read())];case 3:return e=o.sent(),r=e.value,e.done?[4,u(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,u(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}}))}))}function St(t){return f(null==t?void 0:t.getReader)}function Ot(t){if(t instanceof N)return t;if(null!=t){if(bt(t))return n=t,new N((function(t){var e=n[E]();if(f(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(vt(t))return function(t){return new N((function(n){for(var e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()}))}(t);if(pt(t))return function(t){return new N((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,g)}))}(t);if(mt(t))return xt(t);if(_t(t))return function(t){return new N((function(n){var e,r;try{for(var o=i(t),a=o.next();!a.done;a=o.next()){var c=a.value;if(n.next(c),n.closed)return}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}n.complete()}))}(t);if(St(t))return xt(It(t))}var n;throw wt(t)}function xt(t){return new N((function(n){(function(t,n){var e,i,a,c;return r(this,void 0,void 0,(function(){var r,u;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),e=l(t),o.label=1;case 1:return[4,e.next()];case 2:if((i=o.sent()).done)return[3,4];if(r=i.value,n.next(r),n.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return u=o.sent(),a={error:u},[3,11];case 6:return o.trys.push([6,,9,10]),i&&!i.done&&(c=e.return)?[4,c.call(e)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}}))}))})(t,n).catch((function(t){return n.error(t)}))}))}function Tt(t,n,e,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=n.schedule((function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()}),r);if(t.add(i),!o)return i}function Bt(t,n){return void 0===n&&(n=0),F((function(e,r){e.subscribe(R(r,(function(e){return Tt(r,t,(function(){return r.next(e)}),n)}),(function(){return Tt(r,t,(function(){return r.complete()}),n)}),(function(e){return Tt(r,t,(function(){return r.error(e)}),n)})))}))}function Pt(t,n){return void 0===n&&(n=0),F((function(e,r){r.add(t.schedule((function(){return e.subscribe(r)}),n))}))}function jt(t,n){if(!t)throw new Error("Iterable cannot be null");return new N((function(e){Tt(e,n,(function(){var r=t[Symbol.asyncIterator]();Tt(e,n,(function(){r.next().then((function(t){t.done?e.complete():e.next(t.value)}))}),0,!0)}))}))}function Et(t,n){if(null!=t){if(bt(t))return function(t,n){return Ot(t).pipe(Pt(n),Bt(n))}(t,n);if(vt(t))return function(t,n){return new N((function(e){var r=0;return n.schedule((function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())}))}))}(t,n);if(pt(t))return function(t,n){return Ot(t).pipe(Pt(n),Bt(n))}(t,n);if(mt(t))return jt(t,n);if(_t(t))return function(t,n){return new N((function(e){var r;return Tt(e,n,(function(){r=t[gt](),Tt(e,n,(function(){var t,n,o;try{n=(t=r.next()).value,o=t.done}catch(t){return void e.error(t)}o?e.complete():e.next(n)}),0,!0)})),function(){return f(null==r?void 0:r.return)&&r.return()}}))}(t,n);if(St(t))return function(t,n){return jt(It(t),n)}(t,n)}throw wt(t)}function kt(t,n){return n?Et(t,n):Ot(t)}function Ct(t,n){return F((function(e,r){var o=0;e.subscribe(R(r,(function(e){r.next(t.call(n,e,o++))})))}))}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(At||(At={})),y((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),y((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),y((function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}})),y((function(t){return function(n){t(this),this.name="SequenceError",this.message=n}})),y((function(t){return function(n){void 0===n&&(n=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}}));var Nt=Array.isArray;function qt(t){return Ct((function(n){return function(t,n){return Nt(n)?t.apply(void 0,c([],a(n))):t(n)}(t,n)}))}function Dt(t,n,e){return void 0===e&&(e=1/0),f(n)?Dt((function(e,r){return Ct((function(t,o){return n(e,t,r,o)}))(Ot(t(e,r)))}),e):("number"==typeof n&&(e=n),F((function(n,r){return function(t,n,e,r,o,i,a,c){var u=[],s=0,l=0,f=!1,y=function(){!f||u.length||s||n.complete()},d=function(t){return s<r?h(t):u.push(t)},h=function(t){i&&n.next(t),s++;var c=!1;Ot(e(t,l++)).subscribe(R(n,(function(t){null==o||o(t),i?d(t):n.next(t)}),(function(){c=!0}),void 0,(function(){if(c)try{s--;for(var t=function(){var t=u.shift();a?Tt(n,a,(function(){return h(t)})):h(t)};u.length&&s<r;)t();y()}catch(t){n.error(t)}})))};return t.subscribe(R(n,d,(function(){f=!0,y()}))),function(){null==c||c()}}(n,r,t,e)})))}function Ft(t){return void 0===t&&(t=1/0),Dt(k,t)}var Rt=["addListener","removeListener"],Ut=["addEventListener","removeEventListener"],Mt=["on","off"];function zt(t,n,e,r){if(f(e)&&(r=e,e=void 0),r)return zt(t,n,e).pipe(qt(r));var o=a(function(t){return f(t.addEventListener)&&f(t.removeEventListener)}(t)?Ut.map((function(r){return function(o){return t[r](n,o,e)}})):function(t){return f(t.addListener)&&f(t.removeListener)}(t)?Rt.map(Vt(t,n)):function(t){return f(t.on)&&f(t.off)}(t)?Mt.map(Vt(t,n)):[],2),i=o[0],c=o[1];if(!i&&vt(t))return Dt((function(t){return zt(t,n,e)}))(Ot(t));if(!i)throw new TypeError("Invalid event target");return new N((function(t){var n=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1<n.length?n:n[0])};return i(n),function(){return c(n)}}))}function Vt(t,n){return function(e){return function(r){return t[e](n,r)}}}function Lt(t,n){return F((function(e,r){var o=0;e.subscribe(R(r,(function(e){return t.call(n,e,o++)&&r.next(e)})))}))}function Gt(...t){return new N((n=>{const e=new MutationObserver((t=>n.next(t)));return e.observe(...t),()=>e.disconnect()}))}new N(_);var Jt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Wt={},Zt={},Yt={};Yt.mixinDecorators=void 0,Yt.mixinDecorators=function(t,n){for(const e of n)for(const n of Object.getOwnPropertyNames(e.prototype)){if("constructor"===n)continue;const r=Object.getOwnPropertyDescriptor(e.prototype,n);Object.defineProperty(t.prototype,n,r)}};var Ht={},Xt={Subject:void 0};Xt.Subject=class{constructor(t){this.subject=t}},Ht.IterableOperatorBase=void 0;const Kt=Xt;class Qt extends Kt.Subject{[Symbol.iterator](){return this.subject[Symbol.iterator]()}}Ht.IterableOperatorBase=Qt;var $t={},tn={},nn={},en={AsyncIterableOperatorBase:void 0};const rn=Xt;class on extends rn.Subject{[Symbol.asyncIterator](){return this.subject[Symbol.asyncIterator]()}}en.AsyncIterableOperatorBase=on;var an={},cn={},un={},sn={};sn.go=void 0,sn.go=function(t){return t()};var ln={};ln.goMicrotask=void 0,ln.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var fn={},yn={},dn={},hn={},vn={};vn.random=void 0,vn.random=function(t,n){return Math.random()*(n-t)+t};var pn={};pn.randomInt=void 0,pn.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var bn={};bn.randomIntInclusive=void 0,bn.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(vn,t),e(pn,t),e(bn,t)}(hn),dn.calculateExponentialBackoffTimeout=void 0;const mn=hn;dn.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,mn.randomIntInclusive)(0,i):i};var wn={};wn.setTimeout=void 0,wn.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var An={setSchedule:void 0};const gn=wn;An.setSchedule=function(t,n){const e=t-Date.now();return(0,gn.setTimeout)(e,n)};var _n={};_n.setInterval=void 0,_n.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var In={setImmediate:void 0};const Sn=wn;In.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,Sn.setTimeout)(0,t)};var On={setTimeoutLoop:void 0};const xn=wn;On.setTimeoutLoop=function(t,n){let e=!1,r=(0,xn.setTimeout)(t,(async function o(){await n(),e||(r=(0,xn.setTimeout)(t,o))}));return()=>{e=!0,r()}};var Tn={setDynamicTimeoutLoop:void 0};const Bn=wn;Tn.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,Bn.setTimeout)(t,(async function o(){const i=Date.now();await n();const a=Date.now()-i;e||(r=(0,Bn.setTimeout)(Math.max(t-a,0),o))}));return()=>{e=!0,r()}},function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(dn,t),e(wn,t),e(An,t),e(_n,t),e(In,t),e(On,t),e(Tn,t)}(yn),fn.goMacrotask=void 0;const Pn=yn;fn.goMacrotask=function(t){return new Promise(((n,e)=>{(0,Pn.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(sn,t),e(ln,t),e(fn,t)}(un);var jn,En={},kn={},Cn={},Nn={},qn={};var Dn={},Fn={},Rn={};function Un(t){return Array.isArray(t)}Rn.isntEmptyArray=Rn.isEmptyArray=Rn.isntArray=Rn.isArray=void 0,Rn.isArray=Un,Rn.isntArray=function(t){return!Un(t)},Rn.isEmptyArray=function(t){return 0===t.length},Rn.isntEmptyArray=function(t){return 0!==t.length};var Mn={},zn={};function Vn(t){return null===t}zn.isntNull=zn.isNull=void 0,zn.isNull=Vn,zn.isntNull=function(t){return!Vn(t)};var Ln={};function Gn(t){return void 0===t}Ln.isntUndefined=Ln.isUndefined=void 0,Ln.isUndefined=Gn,Ln.isntUndefined=function(t){return!Gn(t)};var Jn={};function Wn(t){return"function"==typeof t}Jn.isntFunction=Jn.isFunction=void 0,Jn.isFunction=Wn,Jn.isntFunction=function(t){return!Wn(t)},Mn.isntAsyncIterable=Mn.isAsyncIterable=void 0;const Zn=zn,Yn=Ln,Hn=Jn;function Xn(t){return(0,Zn.isntNull)(t)&&(0,Yn.isntUndefined)(t)&&(0,Hn.isFunction)(t[Symbol.asyncIterator])}Mn.isAsyncIterable=Xn,Mn.isntAsyncIterable=function(t){return!Xn(t)};var Kn={};function Qn(t){return"bigint"==typeof t}Kn.isntBigInt=Kn.isBigInt=void 0,Kn.isBigInt=Qn,Kn.isntBigInt=function(t){return!Qn(t)};var $n={};function te(t){return"boolean"==typeof t}$n.isntBoolean=$n.isBoolean=void 0,$n.isBoolean=te,$n.isntBoolean=function(t){return!te(t)};var ne={},ee={};function re(t){return"string"==typeof t}ee.isntString=ee.isString=void 0,ee.isString=re,ee.isntString=function(t){return!re(t)},ne.isntChar=ne.isChar=void 0;const oe=ee;function ie(t){return(0,oe.isString)(t)&&1===t.length}ne.isChar=ie,ne.isntChar=function(t){return!ie(t)};var ae={};function ce(t){return t instanceof Date}ae.isntDate=ae.isDate=void 0,ae.isDate=ce,ae.isntDate=function(t){return!ce(t)};var ue={};ue.inEnum=void 0,ue.inEnum=function(t,n){return Object.values(n).includes(t)};var se={};function le(t){return t instanceof Error}se.isntError=se.isError=void 0,se.isError=le,se.isntError=function(t){return!le(t)};var fe={};function ye(t){return!t}fe.isntFalsy=fe.isFalsy=void 0,fe.isFalsy=ye,fe.isntFalsy=function(t){return!ye(t)};var de={};de.isntIterable=de.isIterable=void 0;const he=zn,ve=Ln,pe=Jn;function be(t){return(0,he.isntNull)(t)&&(0,ve.isntUndefined)(t)&&(0,pe.isFunction)(t[Symbol.iterator])}de.isIterable=be,de.isntIterable=function(t){return!be(t)};var me={},we={};function Ae(t){return"number"==typeof t}function ge(t){return Number.isNaN(t)}we.isntNaN=we.isNaN=we.isNegativeInfinity=we.isPositiveInfinity=we.isFinite=we.isntNumber=we.isNumber=void 0,we.isNumber=Ae,we.isntNumber=function(t){return!Ae(t)},we.isFinite=function(t){return Number.isFinite(t)},we.isPositiveInfinity=function(t){return t===1/0},we.isNegativeInfinity=function(t){return t===-1/0},we.isNaN=ge,we.isntNaN=function(t){return!ge(t)};var _e={},Ie="object"==typeof Jt&&Jt&&Jt.Object===Object&&Jt,Se="object"==typeof self&&self&&self.Object===Object&&self,Oe=(Ie||Se||Function("return this")()).Symbol,xe=Oe,Te=Object.prototype,Be=Te.hasOwnProperty,Pe=Te.toString,je=xe?xe.toStringTag:void 0;var Ee=function(t){var n=Be.call(t,je),e=t[je];try{t[je]=void 0;var r=!0}catch(t){}var o=Pe.call(t);return r&&(n?t[je]=e:delete t[je]),o},ke=Object.prototype.toString;var Ce=Ee,Ne=function(t){return ke.call(t)},qe=Oe?Oe.toStringTag:void 0;var De=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":qe&&qe in Object(t)?Ce(t):Ne(t)};var Fe=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Re=De,Ue=Fe,Me=function(t){return null!=t&&"object"==typeof t},ze=Function.prototype,Ve=Object.prototype,Le=ze.toString,Ge=Ve.hasOwnProperty,Je=Le.call(Object);var We=function(t){if(!Me(t)||"[object Object]"!=Re(t))return!1;var n=Ue(t);if(null===n)return!0;var e=Ge.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Le.call(e)==Je},Ze=Jt&&Jt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};_e.isntEmptyObject=_e.isEmptyObject=_e.isntPlainObject=_e.isPlainObject=_e.isntObject=_e.isObject=void 0;const Ye=Ze(We);function He(t){return null!==t&&"object"==typeof t}function Xe(t){return(0,Ye.default)(t)}_e.isObject=He,_e.isntObject=function(t){return!He(t)},_e.isPlainObject=Xe,_e.isntPlainObject=function(t){return!Xe(t)},_e.isEmptyObject=function(t){return 0===Object.keys(t).length},_e.isntEmptyObject=function(t){return 0!==Object.keys(t).length},me.isntJsonable=me.isJsonable=me.isntJson=me.isJson=void 0;const Ke=zn,Qe=$n,$e=ee,tr=we,nr=Rn,er=_e;function rr(t){return(0,Ke.isNull)(t)||(0,Qe.isBoolean)(t)||(0,$e.isString)(t)||(0,tr.isNumber)(t)||(0,nr.isArray)(t)&&t.every(rr)||(0,er.isPlainObject)(t)&&Object.values(t).every(rr)}me.isJson=rr,me.isntJson=function(t){return!rr(t)},me.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},me.isntJsonable=function t(n){return!t()};var or={};or.isPromiseLike=or.isntPromiseLike=or.isntPromise=or.isPromise=void 0;const ir=_e,ar=Jn;function cr(t){return t instanceof Promise}function ur(t){return(0,ir.isObject)(t)&&(0,ar.isFunction)(t.then)}or.isPromise=cr,or.isntPromise=function(t){return!cr(t)},or.isntPromiseLike=function(t){return!ur(t)},or.isPromiseLike=ur;var sr={};sr.isAbsoluteURL=void 0,sr.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var lr={};function fr(t){return t instanceof RegExp}lr.isntRegExp=lr.isRegExp=void 0,lr.isRegExp=fr,lr.isntRegExp=function(t){return!fr(t)},function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Rn,t),e(Mn,t),e(Kn,t),e($n,t),e(ne,t),e(ae,t),e(ue,t),e(se,t),e(fe,t),e(Jn,t),e(de,t),e(me,t),e(zn,t),e(we,t),e(_e,t),e(or,t),e(ee,t),e(Ln,t),e(sr,t),e(lr,t)}(Fn),Dn.chunkByAsync=void 0;const yr=Fn;Dn.chunkByAsync=function(t,n){return(0,yr.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var dr={};dr.chunkBy=void 0,dr.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var hr,vr={};var pr={concatAsync:void 0};const br=Fn,mr=un;pr.concatAsync=function(t,...n){return(0,mr.go)((async function*(){for(const e of[t,...n])if((0,br.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var wr={concat:void 0};const Ar=un;wr.concat=function(t,...n){return(0,Ar.go)((function*(){for(const e of[t,...n])yield*e}))};var gr,_r={},Ir={};Ir.copyIterable=Ir.copyAsyncIterable=void 0,Ir.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Ir.copyIterable=function*(t){for(const n of t)yield n};var Sr,Or={};var xr,Tr={};var Br={dropUntilAsync:void 0};const Pr=Fn;Br.dropUntilAsync=function(t,n){return(0,Pr.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var jr={};jr.dropUntil=void 0,jr.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var Er,kr={};var Cr={filterAsync:void 0};const Nr=Fn;Cr.filterAsync=function(t,n){return(0,Nr.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var qr={};qr.filter=void 0,qr.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Dr={},Fr={},Rr={flattenByAsync:void 0};const Ur=Fn;async function*Mr(t,n,e){for(const r of t)zr(r)&&await n(r,e)?yield*Mr(r,n,e+1):yield r}function zr(t){return(0,Ur.isIterable)(t)&&(0,Ur.isntChar)(t)}var Vr,Lr;function Gr(){if(Vr)return Fr;Vr=1,Fr.flattenDeepAsync=void 0;const t=Rr,n=na();return Fr.flattenDeepAsync=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenByAsync)(e,((t,n)=>n<=r))},Fr}Rr.flattenByAsync=function(t,n){return(0,Ur.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)zr(r)&&await n(r,e)?yield*Mr(r,n,e+1):yield r}(t,n):function(t,n){return Mr(t,n,1)}(t,n)};var Jr={flattenBy:void 0};const Wr=Fn;function*Zr(t,n,e){for(const o of t)(0,Wr.isIterable)(r=o)&&(0,Wr.isntChar)(r)&&n(o,e)?yield*Zr(o,n,e+1):yield o;var r}Jr.flattenBy=function(t,n){return Zr(t,n,1)};var Yr,Hr={};function Xr(){if(Yr)return Hr;Yr=1,Hr.flattenDeep=void 0;const t=Jr,n=na();return Hr.flattenDeep=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenBy)(e,((t,n)=>n<=r))},Hr}var Kr,Qr={};var $r={mapAsync:void 0};const to=Fn;$r.mapAsync=function(t,n){return(0,to.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var no={};no.map=void 0,no.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var eo,ro={};function oo(){if(eo)return ro;eo=1,ro.repeatAsync=void 0;const t=un,n=na();return ro.repeatAsync=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((async function*(){const t=[];if(r>0){for await(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},ro}var io,ao={};function co(){if(io)return ao;io=1,ao.repeat=void 0;const t=un,n=na();return ao.repeat=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((function*(){const t=[];if(r>0){for(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},ao}var uo,so={};var lo,fo={};var yo={};yo.splitAsync=void 0,yo.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var ho={splitByAsync:void 0};const vo=Fn;ho.splitByAsync=function(t,n){return(0,vo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var po={};po.splitBy=void 0,po.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var bo={};bo.split=void 0,bo.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var mo,wo={};var Ao,go={};var _o,Io={};var So={takeUntilAsync:void 0};const Oo=Fn;So.takeUntilAsync=function(t,n){return(0,Oo.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var xo={};xo.takeUntil=void 0,xo.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var To,Bo={};var Po={tapAsync:void 0};const jo=Fn;Po.tapAsync=function(t,n){return(0,jo.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Eo={};Eo.tap=void 0,Eo.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var ko={};ko.toAsyncIterable=void 0,ko.toAsyncIterable=async function*(t){for(const n of t)yield n};var Co={};Co.transformAsync=void 0,Co.transformAsync=async function*(t,n){yield*n(t)};var No={};No.transform=void 0,No.transform=function*(t,n){yield*n(t)};var qo={};qo.uniqAsync=void 0,qo.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var Do={uniqByAsync:void 0};const Fo=Fn;Do.uniqByAsync=function(t,n){return(0,Fo.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var Ro={};Ro.uniqBy=void 0,Ro.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var Uo={};Uo.uniq=void 0,Uo.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var Mo={zipAsync:void 0};const zo=Fn;var Vo;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Vo||(Vo={})),Mo.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,zo.isAsyncIterable)(t)?[Vo.Async,t[Symbol.asyncIterator]()]:[Vo.Sync,t[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===Vo.Async?await r.next():r.next(),o.done)return void(c[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!c[n]));for(const[i,a]of t)i===Vo.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var Lo,Go={};function Jo(){return Lo||(Lo=1,function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(function(){if(jn)return qn;jn=1,qn.chunkAsync=void 0;const t=un,n=na();return qn.chunkAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((async function*(){let t=[];for await(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},qn}(),t),e(Dn,t),e(dr,t),e(function(){if(hr)return vr;hr=1,vr.chunk=void 0;const t=un,n=na();return vr.chunk=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((function*(){let t=[];for(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},vr}(),t),e(pr,t),e(wr,t),e(function(){if(gr)return _r;gr=1,_r.dropAsync=void 0;const t=un,n=Ir,e=na();return _r.dropAsync=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyAsyncIterable)(r):(0,t.go)((async function*(){var t;const n=r[Symbol.asyncIterator]();let e;try{let r;for(;({value:r,done:e}=await n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=await n.next())}finally{e||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},_r}(),t),e(function(){if(Sr)return Or;Sr=1,Or.dropRightAsync=void 0;const t=un,n=Ir,e=na();return Or.dropRightAsync=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyAsyncIterable)(r):(0,t.go)((async function*(){const t=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(r)).slice(0,-o);for(const n of t)yield n}))},Or}(),t),e(function(){if(xr)return Tr;xr=1,Tr.dropRight=void 0;const t=un,n=Ir,e=na();return Tr.dropRight=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){const t=Array.from(r);yield*t.slice(0,-o)}))},Tr}(),t),e(Br,t),e(jr,t),e(function(){if(Er)return kr;Er=1,kr.drop=void 0;const t=un,n=Ir,e=na();return kr.drop=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){var t;const n=r[Symbol.iterator]();let e;try{let r;for(;({value:r,done:e}=n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=n.next())}finally{e||null===(t=n.return)||void 0===t||t.call(n)}}))},kr}(),t),e(Cr,t),e(qr,t),e(function(){if(Lr)return Dr;Lr=1,Dr.flattenAsync=void 0;const t=Gr();return Dr.flattenAsync=function(n){return(0,t.flattenDeepAsync)(n,1)},Dr}(),t),e(Rr,t),e(Jr,t),e(Gr(),t),e(Xr(),t),e(function(){if(Kr)return Qr;Kr=1,Qr.flatten=void 0;const t=Xr();return Qr.flatten=function(n){return(0,t.flattenDeep)(n,1)},Qr}(),t),e($r,t),e(no,t),e(oo(),t),e(co(),t),e(function(){if(uo)return so;uo=1,so.sliceAsync=void 0;const t=un,n=na();return so.sliceAsync=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((async function*(){let t=0;for await(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},so}(),t),e(function(){if(lo)return fo;lo=1,fo.slice=void 0;const t=un,n=na();return fo.slice=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((function*(){let t=0;for(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},fo}(),t),e(yo,t),e(ho,t),e(po,t),e(bo,t),e(function(){if(mo)return wo;mo=1,wo.takeAsync=void 0;const t=un,n=na();return wo.takeAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){if(0!==r)for await(const t of e)if(yield t,0==--r)break}))},wo}(),t),e(function(){if(Ao)return go;Ao=1,go.takeRightAsync=void 0;const t=un,n=na();return go.takeRightAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){var t;const n=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},go}(),t),e(function(){if(_o)return Io;_o=1,Io.takeRight=void 0;const t=un,n=na();return Io.takeRight=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){var t;const n=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||null===(t=n.return)||void 0===t||t.call(n)}}))},Io}(),t),e(So,t),e(xo,t),e(function(){if(To)return Bo;To=1,Bo.take=void 0;const t=un,n=na();return Bo.take=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){if(0!==r)for(const t of e)if(yield t,0==--r)break}))},Bo}(),t),e(Po,t),e(Eo,t),e(ko,t),e(Co,t),e(No,t),e(qo,t),e(Do,t),e(Ro,t),e(Uo,t),e(Mo,t),e(Go,t)}(Nn)),Nn}Go.zip=void 0,Go.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)};var Wo={},Zo={};Zo.consume=void 0,Zo.consume=function(t,n){return n(t)};var Yo={eachAsync:void 0};const Ho=Fn;Yo.eachAsync=function(t,n){return(0,Ho.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var Xo={};Xo.each=void 0,Xo.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Ko={everyAsync:void 0};const Qo=Fn;Ko.everyAsync=function(t,n){return(0,Qo.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var $o={};$o.every=void 0,$o.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var ti={findAsync:void 0};const ni=Fn;ti.findAsync=function(t,n){return(0,ni.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var ei={};ei.find=void 0,ei.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var ri={};ri.firstAsync=void 0,ri.firstAsync=async function(t){for await(const n of t)return n};var oi={};oi.first=void 0,oi.first=function(t){for(const n of t)return n};var ii={};ii.includesAsync=void 0,ii.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var ai={};ai.includes=void 0,ai.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var ci={};ci.matchAsync=void 0,ci.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var ui={};ui.match=void 0,ui.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var si={reduceAsync:void 0};const li=Fn;si.reduceAsync=function(t,n,e){return(0,li.isUndefined)(e)?function(t,n){return(0,li.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),c=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,c++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,li.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var fi={reduce:void 0};const yi=Fn;fi.reduce=function(t,n,e){return(0,yi.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var di={someAsync:void 0};const hi=Fn;di.someAsync=function(t,n){return(0,hi.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var vi={};vi.some=void 0,vi.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var pi={};pi.lastAsync=void 0,pi.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var bi={};bi.last=void 0,bi.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var mi={toArrayAsync:void 0};const wi=Zo;mi.toArrayAsync=function(t){return(0,wi.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var Ai={toArray:void 0};const gi=Zo;Ai.toArray=function(t){return(0,gi.consume)(t,(t=>Array.from(t)))};var _i={toSetAsync:void 0};const Ii=Zo;_i.toSetAsync=function(t){return(0,Ii.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var Si={toSet:void 0};const Oi=Zo;Si.toSet=function(t){return(0,Oi.consume)(t,(t=>new Set(t)))};var xi={};xi.count=void 0,xi.count=function(t){let n=0;for(const e of t)n++;return n};var Ti={};Ti.countAsync=void 0,Ti.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Bi={groupBy:void 0};const Pi=Xo;Bi.groupBy=function(t,n){const e=new Map;return(0,Pi.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var ji={groupByAsync:void 0};const Ei=Yo;var ki;function Ci(){return ki||(ki=1,function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Jo(),t),e(Wo,t)}(Cn)),Cn}ji.groupByAsync=async function(t,n){const e=new Map;return await(0,Ei.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Zo,t),e(Yo,t),e(Xo,t),e(Ko,t),e($o,t),e(ti,t),e(ei,t),e(ri,t),e(oi,t),e(ii,t),e(ai,t),e(ci,t),e(ui,t),e(si,t),e(fi,t),e(di,t),e(vi,t),e(pi,t),e(bi,t),e(mi,t),e(Ai,t),e(_i,t),e(Si,t),e(xi,t),e(Ti,t),e(Bi,t),e(ji,t)}(Wo);var Ni={},qi={};qi.traverseErrorPrototypeChain=void 0,qi.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},Ni.getErrorNames=void 0;const Di=Fn,Fi=qi;Ni.getErrorNames=function*(t){var n;if((0,Di.isError)(t))for(const e of(0,Fi.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var Ri={isSerializableError:void 0};const Ui=Fn;var Mi;function zi(){if(Mi)return kn;Mi=1,kn.CustomError=void 0;const t=Ci(),n=Ni,e=Fn,r=Ri;class o extends Error{get name(){var e,r;return null!==(r=null!==(e=(0,t.first)((0,n.getErrorNames)(this)))&&void 0!==e?e:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,e.isError)(o)||(0,r.isSerializableError)(o)){const e=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,n.getErrorNames)(this.prototype)].reverse(),r=(0,t.toArray)((0,n.getErrorNames)(o)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}return kn.CustomError=o,kn}Ri.isSerializableError=function(t){return(0,Ui.isObject)(t)&&(0,Ui.isString)(t.name)&&(0,Ui.isString)(t.message)&&((0,Ui.isString)(t.stack)||(0,Ui.isNull)(t.stack))&&(0,Ui.isArray)(t.ancestors)&&t.ancestors.every(Ui.isString)};var Vi,Li={};function Gi(){if(Vi)return Li;Vi=1,Li.AssertionError=void 0;const t=zi();class n extends t.CustomError{}return Li.AssertionError=n,Li}var Ji,Wi={};var Zi={},Yi={},Hi={};Hi.pass=void 0,Hi.pass=function(){},function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(Hi,t)}(Yi),Zi.hydrate=void 0;const Xi=Yi;function Ki(t,n){const e=function(){(0,Xi.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}Zi.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=Ki(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var Qi,$i,ta={};function na(){return $i||($i=1,function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(zi(),t),e(Gi(),t),e(Ri,t),e(function(){if(Ji)return Wi;Ji=1,Wi.normalize=void 0;const t=Ni,n=Ci();return Wi.normalize=function(e){var r;const[o,...i]=(0,n.toArray)((0,t.getErrorNames)(e));return{name:o,ancestors:i,message:e.message,stack:null!==(r=e.stack)&&void 0!==r?r:null}},Wi}(),t),e(Zi,t),e(function(){if(Qi)return ta;Qi=1,ta.assert=void 0;const t=Gi();return ta.assert=function(n,e){if(!n)throw new t.AssertionError(e)},ta}(),t),e(Ni,t),e(qi,t)}(En)),En}var ea=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},ra=Jt&&Jt.__await||function(t){return this instanceof ra?(this.v=t,this):new ra(t)},oa=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ra?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};cn.chunkAsync=void 0;const ia=un,aa=na();var ca;cn.chunkAsync=function(t,n){return(0,aa.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,aa.assert)(n>0,"The parameter size must be greater than 0"),(0,ia.go)((function(){return oa(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=ea(t);!(i=yield ra(a.next())).done;){const t=i.value;o.push(t),o.length>=n&&(yield yield ra(o),o=[])}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield ra(r.call(a)))}finally{if(e)throw e.error}}o.length&&(yield yield ra(o))}))}))};var ua={},sa={},la=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},fa=Jt&&Jt.__await||function(t){return this instanceof fa?(this.v=t,this):new fa(t)},ya=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof fa?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};sa.chunkByAsync=void 0;const da=Fn;var ha;function va(){if(ha)return ua;ha=1,ua.ChunkByAsyncOperator=void 0;const t=$l(),n=sa,e=Xt;class r extends e.Subject{chunkByAsync(...e){return(0,t.applyChainingAsync)(this.subject,n.chunkByAsync,e)}}return ua.ChunkByAsyncOperator=r,ua}sa.chunkByAsync=function(t,n){return(0,da.isAsyncIterable)(t)?function(t,n){return ya(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=la(t);!(a=yield fa(c.next())).done;){const t=a.value;o.push(t),(yield fa(n(t,i)))&&(yield yield fa(o),o=[]),i++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=c.return)&&(yield fa(r.call(c)))}finally{if(e)throw e.error}}o.length&&(yield yield fa(o))}))}(t,n):function(t,n){return ya(this,arguments,(function*(){let e=[],r=0;for(const o of t)e.push(o),(yield fa(n(o,r)))&&(yield yield fa(e),e=[]),r++;e.length&&(yield yield fa(e))}))}(t,n)};var pa={},ba={},ma=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},wa=Jt&&Jt.__await||function(t){return this instanceof wa?(this.v=t,this):new wa(t)},Aa=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof wa?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};ba.concatAsync=void 0;const ga=Fn,_a=un;var Ia;function Sa(){if(Ia)return pa;Ia=1,pa.ConcatAsyncOperator=void 0;const t=$l(),n=ba,e=Xt;class r extends e.Subject{concatAsync(...e){return(0,t.applyChainingAsync)(this.subject,n.concatAsync,e)}}return pa.ConcatAsyncOperator=r,pa}ba.concatAsync=function(t,...n){return(0,_a.go)((function(){return Aa(this,arguments,(function*(){var e,r;for(const a of[t,...n])if((0,ga.isAsyncIterable)(a))try{for(var o,i=(e=void 0,ma(a));!(o=yield wa(i.next())).done;){const t=o.value;yield yield wa(t)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&(yield wa(r.call(i)))}finally{if(e)throw e.error}}else for(const t of a)yield yield wa(t)}))}))};var Oa={},xa={},Ta={},Ba=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Pa=Jt&&Jt.__await||function(t){return this instanceof Pa?(this.v=t,this):new Pa(t)},ja=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Pa?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ta.copyIterable=Ta.copyAsyncIterable=void 0,Ta.copyAsyncIterable=function(t){return ja(this,arguments,(function*(){var n,e;try{for(var r,o=Ba(t);!(r=yield Pa(o.next())).done;){const t=r.value;yield yield Pa(t)}}catch(t){n={error:t}}finally{try{r&&!r.done&&(e=o.return)&&(yield Pa(e.call(o)))}finally{if(n)throw n.error}}}))},Ta.copyIterable=function*(t){for(const n of t)yield n};var Ea=Jt&&Jt.__await||function(t){return this instanceof Ea?(this.v=t,this):new Ea(t)},ka=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Ea?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};xa.dropAsync=void 0;const Ca=un,Na=Ta,qa=na();var Da;xa.dropAsync=function(t,n){return(0,qa.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,qa.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Na.copyAsyncIterable)(t):(0,Ca.go)((function(){var e;return ka(this,arguments,(function*(){const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=yield Ea(r.next())),o||n<=0);)n--;for(;!o;)yield yield Ea(t),({value:t,done:o}=yield Ea(r.next()))}finally{o||(yield Ea(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))};var Fa={},Ra={},Ua=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Ma=Jt&&Jt.__await||function(t){return this instanceof Ma?(this.v=t,this):new Ma(t)},za=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Ma?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}},Va=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Ra.dropRightAsync=void 0;const La=un,Ga=Ta,Ja=na();function Wa(t){var n,e,r,o;return Ua(this,void 0,void 0,(function*(){const i=[];try{for(n=Va(t);!(e=yield n.next()).done;){const t=e.value;i.push(t)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))}var Za;Ra.dropRightAsync=function(t,n){return(0,Ja.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Ja.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Ga.copyAsyncIterable)(t):(0,La.go)((function(){return za(this,arguments,(function*(){const e=(yield Ma(Wa(t))).slice(0,-n);for(const t of e)yield yield Ma(t)}))}))};var Ya={},Ha={},Xa=Jt&&Jt.__await||function(t){return this instanceof Xa?(this.v=t,this):new Xa(t)},Ka=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Xa?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ha.dropUntilAsync=void 0;const Qa=Fn;var $a;function tc(){if($a)return Ya;$a=1,Ya.DropUntilAsyncOperator=void 0;const t=$l(),n=Xt,e=Ha;class r extends n.Subject{dropUntilAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.dropUntilAsync,n)}}return Ya.DropUntilAsyncOperator=r,Ya}Ha.dropUntilAsync=function(t,n){return(0,Qa.isAsyncIterable)(t)?function(t,n){var e;return Ka(this,arguments,(function*(){const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=yield Xa(r.next())),o||(yield Xa(n(t,i++)))););for(;!o;)yield yield Xa(t),({value:t,done:o}=yield Xa(r.next()))}finally{o||(yield Xa(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}(t,n):function(t,n){var e;return Ka(this,arguments,(function*(){const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||(yield Xa(n(t,i++)))););for(;!o;)yield yield Xa(t),({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))}(t,n)};var nc={},ec={},rc=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},oc=Jt&&Jt.__await||function(t){return this instanceof oc?(this.v=t,this):new oc(t)},ic=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof oc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};ec.filterAsync=void 0;const ac=Fn;var cc;function uc(){if(cc)return nc;cc=1,nc.FilterAsyncOperator=void 0;const t=$l(),n=Xt,e=ec;class r extends n.Subject{filterAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.filterAsync,n)}}return nc.FilterAsyncOperator=r,nc}ec.filterAsync=function(t,n){return(0,ac.isAsyncIterable)(t)?function(t,n){return ic(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=rc(t);!(i=yield oc(a.next())).done;){const t=i.value;(yield oc(n(t,o)))&&(yield yield oc(t)),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield oc(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return ic(this,arguments,(function*(){let e=0;for(const r of t)(yield oc(n(r,e)))&&(yield yield oc(r)),e++}))}(t,n)};var sc={},lc={},fc={},yc={},dc=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},hc=Jt&&Jt.__await||function(t){return this instanceof hc?(this.v=t,this):new hc(t)},vc=Jt&&Jt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:hc(t[r](n)),done:"return"===r}:o?o(n):n}:o}},pc=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof hc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};yc.flattenByAsync=void 0;const bc=Fn;function mc(t,n,e){return pc(this,arguments,(function*(){for(const r of t)wc(r)&&(yield hc(n(r,e)))?yield hc(yield*vc(dc(mc(r,n,e+1)))):yield yield hc(r)}))}function wc(t){return(0,bc.isIterable)(t)&&(0,bc.isntChar)(t)}yc.flattenByAsync=function(t,n){return(0,bc.isAsyncIterable)(t)?function(t,n){return pc(this,arguments,(function*(){var e,r;const o=1;try{for(var i,a=dc(t);!(i=yield hc(a.next())).done;){const t=i.value;wc(t)&&(yield hc(n(t,o)))?yield hc(yield*vc(dc(mc(t,n,o+1)))):yield yield hc(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield hc(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return mc(t,n,1)}(t,n)},fc.flattenDeepAsync=void 0;const Ac=yc,gc=na();fc.flattenDeepAsync=function(t,n=1/0){return(0,gc.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,gc.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Ac.flattenByAsync)(t,((t,e)=>e<=n))},lc.flattenAsync=void 0;const _c=fc;var Ic;lc.flattenAsync=function(t){return(0,_c.flattenDeepAsync)(t,1)};var Sc,Oc={};function xc(){if(Sc)return Oc;Sc=1,Oc.FlattenByAsync=void 0;const t=$l(),n=Xt,e=yc;class r extends n.Subject{flattenByAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.flattenByAsync,n)}}return Oc.FlattenByAsync=r,Oc}var Tc,Bc={};var Pc={},jc={},Ec=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},kc=Jt&&Jt.__await||function(t){return this instanceof kc?(this.v=t,this):new kc(t)},Cc=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof kc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};jc.mapAsync=void 0;const Nc=Fn;var qc;function Dc(){if(qc)return Pc;qc=1,Pc.MapAsyncOperator=void 0;const t=$l(),n=Xt,e=jc;class r extends n.Subject{mapAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.mapAsync,n)}}return Pc.MapAsyncOperator=r,Pc}jc.mapAsync=function(t,n){return(0,Nc.isAsyncIterable)(t)?function(t,n){return Cc(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Ec(t);!(i=yield kc(a.next())).done;){const t=i.value;yield yield kc(yield kc(n(t,o))),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield kc(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return Cc(this,arguments,(function*(){let e=0;for(const r of t)yield yield kc(yield kc(n(r,e))),e++}))}(t,n)};var Fc={},Rc={},Uc=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Mc=Jt&&Jt.__await||function(t){return this instanceof Mc?(this.v=t,this):new Mc(t)},zc=Jt&&Jt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:Mc(t[r](n)),done:"return"===r}:o?o(n):n}:o}},Vc=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Mc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Rc.repeatAsync=void 0;const Lc=un,Gc=na();var Jc;Rc.repeatAsync=function(t,n){return(0,Gc.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Gc.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Lc.go)((function(){return Vc(this,arguments,(function*(){var e,r;const o=[];if(n>0){try{for(var i,a=Uc(t);!(i=yield Mc(a.next())).done;){const t=i.value;yield yield Mc(t),o.push(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield Mc(r.call(a)))}finally{if(e)throw e.error}}n--}for(;n>0;)yield Mc(yield*zc(Uc(o))),n--}))}))};var Wc={},Zc={},Yc=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Hc=Jt&&Jt.__await||function(t){return this instanceof Hc?(this.v=t,this):new Hc(t)},Xc=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Hc?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Zc.sliceAsync=void 0;const Kc=un,Qc=na();var $c;Zc.sliceAsync=function(t,n,e=1/0){return(0,Qc.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Qc.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Qc.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Qc.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Kc.go)((function(){return Xc(this,arguments,(function*(){var r,o;let i=0;try{for(var a,c=Yc(t);!(a=yield Hc(c.next())).done;){const t=a.value;if(i>=e)break;i>=n&&(yield yield Hc(t)),i++}}catch(t){r={error:t}}finally{try{a&&!a.done&&(o=c.return)&&(yield Hc(o.call(c)))}finally{if(r)throw r.error}}}))}))};var tu,nu={},eu={},ru=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},ou=Jt&&Jt.__await||function(t){return this instanceof ou?(this.v=t,this):new ou(t)},iu=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ou?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};eu.splitAsync=void 0,eu.splitAsync=function(t,n){return iu(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=ru(t);!(i=yield ou(a.next())).done;){const t=i.value;t===n?(yield yield ou(o),o=[]):o.push(t)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield ou(r.call(a)))}finally{if(e)throw e.error}}yield yield ou(o)}))};var au={},cu={},uu=Jt&&Jt.__await||function(t){return this instanceof uu?(this.v=t,this):new uu(t)},su=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof uu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}},lu=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};cu.splitByAsync=void 0;const fu=Fn;var yu;function du(){if(yu)return au;yu=1,au.SplitByAsyncOperator=void 0;const t=$l(),n=Xt,e=cu;class r extends n.Subject{splitByAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.splitByAsync,n)}}return au.SplitByAsyncOperator=r,au}cu.splitByAsync=function(t,n){return(0,fu.isAsyncIterable)(t)?function(t,n){return su(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=lu(t);!(a=yield uu(c.next())).done;){const t=a.value;(yield uu(n(t,i)))?(yield yield uu(o),o=[]):o.push(t),i++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=c.return)&&(yield uu(r.call(c)))}finally{if(e)throw e.error}}yield yield uu(o)}))}(t,n):function(t,n){return su(this,arguments,(function*(){let e=[],r=0;for(const o of t)(yield uu(n(o,r)))?(yield yield uu(e),e=[]):e.push(o),r++;yield yield uu(e)}))}(t,n)};var hu={},vu={},pu=Jt&&Jt.__await||function(t){return this instanceof pu?(this.v=t,this):new pu(t)},bu=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},mu=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof pu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};vu.takeAsync=void 0;const wu=un,Au=na();var gu;vu.takeAsync=function(t,n){return(0,Au.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Au.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,wu.go)((function(){return mu(this,arguments,(function*(){var e,r;if(0===n)return yield pu(void 0);try{for(var o,i=bu(t);!(o=yield pu(i.next())).done;){const t=o.value;if(yield yield pu(t),0===--n)break}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=i.return)&&(yield pu(r.call(i)))}finally{if(e)throw e.error}}}))}))};var _u={},Iu={},Su=Jt&&Jt.__await||function(t){return this instanceof Su?(this.v=t,this):new Su(t)},Ou=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},xu=Jt&&Jt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:Su(t[r](n)),done:"return"===r}:o?o(n):n}:o}},Tu=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Su?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Iu.takeRightAsync=void 0;const Bu=un,Pu=na();var ju;Iu.takeRightAsync=function(t,n){return(0,Pu.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Pu.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Bu.go)((function(){var e;return Tu(this,arguments,(function*(){const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=yield Su(r.next())),!o;)t.push(i),t.length>n&&t.shift();yield Su(yield*xu(Ou(t)))}finally{o||(yield Su(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))};var Eu={},ku={},Cu=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Nu=Jt&&Jt.__await||function(t){return this instanceof Nu?(this.v=t,this):new Nu(t)},qu=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Nu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};ku.takeUntilAsync=void 0;const Du=Fn;var Fu;function Ru(){if(Fu)return Eu;Fu=1,Eu.TakeUntilAsyncOperator=void 0;const t=$l(),n=Xt,e=ku;class r extends n.Subject{takeUntilAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.takeUntilAsync,n)}}return Eu.TakeUntilAsyncOperator=r,Eu}ku.takeUntilAsync=function(t,n){return(0,Du.isAsyncIterable)(t)?function(t,n){return qu(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Cu(t);!(i=yield Nu(a.next())).done;){const t=i.value;if(yield Nu(n(t,o)))break;yield yield Nu(t),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield Nu(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return qu(this,arguments,(function*(){let e=0;for(const r of t){if(yield Nu(n(r,e)))break;yield yield Nu(r),e++}}))}(t,n)};var Uu={},Mu={},zu=Jt&&Jt.__await||function(t){return this instanceof zu?(this.v=t,this):new zu(t)},Vu=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof zu?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}},Lu=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Mu.tapAsync=void 0;const Gu=Fn;var Ju;function Wu(){if(Ju)return Uu;Ju=1,Uu.TapAsyncOperator=void 0;const t=$l(),n=Xt,e=Mu;class r extends n.Subject{tapAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.tapAsync,n)}}return Uu.TapAsyncOperator=r,Uu}Mu.tapAsync=function(t,n){return(0,Gu.isAsyncIterable)(t)?function(t,n){return Vu(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Lu(t);!(i=yield zu(a.next())).done;){const t=i.value;yield zu(n(t,o)),yield yield zu(t),o++}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=a.return)&&(yield zu(r.call(a)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return Vu(this,arguments,(function*(){let e=0;for(const r of t)yield zu(n(r,e)),yield yield zu(r),e++}))}(t,n)};var Zu,Yu={},Hu={},Xu=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},Ku=Jt&&Jt.__await||function(t){return this instanceof Ku?(this.v=t,this):new Ku(t)},Qu=Jt&&Jt.__asyncDelegator||function(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:Ku(t[r](n)),done:"return"===r}:o?o(n):n}:o}},$u=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof Ku?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};function ts(){if(Zu)return Yu;Zu=1,Yu.TransformAsyncOperator=void 0;const t=$l(),n=Xt,e=Hu;class r extends n.Subject{transformAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.transformAsync,n)}}return Yu.TransformAsyncOperator=r,Yu}Hu.transformAsync=void 0,Hu.transformAsync=function(t,n){return $u(this,arguments,(function*(){yield Ku(yield*Qu(Xu(n(t))))}))};var ns,es={},rs={},os=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},is=Jt&&Jt.__await||function(t){return this instanceof is?(this.v=t,this):new is(t)},as=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof is?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};rs.uniqAsync=void 0,rs.uniqAsync=function(t){return as(this,arguments,(function*(){var n,e;const r=new Set;try{for(var o,i=os(t);!(o=yield is(i.next())).done;){const t=o.value;r.has(t)||(yield yield is(t),r.add(t))}}catch(t){n={error:t}}finally{try{o&&!o.done&&(e=i.return)&&(yield is(e.call(i)))}finally{if(n)throw n.error}}}))};var cs={},us={},ss=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}},ls=Jt&&Jt.__await||function(t){return this instanceof ls?(this.v=t,this):new ls(t)},fs=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof ls?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};us.uniqByAsync=void 0;const ys=Fn;var ds;function hs(){if(ds)return cs;ds=1,cs.UniqByAsyncOperator=void 0;const t=$l(),n=Xt,e=us;class r extends n.Subject{uniqByAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.uniqByAsync,n)}}return cs.UniqByAsyncOperator=r,cs}us.uniqByAsync=function(t,n){return(0,ys.isAsyncIterable)(t)?function(t,n){return fs(this,arguments,(function*(){var e,r;const o=new Set;let i=0;try{for(var a,c=ss(t);!(a=yield ls(c.next())).done;){const t=a.value,e=yield ls(n(t,i));o.has(e)||(yield yield ls(t),o.add(e)),i++}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=c.return)&&(yield ls(r.call(c)))}finally{if(e)throw e.error}}}))}(t,n):function(t,n){return fs(this,arguments,(function*(){const e=new Set;let r=0;for(const o of t){const t=yield ls(n(o,r));e.has(t)||(yield yield ls(o),e.add(t)),r++}}))}(t,n)};var vs={},ps={},bs=Jt&&Jt.__await||function(t){return this instanceof bs?(this.v=t,this):new bs(t)},ms=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof bs?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};ps.zipAsync=void 0;const ws=Fn;var As,gs;function _s(){if(gs)return vs;gs=1,vs.ZipAsyncOperator=void 0;const t=$l(),n=Xt,e=ps;class r extends n.Subject{zipAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.zipAsync,n)}}return vs.ZipAsyncOperator=r,vs}!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(As||(As={})),ps.zipAsync=function(t,...n){return function(...t){var n,e,r,o;return ms(this,arguments,(function*(){const i=t.length,a=t.map((t=>(0,ws.isAsyncIterable)(t)?[As.Async,t[Symbol.asyncIterator]()]:[As.Sync,t[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===As.Async?yield bs(r.next()):r.next(),o.done)return c[n]=!0,yield bs(void 0);t[n]=o.value}yield yield bs(t)}}finally{const t=a.filter(((t,n)=>!c[n]));for(const[i,a]of t)i===As.Async?yield bs(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}))}(t,...n)};var Is,Ss={},Os={};function xs(){if(Is)return Ss;Is=1,Ss.ConsumeOperator=void 0;const t=$l(),n=Os,e=Xt;class r extends e.Subject{consume(...e){return(0,t.applyBinding)(this.subject,n.consume,e)}}return Ss.ConsumeOperator=r,Ss}Os.consume=void 0,Os.consume=function(t,n){return n(t)};var Ts={},Bs={},Ps=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},js=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Bs.eachAsync=void 0;const Es=Fn;var ks;function Cs(){if(ks)return Ts;ks=1,Ts.EachAsyncOperator=void 0;const t=$l(),n=Xt,e=Bs;class r extends n.Subject{eachAsync(...n){return(0,t.applyBinding)(this.subject,e.eachAsync,n)}}return Ts.EachAsyncOperator=r,Ts}Bs.eachAsync=function(t,n){return(0,Es.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return Ps(this,void 0,void 0,(function*(){let a=0;try{for(e=js(t);!(r=yield e.next()).done;){const t=r.value;yield n(t,a),a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(t,n):function(t,n){return Ps(this,void 0,void 0,(function*(){let e=0;for(const r of t)yield n(r,e),e++}))}(t,n)};var Ns={},qs={},Ds=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Fs=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};qs.everyAsync=void 0;const Rs=Fn;var Us;function Ms(){if(Us)return Ns;Us=1,Ns.EveryAsyncOperator=void 0;const t=$l(),n=Xt,e=qs;class r extends n.Subject{everyAsync(...n){return(0,t.applyBinding)(this.subject,e.everyAsync,n)}}return Ns.EveryAsyncOperator=r,Ns}qs.everyAsync=function(t,n){return(0,Rs.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return Ds(this,void 0,void 0,(function*(){let a=0;try{for(e=Fs(t);!(r=yield e.next()).done;){const t=r.value;if(!(yield n(t,a)))return!1;a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!0}))}(t,n):function(t,n){return Ds(this,void 0,void 0,(function*(){let e=0;for(const r of t){if(!(yield n(r,e)))return!1;e++}return!0}))}(t,n)};var zs={},Vs={},Ls=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Gs=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Vs.findAsync=void 0;const Js=Fn;var Ws;function Zs(){if(Ws)return zs;Ws=1,zs.FindAsyncOperator=void 0;const t=$l(),n=Xt,e=Vs;class r extends n.Subject{findAsync(...n){return(0,t.applyBinding)(this.subject,e.findAsync,n)}}return zs.FindAsyncOperator=r,zs}Vs.findAsync=function(t,n){return(0,Js.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return Ls(this,void 0,void 0,(function*(){let a=0;try{for(e=Gs(t);!(r=yield e.next()).done;){const t=r.value;if(yield n(t,a))return t;a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(t,n):function(t,n){return Ls(this,void 0,void 0,(function*(){let e=0;for(const r of t){if(yield n(r,e))return r;e++}}))}(t,n)};var Ys,Hs={},Xs={},Ks=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Qs=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Xs.firstAsync=void 0,Xs.firstAsync=function(t){var n,e,r,o;return Ks(this,void 0,void 0,(function*(){try{for(n=Qs(t);!(e=yield n.next()).done;){return e.value}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}}))};var $s,tl={},nl={},el=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},rl=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};nl.includesAsync=void 0,nl.includesAsync=function(t,n){var e,r,o,i;return el(this,void 0,void 0,(function*(){try{for(e=rl(t);!(r=yield e.next()).done;){if(r.value===n)return!0}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))};var ol,il={},al={},cl=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},ul=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};al.matchAsync=void 0,al.matchAsync=function(t,n){var e,r,o,i;return cl(this,void 0,void 0,(function*(){const a=n.length;let c=0;try{for(e=ul(t);!(r=yield e.next()).done;){if(r.value===n[c]&&c++,c===a)return!0}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))};var sl={},ll={},fl=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},yl=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};ll.reduceAsync=void 0;const dl=Fn;var hl;function vl(){if(hl)return sl;hl=1,sl.ReduceAsyncOperator=void 0;const t=$l(),n=Xt,e=ll;class r extends n.Subject{reduceAsync(...n){return(0,t.applyBinding)(this.subject,e.reduceAsync,n)}}return sl.ReduceAsyncOperator=r,sl}ll.reduceAsync=function(t,n,e){return(0,dl.isUndefined)(e)?function(t,n){return(0,dl.isAsyncIterable)(t)?e(t):r(t);function e(t){var e;return fl(this,void 0,void 0,(function*(){const r=t[Symbol.asyncIterator]();let o;try{let t,a=yield i(r),c=1;for(;({value:t,done:o}=yield r.next()),!o;)a=yield n(a,t,c++);return a}finally{o||(yield null===(e=r.return)||void 0===e?void 0:e.call(r))}function i(t){return fl(this,void 0,void 0,(function*(){const n=yield t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}))}}))}function r(t){var e;return fl(this,void 0,void 0,(function*(){const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=yield n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}))}}(t,n):function(t,n,e){return(0,dl.isAsyncIterable)(t)?o(t):r(t);function r(t){return fl(this,void 0,void 0,(function*(){let r=e,o=0;for(const e of t)r=yield n(r,e,o++);return r}))}function o(t){var r,o,i,a;return fl(this,void 0,void 0,(function*(){let c=e,u=0;try{for(r=yl(t);!(o=yield r.next()).done;){const t=o.value;c=yield n(c,t,u++)}}catch(t){i={error:t}}finally{try{o&&!o.done&&(a=r.return)&&(yield a.call(r))}finally{if(i)throw i.error}}return c}))}}(t,n,e)};var pl={},bl={},ml=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},wl=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};bl.someAsync=void 0;const Al=Fn;var gl;function _l(){if(gl)return pl;gl=1,pl.SomeAsyncOperator=void 0;const t=$l(),n=Xt,e=bl;class r extends n.Subject{someAsync(...n){return(0,t.applyBinding)(this.subject,e.someAsync,n)}}return pl.SomeAsyncOperator=r,pl}bl.someAsync=function(t,n){return(0,Al.isAsyncIterable)(t)?function(t,n){var e,r,o,i;return ml(this,void 0,void 0,(function*(){let a=0;try{for(e=wl(t);!(r=yield e.next()).done;){const t=r.value;if(yield n(t,a))return!0;a++}}catch(t){o={error:t}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))}(t,n):function(t,n){return ml(this,void 0,void 0,(function*(){let e=0;for(const r of t){if(yield n(r,e))return!0;e++}return!1}))}(t,n)};var Il,Sl={},Ol={},xl=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))};Ol.lastAsync=void 0,Ol.lastAsync=function(t){var n;return xl(this,void 0,void 0,(function*(){const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=yield e.next()),!r;)o=t;return o}finally{r||(yield null===(n=e.return)||void 0===n?void 0:n.call(e))}}))};var Tl={},Bl={},Pl=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},jl=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Bl.toArrayAsync=void 0;const El=Os;var kl;Bl.toArrayAsync=function(t){return(0,El.consume)(t,(t=>{var n,e;return Pl(this,void 0,void 0,(function*(){var r,o;const i=[];try{for(n=jl(t);!(e=yield n.next()).done;){const t=e.value;i.push(t)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))}))};var Cl={},Nl={},ql=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Dl=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};Nl.toSetAsync=void 0;const Fl=Os;var Rl;Nl.toSetAsync=function(t){return(0,Fl.consume)(t,(t=>{var n,e;return ql(this,void 0,void 0,(function*(){var r,o;const i=new Set;try{for(n=Dl(t);!(e=yield n.next()).done;){const t=e.value;i.add(t)}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))}))};var Ul,Ml={},zl={},Vl=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))},Ll=Jt&&Jt.__asyncValues||function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t="function"==typeof __values?__values(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}};zl.countAsync=void 0,zl.countAsync=function(t){var n,e,r,o;return Vl(this,void 0,void 0,(function*(){let i=0;try{for(n=Ll(t);!(e=yield n.next()).done;){e.value;i++}}catch(t){r={error:t}}finally{try{e&&!e.done&&(o=n.return)&&(yield o.call(n))}finally{if(r)throw r.error}}return i}))};var Gl={},Jl={},Wl=Jt&&Jt.__awaiter||function(t,n,e,r){return new(e||(e=Promise))((function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function c(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,c)}u((r=r.apply(t,n||[])).next())}))};Jl.groupByAsync=void 0;const Zl=Bs;var Yl,Hl,Xl;function Kl(){if(Yl)return Gl;Yl=1,Gl.GroupByAsyncOperator=void 0;const t=$l(),n=Jl,e=Xt;class r extends e.Subject{groupByAsync(...e){return(0,t.applyBinding)(this.subject,n.groupByAsync,e)}}return Gl.GroupByAsyncOperator=r,Gl}function Ql(){if(Hl)return nn;Hl=1,nn.AsyncIterableOperator=void 0;const t=Yt,n=en,e=function(){if(ca)return an;ca=1,an.ChunkAsyncOperator=void 0;const t=$l(),n=en,e=cn;class r extends n.AsyncIterableOperatorBase{chunkAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.chunkAsync,n)}}return an.ChunkAsyncOperator=r,an}(),r=va(),o=Sa(),i=function(){if(Da)return Oa;Da=1,Oa.DropAsyncOperator=void 0;const t=$l(),n=en,e=xa;class r extends n.AsyncIterableOperatorBase{dropAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.dropAsync,n)}}return Oa.DropAsyncOperator=r,Oa}(),a=function(){if(Za)return Fa;Za=1,Fa.DropRightAsyncOperator=void 0;const t=$l(),n=en,e=Ra;class r extends n.AsyncIterableOperatorBase{dropRightAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.dropRightAsync,n)}}return Fa.DropRightAsyncOperator=r,Fa}(),c=tc(),u=uc(),s=function(){if(Ic)return sc;Ic=1,sc.FlattenAsyncOperator=void 0;const t=$l(),n=en,e=lc;class r extends n.AsyncIterableOperatorBase{flattenAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.flattenAsync,n)}}return sc.FlattenAsyncOperator=r,sc}(),l=xc(),f=function(){if(Tc)return Bc;Tc=1,Bc.FlattenDeepAsyncOperator=void 0;const t=$l(),n=en,e=fc;class r extends n.AsyncIterableOperatorBase{flattenDeepAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.flattenDeepAsync,n)}}return Bc.FlattenDeepAsyncOperator=r,Bc}(),y=Dc(),d=function(){if(Jc)return Fc;Jc=1,Fc.RepeatAsyncOperator=void 0;const t=$l(),n=en,e=Rc;class r extends n.AsyncIterableOperatorBase{repeatAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.repeatAsync,n)}}return Fc.RepeatAsyncOperator=r,Fc}(),h=function(){if($c)return Wc;$c=1,Wc.SliceAsyncOperator=void 0;const t=$l(),n=en,e=Zc;class r extends n.AsyncIterableOperatorBase{sliceAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.sliceAsync,n)}}return Wc.SliceAsyncOperator=r,Wc}(),v=function(){if(tu)return nu;tu=1,nu.SplitAsyncOperator=void 0;const t=$l(),n=en,e=eu;class r extends n.AsyncIterableOperatorBase{splitAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.splitAsync,n)}}return nu.SplitAsyncOperator=r,nu}(),p=du(),b=function(){if(gu)return hu;gu=1,hu.TakeAsyncOperator=void 0;const t=$l(),n=en,e=vu;class r extends n.AsyncIterableOperatorBase{takeAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.takeAsync,n)}}return hu.TakeAsyncOperator=r,hu}(),m=function(){if(ju)return _u;ju=1,_u.TakeRightAsyncOperator=void 0;const t=$l(),n=en,e=Iu;class r extends n.AsyncIterableOperatorBase{takeRightAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.takeRightAsync,n)}}return _u.TakeRightAsyncOperator=r,_u}(),w=Ru(),A=Wu(),g=ts(),_=function(){if(ns)return es;ns=1,es.UniqAsyncOperator=void 0;const t=$l(),n=en,e=rs;class r extends n.AsyncIterableOperatorBase{uniqAsync(...n){return(0,t.applyChainingAsync)(this.subject,e.uniqAsync,n)}}return es.UniqAsyncOperator=r,es}(),I=hs(),S=_s(),O=xs(),x=Cs(),T=Ms(),B=Zs(),P=function(){if(Ys)return Hs;Ys=1,Hs.FirstAsyncOperator=void 0;const t=$l(),n=en,e=Xs;class r extends n.AsyncIterableOperatorBase{firstAsync(...n){return(0,t.applyBinding)(this.subject,e.firstAsync,n)}}return Hs.FirstAsyncOperator=r,Hs}(),j=function(){if($s)return tl;$s=1,tl.IncludesAsyncOperator=void 0;const t=$l(),n=en,e=nl;class r extends n.AsyncIterableOperatorBase{includesAsync(...n){return(0,t.applyBinding)(this.subject,e.includesAsync,n)}}return tl.IncludesAsyncOperator=r,tl}(),E=function(){if(ol)return il;ol=1,il.MatchAsyncOperator=void 0;const t=$l(),n=en,e=al;class r extends n.AsyncIterableOperatorBase{matchAsync(...n){return(0,t.applyBinding)(this.subject,e.matchAsync,n)}}return il.MatchAsyncOperator=r,il}(),k=vl(),C=_l(),N=function(){if(Il)return Sl;Il=1,Sl.LastAsyncOperator=void 0;const t=$l(),n=en,e=Ol;class r extends n.AsyncIterableOperatorBase{lastAsync(...n){return(0,t.applyBinding)(this.subject,e.lastAsync,n)}}return Sl.LastAsyncOperator=r,Sl}(),q=function(){if(kl)return Tl;kl=1,Tl.ToArrayAsyncOperator=void 0;const t=$l(),n=en,e=Bl;class r extends n.AsyncIterableOperatorBase{toArrayAsync(...n){return(0,t.applyBinding)(this.subject,e.toArrayAsync,n)}}return Tl.ToArrayAsyncOperator=r,Tl}(),D=function(){if(Rl)return Cl;Rl=1,Cl.ToSetAsyncOperator=void 0;const t=$l(),n=en,e=Nl;class r extends n.AsyncIterableOperatorBase{toSetAsync(...n){return(0,t.applyBinding)(this.subject,e.toSetAsync,n)}}return Cl.ToSetAsyncOperator=r,Cl}(),F=function(){if(Ul)return Ml;Ul=1,Ml.CountAsyncOperator=void 0;const t=$l(),n=zl,e=en;class r extends e.AsyncIterableOperatorBase{countAsync(...e){return(0,t.applyBinding)(this.subject,n.countAsync,e)}}return Ml.CountAsyncOperator=r,Ml}(),R=Kl();class U extends n.AsyncIterableOperatorBase{}return nn.AsyncIterableOperator=U,(0,t.mixinDecorators)(U,[e.ChunkAsyncOperator,r.ChunkByAsyncOperator,o.ConcatAsyncOperator,i.DropAsyncOperator,a.DropRightAsyncOperator,c.DropUntilAsyncOperator,u.FilterAsyncOperator,s.FlattenAsyncOperator,l.FlattenByAsync,f.FlattenDeepAsyncOperator,y.MapAsyncOperator,d.RepeatAsyncOperator,h.SliceAsyncOperator,v.SplitAsyncOperator,p.SplitByAsyncOperator,b.TakeAsyncOperator,m.TakeRightAsyncOperator,w.TakeUntilAsyncOperator,A.TapAsyncOperator,g.TransformAsyncOperator,_.UniqAsyncOperator,I.UniqByAsyncOperator,S.ZipAsyncOperator,O.ConsumeOperator,x.EachAsyncOperator,T.EveryAsyncOperator,B.FindAsyncOperator,P.FirstAsyncOperator,j.IncludesAsyncOperator,E.MatchAsyncOperator,k.ReduceAsyncOperator,C.SomeAsyncOperator,N.LastAsyncOperator,q.ToArrayAsyncOperator,D.ToSetAsyncOperator,F.CountAsyncOperator,R.GroupByAsyncOperator]),nn}function $l(){if(Xl)return tn;Xl=1,tn.applyChainingAsync=tn.applyChaining=tn.applyBinding=tn.getPipelineProxy=void 0;const t=kd(),n=Ql();return tn.getPipelineProxy=function(t,n){return(...e)=>t(...e,...n)},tn.applyBinding=function(t,n,e){return n(t,...e)},tn.applyChaining=function(n,e,r){return new t.IterableOperator(e(n,...r))},tn.applyChainingAsync=function(t,e,r){return new n.AsyncIterableOperator(e(t,...r))},tn}Jl.groupByAsync=function(t,n){return Wl(this,void 0,void 0,(function*(){const e=new Map;return yield(0,Zl.eachAsync)(t,((t,r)=>Wl(this,void 0,void 0,(function*(){const o=yield n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})))),e}))};var tf,nf={};nf.chunkBy=void 0,nf.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var ef={},rf={chunk:void 0};const of=un,af=na();var cf;rf.chunk=function(t,n){return(0,af.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,af.assert)(n>0,"The parameter size must be greater than 0"),(0,of.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var uf={},sf={concat:void 0};const lf=un;var ff;sf.concat=function(t,...n){return(0,lf.go)((function*(){for(const e of[t,...n])yield*e}))};var yf={},df={dropRight:void 0};const hf=un,vf=Ta,pf=na();var bf;df.dropRight=function(t,n){return(0,pf.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,pf.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,vf.copyIterable)(t):(0,hf.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var mf,wf={},Af={};Af.dropUntil=void 0,Af.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var gf={},_f={drop:void 0};const If=un,Sf=Ta,Of=na();var xf;_f.drop=function(t,n){return(0,Of.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Of.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Sf.copyIterable)(t):(0,If.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Tf,Bf={},Pf={};Pf.filter=void 0,Pf.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var jf={},Ef={flattenBy:void 0};const kf=Fn;function*Cf(t,n,e){for(const o of t)(0,kf.isIterable)(r=o)&&(0,kf.isntChar)(r)&&n(o,e)?yield*Cf(o,n,e+1):yield o;var r}var Nf;Ef.flattenBy=function(t,n){return Cf(t,n,1)};var qf={},Df={flattenDeep:void 0};const Ff=Ef,Rf=na();var Uf;Df.flattenDeep=function(t,n=1/0){return(0,Rf.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Rf.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Ff.flattenBy)(t,((t,e)=>e<=n))};var Mf={},zf={flatten:void 0};const Vf=Df;var Lf;zf.flatten=function(t){return(0,Vf.flattenDeep)(t,1)};var Gf,Jf={},Wf={};Wf.map=void 0,Wf.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Zf={},Yf={repeat:void 0};const Hf=un,Xf=na();var Kf;Yf.repeat=function(t,n){return(0,Xf.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Xf.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Hf.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Qf={},$f={slice:void 0};const ty=un,ny=na();var ey;$f.slice=function(t,n,e=1/0){return(0,ny.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,ny.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,ny.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,ny.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,ty.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var ry,oy={},iy={};iy.splitBy=void 0,iy.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var ay,cy={},uy={};uy.split=void 0,uy.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var sy={},ly={takeRight:void 0};const fy=un,yy=na();var dy;ly.takeRight=function(t,n){return(0,yy.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,yy.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,fy.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var hy,vy={},py={};py.takeUntil=void 0,py.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var by={},my={take:void 0};const wy=un,Ay=na();var gy;my.take=function(t,n){return(0,Ay.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Ay.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,wy.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var _y,Iy={},Sy={};Sy.tap=void 0,Sy.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Oy,xy={},Ty={},By=Jt&&Jt.__await||function(t){return this instanceof By?(this.v=t,this):new By(t)},Py=Jt&&Jt.__asyncGenerator||function(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof By?Promise.resolve(e.value.v).then(u,s):l(i[0][2],e)}catch(t){l(i[0][3],t)}var e}function u(t){c("next",t)}function s(t){c("throw",t)}function l(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ty.toAsyncIterable=void 0,Ty.toAsyncIterable=function(t){return Py(this,arguments,(function*(){for(const n of t)yield yield By(n)}))};var jy,Ey={},ky={};ky.transform=void 0,ky.transform=function*(t,n){yield*n(t)};var Cy,Ny={},qy={};qy.uniqBy=void 0,qy.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var Dy,Fy={},Ry={};Ry.uniq=void 0,Ry.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var Uy,My={},zy={};zy.zip=void 0,zy.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)};var Vy,Ly={},Gy={};Gy.each=void 0,Gy.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Jy,Wy={},Zy={};Zy.every=void 0,Zy.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Yy,Hy={},Xy={};Xy.find=void 0,Xy.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var Ky,Qy={},$y={};$y.first=void 0,$y.first=function(t){for(const n of t)return n};var td,nd={},ed={};ed.includes=void 0,ed.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var rd,od={},id={};id.match=void 0,id.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var ad={},cd={reduce:void 0};const ud=Fn;var sd;cd.reduce=function(t,n,e){return(0,ud.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var ld,fd={},yd={};yd.some=void 0,yd.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var dd,hd={},vd={};vd.last=void 0,vd.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var pd={},bd={toArray:void 0};const md=Os;var wd;bd.toArray=function(t){return(0,md.consume)(t,(t=>Array.from(t)))};var Ad={},gd={toSet:void 0};const _d=Os;var Id;gd.toSet=function(t){return(0,_d.consume)(t,(t=>new Set(t)))};var Sd,Od={},xd={};xd.count=void 0,xd.count=function(t){let n=0;for(const e of t)n++;return n};var Td={},Bd={groupBy:void 0};const Pd=Gy;var jd,Ed;function kd(){if(Ed)return Zt;Ed=1,Zt.IterableOperator=void 0;const t=Yt,n=Ht,e=function(){if(tf)return $t;tf=1,$t.ChunkByOperator=void 0;const t=$l(),n=nf,e=Ht;class r extends e.IterableOperatorBase{chunkBy(...e){return(0,t.applyChaining)(this.subject,n.chunkBy,e)}}return $t.ChunkByOperator=r,$t}(),r=function(){if(cf)return ef;cf=1,ef.ChunkOperator=void 0;const t=$l(),n=rf,e=Ht;class r extends e.IterableOperatorBase{chunk(...e){return(0,t.applyChaining)(this.subject,n.chunk,e)}}return ef.ChunkOperator=r,ef}(),o=function(){if(ff)return uf;ff=1,uf.ConcatOperator=void 0;const t=$l(),n=sf,e=Ht;class r extends e.IterableOperatorBase{concat(...e){return(0,t.applyChaining)(this.subject,n.concat,e)}}return uf.ConcatOperator=r,uf}(),i=function(){if(bf)return yf;bf=1,yf.DropRightOperator=void 0;const t=$l(),n=df,e=Ht;class r extends e.IterableOperatorBase{dropRight(...e){return(0,t.applyChaining)(this.subject,n.dropRight,e)}}return yf.DropRightOperator=r,yf}(),a=function(){if(mf)return wf;mf=1,wf.DropUntilOperator=void 0;const t=$l(),n=Af,e=Ht;class r extends e.IterableOperatorBase{dropUntil(...e){return(0,t.applyChaining)(this.subject,n.dropUntil,e)}}return wf.DropUntilOperator=r,wf}(),c=function(){if(xf)return gf;xf=1,gf.DropOperator=void 0;const t=$l(),n=_f,e=Ht;class r extends e.IterableOperatorBase{drop(...e){return(0,t.applyChaining)(this.subject,n.drop,e)}}return gf.DropOperator=r,gf}(),u=function(){if(Tf)return Bf;Tf=1,Bf.FilterOperator=void 0;const t=$l(),n=Pf,e=Ht;class r extends e.IterableOperatorBase{filter(...e){return(0,t.applyChaining)(this.subject,n.filter,e)}}return Bf.FilterOperator=r,Bf}(),s=function(){if(Nf)return jf;Nf=1,jf.FlattenByOperator=void 0;const t=$l(),n=Ef,e=Ht;class r extends e.IterableOperatorBase{flattenBy(...e){return(0,t.applyChaining)(this.subject,n.flattenBy,e)}}return jf.FlattenByOperator=r,jf}(),l=function(){if(Uf)return qf;Uf=1,qf.FlattenDeepOperator=void 0;const t=$l(),n=Df,e=Ht;class r extends e.IterableOperatorBase{flattenDeep(...e){return(0,t.applyChaining)(this.subject,n.flattenDeep,e)}}return qf.FlattenDeepOperator=r,qf}(),f=function(){if(Lf)return Mf;Lf=1,Mf.FlattenOperator=void 0;const t=$l(),n=zf,e=Ht;class r extends e.IterableOperatorBase{flatten(...e){return(0,t.applyChaining)(this.subject,n.flatten,e)}}return Mf.FlattenOperator=r,Mf}(),y=function(){if(Gf)return Jf;Gf=1,Jf.MapOperator=void 0;const t=$l(),n=Wf,e=Ht;class r extends e.IterableOperatorBase{map(...e){return(0,t.applyChaining)(this.subject,n.map,e)}}return Jf.MapOperator=r,Jf}(),d=function(){if(Kf)return Zf;Kf=1,Zf.RepeatOperator=void 0;const t=$l(),n=Yf,e=Ht;class r extends e.IterableOperatorBase{repeat(...e){return(0,t.applyChaining)(this.subject,n.repeat,e)}}return Zf.RepeatOperator=r,Zf}(),h=function(){if(ey)return Qf;ey=1,Qf.SliceOperator=void 0;const t=$l(),n=$f,e=Ht;class r extends e.IterableOperatorBase{slice(...e){return(0,t.applyChaining)(this.subject,n.slice,e)}}return Qf.SliceOperator=r,Qf}(),v=function(){if(ry)return oy;ry=1,oy.SplitByOperator=void 0;const t=$l(),n=iy,e=Ht;class r extends e.IterableOperatorBase{splitBy(...e){return(0,t.applyChaining)(this.subject,n.splitBy,e)}}return oy.SplitByOperator=r,oy}(),p=function(){if(ay)return cy;ay=1,cy.SplitOperator=void 0;const t=$l(),n=uy,e=Ht;class r extends e.IterableOperatorBase{split(...e){return(0,t.applyChaining)(this.subject,n.split,e)}}return cy.SplitOperator=r,cy}(),b=function(){if(dy)return sy;dy=1,sy.TakeRightOperator=void 0;const t=$l(),n=ly,e=Ht;class r extends e.IterableOperatorBase{takeRight(...e){return(0,t.applyChaining)(this.subject,n.takeRight,e)}}return sy.TakeRightOperator=r,sy}(),m=function(){if(hy)return vy;hy=1,vy.TakeUntilOperator=void 0;const t=$l(),n=py,e=Ht;class r extends e.IterableOperatorBase{takeUntil(...e){return(0,t.applyChaining)(this.subject,n.takeUntil,e)}}return vy.TakeUntilOperator=r,vy}(),w=function(){if(gy)return by;gy=1,by.TakeOperator=void 0;const t=$l(),n=my,e=Ht;class r extends e.IterableOperatorBase{take(...e){return(0,t.applyChaining)(this.subject,n.take,e)}}return by.TakeOperator=r,by}(),A=function(){if(_y)return Iy;_y=1,Iy.TapOperator=void 0;const t=$l(),n=Sy,e=Ht;class r extends e.IterableOperatorBase{tap(...e){return(0,t.applyChaining)(this.subject,n.tap,e)}}return Iy.TapOperator=r,Iy}(),g=function(){if(Oy)return xy;Oy=1,xy.ToAsyncIterableOperator=void 0;const t=$l(),n=Ht,e=Ty;class r extends n.IterableOperatorBase{toAsyncIterable(...n){return(0,t.applyChainingAsync)(this.subject,e.toAsyncIterable,n)}}return xy.ToAsyncIterableOperator=r,xy}(),_=ts(),I=function(){if(jy)return Ey;jy=1,Ey.TransformOperator=void 0;const t=$l(),n=ky,e=Ht;class r extends e.IterableOperatorBase{transform(...e){return(0,t.applyChaining)(this.subject,n.transform,e)}}return Ey.TransformOperator=r,Ey}(),S=function(){if(Cy)return Ny;Cy=1,Ny.UniqByOperator=void 0;const t=$l(),n=qy,e=Ht;class r extends e.IterableOperatorBase{uniqBy(...e){return(0,t.applyChaining)(this.subject,n.uniqBy,e)}}return Ny.UniqByOperator=r,Ny}(),O=function(){if(Dy)return Fy;Dy=1,Fy.UniqOperator=void 0;const t=$l(),n=Ry,e=Ht;class r extends e.IterableOperatorBase{uniq(...e){return(0,t.applyChaining)(this.subject,n.uniq,e)}}return Fy.UniqOperator=r,Fy}(),x=function(){if(Uy)return My;Uy=1,My.ZipOperator=void 0;const t=$l(),n=zy,e=Ht;class r extends e.IterableOperatorBase{zip(...e){return(0,t.applyChaining)(this.subject,n.zip,e)}}return My.ZipOperator=r,My}(),T=va(),B=Sa(),P=tc(),j=uc(),E=xc(),k=Dc(),C=du(),N=Ru(),q=Wu(),D=hs(),F=_s(),R=xs(),U=function(){if(Vy)return Ly;Vy=1,Ly.EachOperator=void 0;const t=$l(),n=Gy,e=Ht;class r extends e.IterableOperatorBase{each(...e){return(0,t.applyBinding)(this.subject,n.each,e)}}return Ly.EachOperator=r,Ly}(),M=function(){if(Jy)return Wy;Jy=1,Wy.EveryOperator=void 0;const t=$l(),n=Zy,e=Ht;class r extends e.IterableOperatorBase{every(...e){return(0,t.applyBinding)(this.subject,n.every,e)}}return Wy.EveryOperator=r,Wy}(),z=function(){if(Yy)return Hy;Yy=1,Hy.FindOperator=void 0;const t=$l(),n=Xy,e=Ht;class r extends e.IterableOperatorBase{find(...e){return(0,t.applyBinding)(this.subject,n.find,e)}}return Hy.FindOperator=r,Hy}(),V=function(){if(Ky)return Qy;Ky=1,Qy.FirstOperator=void 0;const t=$l(),n=$y,e=Ht;class r extends e.IterableOperatorBase{first(...e){return(0,t.applyBinding)(this.subject,n.first,e)}}return Qy.FirstOperator=r,Qy}(),L=function(){if(td)return nd;td=1,nd.IncludesOperator=void 0;const t=$l(),n=ed,e=Ht;class r extends e.IterableOperatorBase{includes(...e){return(0,t.applyBinding)(this.subject,n.includes,e)}}return nd.IncludesOperator=r,nd}(),G=function(){if(rd)return od;rd=1,od.MatchOperator=void 0;const t=$l(),n=id,e=Ht;class r extends e.IterableOperatorBase{match(...e){return(0,t.applyBinding)(this.subject,n.match,e)}}return od.MatchOperator=r,od}(),J=function(){if(sd)return ad;sd=1,ad.ReduceOperator=void 0;const t=$l(),n=cd,e=Ht;class r extends e.IterableOperatorBase{reduce(...e){return(0,t.applyBinding)(this.subject,n.reduce,e)}}return ad.ReduceOperator=r,ad}(),W=function(){if(ld)return fd;ld=1,fd.SomeOperator=void 0;const t=$l(),n=yd,e=Ht;class r extends e.IterableOperatorBase{some(...e){return(0,t.applyBinding)(this.subject,n.some,e)}}return fd.SomeOperator=r,fd}(),Z=function(){if(dd)return hd;dd=1,hd.LastOperator=void 0;const t=$l(),n=vd,e=Ht;class r extends e.IterableOperatorBase{last(...e){return(0,t.applyBinding)(this.subject,n.last,e)}}return hd.LastOperator=r,hd}(),Y=function(){if(wd)return pd;wd=1,pd.ToArrayOperator=void 0;const t=$l(),n=bd,e=Ht;class r extends e.IterableOperatorBase{toArray(...e){return(0,t.applyBinding)(this.subject,n.toArray,e)}}return pd.ToArrayOperator=r,pd}(),H=function(){if(Id)return Ad;Id=1,Ad.ToSetOperator=void 0;const t=$l(),n=gd,e=Ht;class r extends e.IterableOperatorBase{toSet(...e){return(0,t.applyBinding)(this.subject,n.toSet,e)}}return Ad.ToSetOperator=r,Ad}(),X=function(){if(Sd)return Od;Sd=1,Od.CountOperator=void 0;const t=$l(),n=xd,e=Ht;class r extends e.IterableOperatorBase{count(...e){return(0,t.applyBinding)(this.subject,n.count,e)}}return Od.CountOperator=r,Od}(),K=function(){if(jd)return Td;jd=1,Td.GroupByOperator=void 0;const t=$l(),n=Bd,e=Ht;class r extends e.IterableOperatorBase{groupBy(...e){return(0,t.applyBinding)(this.subject,n.groupBy,e)}}return Td.GroupByOperator=r,Td}(),Q=Cs(),$=Ms(),tt=Zs(),nt=vl(),et=_l(),rt=Kl();class ot extends n.IterableOperatorBase{}return Zt.IterableOperator=ot,(0,t.mixinDecorators)(ot,[r.ChunkOperator,e.ChunkByOperator,o.ConcatOperator,i.DropRightOperator,a.DropUntilOperator,c.DropOperator,u.FilterOperator,s.FlattenByOperator,l.FlattenDeepOperator,f.FlattenOperator,y.MapOperator,d.RepeatOperator,h.SliceOperator,v.SplitByOperator,p.SplitOperator,b.TakeRightOperator,m.TakeUntilOperator,w.TakeOperator,A.TapOperator,I.TransformOperator,S.UniqByOperator,O.UniqOperator,x.ZipOperator,T.ChunkByAsyncOperator,B.ConcatAsyncOperator,P.DropUntilAsyncOperator,j.FilterAsyncOperator,E.FlattenByAsync,k.MapAsyncOperator,C.SplitByAsyncOperator,N.TakeUntilAsyncOperator,q.TapAsyncOperator,g.ToAsyncIterableOperator,_.TransformAsyncOperator,D.UniqByAsyncOperator,F.ZipAsyncOperator,R.ConsumeOperator,U.EachOperator,M.EveryOperator,z.FindOperator,V.FirstOperator,L.IncludesOperator,G.MatchOperator,J.ReduceOperator,W.SomeOperator,Z.LastOperator,Y.ToArrayOperator,H.ToSetOperator,X.CountOperator,K.GroupByOperator,Q.EachAsyncOperator,$.EveryAsyncOperator,tt.FindAsyncOperator,nt.ReduceAsyncOperator,et.SomeAsyncOperator,rt.GroupByAsyncOperator]),Zt}Bd.groupBy=function(t,n){const e=new Map;return(0,Pd.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var n=Jt&&Jt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Jt&&Jt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(kd(),t),e(Ql(),t)}(Wt);const Cd=new Set,Nd=new Set;let qd=!1,Dd=!1;t.observeAdditionOfDescendantNodes=function(t){return Gt(t,{childList:!0,subtree:!0}).pipe(Ct((t=>new Wt.IterableOperator(t).map((t=>t.addedNodes)).flatten().toArray())),Lt((t=>t.length>0)))},t.observeRemovalOfDescendantNodes=function(t){return Gt(t,{childList:!0,subtree:!0}).pipe(Ct((t=>new Wt.IterableOperator(t).map((t=>t.removedNodes)).flatten().toArray())),Lt((t=>t.length>0)))},t.observeStateChanges=function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=dt(t),r=ht(t,1/0),o=t;return o.length?1===o.length?Ot(o[0]):Ft(r)(kt(o,e)):ft}(new N((t=>(qd||function(){const t=history.pushState;history.pushState=function(...n){Reflect.apply(t,this,n),Cd.forEach((t=>t.next()))},qd=!0}(),Cd.add(t),()=>Cd.delete(t)))),new N((t=>(Dd||function(){const t=history.replaceState;history.replaceState=function(...n){Reflect.apply(t,this,n),Nd.forEach((t=>t.next()))},Dd=!0}(),Nd.add(t),()=>Nd.delete(t)))),zt(window,"popstate")).pipe(Ct((t=>{})))},t.observeUrlChanges=function(){let t=document.URL;return(n?V(n):L).pipe(Lt((()=>t!==document.URL)),function(t,n,e){var r=f(t)||n||e?{next:t,error:n,complete:e}:t;return r?F((function(t,n){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;t.subscribe(R(n,(function(t){var e;null===(e=r.next)||void 0===e||e.call(r,t),n.next(t)}),(function(){var t;o=!1,null===(t=r.complete)||void 0===t||t.call(r),n.complete()}),(function(t){var e;o=!1,null===(e=r.error)||void 0===e||e.call(r,t),n.error(t)}),(function(){var t,n;o&&(null===(t=r.unsubscribe)||void 0===t||t.call(r)),null===(n=r.finalize)||void 0===n||n.call(r)})))})):k}((()=>t=document.URL)),Ct((()=>{})));var n},Object.defineProperty(t,"__esModule",{value:!0})}));
15
+ ***************************************************************************** */var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])})(t,e)};function e(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function r(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,c)}s((r=r.apply(t,n||[])).next())}))}function o(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(t,u)}catch(t){i=[6,t],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}function i(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function c(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function s(t){return this instanceof s?(this.v=t,this):new s(t)}function a(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||c(t,n)}))})}function c(t,n){try{(e=o[t](n)).value instanceof s?Promise.resolve(e.value.v).then(a,l):f(i[0][2],e)}catch(t){f(i[0][3],t)}var e}function a(t){c("next",t)}function l(t){c("throw",t)}function f(t,n){t(n),i.shift(),i.length&&c(i[0][0],i[0][1])}}function l(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=i(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function f(t){return"function"==typeof t}function d(t){var n=t((function(t){Error.call(t),t.stack=(new Error).stack}));return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var y=d((function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}}));function v(t,n){if(t){var e=t.indexOf(n);0<=e&&t.splice(e,1)}}var h=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var n;return t.prototype.unsubscribe=function(){var t,n,e,r,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=i(s),l=a.next();!l.done;l=a.next()){l.value.remove(this)}}catch(n){t={error:n}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var d=this.initialTeardown;if(f(d))try{d()}catch(t){o=t instanceof y?t.errors:[t]}var v=this._finalizers;if(v){this._finalizers=null;try{for(var h=i(v),p=h.next();!p.done;p=h.next()){var b=p.value;try{m(b)}catch(t){o=null!=o?o:[],t instanceof y?o=c(c([],u(o)),u(t.errors)):o.push(t)}}}catch(t){e={error:t}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}}if(o)throw new y(o)}},t.prototype.add=function(n){var e;if(n&&n!==this)if(this.closed)m(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}},t.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},t.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},t.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&v(n,t)},t.prototype.remove=function(n){var e=this._finalizers;e&&v(e,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t}(),p=h.EMPTY;function b(t){return t instanceof h||t&&"closed"in t&&f(t.remove)&&f(t.add)&&f(t.unsubscribe)}function m(t){f(t)?t():t.unsubscribe()}var w={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},g=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setTimeout.apply(void 0,c([t,n],u(e)))};function _(t){g((function(){throw t}))}function A(){}function x(t){t()}var S=function(t){function n(n){var e=t.call(this)||this;return e.isStopped=!1,n?(e.destination=n,b(n)&&n.add(e)):e.destination=P,e}return e(n,t),n.create=function(t,n,e){return new j(t,n,e)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(h),I=Function.prototype.bind;function O(t,n){return I.call(t,n)}var E=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){T(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){T(t)}else T(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){T(t)}},t}(),j=function(t){function n(n,e,r){var o,i,u=t.call(this)||this;f(n)||!n?o={next:null!=n?n:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:u&&w.useDeprecatedNextContext?((i=Object.create(n)).unsubscribe=function(){return u.unsubscribe()},o={next:n.next&&O(n.next,i),error:n.error&&O(n.error,i),complete:n.complete&&O(n.complete,i)}):o=n;return u.destination=new E(o),u}return e(n,t),n}(S);function T(t){_(t)}var P={closed:!0,next:A,error:function(t){throw t},complete:A},N="function"==typeof Symbol&&Symbol.observable||"@@observable";function k(t){return t}function B(t){return 0===t.length?k:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}var q=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var e=new t;return e.source=this,e.operator=n,e},t.prototype.subscribe=function(t,n,e){var r,o=this,i=(r=t)&&r instanceof S||function(t){return t&&f(t.next)&&f(t.error)&&f(t.complete)}(r)&&b(r)?t:new j(t,n,e);return x((function(){var t=o,n=t.operator,e=t.source;i.add(n?n.call(i,e):e?o._subscribe(i):o._trySubscribe(i))})),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var e=this;return new(n=C(n))((function(n,r){var o=new j({next:function(n){try{t(n)}catch(t){r(t),o.unsubscribe()}},error:r,complete:n});e.subscribe(o)}))},t.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},t.prototype[N]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return B(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=C(t))((function(t,e){var r;n.subscribe((function(t){return r=t}),(function(t){return e(t)}),(function(){return t(r)}))}))},t.create=function(n){return new t(n)},t}();function C(t){var n;return null!==(n=null!=t?t:w.Promise)&&void 0!==n?n:Promise}function F(t){return f(null==t?void 0:t.lift)}function M(t){return function(n){if(F(n))return n.lift((function(n){try{return t(n,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")}}function R(t,n,e,r,o){return new U(t,n,e,r,o)}var U=function(t){function n(n,e,r,o,i,u){var c=t.call(this,n)||this;return c.onFinalize=i,c.shouldUnsubscribe=u,c._next=e?function(t){try{e(t)}catch(t){n.error(t)}}:t.prototype._next,c._error=o?function(t){try{o(t)}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=r?function(){try{r()}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e(n,t),n.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var e=this.closed;t.prototype.unsubscribe.call(this),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}},n}(S);!function(t){function n(n,e){var r=t.call(this)||this;return r.source=n,r.subjectFactory=e,r._subject=null,r._refCount=0,r._connection=null,F(n)&&(r.lift=n.lift),r}e(n,t),n.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},n.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},n.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},n.prototype.connect=function(){var t=this,n=this._connection;if(!n){n=this._connection=new h;var e=this.getSubject();n.add(this.source.subscribe(R(e,void 0,(function(){t._teardown(),e.complete()}),(function(n){t._teardown(),e.error(n)}),(function(){return t._teardown()})))),n.closed&&(this._connection=null,n=h.EMPTY)}return n},n.prototype.refCount=function(){return M((function(t,n){var e=null;t._refCount++;var r=R(n,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)e=null;else{var r=t._connection,o=e;e=null,!r||o&&r!==o||r.unsubscribe(),n.unsubscribe()}}));t.subscribe(r),r.closed||(e=t.connect())}))(this)}}(q);var D={now:function(){return(D.delegate||performance).now()},delegate:void 0},z={schedule:function(t){var n=requestAnimationFrame,e=cancelAnimationFrame,r=n((function(n){e=void 0,t(n)}));return new h((function(){return null==e?void 0:e(r)}))},requestAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=z.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],u(t)))},cancelAnimationFrame:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return cancelAnimationFrame.apply(void 0,c([],u(t)))},delegate:void 0};function L(t){var n=z.schedule;return new q((function(e){var r=new h,o=t||D,i=o.now(),u=function(c){var s=o.now();e.next({timestamp:t?s:c,elapsed:s-i}),e.closed||r.add(n(u))};return r.add(n(u)),r}))}var J=L(),V=d((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),W=function(t){function n(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return e(n,t),n.prototype.lift=function(t){var n=new Y(this,this);return n.operator=t,n},n.prototype._throwIfClosed=function(){if(this.closed)throw new V},n.prototype.next=function(t){var n=this;x((function(){var e,r;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=i(n.currentObservers),u=o.next();!u.done;u=o.next()){u.value.next(t)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}}}))},n.prototype.error=function(t){var n=this;x((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}}))},n.prototype.complete=function(){var t=this;x((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var n=this,e=this,r=e.hasError,o=e.isStopped,i=e.observers;return r||o?p:(this.currentObservers=null,i.push(t),new h((function(){n.currentObservers=null,v(i,t)})))},n.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n.thrownError,o=n.isStopped;e?t.error(r):o&&t.complete()},n.prototype.asObservable=function(){var t=new q;return t.source=this,t},n.create=function(t,n){return new Y(t,n)},n}(q),Y=function(t){function n(n,e){var r=t.call(this)||this;return r.destination=n,r.source=e,r}return e(n,t),n.prototype.next=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===e||e.call(n,t)},n.prototype.error=function(t){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===e||e.call(n,t)},n.prototype.complete=function(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)},n.prototype._subscribe=function(t){var n,e;return null!==(e=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==e?e:p},n}(W);!function(t){function n(n){var e=t.call(this)||this;return e._value=n,e}e(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(n){var e=t.prototype._subscribe.call(this,n);return!e.closed&&n.next(this._value),e},n.prototype.getValue=function(){var t=this,n=t.hasError,e=t.thrownError,r=t._value;if(n)throw e;return this._throwIfClosed(),r},n.prototype.next=function(n){t.prototype.next.call(this,this._value=n)}}(W);var G={now:function(){return(G.delegate||Date).now()},delegate:void 0};!function(t){function n(n,e,r){void 0===n&&(n=1/0),void 0===e&&(e=1/0),void 0===r&&(r=G);var o=t.call(this)||this;return o._bufferSize=n,o._windowTime=e,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=e===1/0,o._bufferSize=Math.max(1,n),o._windowTime=Math.max(1,e),o}e(n,t),n.prototype.next=function(n){var e=this,r=e.isStopped,o=e._buffer,i=e._infiniteTimeWindow,u=e._timestampProvider,c=e._windowTime;r||(o.push(n),!i&&o.push(u.now()+c)),this._trimBuffer(),t.prototype.next.call(this,n)},n.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(t),e=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=e?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),n},n.prototype._trimBuffer=function(){var t=this,n=t._bufferSize,e=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*n;if(n<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var u=e.now(),c=0,s=1;s<r.length&&r[s]<=u;s+=2)c=s;c&&r.splice(0,c+1)}}}(W),function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._value=null,n._hasValue=!1,n._isComplete=!1,n}e(n,t),n.prototype._checkFinalizedStatuses=function(t){var n=this,e=n.hasError,r=n._hasValue,o=n._value,i=n.thrownError,u=n.isStopped,c=n._isComplete;e?t.error(i):(u||c)&&(r&&t.next(o),t.complete())},n.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},n.prototype.complete=function(){var n=this,e=n._hasValue,r=n._value;n._isComplete||(this._isComplete=!0,e&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(W);var H,X=function(t){function n(n,e){return t.call(this)||this}return e(n,t),n.prototype.schedule=function(t,n){return this},n}(h),K=function(t,n){for(var e=[],r=2;r<arguments.length;r++)e[r-2]=arguments[r];return setInterval.apply(void 0,c([t,n],u(e)))},Q=function(t){return clearInterval(t)},Z=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r.pending=!1,r}return e(n,t),n.prototype.schedule=function(t,n){if(void 0===n&&(n=0),this.closed)return this;this.state=t;var e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(r,this.id,n),this},n.prototype.requestAsyncId=function(t,n,e){return void 0===e&&(e=0),K(t.flush.bind(t,this),e)},n.prototype.recycleAsyncId=function(t,n,e){if(void 0===e&&(e=0),null!=e&&this.delay===e&&!1===this.pending)return n;Q(n)},n.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,n);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,n){var e,r=!1;try{this.work(t)}catch(t){r=!0,e=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),e},n.prototype.unsubscribe=function(){if(!this.closed){var n=this.id,e=this.scheduler,r=e.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v(r,this),null!=n&&(this.id=this.recycleAsyncId(e,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},n}(X),$=1,tt={};function nt(t){return t in tt&&(delete tt[t],!0)}var et=function(t){var n=$++;return tt[n]=!0,H||(H=Promise.resolve()),H.then((function(){return nt(n)&&t()})),n},rt=function(t){nt(t)},ot={setImmediate:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=ot.delegate;return((null==e?void 0:e.setImmediate)||et).apply(void 0,c([],u(t)))},clearImmediate:function(t){return rt(t)},delegate:void 0},it=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=ot.setImmediate(n.flush.bind(n,void 0))))},n.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(ot.clearImmediate(e),n._scheduled=void 0)},n}(Z),ut=function(){function t(n,e){void 0===e&&(e=t.now),this.schedulerActionCtor=n,this.now=e}return t.prototype.schedule=function(t,n,e){return void 0===n&&(n=0),new this.schedulerActionCtor(this,t).schedule(e,n)},t.now=G.now,t}(),ct=function(t){function n(n,e){void 0===e&&(e=ut.now);var r=t.call(this,n,e)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return e(n,t),n.prototype.flush=function(t){var n=this.actions;if(this._active)n.push(t);else{var e;this._active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=n.shift());if(this._active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}}},n}(ut);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},n}(ct))(it),new ct(Z);var st=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.prototype.schedule=function(n,e){return void 0===e&&(e=0),e>0?t.prototype.schedule.call(this,n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)},n.prototype.execute=function(n,e){return e>0||this.closed?t.prototype.execute.call(this,n,e):this._execute(n,e)},n.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,n,e,r):n.flush(this)},n}(Z);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n}(ct))(st);var at=function(t){function n(n,e){var r=t.call(this,n,e)||this;return r.scheduler=n,r.work=e,r}return e(n,t),n.prototype.requestAsyncId=function(n,e,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=z.requestAnimationFrame((function(){return n.flush(void 0)}))))},n.prototype.recycleAsyncId=function(n,e,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,n,e,r);n.actions.some((function(t){return t.id===e}))||(z.cancelAnimationFrame(e),n._scheduled=void 0)},n}(Z);new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return e(n,t),n.prototype.flush=function(t){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var e,r=this.actions;t=t||r.shift();do{if(e=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,e){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw e}},n}(ct))(at),function(t){function n(n,e){void 0===n&&(n=lt),void 0===e&&(e=1/0);var r=t.call(this,n,(function(){return r.frame}))||this;return r.maxFrames=e,r.frame=0,r.index=-1,r}e(n,t),n.prototype.flush=function(){for(var t,n,e=this.actions,r=this.maxFrames;(n=e[0])&&n.delay<=r&&(e.shift(),this.frame=n.delay,!(t=n.execute(n.state,n.delay))););if(t){for(;n=e.shift();)n.unsubscribe();throw t}},n.frameTimeFactor=10}(ct);var lt=function(t){function n(n,e,r){void 0===r&&(r=n.index+=1);var o=t.call(this,n,e)||this;return o.scheduler=n,o.work=e,o.index=r,o.active=!0,o.index=n.index=r,o}return e(n,t),n.prototype.schedule=function(e,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,e,r);this.active=!1;var o=new n(this.scheduler,this.work);return this.add(o),o.schedule(e,r)}return h.EMPTY},n.prototype.requestAsyncId=function(t,e,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(t,n,e){},n.prototype._execute=function(n,e){if(!0===this.active)return t.prototype._execute.call(this,n,e)},n.sortActions=function(t,n){return t.delay===n.delay?t.index===n.index?0:t.index>n.index?1:-1:t.delay>n.delay?1:-1},n}(Z),ft=new q((function(t){return t.complete()}));function dt(t){return t[t.length-1]}function yt(t){return(n=dt(t))&&f(n.schedule)?t.pop():void 0;var n}function vt(t,n){return"number"==typeof dt(t)?t.pop():n}var ht=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function pt(t){return f(null==t?void 0:t.then)}function bt(t){return f(t[N])}function mt(t){return Symbol.asyncIterator&&f(null==t?void 0:t[Symbol.asyncIterator])}function wt(t){return new TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var gt,_t="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function At(t){return f(null==t?void 0:t[_t])}function xt(t){return a(this,arguments,(function(){var n,e,r;return o(this,(function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,s(n.read())];case 3:return e=o.sent(),r=e.value,e.done?[4,s(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,s(r)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}}))}))}function St(t){return f(null==t?void 0:t.getReader)}function It(t){if(t instanceof q)return t;if(null!=t){if(bt(t))return n=t,new q((function(t){var e=n[N]();if(f(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(ht(t))return function(t){return new q((function(n){for(var e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()}))}(t);if(pt(t))return function(t){return new q((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,_)}))}(t);if(mt(t))return Ot(t);if(At(t))return function(t){return new q((function(n){var e,r;try{for(var o=i(t),u=o.next();!u.done;u=o.next()){var c=u.value;if(n.next(c),n.closed)return}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}n.complete()}))}(t);if(St(t))return Ot(xt(t))}var n;throw wt(t)}function Ot(t){return new q((function(n){(function(t,n){var e,i,u,c;return r(this,void 0,void 0,(function(){var r,s;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),e=l(t),o.label=1;case 1:return[4,e.next()];case 2:if((i=o.sent()).done)return[3,4];if(r=i.value,n.next(r),n.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=o.sent(),u={error:s},[3,11];case 6:return o.trys.push([6,,9,10]),i&&!i.done&&(c=e.return)?[4,c.call(e)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(u)throw u.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}}))}))})(t,n).catch((function(t){return n.error(t)}))}))}function Et(t,n,e,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=n.schedule((function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()}),r);if(t.add(i),!o)return i}function jt(t,n){return void 0===n&&(n=0),M((function(e,r){e.subscribe(R(r,(function(e){return Et(r,t,(function(){return r.next(e)}),n)}),(function(){return Et(r,t,(function(){return r.complete()}),n)}),(function(e){return Et(r,t,(function(){return r.error(e)}),n)})))}))}function Tt(t,n){return void 0===n&&(n=0),M((function(e,r){r.add(t.schedule((function(){return e.subscribe(r)}),n))}))}function Pt(t,n){if(!t)throw new Error("Iterable cannot be null");return new q((function(e){Et(e,n,(function(){var r=t[Symbol.asyncIterator]();Et(e,n,(function(){r.next().then((function(t){t.done?e.complete():e.next(t.value)}))}),0,!0)}))}))}function Nt(t,n){if(null!=t){if(bt(t))return function(t,n){return It(t).pipe(Tt(n),jt(n))}(t,n);if(ht(t))return function(t,n){return new q((function(e){var r=0;return n.schedule((function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())}))}))}(t,n);if(pt(t))return function(t,n){return It(t).pipe(Tt(n),jt(n))}(t,n);if(mt(t))return Pt(t,n);if(At(t))return function(t,n){return new q((function(e){var r;return Et(e,n,(function(){r=t[_t](),Et(e,n,(function(){var t,n,o;try{n=(t=r.next()).value,o=t.done}catch(t){return void e.error(t)}o?e.complete():e.next(n)}),0,!0)})),function(){return f(null==r?void 0:r.return)&&r.return()}}))}(t,n);if(St(t))return function(t,n){return Pt(xt(t),n)}(t,n)}throw wt(t)}function kt(t,n){return n?Nt(t,n):It(t)}function Bt(t,n){return M((function(e,r){var o=0;e.subscribe(R(r,(function(e){r.next(t.call(n,e,o++))})))}))}!function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(gt||(gt={})),d((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),d((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),d((function(t){return function(n){t(this),this.name="NotFoundError",this.message=n}})),d((function(t){return function(n){t(this),this.name="SequenceError",this.message=n}})),d((function(t){return function(n){void 0===n&&(n=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}}));var qt=Array.isArray;function Ct(t){return Bt((function(n){return function(t,n){return qt(n)?t.apply(void 0,c([],u(n))):t(n)}(t,n)}))}function Ft(t,n,e){return void 0===e&&(e=1/0),f(n)?Ft((function(e,r){return Bt((function(t,o){return n(e,t,r,o)}))(It(t(e,r)))}),e):("number"==typeof n&&(e=n),M((function(n,r){return function(t,n,e,r,o,i,u,c){var s=[],a=0,l=0,f=!1,d=function(){!f||s.length||a||n.complete()},y=function(t){return a<r?v(t):s.push(t)},v=function(t){i&&n.next(t),a++;var c=!1;It(e(t,l++)).subscribe(R(n,(function(t){null==o||o(t),i?y(t):n.next(t)}),(function(){c=!0}),void 0,(function(){if(c)try{a--;for(var t=function(){var t=s.shift();u?Et(n,u,(function(){return v(t)})):v(t)};s.length&&a<r;)t();d()}catch(t){n.error(t)}})))};return t.subscribe(R(n,y,(function(){f=!0,d()}))),function(){null==c||c()}}(n,r,t,e)})))}function Mt(t){return void 0===t&&(t=1/0),Ft(k,t)}var Rt=["addListener","removeListener"],Ut=["addEventListener","removeEventListener"],Dt=["on","off"];function zt(t,n,e,r){if(f(e)&&(r=e,e=void 0),r)return zt(t,n,e).pipe(Ct(r));var o=u(function(t){return f(t.addEventListener)&&f(t.removeEventListener)}(t)?Ut.map((function(r){return function(o){return t[r](n,o,e)}})):function(t){return f(t.addListener)&&f(t.removeListener)}(t)?Rt.map(Lt(t,n)):function(t){return f(t.on)&&f(t.off)}(t)?Dt.map(Lt(t,n)):[],2),i=o[0],c=o[1];if(!i&&ht(t))return Ft((function(t){return zt(t,n,e)}))(It(t));if(!i)throw new TypeError("Invalid event target");return new q((function(t){var n=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1<n.length?n:n[0])};return i(n),function(){return c(n)}}))}function Lt(t,n){return function(e){return function(r){return t[e](n,r)}}}function Jt(t,n){return M((function(e,r){var o=0;e.subscribe(R(r,(function(e){return t.call(n,e,o++)&&r.next(e)})))}))}function Vt(...t){return new q((n=>{const e=new MutationObserver((t=>n.next(t)));return e.observe(...t),()=>e.disconnect()}))}new q(A);var Wt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Yt={},Gt={},Ht={},Xt={},Kt={};Kt.go=void 0,Kt.go=function(t){return t()};var Qt={};Qt.goMicrotask=void 0,Qt.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var Zt={},$t={},tn={},nn={},en={};en.random=void 0,en.random=function(t,n){return Math.random()*(n-t)+t};var rn={};rn.randomInt=void 0,rn.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var on={};on.randomIntInclusive=void 0,on.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(en,t),e(rn,t),e(on,t)}(nn),tn.calculateExponentialBackoffTimeout=void 0;const un=nn;tn.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,un.randomIntInclusive)(0,i):i};var cn={};cn.setTimeout=void 0,cn.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var sn={setSchedule:void 0};const an=cn;sn.setSchedule=function(t,n){const e=t-Date.now();return(0,an.setTimeout)(e,n)};var ln={};ln.setInterval=void 0,ln.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var fn={setImmediate:void 0};const dn=cn;fn.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,dn.setTimeout)(0,t)};var yn={setTimeoutLoop:void 0};const vn=cn;yn.setTimeoutLoop=function(t,n){let e=!1,r=(0,vn.setTimeout)(t,(async function o(){await n(),e||(r=(0,vn.setTimeout)(t,o))}));return()=>{e=!0,r()}};var hn={setDynamicTimeoutLoop:void 0};const pn=cn;hn.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,pn.setTimeout)(t,(async function o(){const i=Date.now();await n();const u=Date.now()-i;e||(r=(0,pn.setTimeout)(Math.max(t-u,0),o))}));return()=>{e=!0,r()}},function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(tn,t),e(cn,t),e(sn,t),e(ln,t),e(fn,t),e(yn,t),e(hn,t)}($t),Zt.goMacrotask=void 0;const bn=$t;Zt.goMacrotask=function(t){return new Promise(((n,e)=>{(0,bn.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(Kt,t),e(Qt,t),e(Zt,t)}(Xt);var mn={},wn={},gn={},_n={},An={};function xn(t){return Array.isArray(t)}An.isntEmptyArray=An.isEmptyArray=An.isntArray=An.isArray=void 0,An.isArray=xn,An.isntArray=function(t){return!xn(t)},An.isEmptyArray=function(t){return 0===t.length},An.isntEmptyArray=function(t){return 0!==t.length};var Sn={},In={};function On(t){return null===t}In.isntNull=In.isNull=void 0,In.isNull=On,In.isntNull=function(t){return!On(t)};var En={};function jn(t){return void 0===t}En.isntUndefined=En.isUndefined=void 0,En.isUndefined=jn,En.isntUndefined=function(t){return!jn(t)};var Tn={};function Pn(t){return"function"==typeof t}Tn.isntFunction=Tn.isFunction=void 0,Tn.isFunction=Pn,Tn.isntFunction=function(t){return!Pn(t)},Sn.isntAsyncIterable=Sn.isAsyncIterable=void 0;const Nn=In,kn=En,Bn=Tn;function qn(t){return(0,Nn.isntNull)(t)&&(0,kn.isntUndefined)(t)&&(0,Bn.isFunction)(t[Symbol.asyncIterator])}Sn.isAsyncIterable=qn,Sn.isntAsyncIterable=function(t){return!qn(t)};var Cn={};function Fn(t){return"bigint"==typeof t}Cn.isntBigInt=Cn.isBigInt=void 0,Cn.isBigInt=Fn,Cn.isntBigInt=function(t){return!Fn(t)};var Mn={};function Rn(t){return"boolean"==typeof t}Mn.isntBoolean=Mn.isBoolean=void 0,Mn.isBoolean=Rn,Mn.isntBoolean=function(t){return!Rn(t)};var Un={},Dn={};function zn(t){return"string"==typeof t}Dn.isntString=Dn.isString=void 0,Dn.isString=zn,Dn.isntString=function(t){return!zn(t)},Un.isntChar=Un.isChar=void 0;const Ln=Dn;function Jn(t){return(0,Ln.isString)(t)&&1===t.length}Un.isChar=Jn,Un.isntChar=function(t){return!Jn(t)};var Vn={};function Wn(t){return t instanceof Date}Vn.isntDate=Vn.isDate=void 0,Vn.isDate=Wn,Vn.isntDate=function(t){return!Wn(t)};var Yn={};Yn.inEnum=void 0,Yn.inEnum=function(t,n){return Object.values(n).includes(t)};var Gn={};function Hn(t){return t instanceof Error}Gn.isntError=Gn.isError=void 0,Gn.isError=Hn,Gn.isntError=function(t){return!Hn(t)};var Xn={};function Kn(t){return!t}Xn.isntFalsy=Xn.isFalsy=void 0,Xn.isFalsy=Kn,Xn.isntFalsy=function(t){return!Kn(t)};var Qn={};Qn.isntIterable=Qn.isIterable=void 0;const Zn=In,$n=En,te=Tn;function ne(t){return(0,Zn.isntNull)(t)&&(0,$n.isntUndefined)(t)&&(0,te.isFunction)(t[Symbol.iterator])}Qn.isIterable=ne,Qn.isntIterable=function(t){return!ne(t)};var ee={},re={};function oe(t){return"number"==typeof t}function ie(t){return Number.isNaN(t)}re.isntNaN=re.isNaN=re.isNegativeInfinity=re.isPositiveInfinity=re.isFinite=re.isntNumber=re.isNumber=void 0,re.isNumber=oe,re.isntNumber=function(t){return!oe(t)},re.isFinite=function(t){return Number.isFinite(t)},re.isPositiveInfinity=function(t){return t===1/0},re.isNegativeInfinity=function(t){return t===-1/0},re.isNaN=ie,re.isntNaN=function(t){return!ie(t)};var ue={},ce="object"==typeof Wt&&Wt&&Wt.Object===Object&&Wt,se="object"==typeof self&&self&&self.Object===Object&&self,ae=(ce||se||Function("return this")()).Symbol,le=ae,fe=Object.prototype,de=fe.hasOwnProperty,ye=fe.toString,ve=le?le.toStringTag:void 0;var he=function(t){var n=de.call(t,ve),e=t[ve];try{t[ve]=void 0;var r=!0}catch(t){}var o=ye.call(t);return r&&(n?t[ve]=e:delete t[ve]),o},pe=Object.prototype.toString;var be=he,me=function(t){return pe.call(t)},we=ae?ae.toStringTag:void 0;var ge=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":we&&we in Object(t)?be(t):me(t)};var _e=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Ae=ge,xe=_e,Se=function(t){return null!=t&&"object"==typeof t},Ie=Function.prototype,Oe=Object.prototype,Ee=Ie.toString,je=Oe.hasOwnProperty,Te=Ee.call(Object);var Pe=function(t){if(!Se(t)||"[object Object]"!=Ae(t))return!1;var n=xe(t);if(null===n)return!0;var e=je.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Ee.call(e)==Te},Ne=Wt&&Wt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};ue.isntEmptyObject=ue.isEmptyObject=ue.isntPlainObject=ue.isPlainObject=ue.isntObject=ue.isObject=void 0;const ke=Ne(Pe);function Be(t){return null!==t&&"object"==typeof t}function qe(t){return(0,ke.default)(t)}ue.isObject=Be,ue.isntObject=function(t){return!Be(t)},ue.isPlainObject=qe,ue.isntPlainObject=function(t){return!qe(t)},ue.isEmptyObject=function(t){return 0===Object.keys(t).length},ue.isntEmptyObject=function(t){return 0!==Object.keys(t).length},ee.isntJsonable=ee.isJsonable=ee.isntJson=ee.isJson=void 0;const Ce=In,Fe=Mn,Me=Dn,Re=re,Ue=An,De=ue;function ze(t){return(0,Ce.isNull)(t)||(0,Fe.isBoolean)(t)||(0,Me.isString)(t)||(0,Re.isNumber)(t)||(0,Ue.isArray)(t)&&t.every(ze)||(0,De.isPlainObject)(t)&&Object.values(t).every(ze)}ee.isJson=ze,ee.isntJson=function(t){return!ze(t)},ee.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},ee.isntJsonable=function t(n){return!t()};var Le={};Le.isntNullish=Le.isNullish=void 0;const Je=In,Ve=En;function We(t){return(0,Je.isNull)(t)||(0,Ve.isUndefined)(t)}Le.isNullish=We,Le.isntNullish=function(t){return!We(t)};var Ye={};Ye.isPromiseLike=Ye.isntPromiseLike=Ye.isntPromise=Ye.isPromise=void 0;const Ge=ue,He=Tn;function Xe(t){return t instanceof Promise}function Ke(t){return(0,Ge.isObject)(t)&&(0,He.isFunction)(t.then)}Ye.isPromise=Xe,Ye.isntPromise=function(t){return!Xe(t)},Ye.isntPromiseLike=function(t){return!Ke(t)},Ye.isPromiseLike=Ke;var Qe={};Qe.isAbsoluteURL=void 0,Qe.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var Ze={};function $e(t){return t instanceof RegExp}Ze.isntRegExp=Ze.isRegExp=void 0,Ze.isRegExp=$e,Ze.isntRegExp=function(t){return!$e(t)};var tr={};function nr(t){return"symbol"==typeof t}tr.isntSymbol=tr.isSymbol=void 0,tr.isSymbol=nr,tr.isntSymbol=function(t){return!nr(t)},function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(An,t),e(Sn,t),e(Cn,t),e(Mn,t),e(Un,t),e(Vn,t),e(Yn,t),e(Gn,t),e(Xn,t),e(Tn,t),e(Qn,t),e(ee,t),e(In,t),e(Le,t),e(re,t),e(ue,t),e(Ye,t),e(Dn,t),e(En,t),e(Qe,t),e(Ze,t),e(tr,t)}(_n);var er={};er.traverseErrorPrototypeChain=void 0,er.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},gn.getErrorNames=void 0;const rr=_n,or=er;gn.getErrorNames=function*(t){var n;if((0,rr.isError)(t))for(const e of(0,or.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var ir={isSerializableError:void 0};const ur=_n;var cr;function sr(){if(cr)return wn;cr=1,wn.CustomError=void 0;const t=$i(),n=gn,e=_n,r=ir;class o extends Error{get name(){var e,r;return null!==(r=null!==(e=(0,t.first)((0,n.getErrorNames)(this)))&&void 0!==e?e:o.name)&&void 0!==r?r:"CustomError"}static[Symbol.hasInstance](o){var i;if((0,e.isError)(o)||(0,r.isSerializableError)(o)){const e=[null!==(i=this.prototype.constructor.name)&&void 0!==i?i:this.name,...(0,n.getErrorNames)(this.prototype)].reverse(),r=(0,t.toArray)((0,n.getErrorNames)(o)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}return wn.CustomError=o,wn}ir.isSerializableError=function(t){return(0,ur.isObject)(t)&&(0,ur.isString)(t.name)&&(0,ur.isString)(t.message)&&((0,ur.isString)(t.stack)||(0,ur.isNull)(t.stack))&&(0,ur.isArray)(t.ancestors)&&t.ancestors.every(ur.isString)};var ar,lr={};function fr(){if(ar)return lr;ar=1,lr.AssertionError=void 0;const t=sr();class n extends t.CustomError{}return lr.AssertionError=n,lr}var dr,yr={};var vr={},hr={},pr={};pr.pass=void 0,pr.pass=function(){},function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)})(pr,t)}(hr),vr.hydrate=void 0;const br=hr;function mr(t,n){const e=function(){(0,br.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}vr.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=mr(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var wr,gr,_r,Ar={};function xr(){return gr||(gr=1,function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(sr(),t),e(fr(),t),e(ir,t),e(function(){if(dr)return yr;dr=1,yr.normalize=void 0;const t=gn,n=$i();return yr.normalize=function(e){var r;const[o,...i]=(0,n.toArray)((0,t.getErrorNames)(e));return{name:o,ancestors:i,message:e.message,stack:null!==(r=e.stack)&&void 0!==r?r:null}},yr}(),t),e(vr,t),e(function(){if(wr)return Ar;wr=1,Ar.assert=void 0;const t=fr();return Ar.assert=function(n,e){if(!n)throw new t.AssertionError(e)},Ar}(),t),e(gn,t),e(er,t)}(mn)),mn}var Sr={chunkByAsync:void 0};const Ir=_n;Sr.chunkByAsync=function(t,n){return(0,Ir.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var Or={};Or.chunkBy=void 0,Or.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var Er,jr={};var Tr={concatAsync:void 0};const Pr=_n,Nr=Xt;Tr.concatAsync=function(t,...n){return(0,Nr.go)((async function*(){for(const e of[t,...n])if((0,Pr.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var kr={concat:void 0};const Br=Xt;kr.concat=function(t,...n){return(0,Br.go)((function*(){for(const e of[t,...n])yield*e}))};var qr={},Cr={filterAsync:void 0};const Fr=_n;Cr.filterAsync=function(t,n){return(0,Fr.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var Mr={};Mr.toSetAsync=void 0,Mr.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},qr.differenceAsync=void 0;const Rr=Cr,Ur=Mr;qr.differenceAsync=async function*(t,n){const e=await(0,Ur.toSetAsync)(n);yield*(0,Rr.filterAsync)(t,(async t=>!e.has(await t)))};var Dr={},zr={};zr.filter=void 0,zr.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Lr={};Lr.toSet=void 0,Lr.toSet=function(t){return new Set(t)},Dr.difference=void 0;const Jr=zr,Vr=Lr;Dr.difference=function(t,n){const e=(0,Vr.toSet)(n);return(0,Jr.filter)(t,(t=>!e.has(t)))};var Wr,Yr={},Gr={};Gr.copyIterable=Gr.copyAsyncIterable=void 0,Gr.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Gr.copyIterable=function*(t){for(const n of t)yield n};var Hr,Xr={},Kr={};Kr.toArrayAsync=void 0,Kr.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n};var Qr,Zr={};var $r={dropUntilAsync:void 0};const to=_n;$r.dropUntilAsync=function(t,n){return(0,to.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var no={};no.dropUntil=void 0,no.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var eo,ro={};var oo={},io={},uo={flattenByAsync:void 0};const co=_n;async function*so(t,n,e){for(const r of t)ao(r)&&await n(r,e)?yield*so(r,n,e+1):yield r}function ao(t){return(0,co.isIterable)(t)&&(0,co.isntChar)(t)}var lo,fo;function yo(){if(lo)return io;lo=1,io.flattenDeepAsync=void 0;const t=uo,n=xr();return io.flattenDeepAsync=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenByAsync)(e,((t,n)=>n<=r))},io}uo.flattenByAsync=function(t,n){return(0,co.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)ao(r)&&await n(r,e)?yield*so(r,n,e+1):yield r}(t,n):function(t,n){return so(t,n,1)}(t,n)};var vo={flattenBy:void 0};const ho=_n;function*po(t,n,e){for(const o of t)(0,ho.isIterable)(r=o)&&(0,ho.isntChar)(r)&&n(o,e)?yield*po(o,n,e+1):yield o;var r}vo.flattenBy=function(t,n){return po(t,n,1)};var bo,mo={};function wo(){if(bo)return mo;bo=1,mo.flattenDeep=void 0;const t=vo,n=xr();return mo.flattenDeep=function(e,r=1/0){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter depth must be an integer"),(0,n.assert)(r>=0,"The parameter depth must be greater than or equal to 0"),(0,t.flattenBy)(e,((t,n)=>n<=r))},mo}var go,_o={};var Ao={intersectionAsync:void 0};const xo=Cr,So=Mr;Ao.intersectionAsync=async function*(t,n){const e=await(0,So.toSetAsync)(n);yield*(0,xo.filterAsync)(t,(async t=>e.has(await t)))};var Io={intersection:void 0};const Oo=zr,Eo=Lr;Io.intersection=function(t,n){const e=(0,Eo.toSet)(n);return(0,Oo.filter)(t,(t=>e.has(t)))};var jo={mapAsync:void 0};const To=_n;jo.mapAsync=function(t,n){return(0,To.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var Po={};Po.map=void 0,Po.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var No,ko={};function Bo(){if(No)return ko;No=1,ko.repeatAsync=void 0;const t=Xt,n=xr();return ko.repeatAsync=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((async function*(){const t=[];if(r>0){for await(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},ko}var qo,Co={};function Fo(){if(qo)return Co;qo=1,Co.repeat=void 0;const t=Xt,n=xr();return Co.repeat=function(e,r){return(0,n.assert)(r===1/0||Number.isInteger(r),"The parameter times must be an integer"),(0,n.assert)(r>=0,"The parameter times must be greater than or equal to 0"),r===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,t.go)((function*(){const t=[];if(r>0){for(const n of e)yield n,t.push(n);r--}for(;r>0;)yield*t,r--}))},Co}var Mo,Ro={};var Uo,Do={};var zo={};zo.splitAsync=void 0,zo.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Lo={splitByAsync:void 0};const Jo=_n;Lo.splitByAsync=function(t,n){return(0,Jo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var Vo={};Vo.splitBy=void 0,Vo.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Wo={};Wo.split=void 0,Wo.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Yo,Go={};var Ho,Xo={};var Ko,Qo={};var Zo={takeUntilAsync:void 0};const $o=_n;Zo.takeUntilAsync=function(t,n){return(0,$o.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var ti={};ti.takeUntil=void 0,ti.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var ni,ei={};var ri={tapAsync:void 0};const oi=_n;ri.tapAsync=function(t,n){return(0,oi.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var ii={};ii.tap=void 0,ii.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var ui={};ui.toAsyncIterable=void 0,ui.toAsyncIterable=async function*(t){for(const n of t)yield await n};var ci={};ci.transformAsync=void 0,ci.transformAsync=async function*(t,n){yield*n(t)};var si={};si.transform=void 0,si.transform=function*(t,n){yield*n(t)};var ai={};ai.uniqAsync=void 0,ai.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var li={uniqByAsync:void 0};const fi=_n;li.uniqByAsync=function(t,n){return(0,fi.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var di={};di.uniqBy=void 0,di.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var yi={};yi.uniq=void 0,yi.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var vi={zipAsync:void 0};const hi=_n;var pi;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(pi||(pi={})),vi.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,u=t.map((t=>(0,hi.isAsyncIterable)(t)?[pi.Async,t[Symbol.asyncIterator]()]:[pi.Sync,t[Symbol.iterator]()])),c=u.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=u[n];let o;if(o=e===pi.Async?await r.next():r.next(),o.done)return void(c[n]=!0);t[n]=await o.value}yield t}}finally{const t=u.filter(((t,n)=>!c[n]));for(const[i,u]of t)i===pi.Async?await(null===(e=(n=u).return)||void 0===e?void 0:e.call(n)):null===(o=(r=u).return)||void 0===o||o.call(r)}}(t,...n)};var bi,mi={};function wi(){return bi||(bi=1,function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(function(){if(_r)return Ht;_r=1,Ht.chunkAsync=void 0;const t=Xt,n=xr();return Ht.chunkAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((async function*(){let t=[];for await(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},Ht}(),t),e(Sr,t),e(Or,t),e(function(){if(Er)return jr;Er=1,jr.chunk=void 0;const t=Xt,n=xr();return jr.chunk=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter size must be an integer"),(0,n.assert)(r>0,"The parameter size must be greater than 0"),(0,t.go)((function*(){let t=[];for(const n of e)t.push(n),t.length>=r&&(yield t,t=[]);t.length&&(yield t)}))},jr}(),t),e(Tr,t),e(kr,t),e(qr,t),e(Dr,t),e(function(){if(Wr)return Yr;Wr=1,Yr.dropAsync=void 0;const t=Xt,n=Gr,e=xr();return Yr.dropAsync=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyAsyncIterable)(r):(0,t.go)((async function*(){var t;const n=r[Symbol.asyncIterator]();let e;try{let r;for(;({value:r,done:e}=await n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=await n.next())}finally{e||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Yr}(),t),e(function(){if(Hr)return Xr;Hr=1,Xr.dropRightAsync=void 0;const t=Xt,n=Gr,e=xr(),r=Kr;return Xr.dropRightAsync=function(o,i){return(0,e.assert)(Number.isInteger(i),"The parameter count must be an integer"),(0,e.assert)(i>=0,"The parameter count must be greater than or equal to 0"),0===i?(0,n.copyAsyncIterable)(o):(0,t.go)((async function*(){const t=(await(0,r.toArrayAsync)(o)).slice(0,-i);for(const n of t)yield n}))},Xr}(),t),e(function(){if(Qr)return Zr;Qr=1,Zr.dropRight=void 0;const t=Xt,n=Gr,e=xr();return Zr.dropRight=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){const t=Array.from(r);yield*t.slice(0,-o)}))},Zr}(),t),e($r,t),e(no,t),e(function(){if(eo)return ro;eo=1,ro.drop=void 0;const t=Xt,n=Gr,e=xr();return ro.drop=function(r,o){return(0,e.assert)(Number.isInteger(o),"The parameter count must be an integer"),(0,e.assert)(o>=0,"The parameter count must be greater than or equal to 0"),0===o?(0,n.copyIterable)(r):(0,t.go)((function*(){var t;const n=r[Symbol.iterator]();let e;try{let r;for(;({value:r,done:e}=n.next()),!(e||o<=0);)o--;for(;!e;)yield r,({value:r,done:e}=n.next())}finally{e||null===(t=n.return)||void 0===t||t.call(n)}}))},ro}(),t),e(Cr,t),e(zr,t),e(function(){if(fo)return oo;fo=1,oo.flattenAsync=void 0;const t=yo();return oo.flattenAsync=function(n){return(0,t.flattenDeepAsync)(n,1)},oo}(),t),e(uo,t),e(vo,t),e(yo(),t),e(wo(),t),e(function(){if(go)return _o;go=1,_o.flatten=void 0;const t=wo();return _o.flatten=function(n){return(0,t.flattenDeep)(n,1)},_o}(),t),e(Ao,t),e(Io,t),e(jo,t),e(Po,t),e(Bo(),t),e(Fo(),t),e(function(){if(Mo)return Ro;Mo=1,Ro.sliceAsync=void 0;const t=Xt,n=xr();return Ro.sliceAsync=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((async function*(){let t=0;for await(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},Ro}(),t),e(function(){if(Uo)return Do;Uo=1,Do.slice=void 0;const t=Xt,n=xr();return Do.slice=function(e,r,o=1/0){return(0,n.assert)(Number.isInteger(r),"The parameter start must be an integer"),(0,n.assert)(r>=0,"The parameter start must be greater than or equal to 0"),(0,n.assert)(Number.isInteger(o),"The parameter end must be an integer"),(0,n.assert)(o>=r,"The parameter end must be greater than or equal to start"),(0,t.go)((function*(){let t=0;for(const n of e){if(t>=o)break;t>=r&&(yield n),t++}}))},Do}(),t),e(zo,t),e(Lo,t),e(Vo,t),e(Wo,t),e(function(){if(Yo)return Go;Yo=1,Go.takeAsync=void 0;const t=Xt,n=xr();return Go.takeAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){if(0!==r)for await(const t of e)if(yield t,0==--r)break}))},Go}(),t),e(function(){if(Ho)return Xo;Ho=1,Xo.takeRightAsync=void 0;const t=Xt,n=xr();return Xo.takeRightAsync=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((async function*(){var t;const n=e[Symbol.asyncIterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=await n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||await(null===(t=n.return)||void 0===t?void 0:t.call(n))}}))},Xo}(),t),e(function(){if(Ko)return Qo;Ko=1,Qo.takeRight=void 0;const t=Xt,n=xr();return Qo.takeRight=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){var t;const n=e[Symbol.iterator]();let o;try{const e=[];let i;for(;({value:i,done:o}=n.next()),!o;)e.push(i),e.length>r&&e.shift();yield*e}finally{o||null===(t=n.return)||void 0===t||t.call(n)}}))},Qo}(),t),e(Zo,t),e(ti,t),e(function(){if(ni)return ei;ni=1,ei.take=void 0;const t=Xt,n=xr();return ei.take=function(e,r){return(0,n.assert)(Number.isInteger(r),"The parameter count must be an integer"),(0,n.assert)(r>=0,"The parameter count must be greater than or equal to 0"),(0,t.go)((function*(){if(0!==r)for(const t of e)if(yield t,0==--r)break}))},ei}(),t),e(ri,t),e(ii,t),e(ui,t),e(ci,t),e(si,t),e(ai,t),e(li,t),e(di,t),e(yi,t),e(vi,t),e(mi,t)}(Gt)),Gt}mi.zip=void 0,mi.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)};var gi={},_i={};_i.consume=void 0,_i.consume=function(t,n){return n(t)};var Ai={};Ai.consumeAsync=void 0,Ai.consumeAsync=async function(t,n){return await n(t)};var xi={eachAsync:void 0};const Si=_n;xi.eachAsync=function(t,n){return(0,Si.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var Ii={};Ii.each=void 0,Ii.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Oi={everyAsync:void 0};const Ei=_n;Oi.everyAsync=function(t,n){return(0,Ei.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var ji={};ji.every=void 0,ji.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ti={findAsync:void 0};const Pi=_n;Ti.findAsync=function(t,n){return(0,Pi.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Ni={};Ni.find=void 0,Ni.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var ki={};ki.firstAsync=void 0,ki.firstAsync=async function(t){for await(const n of t)return n};var Bi={};Bi.first=void 0,Bi.first=function(t){for(const n of t)return n};var qi={};qi.includesAsync=void 0,qi.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Ci={};Ci.includes=void 0,Ci.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Fi={reduceAsync:void 0};const Mi=_n;Fi.reduceAsync=function(t,n,e){return(0,Mi.isUndefined)(e)?function(t,n){return(0,Mi.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,u=await i(r),c=1;for(;({value:t,done:o}=await r.next()),!o;)u=await n(u,t,c++);return u}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,u=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)u=await n(u,t,c++);return u}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Mi.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var Ri={reduce:void 0};const Ui=_n;Ri.reduce=function(t,n,e){return(0,Ui.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,u=i(r),c=1;for(;({value:t,done:o}=r.next()),!o;)u=n(u,t,c++);return u}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var Di={someAsync:void 0};const zi=_n;Di.someAsync=function(t,n){return(0,zi.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var Li={};Li.some=void 0,Li.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Ji={};Ji.lastAsync=void 0,Ji.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var Vi={};Vi.last=void 0,Vi.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Wi={};Wi.toArray=void 0,Wi.toArray=function(t){return Array.from(t)};var Yi={};Yi.count=void 0,Yi.count=function(t){let n=0;for(const e of t)n++;return n};var Gi={};Gi.countAsync=void 0,Gi.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Hi={groupBy:void 0};const Xi=Ii;Hi.groupBy=function(t,n){const e=new Map;return(0,Xi.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Ki={groupByAsync:void 0};const Qi=xi;var Zi;function $i(){return Zi||(Zi=1,function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(wi(),t),e(gi,t)}(Yt)),Yt}Ki.groupByAsync=async function(t,n){const e=new Map;return await(0,Qi.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var n=Wt&&Wt.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),e=Wt&&Wt.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};e(_i,t),e(Ai,t),e(xi,t),e(Ii,t),e(Oi,t),e(ji,t),e(Ti,t),e(Ni,t),e(ki,t),e(Bi,t),e(qi,t),e(Ci,t),e(Fi,t),e(Ri,t),e(Di,t),e(Li,t),e(Ji,t),e(Vi,t),e(Kr,t),e(Wi,t),e(Mr,t),e(Lr,t),e(Yi,t),e(Gi,t),e(Hi,t),e(Ki,t)}(gi);var tu=$i();const nu=new Set,eu=new Set;let ru=!1,ou=!1;t.observeAdditionOfDescendantNodes=function(t){return Vt(t,{childList:!0,subtree:!0}).pipe(Bt((t=>tu.toArray(tu.flatten(tu.map(t,(t=>t.addedNodes)))))),Jt((t=>t.length>0)))},t.observeRemovalOfDescendantNodes=function(t){return Vt(t,{childList:!0,subtree:!0}).pipe(Bt((t=>tu.toArray(tu.flatten(tu.map(t,(t=>t.removedNodes)))))),Jt((t=>t.length>0)))},t.observeStateChanges=function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=yt(t),r=vt(t,1/0),o=t;return o.length?1===o.length?It(o[0]):Mt(r)(kt(o,e)):ft}(new q((t=>(ru||function(){const t=history.pushState;history.pushState=function(...n){Reflect.apply(t,this,n),nu.forEach((t=>t.next()))},ru=!0}(),nu.add(t),()=>nu.delete(t)))),new q((t=>(ou||function(){const t=history.replaceState;history.replaceState=function(...n){Reflect.apply(t,this,n),eu.forEach((t=>t.next()))},ou=!0}(),eu.add(t),()=>eu.delete(t)))),zt(window,"popstate")).pipe(Bt((t=>{})))},t.observeUrlChanges=function(){let t=document.URL;return(n?L(n):J).pipe(Jt((()=>t!==document.URL)),function(t,n,e){var r=f(t)||n||e?{next:t,error:n,complete:e}:t;return r?M((function(t,n){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;t.subscribe(R(n,(function(t){var e;null===(e=r.next)||void 0===e||e.call(r,t),n.next(t)}),(function(){var t;o=!1,null===(t=r.complete)||void 0===t||t.call(r),n.complete()}),(function(t){var e;o=!1,null===(e=r.error)||void 0===e||e.call(r,t),n.error(t)}),(function(){var t,n;o&&(null===(t=r.unsubscribe)||void 0===t||t.call(r)),null===(n=r.finalize)||void 0===n||n.call(r)})))})):k}((()=>t=document.URL)),Bt((()=>{})));var n},Object.defineProperty(t,"__esModule",{value:!0})}));
16
16
  //# sourceMappingURL=index.umd.min.js.map