@blackglory/observe 0.1.1 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es2015/index.min.mjs +1 -8
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +971 -7553
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +973 -7555
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -9
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +1 -8
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +971 -7553
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +973 -7555
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -9
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/observe-addtion-of-descendant-nodes.js +2 -2
- package/lib/es2015/observe-addtion-of-descendant-nodes.js.map +1 -1
- package/lib/es2015/observe-removal-of-descendant-nodes.js +2 -2
- package/lib/es2015/observe-removal-of-descendant-nodes.js.map +1 -1
- package/lib/es2015/observe-state-changes.js +5 -3
- package/lib/es2015/observe-state-changes.js.map +1 -1
- package/lib/es2015/observe-url-changes.js +1 -1
- package/lib/es2015/observe-url-changes.js.map +1 -1
- package/lib/es2018/observe-addtion-of-descendant-nodes.js +2 -2
- package/lib/es2018/observe-addtion-of-descendant-nodes.js.map +1 -1
- package/lib/es2018/observe-removal-of-descendant-nodes.js +2 -2
- package/lib/es2018/observe-removal-of-descendant-nodes.js.map +1 -1
- package/lib/es2018/observe-state-changes.js +5 -3
- package/lib/es2018/observe-state-changes.js.map +1 -1
- package/lib/es2018/observe-url-changes.js +1 -1
- package/lib/es2018/observe-url-changes.js.map +1 -1
- package/package.json +22 -22
- package/CHANGELOG.md +0 -12
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n="undefined"!=typeof globalThis?globalThis:n||self).Observe={})}(this,(function(n){"use strict";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,12 +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 t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}function n(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))}function o(e,t){var r,n,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function i(a){return function(i){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(o=s.trys,(o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){s.label=a[1];break}if(6===a[0]&&s.label<o[1]){s.label=o[1],o=a;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(a);break}o[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,i])}}}function a(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)s.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s}function i(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function c(e){return this instanceof c?(this.v=e,this):new c(e)}function u(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof c?Promise.resolve(r.value.v).then(u,l):f(a[0][2],r)}catch(e){f(a[0][3],e)}var r}function u(e){i("next",e)}function l(e){i("throw",e)}function f(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}}function l(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=a(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function f(e){return"function"==typeof e}var d,h=((d=function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}((function(e){Error.call(e),e.stack=(new Error).stack}))).prototype=Object.create(Error.prototype),d.prototype.constructor=d,d);function p(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var y=function(){function e(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}var t;return e.prototype.unsubscribe=function(){var e,t,r,n,o;if(!this.closed){this.closed=!0;var c=this._parentage;if(c)if(this._parentage=null,Array.isArray(c))try{for(var u=a(c),l=u.next();!l.done;l=u.next()){l.value.remove(this)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}else c.remove(this);var d=this.initialTeardown;if(f(d))try{d()}catch(e){o=e instanceof h?e.errors:[e]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var y=a(p),m=y.next();!m.done;m=y.next()){var b=m.value;try{v(b)}catch(e){o=null!=o?o:[],e instanceof h?o=i(i([],s(o)),s(e.errors)):o.push(e)}}}catch(e){r={error:e}}finally{try{m&&!m.done&&(n=y.return)&&n.call(y)}finally{if(r)throw r.error}}}if(o)throw new h(o)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)v(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(r=this._teardowns)&&void 0!==r?r:[]).push(t)}},e.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},e.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},e.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&p(t,e)},e.prototype.remove=function(t){var r=this._teardowns;r&&p(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e}();function m(e){return e instanceof y||e&&"closed"in e&&f(e.remove)&&f(e.add)&&f(e.unsubscribe)}function v(e){f(e)?e():e.unsubscribe()}var b={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},g=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,i([],s(e)))};function w(e){g((function(){throw e}))}function _(){}var $=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,m(t)&&t.add(r)):r.destination=E,r}return r(t,e),t.create=function(e,t,r){return new S(e,t,r)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(y),S=function(e){function t(t,r,n){var o,a=e.call(this)||this;if(f(t))o=t;else if(t){var s;o=t.next,r=t.error,n=t.complete,a&&b.useDeprecatedNextContext?(s=Object.create(t)).unsubscribe=function(){return a.unsubscribe()}:s=t,o=null==o?void 0:o.bind(s),r=null==r?void 0:r.bind(s),n=null==n?void 0:n.bind(s)}return a.destination={next:o?A(o):_,error:A(null!=r?r:O),complete:n?A(n):_},a}return r(t,e),t}($);function A(e,t){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{e.apply(void 0,i([],s(t)))}catch(e){w(e)}}}function O(e){throw e}var E={closed:!0,next:_,error:O,complete:_},I="function"==typeof Symbol&&Symbol.observable||"@@observable";function x(e){return e}function P(e){return 0===e.length?x:1===e.length?e[0]:function(t){return e.reduce((function(e,t){return t(e)}),t)}}var k=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n,o=(n=e)&&n instanceof $||function(e){return e&&f(e.next)&&f(e.error)&&f(e.complete)}(n)&&m(n)?e:new S(e,t,r),a=this.operator,s=this.source;return o.add(a?a.call(o,s):s?this._subscribe(o):this._trySubscribe(o)),o},e.prototype._deprecatedSyncErrorSubscribe=function(e){var t=e;t._syncErrorHack_isSubscribing=!0;var r=this.operator;if(r)e.add(r.call(e,this.source));else try{e.add(this._subscribe(e))}catch(e){t.__syncError=e}for(var n=t;n;){if("__syncError"in n)try{throw n.__syncError}finally{e.unsubscribe()}n=n.destination}t._syncErrorHack_isSubscribing=!1},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=T(t))((function(t,n){var o;o=r.subscribe((function(t){try{e(t)}catch(e){n(e),null==o||o.unsubscribe()}}),n,t)}))},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[I]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.length?P(e)(this):this},e.prototype.toPromise=function(e){var t=this;return new(e=T(e))((function(e,r){var n;t.subscribe((function(e){return n=e}),(function(e){return r(e)}),(function(){return e(n)}))}))},e.create=function(t){return new e(t)},e}();function T(e){var t;return null!==(t=null!=e?e:b.Promise)&&void 0!==t?t:Promise}function C(e){return function(t){if(function(e){return f(null==e?void 0:e.lift)}(t))return t.lift((function(t){try{return e(t,this)}catch(e){this.error(e)}}));throw new TypeError("Unable to lift unknown Observable type")}}var j=function(e){function t(t,r,n,o,a){var s=e.call(this,t)||this;return s.onFinalize=a,s._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,s._error=o?function(e){try{o(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,s._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,s}return r(t,e),t.prototype.unsubscribe=function(){var t,r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}($),N={now:function(){return(N.delegate||performance).now()},delegate:void 0},R=function(e){var t=requestAnimationFrame,r=cancelAnimationFrame,n=t((function(t){r=void 0,e(t)}));return new y((function(){return null==r?void 0:r(n)}))};function D(e){var t=R;return new k((function(r){var n=new y,o=e||N,a=o.now(),s=function(i){var c=o.now();r.next({timestamp:e?c:i,elapsed:c-a}),r.closed||n.add(t(s))};return n.add(t(s)),n}))}var B=D(),V=new k((function(e){return e.complete()}));var U=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};var F="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function q(e){if(e instanceof k)return e;if(null!=e){if(function(e){return f(e[I])}(e))return n=e,new k((function(e){var t=n[I]();if(f(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(U(e))return M(e);if(f(null==(r=e)?void 0:r.then))return t=e,new k((function(e){t.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,w)}));if(function(e){return Symbol.asyncIterator&&f(null==e?void 0:e[Symbol.asyncIterator])}(e))return z(e);if(function(e){return f(null==e?void 0:e[F])}(e))return function(e){return new k((function(t){var r,n;try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var i=s.value;if(t.next(i),t.closed)return}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}t.complete()}))}(e);if(function(e){return f(null==e?void 0:e.getReader)}(e))return z(function(e){return u(this,arguments,(function(){var t,r,n;return o(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,c(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,c(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,c(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}(e))}var t,r,n;throw function(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}(e)}function M(e){return new k((function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()}))}function z(e){return new k((function(t){(function(e,t){var r,a,s,i;return n(this,void 0,void 0,(function(){var n,c;return o(this,(function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),r=l(e),o.label=1;case 1:return[4,r.next()];case 2:if((a=o.sent()).done)return[3,4];if(n=a.value,t.next(n),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=o.sent(),s={error:c},[3,11];case 6:return o.trys.push([6,,9,10]),a&&!a.done&&(i=r.return)?[4,i.call(r)]:[3,8];case 7:o.sent(),o.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(e,t).catch((function(e){return t.error(e)}))}))}function L(e,t){return t?function(e,t){return new k((function(r){var n=0;return t.schedule((function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())}))}))}(e,t):M(e)}function K(e){return e[e.length-1]}function G(e){return(t=K(e))&&f(t.schedule)?e.pop():void 0;var t}function J(e,t){return"number"==typeof K(e)?e.pop():t}function H(e,t){return C((function(r,n){var o=0;r.subscribe(new j(n,(function(r){n.next(e.call(t,r,o++))})))}))}var W=Array.isArray;function Z(e){return H((function(t){return function(e,t){return W(t)?e.apply(void 0,i([],s(t))):e(t)}(e,t)}))}function Q(e,t,r){return void 0===r&&(r=1/0),f(t)?Q((function(r,n){return H((function(e,o){return t(r,e,n,o)}))(q(e(r,n)))}),r):("number"==typeof t&&(r=t),C((function(t,n){return function(e,t,r,n,o,a,s,i){var c=[],u=0,l=0,f=!1,d=function(){!f||c.length||u||t.complete()},h=function(e){return u<n?p(e):c.push(e)},p=function(e){a&&t.next(e),u++;var i=!1;q(r(e,l++)).subscribe(new j(t,(function(e){null==o||o(e),a?h(e):t.next(e)}),(function(){i=!0}),void 0,(function(){if(i)try{u--;for(var e=function(){var e=c.shift();s?t.add(s.schedule((function(){return p(e)}))):p(e)};c.length&&u<n;)e();d()}catch(e){t.error(e)}})))};return e.subscribe(new j(t,h,(function(){f=!0,d()}))),function(){null==i||i()}}(t,n,e,r)})))}function Y(e){return void 0===e&&(e=1/0),Q(x,e)}var X=["addListener","removeListener"],ee=["addEventListener","removeEventListener"],te=["on","off"];function re(e,t,r,n){if(f(r)&&(n=r,r=void 0),n)return re(e,t,r).pipe(Z(n));var o=s(function(e){return f(e.addEventListener)&&f(e.removeEventListener)}(e)?ee.map((function(n){return function(o){return e[n](t,o,r)}})):function(e){return f(e.addListener)&&f(e.removeListener)}(e)?X.map(ne(e,t)):function(e){return f(e.on)&&f(e.off)}(e)?te.map(ne(e,t)):[],2),a=o[0],i=o[1];if(!a&&U(e))return Q((function(e){return re(e,t,r)}))(L(e));if(!a)throw new TypeError("Invalid event target");return new k((function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return a(t),function(){return i(t)}}))}function ne(e,t){return function(r){return function(n){return e[r](t,n)}}}function oe(e,t){return C((function(r,n){var o=0;r.subscribe(new j(n,(function(r){return e.call(t,r,o++)&&n.next(r)})))}))}function ae(...e){return new k((t=>{const r=new MutationObserver((e=>t.next(e)));return r.observe(...e),()=>r.disconnect()}))}var se="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ie={},ce={},ue={};ue.mixinDecorators=void 0,ue.mixinDecorators=function(e,t){for(const r of t)for(const t of Object.getOwnPropertyNames(r.prototype)){if("constructor"===t)continue;const n=Object.getOwnPropertyDescriptor(r.prototype,t);Object.defineProperty(e.prototype,t,n)}};var le={},fe={Subject:void 0};fe.Subject=class{constructor(e){this.subject=e}},le.IterableOperatorBase=void 0;const de=fe;class he extends de.Subject{[Symbol.iterator](){return this.subject[Symbol.iterator]()}}le.IterableOperatorBase=he;var pe={},ye={},me={},ve={AsyncIterableOperatorBase:void 0};const be=fe;class ge extends be.Subject{[Symbol.asyncIterator](){return this.subject[Symbol.asyncIterator]()}}ve.AsyncIterableOperatorBase=ge;var we={},_e={},$e={},Se={};Se.go=void 0,Se.go=function(e){return e()},function(e){var t=se&&se.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]});(se&&se.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)})(Se,e)}($e);var Ae={},Oe={CustomError:void 0};class Ee extends Error{get name(){return this.constructor.name}}Oe.CustomError=Ee;var Ie={ExpectedError:void 0};const xe=Oe;class Pe extends xe.CustomError{}Ie.ExpectedError=Pe;var ke={AssertionError:void 0};const Te=Oe;class Ce extends Te.CustomError{}ke.AssertionError=Ce;var je={};je.normalize=void 0,je.normalize=function(e){var t;return{name:e.name,message:e.message,stack:null!==(t=e.stack)&&void 0!==t?t:null}};var Ne={refute:void 0};const Re=Ie;Ne.refute=function(e,t){if(e)throw new Re.ExpectedError(t)};var De={assert:void 0};const Be=ke;De.assert=function(e,t){if(!e)throw new Be.AssertionError(t)},function(e){var t=se&&se.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=se&&se.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Oe,e),r(Ie,e),r(ke,e),r(je,e),r(Ne,e),r(De,e)}(Ae);var Ve=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Ue=se&&se.__await||function(e){return this instanceof Ue?(this.v=e,this):new Ue(e)},Fe=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Ue?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};_e.chunkAsync=void 0;const qe=$e,Me=Ae;_e.chunkAsync=function(e,t){return Me.assert(Number.isInteger(t),"The parameter size must be an integer"),Me.assert(t>0,"The parameter size must be greater than 0"),qe.go((function(){return Fe(this,arguments,(function*(){var r,n;let o=[];try{for(var a,s=Ve(e);!(a=yield Ue(s.next())).done;){const e=a.value;o.push(e),o.length>=t&&(yield yield Ue(o),o=[])}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Ue(n.call(s)))}finally{if(r)throw r.error}}o.length&&(yield yield Ue(o))}))}))},we.ChunkAsyncOperator=void 0;const ze=ye,Le=ve,Ke=_e;class Ge extends Le.AsyncIterableOperatorBase{chunkAsync(...e){return ze.applyChainingAsync(this.subject,Ke.chunkAsync,e)}}we.ChunkAsyncOperator=Ge;var Je={},He={},We={},Ze={},Qe={};function Ye(e){return null===e}Qe.isntNull=Qe.isNull=void 0,Qe.isNull=Ye,Qe.isntNull=function(e){return!Ye(e)};var Xe={};function et(e){return void 0===e}Xe.isntUndefined=Xe.isUndefined=void 0,Xe.isUndefined=et,Xe.isntUndefined=function(e){return!et(e)},Ze.isntAsyncIterable=Ze.isAsyncIterable=void 0;const tt=Qe,rt=Xe;function nt(e){return tt.isntNull(e)&&rt.isntUndefined(e)&&"function"==typeof e[Symbol.asyncIterator]}Ze.isAsyncIterable=nt,Ze.isntAsyncIterable=function(e){return!nt(e)};var ot={};function at(e){return"boolean"==typeof e}ot.isntBoolean=ot.isBoolean=void 0,ot.isBoolean=at,ot.isntBoolean=function(e){return!at(e)};var st={},it={};function ct(e){return ut(e)||lt(e)}function ut(e){return"string"==typeof e}function lt(e){return"object"==typeof e&&e instanceof String}it.isntStringObject=it.isStringObject=it.isntStringPrimitive=it.isStringPrimitive=it.isntString=it.isString=void 0,it.isString=ct,it.isntString=function(e){return!ct(e)},it.isStringPrimitive=ut,it.isntStringPrimitive=function(e){return!ut(e)},it.isStringObject=lt,it.isntStringObject=function(e){return!lt(e)},st.isntCharObject=st.isCharObject=st.isntCharPrimitive=st.isCharPrimitive=st.isntChar=st.isChar=void 0;const ft=it;function dt(e){return(ft.isString(e)||ft.isStringObject(e))&&1===e.length}function ht(e){return ft.isString(e)&&1===e.length}function pt(e){return ft.isStringObject(e)&&1===e.length}st.isChar=dt,st.isntChar=function(e){return!dt(e)},st.isCharPrimitive=ht,st.isntCharPrimitive=function(e){return!ht(e)},st.isCharObject=pt,st.isntCharObject=function(e){return!pt(e)};var yt={};function mt(e){return e instanceof Date}yt.isntDate=yt.isDate=void 0,yt.isDate=mt,yt.isntDate=function(e){return!mt(e)};var vt={};function bt(e){return!e}vt.isntFalsy=vt.isFalsy=void 0,vt.isFalsy=bt,vt.isntFalsy=function(e){return!bt(e)};var gt={};function wt(e){return"function"==typeof e}gt.isntFunction=gt.isFunction=void 0,gt.isFunction=wt,gt.isntFunction=function(e){return!wt(e)};var _t={};_t.isntIterable=_t.isIterable=void 0;const $t=Qe,St=Xe;function At(e){return $t.isntNull(e)&&St.isntUndefined(e)&&"function"==typeof e[Symbol.iterator]}_t.isIterable=At,_t.isntIterable=function(e){return!At(e)};var Ot={},Et={exports:{}},It={},xt={},Pt={},kt={},Tt={},Ct={};!function(e){e.regexpCode=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof r&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function o(e,...t){const r=[e[0]];let o=0;for(;o<t.length;)i(r,t[o]),r.push(e[++o]);return new n(r)}e._Code=n,e.nil=new n(""),e._=o;const a=new n("+");function s(e,...t){const r=[u(e[0])];let o=0;for(;o<t.length;)r.push(a),i(r,t[o]),r.push(a,u(e[++o]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===a){const r=c(e[t-1],e[t+1]);if(void 0!==r){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}(r),new n(r)}function i(e,t){var o;t instanceof n?e.push(...t._items):t instanceof r?e.push(t):e.push("number"==typeof(o=t)||"boolean"==typeof o||null===o?o:u(Array.isArray(o)?o.join(","):o))}function c(e,t){if('""'===t)return e;if('""'===e)return t;if("string"==typeof e){if(t instanceof r||'"'!==e[e.length-1])return;return"string"!=typeof t?`${e.slice(0,-1)}${t}"`:'"'===t[0]?e.slice(0,-1)+t.slice(1):void 0}return"string"!=typeof t||'"'!==t[0]||e instanceof r?void 0:`"${e}${t.slice(1)}`}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.str=s,e.addCodeArg=i,e.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:s`${e}${t}`},e.stringify=function(e){return new n(u(e))},e.safeStringify=u,e.getProperty=function(t){return"string"==typeof t&&e.IDENTIFIER.test(t)?new n(`.${t}`):o`[${t}]`},e.regexpCode=function(e){return new n(e.toString())}}(Ct);var jt={};!function(e){e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ct;class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var n;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n=e.UsedValueState||(e.UsedValueState={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,r;if((null===(r=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===r?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}e.Scope=o;class a extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=t._`.${new t.Name(r)}[${n}]`}}e.ValueScopeName=a;const s=t._`\n`;e.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const n=this.toName(e),{prefix:o}=n,a=null!==(r=t.key)&&void 0!==r?r:t.ref;let s=this._values[o];if(s){const e=s.get(a);if(e)return e}else s=this._values[o]=new Map;s.set(a,n);const i=this._scope[o]||(this._scope[o]=[]),c=i.length;return i[c]=t.ref,n.setValue(t,{property:o,itemIndex:c}),n}getValue(e,t){const r=this._values[e];if(r)return r.get(t)}scopeRefs(e,r=this._values){return this._reduceValues(r,(r=>{if(void 0===r.scopePath)throw new Error(`CodeGen: name "${r}" has no value`);return t._`${e}${r.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(o,a,s={},i){let c=t.nil;for(const u in o){const l=o[u];if(!l)continue;const f=s[u]=s[u]||new Map;l.forEach((o=>{if(f.has(o))return;f.set(o,n.Started);let s=a(o);if(s){const r=this.opts.es5?e.varKinds.var:e.varKinds.const;c=t._`${c}${r} ${o} = ${s};${this.opts._n}`}else{if(!(s=null==i?void 0:i(o)))throw new r(o);c=t._`${c}${s}${this.opts._n}`}f.set(o,n.Completed)}))}return c}}}(jt),function(e){e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Ct,r=jt;var n=Ct;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var o=jt;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,o=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=P(this.rhs,e,t)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof t.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=P(this.rhs,e,r),this}get names(){return x(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}}class c extends i{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class u extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class l extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class f extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class d extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=P(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:r}=this;let n=r.length;for(;n--;){const o=r[n];o.optimizeNames(e,t)||(k(e,o.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>I(e,t.names)),{})}}class p extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class y extends h{}class m extends p{}m.kind="else";class v extends p{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new m(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(T(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null===(r=this.else)||void 0===r?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=P(this.condition,e,t),this}get names(){const e=super.names;return x(e,this.condition),this.else&&I(e,this.else.names),e}}v.kind="if";class b extends p{}b.kind="for";class g extends b{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=P(this.iteration,e,t),this}get names(){return I(super.names,this.iteration.names)}}class w extends b{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:o,to:a}=this;return`for(${t} ${n}=${o}; ${n}<${a}; ${n}++)`+super.render(e)}get names(){const e=x(super.names,this.from);return x(e,this.to)}}class _ extends b{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=P(this.iterable,e,t),this}get names(){return I(super.names,this.iterable.names)}}class $ extends p{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}$.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class A extends p{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null===(r=this.catch)||void 0===r||r.optimizeNames(e,t),null===(n=this.finally)||void 0===n||n.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&I(e,this.catch.names),this.finally&&I(e,this.finally.names),e}}class O extends p{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}O.kind="catch";class E extends p{render(e){return"finally"+super.render(e)}}E.kind="finally";function I(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function x(e,r){return r instanceof t._CodeOrName?I(e,r.names):e}function P(e,r,n){return e instanceof t.Name?a(e):(o=e)instanceof t._Code&&o._items.some((e=>e instanceof t.Name&&1===r[e.str]&&void 0!==n[e.str]))?new t._Code(e._items.reduce(((e,r)=>(r instanceof t.Name&&(r=a(r)),r instanceof t._Code?e.push(...r._items):e.push(r),e)),[])):e;var o;function a(e){const t=n[e.str];return void 0===t||1!==r[e.str]?e:(delete r[e.str],t)}}function k(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function T(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:t._`!${R(e)}`}e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new y]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){const o=this._scope.toName(t);return void 0!==r&&n&&(this._constants[o.str]=r),this._leafNode(new s(e,o,r)),o}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,r){return this._leafNode(new i(e,t,r))}add(t,r){return this._leafNode(new c(t,e.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==t.nil&&this._leafNode(new d(e)),this}object(...e){const r=["{"];for(const[n,o]of e)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),t.addCodeArg(r,o));return r.push("}"),new t._Code(r)}if(e,t,r){if(this._blockNode(new v(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new m)}endIf(){return this._endBlockNode(v,m)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new g(e),t)}forRange(e,t,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const s=this._scope.toName(e);return this._for(new w(a,s,t,n),(()=>o(s)))}forOf(e,n,o,a=r.varKinds.const){const s=this._scope.toName(e);if(this.opts.es5){const e=n instanceof t.Name?n:this.var("_arr",n);return this.forRange("_i",0,t._`${e}.length`,(r=>{this.var(s,t._`${e}[${r}]`),o(s)}))}return this._for(new _("of",a,s,n),(()=>o(s)))}forIn(e,n,o,a=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,t._`Object.keys(${n})`,o);const s=this._scope.toName(e);return this._for(new _("in",a,s,n),(()=>o(s)))}endFor(){return this._endBlockNode(b)}label(e){return this._leafNode(new u(e))}break(e){return this._leafNode(new l(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const n=new A;if(this._blockNode(n),this.code(e),t){const e=this.name("e");this._currNode=n.catch=new O(e),t(e)}return r&&(this._currNode=n.finally=new E,this.code(r)),this._endBlockNode(O,E)}throw(e){return this._leafNode(new f(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,r=t.nil,n,o){return this._blockNode(new $(e,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode($)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},e.not=T;const C=N(e.operators.AND);e.and=function(...e){return e.reduce(C)};const j=N(e.operators.OR);function N(e){return(r,n)=>r===t.nil?n:n===t.nil?r:t._`${R(r)} ${e} ${R(n)}`}function R(e){return e instanceof t.Name?e:t._`(${e})`}e.or=function(...e){return e.reduce(j)}}(Tt);var Nt={};!function(e){e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;const t=Tt,r=Ct;function n(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema)return;if("boolean"==typeof t)return;const o=n.RULES.keywords;for(const r in t)o[r]||d(e,`unknown keyword: "${r}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const r in e)if(t[r])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function s(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function i({mergeNames:e,mergeToName:r,mergeValues:n,resultToName:o}){return(a,s,i,c)=>{const u=void 0===i?s:i instanceof t.Name?(s instanceof t.Name?e(a,s,i):r(a,s,i),i):s instanceof t.Name?(r(a,i,s),s):n(s,i);return c!==t.Name||u instanceof t.Name?u:o(a,u)}}function c(e,r){if(!0===r)return e.var("props",!0);const n=e.var("props",t._`{}`);return void 0!==r&&u(e,n,r),n}function u(e,r,n){Object.keys(n).forEach((n=>e.assign(t._`${r}${t.getProperty(n)}`,!0)))}e.toHash=function(e){const t={};for(const r of e)t[r]=!0;return t},e.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(n(e,t),!o(t,e.self.RULES.all))},e.checkUnknownRules=n,e.schemaHasRules=o,e.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const r in e)if("$ref"!==r&&t.all[r])return!0;return!1},e.schemaRefOrVal=function({topSchemaRef:e,schemaPath:r},n,o,a){if(!a){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return t._`${n}`}return t._`${e}${r}${t.getProperty(o)}`},e.unescapeFragment=function(e){return s(decodeURIComponent(e))},e.escapeFragment=function(e){return encodeURIComponent(a(e))},e.escapeJsonPointer=a,e.unescapeJsonPointer=s,e.eachItem=function(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)},e.mergeEvaluated={props:i({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>{e.if(t._`${r} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,t._`${n} || {}`).code(t._`Object.assign(${n}, ${r})`)))})),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>{!0===r?e.assign(n,!0):(e.assign(n,t._`${n} || {}`),u(e,n,r))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:c}),items:i({mergeNames:(e,r,n)=>e.if(t._`${n} !== true && ${r} !== undefined`,(()=>e.assign(n,t._`${r} === true ? true : ${n} > ${r} ? ${n} : ${r}`))),mergeToName:(e,r,n)=>e.if(t._`${n} !== true`,(()=>e.assign(n,!0===r||t._`${n} > ${r} ? ${n} : ${r}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},e.evaluatedPropsToName=c,e.setEvaluated=u;const l={};var f;function d(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw new Error(t);e.self.logger.warn(t)}}e.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:l[t.code]||(l[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(f=e.Type||(e.Type={})),e.getErrorPath=function(e,r,n){if(e instanceof t.Name){const o=r===f.Num;return n?o?t._`"[" + ${e} + "]"`:t._`"['" + ${e} + "']"`:o?t._`"/" + ${e}`:t._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?t.getProperty(e).toString():"/"+a(e)},e.checkStrictMode=d}(Nt);var Rt={};const Dt=Tt,Bt={data:new Dt.Name("data"),valCxt:new Dt.Name("valCxt"),instancePath:new Dt.Name("instancePath"),parentData:new Dt.Name("parentData"),parentDataProperty:new Dt.Name("parentDataProperty"),rootData:new Dt.Name("rootData"),dynamicAnchors:new Dt.Name("dynamicAnchors"),vErrors:new Dt.Name("vErrors"),errors:new Dt.Name("errors"),this:new Dt.Name("this"),self:new Dt.Name("self"),scope:new Dt.Name("scope"),json:new Dt.Name("json"),jsonPos:new Dt.Name("jsonPos"),jsonLen:new Dt.Name("jsonLen"),jsonPart:new Dt.Name("jsonPart")};Rt.default=Bt,function(e){e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=Tt,r=Nt,n=Rt;function o(e,r){const o=e.const("err",r);e.if(t._`${n.default.vErrors} === null`,(()=>e.assign(n.default.vErrors,t._`[${o}]`)),t._`${n.default.vErrors}.push(${o})`),e.code(t._`${n.default.errors}++`)}function a(e,r){const{gen:n,validateName:o,schemaEnv:a}=e;a.$async?n.throw(t._`new ${e.ValidationError}(${r})`):(n.assign(t._`${o}.errors`,r),n.return(!1))}e.keywordError={message:({keyword:e})=>t.str`should pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:r})=>r?t.str`"${e}" keyword must be ${r} ($data)`:t.str`"${e}" keyword is invalid ($data)`},e.reportError=function(r,n=e.keywordError,s,c){const{it:u}=r,{gen:l,compositeRule:f,allErrors:d}=u,h=i(r,n,s);(null!=c?c:f||d)?o(l,h):a(u,t._`[${h}]`)},e.reportExtraError=function(t,r=e.keywordError,s){const{it:c}=t,{gen:u,compositeRule:l,allErrors:f}=c;o(u,i(t,r,s)),l||f||a(c,n.default.vErrors)},e.resetErrorsCount=function(e,r){e.assign(n.default.errors,r),e.if(t._`${n.default.vErrors} !== null`,(()=>e.if(r,(()=>e.assign(t._`${n.default.vErrors}.length`,r)),(()=>e.assign(n.default.vErrors,null)))))},e.extendErrors=function({gen:e,keyword:r,schemaValue:o,data:a,errsCount:s,it:i}){if(void 0===s)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",s,n.default.errors,(s=>{e.const(c,t._`${n.default.vErrors}[${s}]`),e.if(t._`${c}.instancePath === undefined`,(()=>e.assign(t._`${c}.instancePath`,t.strConcat(n.default.instancePath,i.errorPath)))),e.assign(t._`${c}.schemaPath`,t.str`${i.errSchemaPath}/${r}`),i.opts.verbose&&(e.assign(t._`${c}.schema`,o),e.assign(t._`${c}.data`,a))}))};const s={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function i(e,r,o){const{createErrors:a}=e.it;return!1===a?t._`{}`:function(e,r,o={}){const{gen:a,it:i}=e,l=[c(i,o),u(e,o)];return function(e,{params:r,message:o},a){const{keyword:i,data:c,schemaValue:u,it:l}=e,{opts:f,propertyName:d,topSchemaRef:h,schemaPath:p}=l;a.push([s.keyword,i],[s.params,"function"==typeof r?r(e):r||t._`{}`]),f.messages&&a.push([s.message,"function"==typeof o?o(e):o]);f.verbose&&a.push([s.schema,u],[s.parentSchema,t._`${h}${p}`],[n.default.data,c]);d&&a.push([s.propertyName,d])}(e,r,l),a.object(...l)}(e,r,o)}function c({errorPath:e},{instancePath:o}){const a=o?t.str`${e}${r.getErrorPath(o,r.Type.Str)}`:e;return[n.default.instancePath,t.strConcat(n.default.instancePath,a)]}function u({keyword:e,it:{errSchemaPath:n}},{schemaPath:o,parentSchema:a}){let i=a?n:t.str`${n}/${e}`;return o&&(i=t.str`${i}${r.getErrorPath(o,r.Type.Str)}`),[s.schemaPath,i]}}(kt),Pt.boolOrEmptySchema=Pt.topBoolOrEmptySchema=void 0;const Vt=kt,Ut=Tt,Ft=Rt,qt={message:"boolean schema is false"};function Mt(e,t){const{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};Vt.reportError(o,qt,void 0,t)}Pt.topBoolOrEmptySchema=function(e){const{gen:t,schema:r,validateName:n}=e;!1===r?Mt(e,!1):"object"==typeof r&&!0===r.$async?t.return(Ft.default.data):(t.assign(Ut._`${n}.errors`,null),t.return(!0))},Pt.boolOrEmptySchema=function(e,t){const{gen:r,schema:n}=e;!1===n?(r.var(t,!1),Mt(e)):r.var(t,!0)};var zt={},Lt={};Lt.getRules=Lt.isJSONType=void 0;const Kt=new Set(["string","number","integer","boolean","null","object","array"]);Lt.isJSONType=function(e){return"string"==typeof e&&Kt.has(e)},Lt.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}};var Gt={};function Jt(e,t){return t.rules.some((t=>Ht(e,t)))}function Ht(e,t){var r;return void 0!==e[t.keyword]||(null===(r=t.definition.implements)||void 0===r?void 0:r.some((t=>void 0!==e[t])))}Gt.shouldUseRule=Gt.shouldUseGroup=Gt.schemaHasRulesForType=void 0,Gt.schemaHasRulesForType=function({schema:e,self:t},r){const n=t.RULES.types[r];return n&&!0!==n&&Jt(e,n)},Gt.shouldUseGroup=Jt,Gt.shouldUseRule=Ht,function(e){e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;const t=Lt,r=Gt,n=kt,o=Tt,a=Nt;var s;function i(e){const r=Array.isArray(e)?e:e?[e]:[];if(r.every(t.isJSONType))return r;throw new Error("type must be JSONType or JSONType[]: "+r.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(s=e.DataType||(e.DataType={})),e.getSchemaTypes=function(e){const t=i(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},e.getJSONTypes=i,e.coerceAndCheckDataType=function(e,t){const{gen:n,data:a,opts:i}=e,u=function(e,t){return t?e.filter((e=>c.has(e)||"array"===t&&"array"===e)):[]}(t,i.coerceTypes),f=t.length>0&&!(0===u.length&&1===t.length&&r.schemaHasRulesForType(e,t[0]));if(f){const r=l(t,a,i.strictNumbers,s.Wrong);n.if(r,(()=>{u.length?function(e,t,r){const{gen:n,data:a,opts:s}=e,i=n.let("dataType",o._`typeof ${a}`),u=n.let("coerced",o._`undefined`);"array"===s.coerceTypes&&n.if(o._`${i} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,(()=>n.assign(a,o._`${a}[0]`).assign(i,o._`typeof ${a}`).if(l(t,a,s.strictNumbers),(()=>n.assign(u,a)))));n.if(o._`${u} !== undefined`);for(const e of r)(c.has(e)||"array"===e&&"array"===s.coerceTypes)&&f(e);function f(e){switch(e){case"string":return void n.elseIf(o._`${i} == "number" || ${i} == "boolean"`).assign(u,o._`"" + ${a}`).elseIf(o._`${a} === null`).assign(u,o._`""`);case"number":return void n.elseIf(o._`${i} == "boolean" || ${a} === null
|
|
16
|
-
|| (${i} == "string" && ${a} && ${a} == +${a})`).assign(u,o._`+${a}`);case"integer":return void n.elseIf(o._`${i} === "boolean" || ${a} === null
|
|
17
|
-
|| (${i} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(u,o._`+${a}`);case"boolean":return void n.elseIf(o._`${a} === "false" || ${a} === 0 || ${a} === null`).assign(u,!1).elseIf(o._`${a} === "true" || ${a} === 1`).assign(u,!0);case"null":return n.elseIf(o._`${a} === "" || ${a} === 0 || ${a} === false`),void n.assign(u,null);case"array":n.elseIf(o._`${i} === "string" || ${i} === "number"
|
|
18
|
-
|| ${i} === "boolean" || ${a} === null`).assign(u,o._`[${a}]`)}}n.else(),d(e),n.endIf(),n.if(o._`${u} !== undefined`,(()=>{n.assign(a,u),function({gen:e,parentData:t,parentDataProperty:r},n){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${r}]`,n)))}(e,u)}))}(e,t,u):d(e)}))}return f};const c=new Set(["string","number","integer","boolean","null"]);function u(e,t,r,n=s.Correct){const a=n===s.Correct?o.operators.EQ:o.operators.NEQ;let i;switch(e){case"null":return o._`${t} ${a} null`;case"array":i=o._`Array.isArray(${t})`;break;case"object":i=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=c(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=c();break;default:return o._`typeof ${t} ${a} ${e}`}return n===s.Correct?i:o.not(i);function c(e=o.nil){return o.and(o._`typeof ${t} == "number"`,e,r?o._`isFinite(${t})`:o.nil)}}function l(e,t,r,n){if(1===e.length)return u(e[0],t,r,n);let s;const i=a.toHash(e);if(i.array&&i.object){const e=o._`typeof ${t} != "object"`;s=i.null?e:o._`!${t} || ${e}`,delete i.null,delete i.array,delete i.object}else s=o.nil;i.number&&delete i.integer;for(const e in i)s=o.and(s,u(e,t,r,n));return s}e.checkDataType=u,e.checkDataTypes=l;const f={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function d(e){const t=function(e){const{gen:t,data:r,schema:n}=e,o=a.schemaRefOrVal(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}(e);n.reportError(t,f)}e.reportTypeError=d}(zt);var Wt={assignDefaults:void 0};const Zt=Tt,Qt=Nt;function Yt(e,t,r){const{gen:n,compositeRule:o,data:a,opts:s}=e;if(void 0===r)return;const i=Zt._`${a}${Zt.getProperty(t)}`;if(o)return void Qt.checkStrictMode(e,`default is ignored for: ${i}`);let c=Zt._`${i} === undefined`;"empty"===s.useDefaults&&(c=Zt._`${c} || ${i} === null || ${i} === ""`),n.if(c,Zt._`${i} = ${Zt.stringify(r)}`)}Wt.assignDefaults=function(e,t){const{properties:r,items:n}=e.schema;if("object"===t&&r)for(const t in r)Yt(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach(((t,r)=>Yt(e,r,t.default)))};var Xt={},er={};er.validateUnion=er.validateArray=er.usePattern=er.callValidateCode=er.schemaProperties=er.allSchemaProperties=er.noPropertyInData=er.propertyInData=er.isOwnProperty=er.hasPropFunc=er.reportMissingProp=er.checkMissingProp=er.checkReportMissingProp=void 0;const tr=Tt,rr=Nt,nr=Rt;function or(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:tr._`Object.prototype.hasOwnProperty`})}function ar(e,t,r){return tr._`${or(e)}.call(${t}, ${r})`}function sr(e,t,r,n){const o=tr._`${t}${tr.getProperty(r)} === undefined`;return n?tr.or(o,tr.not(ar(e,t,r))):o}function ir(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}er.checkReportMissingProp=function(e,t){const{gen:r,data:n,it:o}=e;r.if(sr(r,n,t,o.opts.ownProperties),(()=>{e.setParams({missingProperty:tr._`${t}`},!0),e.error()}))},er.checkMissingProp=function({gen:e,data:t,it:{opts:r}},n,o){return tr.or(...n.map((n=>tr.and(sr(e,t,n,r.ownProperties),tr._`${o} = ${n}`))))},er.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},er.hasPropFunc=or,er.isOwnProperty=ar,er.propertyInData=function(e,t,r,n){const o=tr._`${t}${tr.getProperty(r)} !== undefined`;return n?tr._`${o} && ${ar(e,t,r)}`:o},er.noPropertyInData=sr,er.allSchemaProperties=ir,er.schemaProperties=function(e,t){return ir(t).filter((r=>!rr.alwaysValidSchema(e,t[r])))},er.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:a},it:s},i,c,u){const l=u?tr._`${e}, ${t}, ${n}${o}`:t,f=[[nr.default.instancePath,tr.strConcat(nr.default.instancePath,a)],[nr.default.parentData,s.parentData],[nr.default.parentDataProperty,s.parentDataProperty],[nr.default.rootData,nr.default.rootData]];s.opts.dynamicRef&&f.push([nr.default.dynamicAnchors,nr.default.dynamicAnchors]);const d=tr._`${l}, ${r.object(...f)}`;return c!==tr.nil?tr._`${i}.call(${c}, ${d})`:tr._`${i}(${d})`},er.usePattern=function({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"";return e.scopeValue("pattern",{key:r,ref:new RegExp(r,n),code:tr._`new RegExp(${r}, ${n})`})},er.validateArray=function(e){const{gen:t,data:r,keyword:n,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return s((()=>t.assign(e,!1))),e}return t.var(a,!0),s((()=>t.break())),a;function s(o){const s=t.const("len",tr._`${r}.length`);t.forRange("i",0,s,(r=>{e.subschema({keyword:n,dataProp:r,dataPropType:rr.Type.Num},a),t.if(tr.not(a),o)}))}},er.validateUnion=function(e){const{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some((e=>rr.alwaysValidSchema(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),s=t.name("_valid");t.block((()=>r.forEach(((r,o)=>{const i=e.subschema({keyword:n,schemaProp:o,compositeRule:!0},s);t.assign(a,tr._`${a} || ${s}`);e.mergeValidEvaluated(i,s)||t.if(tr.not(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))},Xt.validateKeywordUsage=Xt.validSchemaType=Xt.funcKeywordCode=Xt.macroKeywordCode=void 0;const cr=Tt,ur=Rt,lr=er,fr=kt;function dr(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,cr._`${n.parentData}[${n.parentDataProperty}]`)))}function hr(e,t,r){if(void 0===r)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:cr.stringify(r)})}Xt.macroKeywordCode=function(e,t){const{gen:r,keyword:n,schema:o,parentSchema:a,it:s}=e,i=t.macro.call(s.self,o,a,s),c=hr(r,n,i);!1!==s.opts.validateSchema&&s.self.validateSchema(i,!0);const u=r.name("valid");e.subschema({schema:i,schemaPath:cr.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},u),e.pass(u,(()=>e.error(!0)))},Xt.funcKeywordCode=function(e,t){var r;const{gen:n,keyword:o,schema:a,parentSchema:s,$data:i,it:c}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(c,t);const u=!i&&t.compile?t.compile.call(c.self,a,s,c):t.validate,l=hr(n,o,u),f=n.let("valid");function d(r=(t.async?cr._`await `:cr.nil)){const o=c.opts.passContext?ur.default.this:ur.default.self,a=!("compile"in t&&!i||!1===t.schema);n.assign(f,cr._`${r}${lr.callValidateCode(e,l,o,a)}`,t.modifying)}function h(e){var r;n.if(cr.not(null!==(r=t.valid)&&void 0!==r?r:f),e)}e.block$data(f,(function(){if(!1===t.errors)d(),t.modifying&&dr(e),h((()=>e.error()));else{const r=t.async?function(){const e=n.let("ruleErrs",null);return n.try((()=>d(cr._`await `)),(t=>n.assign(f,!1).if(cr._`${t} instanceof ${c.ValidationError}`,(()=>n.assign(e,cr._`${t}.errors`)),(()=>n.throw(t))))),e}():function(){const e=cr._`${l}.errors`;return n.assign(e,null),d(cr.nil),e}();t.modifying&&dr(e),h((()=>function(e,t){const{gen:r}=e;r.if(cr._`Array.isArray(${t})`,(()=>{r.assign(ur.default.vErrors,cr._`${ur.default.vErrors} === null ? ${t} : ${ur.default.vErrors}.concat(${t})`).assign(ur.default.errors,cr._`${ur.default.vErrors}.length`),fr.extendErrors(e)}),(()=>e.error()))}(e,r)))}})),e.ok(null!==(r=t.valid)&&void 0!==r?r:f)},Xt.validSchemaType=function(e,t,r=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e))},Xt.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},o,a){if(Array.isArray(o.keyword)?!o.keyword.includes(a):o.keyword!==a)throw new Error("ajv implementation error");const s=o.dependencies;if(null==s?void 0:s.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${a}: ${s.join(",")}`);if(o.validateSchema){if(!o.validateSchema(e[a])){const e=`keyword "${a}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);r.logger.error(e)}}};var pr={};pr.extendSubschemaMode=pr.extendSubschemaData=pr.getSubschema=void 0;const yr=Tt,mr=Nt;pr.getSubschema=function(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:a,topSchemaRef:s}){if(void 0!==t&&void 0!==n)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const n=e.schema[t];return void 0===r?{schema:n,schemaPath:yr._`${e.schemaPath}${yr.getProperty(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:n[r],schemaPath:yr._`${e.schemaPath}${yr.getProperty(t)}${yr.getProperty(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${mr.escapeFragment(r)}`}}if(void 0!==n){if(void 0===o||void 0===a||void 0===s)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},pr.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:a,propertyName:s}){if(void 0!==o&&void 0!==r)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:i}=t;if(void 0!==r){const{errorPath:o,dataPathArr:a,opts:s}=t;c(i.let("data",yr._`${t.data}${yr.getProperty(r)}`,!0)),e.errorPath=yr.str`${o}${mr.getErrorPath(r,n,s.jsPropertySyntax)}`,e.parentDataProperty=yr._`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}if(void 0!==o){c(o instanceof yr.Name?o:i.let("data",o,!0)),void 0!==s&&(e.propertyName=s)}function c(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}a&&(e.dataTypes=a)},pr.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:a}){void 0!==n&&(e.compositeRule=n),void 0!==o&&(e.createErrors=o),void 0!==a&&(e.allErrors=a),e.jtdDiscriminator=t,e.jtdMetadata=r};var vr={},br=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(o=n;0!=o--;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(o=n;0!=o--;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;0!=o--;){var s=a[o];if(!e(t[s],r[s]))return!1}return!0}return t!=t&&r!=r},gr={exports:{}},wr=gr.exports=function(e,t,r){"function"==typeof t&&(r=t,t={}),_r(t,"function"==typeof(r=t.cb||r)?r:r.pre||function(){},r.post||function(){},e,"",e)};function _r(e,t,r,n,o,a,s,i,c,u){if(n&&"object"==typeof n&&!Array.isArray(n)){for(var l in t(n,o,a,s,i,c,u),n){var f=n[l];if(Array.isArray(f)){if(l in wr.arrayKeywords)for(var d=0;d<f.length;d++)_r(e,t,r,f[d],o+"/"+l+"/"+d,a,o,l,n,d)}else if(l in wr.propsKeywords){if(f&&"object"==typeof f)for(var h in f)_r(e,t,r,f[h],o+"/"+l+"/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,l,n,h)}else(l in wr.keywords||e.allKeys&&!(l in wr.skipKeywords))&&_r(e,t,r,f,o+"/"+l,a,o,l,n)}r(n,o,a,s,i,c,u)}}wr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},wr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},wr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},wr.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};var $r={exports:{}};
|
|
19
|
-
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */!function(e,t){!function(e){function t(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t.length>1){t[0]=t[0].slice(0,-1);for(var n=t.length-1,o=1;o<n;++o)t[o]=t[o].slice(1,-1);return t[n]=t[n].slice(1),t.join("")}return t[0]}function r(e){return"(?:"+e+")"}function n(e){return void 0===e?"undefined":null===e?"null":Object.prototype.toString.call(e).split(" ").pop().split("]").shift().toLowerCase()}function o(e){return e.toUpperCase()}function a(e){return null!=e?e instanceof Array?e:"number"!=typeof e.length||e.split||e.setInterval||e.call?[e]:Array.prototype.slice.call(e):[]}function s(e,t){var r=e;if(t)for(var n in t)r[n]=t[n];return r}function i(e){var n="[A-Za-z]",o="[0-9]",a=t(o,"[A-Fa-f]"),s=r(r("%[EFef]"+a+"%"+a+a+"%"+a+a)+"|"+r("%[89A-Fa-f]"+a+"%"+a+a)+"|"+r("%"+a+a)),i="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",c=t("[\\:\\/\\?\\#\\[\\]\\@]",i),u=e?"[\\uE000-\\uF8FF]":"[]",l=t(n,o,"[\\-\\.\\_\\~]",e?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]");r(n+t(n,o,"[\\+\\-\\.]")+"*"),r(r(s+"|"+t(l,i,"[\\:]"))+"*");var f=r(r("25[0-5]")+"|"+r("2[0-4]"+o)+"|"+r("1"+o+o)+"|"+r("0?[1-9]"+o)+"|0?0?"+o),d=r(f+"\\."+f+"\\."+f+"\\."+f),h=r(a+"{1,4}"),p=r(r(h+"\\:"+h)+"|"+d),y=r(r(h+"\\:")+"{6}"+p),m=r("\\:\\:"+r(h+"\\:")+"{5}"+p),v=r(r(h)+"?\\:\\:"+r(h+"\\:")+"{4}"+p),b=r(r(r(h+"\\:")+"{0,1}"+h)+"?\\:\\:"+r(h+"\\:")+"{3}"+p),g=r(r(r(h+"\\:")+"{0,2}"+h)+"?\\:\\:"+r(h+"\\:")+"{2}"+p),w=r(r(r(h+"\\:")+"{0,3}"+h)+"?\\:\\:"+h+"\\:"+p),_=r(r(r(h+"\\:")+"{0,4}"+h)+"?\\:\\:"+p),$=r(r(r(h+"\\:")+"{0,5}"+h)+"?\\:\\:"+h),S=r(r(r(h+"\\:")+"{0,6}"+h)+"?\\:\\:"),A=r([y,m,v,b,g,w,_,$,S].join("|")),O=r(r(l+"|"+s)+"+");r("[vV]"+a+"+\\."+t(l,i,"[\\:]")+"+"),r(r(s+"|"+t(l,i))+"*");var E=r(s+"|"+t(l,i,"[\\:\\@]"));return r(r(s+"|"+t(l,i,"[\\@]"))+"+"),r(r(E+"|"+t("[\\/\\?]",u))+"*"),{NOT_SCHEME:new RegExp(t("[^]",n,o,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(t("[^\\%\\:]",l,i),"g"),NOT_HOST:new RegExp(t("[^\\%\\[\\]\\:]",l,i),"g"),NOT_PATH:new RegExp(t("[^\\%\\/\\:\\@]",l,i),"g"),NOT_PATH_NOSCHEME:new RegExp(t("[^\\%\\/\\@]",l,i),"g"),NOT_QUERY:new RegExp(t("[^\\%]",l,i,"[\\:\\@\\/\\?]",u),"g"),NOT_FRAGMENT:new RegExp(t("[^\\%]",l,i,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(t("[^]",l,i),"g"),UNRESERVED:new RegExp(l,"g"),OTHER_CHARS:new RegExp(t("[^\\%]",l,c),"g"),PCT_ENCODED:new RegExp(s,"g"),IPV4ADDRESS:new RegExp("^("+d+")$"),IPV6ADDRESS:new RegExp("^\\[?("+A+")"+r(r("\\%25|\\%(?!"+a+"{2})")+"("+O+")")+"?\\]?$")}}var c=i(!1),u=i(!0),l=function(){function e(e,t){var r=[],n=!0,o=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(n=(s=i.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{!n&&i.return&&i.return()}finally{if(o)throw a}}return r}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),f=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},d=2147483647,h=36,p=1,y=26,m=38,v=700,b=72,g=128,w="-",_=/^xn--/,$=/[^\0-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},O=h-p,E=Math.floor,I=String.fromCharCode;function x(e){throw new RangeError(A[e])}function P(e,t){for(var r=[],n=e.length;n--;)r[n]=t(e[n]);return r}function k(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+P((e=e.replace(S,".")).split("."),t).join(".")}function T(e){for(var t=[],r=0,n=e.length;r<n;){var o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){var a=e.charCodeAt(r++);56320==(64512&a)?t.push(((1023&o)<<10)+(1023&a)+65536):(t.push(o),r--)}else t.push(o)}return t}var C=function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:h},j=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},N=function(e,t,r){var n=0;for(e=r?E(e/v):e>>1,e+=E(e/t);e>O*y>>1;n+=h)e=E(e/O);return E(n+(O+1)*e/(e+m))},R=function(e){var t=[],r=e.length,n=0,o=g,a=b,s=e.lastIndexOf(w);s<0&&(s=0);for(var i=0;i<s;++i)e.charCodeAt(i)>=128&&x("not-basic"),t.push(e.charCodeAt(i));for(var c=s>0?s+1:0;c<r;){for(var u=n,l=1,f=h;;f+=h){c>=r&&x("invalid-input");var m=C(e.charCodeAt(c++));(m>=h||m>E((d-n)/l))&&x("overflow"),n+=m*l;var v=f<=a?p:f>=a+y?y:f-a;if(m<v)break;var _=h-v;l>E(d/_)&&x("overflow"),l*=_}var $=t.length+1;a=N(n-u,$,0==u),E(n/$)>d-o&&x("overflow"),o+=E(n/$),n%=$,t.splice(n++,0,o)}return String.fromCodePoint.apply(String,t)},D=function(e){var t=[],r=(e=T(e)).length,n=g,o=0,a=b,s=!0,i=!1,c=void 0;try{for(var u,l=e[Symbol.iterator]();!(s=(u=l.next()).done);s=!0){var f=u.value;f<128&&t.push(I(f))}}catch(e){i=!0,c=e}finally{try{!s&&l.return&&l.return()}finally{if(i)throw c}}var m=t.length,v=m;for(m&&t.push(w);v<r;){var _=d,$=!0,S=!1,A=void 0;try{for(var O,P=e[Symbol.iterator]();!($=(O=P.next()).done);$=!0){var k=O.value;k>=n&&k<_&&(_=k)}}catch(e){S=!0,A=e}finally{try{!$&&P.return&&P.return()}finally{if(S)throw A}}var C=v+1;_-n>E((d-o)/C)&&x("overflow"),o+=(_-n)*C,n=_;var R=!0,D=!1,B=void 0;try{for(var V,U=e[Symbol.iterator]();!(R=(V=U.next()).done);R=!0){var F=V.value;if(F<n&&++o>d&&x("overflow"),F==n){for(var q=o,M=h;;M+=h){var z=M<=a?p:M>=a+y?y:M-a;if(q<z)break;var L=q-z,K=h-z;t.push(I(j(z+L%K,0))),q=E(L/K)}t.push(I(j(q,0))),a=N(o,C,v==m),o=0,++v}}}catch(e){D=!0,B=e}finally{try{!R&&U.return&&U.return()}finally{if(D)throw B}}++o,++n}return t.join("")},B=function(e){return k(e,(function(e){return _.test(e)?R(e.slice(4).toLowerCase()):e}))},V=function(e){return k(e,(function(e){return $.test(e)?"xn--"+D(e):e}))},U={version:"2.1.0",ucs2:{decode:T,encode:function(e){return String.fromCodePoint.apply(String,f(e))}},decode:R,encode:D,toASCII:V,toUnicode:B},F={};function q(e){var t=e.charCodeAt(0);return t<16?"%0"+t.toString(16).toUpperCase():t<128?"%"+t.toString(16).toUpperCase():t<2048?"%"+(t>>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function M(e){for(var t="",r=0,n=e.length;r<n;){var o=parseInt(e.substr(r+1,2),16);if(o<128)t+=String.fromCharCode(o),r+=3;else if(o>=194&&o<224){if(n-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((31&o)<<6|63&a)}else t+=e.substr(r,6);r+=6}else if(o>=224){if(n-r>=9){var s=parseInt(e.substr(r+4,2),16),i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&s)<<6|63&i)}else t+=e.substr(r,9);r+=9}else t+=e.substr(r,3),r+=3}return t}function z(e,t){function r(e){var r=M(e);return r.match(t.UNRESERVED)?r:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,q).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,q).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,q).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,q).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,q).replace(t.PCT_ENCODED,o)),e}function L(e){return e.replace(/^0*(.*)/,"$1")||"0"}function K(e,t){var r=e.match(t.IPV4ADDRESS)||[],n=l(r,2)[1];return n?n.split(".").map(L).join("."):e}function G(e,t){var r=e.match(t.IPV6ADDRESS)||[],n=l(r,3),o=n[1],a=n[2];if(o){for(var s=o.toLowerCase().split("::").reverse(),i=l(s,2),c=i[0],u=i[1],f=u?u.split(":").map(L):[],d=c.split(":").map(L),h=t.IPV4ADDRESS.test(d[d.length-1]),p=h?7:8,y=d.length-p,m=Array(p),v=0;v<p;++v)m[v]=f[v]||d[y+v]||"";h&&(m[p-1]=K(m[p-1],t));var b=m.reduce((function(e,t,r){if(!t||"0"===t){var n=e[e.length-1];n&&n.index+n.length===r?n.length++:e.push({index:r,length:1})}return e}),[]).sort((function(e,t){return t.length-e.length}))[0],g=void 0;if(b&&b.length>1){var w=m.slice(0,b.index),_=m.slice(b.index+b.length);g=w.join(":")+"::"+_.join(":")}else g=m.join(":");return a&&(g+="%"+a),g}return e}var J=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,H=void 0==="".match(/(){0}/)[1];function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},n=!1!==t.iri?u:c;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(J);if(o){H?(r.scheme=o[1],r.userinfo=o[3],r.host=o[4],r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=o[7],r.fragment=o[8],isNaN(r.port)&&(r.port=o[5])):(r.scheme=o[1]||void 0,r.userinfo=-1!==e.indexOf("@")?o[3]:void 0,r.host=-1!==e.indexOf("//")?o[4]:void 0,r.port=parseInt(o[5],10),r.path=o[6]||"",r.query=-1!==e.indexOf("?")?o[7]:void 0,r.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(r.port)&&(r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),r.host&&(r.host=G(K(r.host,n),n)),void 0!==r.scheme||void 0!==r.userinfo||void 0!==r.host||void 0!==r.port||r.path||void 0!==r.query?void 0===r.scheme?r.reference="relative":void 0===r.fragment?r.reference="absolute":r.reference="uri":r.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==r.reference&&(r.error=r.error||"URI is not a "+t.reference+" reference.");var a=F[(t.scheme||r.scheme||"").toLowerCase()];if(t.unicodeSupport||a&&a.unicodeSupport)z(r,n);else{if(r.host&&(t.domainHost||a&&a.domainHost))try{r.host=U.toASCII(r.host.replace(n.PCT_ENCODED,M).toLowerCase())}catch(e){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+e}z(r,c)}a&&a.parse&&a.parse(r,t)}else r.error=r.error||"URI can not be parsed.";return r}function Z(e,t){var r=!1!==t.iri?u:c,n=[];return void 0!==e.userinfo&&(n.push(e.userinfo),n.push("@")),void 0!==e.host&&n.push(G(K(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))),"number"!=typeof e.port&&"string"!=typeof e.port||(n.push(":"),n.push(String(e.port))),n.length?n.join(""):void 0}var Q=/^\.\.?\//,Y=/^\/\.(\/|$)/,X=/^\/\.\.(\/|$)/,ee=/^\/?(?:.|\n)*?(?=\/|$)/;function te(e){for(var t=[];e.length;)if(e.match(Q))e=e.replace(Q,"");else if(e.match(Y))e=e.replace(Y,"/");else if(e.match(X))e=e.replace(X,"/"),t.pop();else if("."===e||".."===e)e="";else{var r=e.match(ee);if(!r)throw new Error("Unexpected dot segment condition");var n=r[0];e=e.slice(n.length),t.push(n)}return t.join("")}function re(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.iri?u:c,n=[],o=F[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(r.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?U.toUnicode(e.host):U.toASCII(e.host.replace(r.PCT_ENCODED,M).toLowerCase())}catch(r){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+r}z(e,r),"suffix"!==t.reference&&e.scheme&&(n.push(e.scheme),n.push(":"));var a=Z(e,t);if(void 0!==a&&("suffix"!==t.reference&&n.push("//"),n.push(a),e.path&&"/"!==e.path.charAt(0)&&n.push("/")),void 0!==e.path){var s=e.path;t.absolutePath||o&&o.absolutePath||(s=te(s)),void 0===a&&(s=s.replace(/^\/\//,"/%2F")),n.push(s)}return void 0!==e.query&&(n.push("?"),n.push(e.query)),void 0!==e.fragment&&(n.push("#"),n.push(e.fragment)),n.join("")}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n={};return arguments[3]||(e=W(re(e,r),r),t=W(re(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(n.scheme=t.scheme,n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(n.userinfo=t.userinfo,n.host=t.host,n.port=t.port,n.path=te(t.path||""),n.query=t.query):(t.path?("/"===t.path.charAt(0)?n.path=te(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:n.path=t.path:n.path="/"+t.path,n.path=te(n.path)),n.query=t.query):(n.path=e.path,void 0!==t.query?n.query=t.query:n.query=e.query),n.userinfo=e.userinfo,n.host=e.host,n.port=e.port),n.scheme=e.scheme),n.fragment=t.fragment,n}function oe(e,t,r){var n=s({scheme:"null"},r);return re(ne(W(e,n),W(t,n),n,!0),n)}function ae(e,t){return"string"==typeof e?e=re(W(e,t),t):"object"===n(e)&&(e=W(re(e,t),t)),e}function se(e,t,r){return"string"==typeof e?e=re(W(e,r),r):"object"===n(e)&&(e=re(e,r)),"string"==typeof t?t=re(W(t,r),r):"object"===n(t)&&(t=re(t,r)),e===t}function ie(e,t){return e&&e.toString().replace(t&&t.iri?u.ESCAPE:c.ESCAPE,q)}function ce(e,t){return e&&e.toString().replace(t&&t.iri?u.PCT_ENCODED:c.PCT_ENCODED,M)}var ue={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){var r="https"===String(e.scheme).toLowerCase();return e.port!==(r?443:80)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},le={scheme:"https",domainHost:ue.domainHost,parse:ue.parse,serialize:ue.serialize};function fe(e){return"boolean"==typeof e.secure?e.secure:"wss"===String(e.scheme).toLowerCase()}var de={scheme:"ws",domainHost:!0,parse:function(e,t){var r=e;return r.secure=fe(r),r.resourceName=(r.path||"/")+(r.query?"?"+r.query:""),r.path=void 0,r.query=void 0,r},serialize:function(e,t){if(e.port!==(fe(e)?443:80)&&""!==e.port||(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){var r=e.resourceName.split("?"),n=l(r,2),o=n[0],a=n[1];e.path=o&&"/"!==o?o:void 0,e.query=a,e.resourceName=void 0}return e.fragment=void 0,e}},he={scheme:"wss",domainHost:de.domainHost,parse:de.parse,serialize:de.serialize},pe={},ye="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",me="[0-9A-Fa-f]",ve=r(r("%[EFef]"+me+"%"+me+me+"%"+me+me)+"|"+r("%[89A-Fa-f]"+me+"%"+me+me)+"|"+r("%"+me+me)),be="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",ge=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),we="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",_e=new RegExp(ye,"g"),$e=new RegExp(ve,"g"),Se=new RegExp(t("[^]",be,"[\\.]",'[\\"]',ge),"g"),Ae=new RegExp(t("[^]",ye,we),"g"),Oe=Ae;function Ee(e){var t=M(e);return t.match(_e)?t:e}var Ie={scheme:"mailto",parse:function(e,t){var r=e,n=r.to=r.path?r.path.split(","):[];if(r.path=void 0,r.query){for(var o=!1,a={},s=r.query.split("&"),i=0,c=s.length;i<c;++i){var u=s[i].split("=");switch(u[0]){case"to":for(var l=u[1].split(","),f=0,d=l.length;f<d;++f)n.push(l[f]);break;case"subject":r.subject=ce(u[1],t);break;case"body":r.body=ce(u[1],t);break;default:o=!0,a[ce(u[0],t)]=ce(u[1],t)}}o&&(r.headers=a)}r.query=void 0;for(var h=0,p=n.length;h<p;++h){var y=n[h].split("@");if(y[0]=ce(y[0]),t.unicodeSupport)y[1]=ce(y[1],t).toLowerCase();else try{y[1]=U.toASCII(ce(y[1],t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to ASCII via punycode: "+e}n[h]=y.join("@")}return r},serialize:function(e,t){var r=e,n=a(e.to);if(n){for(var s=0,i=n.length;s<i;++s){var c=String(n[s]),u=c.lastIndexOf("@"),l=c.slice(0,u).replace($e,Ee).replace($e,o).replace(Se,q),f=c.slice(u+1);try{f=t.iri?U.toUnicode(f):U.toASCII(ce(f,t).toLowerCase())}catch(e){r.error=r.error||"Email address's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+e}n[s]=l+"@"+f}r.path=n.join(",")}var d=e.headers=e.headers||{};e.subject&&(d.subject=e.subject),e.body&&(d.body=e.body);var h=[];for(var p in d)d[p]!==pe[p]&&h.push(p.replace($e,Ee).replace($e,o).replace(Ae,q)+"="+d[p].replace($e,Ee).replace($e,o).replace(Oe,q));return h.length&&(r.query=h.join("&")),r}},xe=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(e,t){var r=e.path&&e.path.match(xe),n=e;if(r){var o=t.scheme||n.scheme||"urn",a=r[1].toLowerCase(),s=r[2],i=o+":"+(t.nid||a),c=F[i];n.nid=a,n.nss=s,n.path=void 0,c&&(n=c.parse(n,t))}else n.error=n.error||"URN can not be parsed.";return n},serialize:function(e,t){var r=t.scheme||e.scheme||"urn",n=e.nid,o=r+":"+(t.nid||n),a=F[o];a&&(e=a.serialize(e,t));var s=e,i=e.nss;return s.path=(n||t.nid)+":"+i,s}},ke=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Te={scheme:"urn:uuid",parse:function(e,t){var r=e;return r.uuid=r.nss,r.nss=void 0,t.tolerant||r.uuid&&r.uuid.match(ke)||(r.error=r.error||"UUID is not valid."),r},serialize:function(e,t){var r=e;return r.nss=(e.uuid||"").toLowerCase(),r}};F[ue.scheme]=ue,F[le.scheme]=le,F[de.scheme]=de,F[he.scheme]=he,F[Ie.scheme]=Ie,F[Pe.scheme]=Pe,F[Te.scheme]=Te,e.SCHEMES=F,e.pctEncChar=q,e.pctDecChars=M,e.parse=W,e.removeDotSegments=te,e.serialize=re,e.resolveComponents=ne,e.resolve=oe,e.normalize=ae,e.equal=se,e.escapeComponent=ie,e.unescapeComponent=ce,Object.defineProperty(e,"__esModule",{value:!0})}(t)}(0,$r.exports),vr.getSchemaRefs=vr.resolveUrl=vr.normalizeId=vr._getFullPath=vr.getFullPath=vr.inlineRef=void 0;const Sr=Nt,Ar=br,Or=gr.exports,Er=$r.exports,Ir=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);vr.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!Pr(e):!!t&&kr(e)<=t)};const xr=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Pr(e){for(const t in e){if(xr.has(t))return!0;const r=e[t];if(Array.isArray(r)&&r.some(Pr))return!0;if("object"==typeof r&&Pr(r))return!0}return!1}function kr(e){let t=0;for(const r in e){if("$ref"===r)return 1/0;if(t++,!Ir.has(r)&&("object"==typeof e[r]&&Sr.eachItem(e[r],(e=>t+=kr(e))),t===1/0))return 1/0}return t}function Tr(e="",t){!1!==t&&(e=Nr(e));return Cr(Er.parse(e))}function Cr(e){return Er.serialize(e).split("#")[0]+"#"}vr.getFullPath=Tr,vr._getFullPath=Cr;const jr=/#\/?$/;function Nr(e){return e?e.replace(jr,""):""}vr.normalizeId=Nr,vr.resolveUrl=function(e,t){return t=Nr(t),Er.resolve(e,t)};const Rr=/^[a-z_][-a-z0-9._]*$/i;vr.getSchemaRefs=function(e){if("boolean"==typeof e)return{};const t=Nr(e.$id),r={"":t},n=Tr(t,!1),o={},a=new Set;return Or(e,{allKeys:!0},((e,t,c,u)=>{if(void 0===u)return;const l=n+t;let f=r[u];function d(t){if(t=Nr(f?Er.resolve(f,t):t),a.has(t))throw i(t);a.add(t);let r=this.refs[t];return"string"==typeof r&&(r=this.refs[r]),"object"==typeof r?s(e,r.schema,t):t!==Nr(l)&&("#"===t[0]?(s(e,o[t],t),o[t]=e):this.refs[t]=l),t}function h(e){if("string"==typeof e){if(!Rr.test(e))throw new Error(`invalid anchor "${e}"`);d.call(this,`#${e}`)}}"string"==typeof e.$id&&(f=d.call(this,e.$id)),h.call(this,e.$anchor),h.call(this,e.$dynamicAnchor),r[t]=f})),o;function s(e,t,r){if(void 0!==t&&!Ar(e,t))throw i(r)}function i(e){return new Error(`reference "${e}" resolves to more than one schema`)}},xt.getData=xt.KeywordCxt=xt.validateFunctionCode=void 0;const Dr=Pt,Br=zt,Vr=Gt,Ur=zt,Fr=Wt,qr=Xt,Mr=pr,zr=Tt,Lr=Rt,Kr=vr,Gr=Nt,Jr=kt;function Hr({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},a){o.code.es5?e.func(t,zr._`${Lr.default.data}, ${Lr.default.valCxt}`,n.$async,(()=>{e.code(zr._`"use strict"; ${Wr(r,o)}`),function(e,t){e.if(Lr.default.valCxt,(()=>{e.var(Lr.default.instancePath,zr._`${Lr.default.valCxt}.${Lr.default.instancePath}`),e.var(Lr.default.parentData,zr._`${Lr.default.valCxt}.${Lr.default.parentData}`),e.var(Lr.default.parentDataProperty,zr._`${Lr.default.valCxt}.${Lr.default.parentDataProperty}`),e.var(Lr.default.rootData,zr._`${Lr.default.valCxt}.${Lr.default.rootData}`),t.dynamicRef&&e.var(Lr.default.dynamicAnchors,zr._`${Lr.default.valCxt}.${Lr.default.dynamicAnchors}`)}),(()=>{e.var(Lr.default.instancePath,zr._`""`),e.var(Lr.default.parentData,zr._`undefined`),e.var(Lr.default.parentDataProperty,zr._`undefined`),e.var(Lr.default.rootData,Lr.default.data),t.dynamicRef&&e.var(Lr.default.dynamicAnchors,zr._`{}`)}))}(e,o),e.code(a)})):e.func(t,zr._`${Lr.default.data}, ${function(e){return zr._`{${Lr.default.instancePath}="", ${Lr.default.parentData}, ${Lr.default.parentDataProperty}, ${Lr.default.rootData}=${Lr.default.data}${e.dynamicRef?zr._`, ${Lr.default.dynamicAnchors}={}`:zr.nil}}={}`}(o)}`,n.$async,(()=>e.code(Wr(r,o)).code(a)))}function Wr(e,t){return"object"==typeof e&&e.$id&&(t.code.source||t.code.process)?zr._`/*# sourceURL=${e.$id} */`:zr.nil}function Zr(e,t){Yr(e)&&(Xr(e),Qr(e))?function(e,t){const{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&tn(e);(function(e){e.schema.$id&&(e.baseId=Kr.resolveUrl(e.baseId,e.schema.$id))})(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const a=n.const("_errs",Lr.default.errors);en(e,a),n.var(t,zr._`${a} === ${Lr.default.errors}`)}(e,t):Dr.boolOrEmptySchema(e,t)}function Qr({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const r in e)if(t.RULES.all[r])return!0;return!1}function Yr(e){return"boolean"!=typeof e.schema}function Xr(e){Gr.checkUnknownRules(e),function(e){const{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&Gr.schemaHasRulesButRef(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function en(e,t){if(e.opts.jtd)return rn(e,[],!1,t);const r=Br.getSchemaTypes(e.schema);rn(e,r,!Br.coerceAndCheckDataType(e,r),t)}function tn({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){const a=r.$comment;if(!0===o.$comment)e.code(zr._`${Lr.default.self}.logger.log(${a})`);else if("function"==typeof o.$comment){const r=zr.str`${n}/$comment`,o=e.scopeValue("root",{ref:t.root});e.code(zr._`${Lr.default.self}.opts.$comment(${a}, ${r}, ${o}.schema)`)}}function rn(e,t,r,n){const{gen:o,schema:a,data:s,allErrors:i,opts:c,self:u}=e,{RULES:l}=u;function f(u){Vr.shouldUseGroup(a,u)&&(u.type?(o.if(Ur.checkDataType(u.type,s,c.strictNumbers)),nn(e,u),1===t.length&&t[0]===u.type&&r&&(o.else(),Ur.reportTypeError(e)),o.endIf()):nn(e,u),i||o.if(zr._`${Lr.default.errors} === ${n||0}`))}!a.$ref||!c.ignoreKeywordsWithRef&&Gr.schemaHasRulesButRef(a,l)?(c.jtd||function(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;(function(e,t){if(!t.length)return;if(!e.dataTypes.length)return void(e.dataTypes=t);t.forEach((t=>{an(e.dataTypes,t)||sn(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),e.dataTypes=e.dataTypes.filter((e=>an(t,e)))})(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&sn(e,"use allowUnionTypes to allow union type keyword")}(e,t);!function(e,t){const r=e.self.RULES.all;for(const n in r){const o=r[n];if("object"==typeof o&&Vr.shouldUseRule(e.schema,o)){const{type:r}=o.definition;r.length&&!r.some((e=>on(t,e)))&&sn(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(e,e.dataTypes)}(e,t),o.block((()=>{for(const e of l.rules)f(e);f(l.post)}))):o.block((()=>un(e,"$ref",l.all.$ref.definition)))}function nn(e,t){const{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&Fr.assignDefaults(e,t.type),r.block((()=>{for(const r of t.rules)Vr.shouldUseRule(n,r)&&un(e,r.keyword,r.definition,t.type)}))}function on(e,t){return e.includes(t)||"number"===t&&e.includes("integer")}function an(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function sn(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,Gr.checkStrictMode(e,t,e.opts.strictTypes)}xt.validateFunctionCode=function(e){Yr(e)&&(Xr(e),Qr(e))?function(e){const{schema:t,opts:r,gen:n}=e;Hr(e,(()=>{r.$comment&&t.$comment&&tn(e),function(e){const{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&Gr.checkStrictMode(e,"default is ignored in the schema root")}(e),n.let(Lr.default.vErrors,null),n.let(Lr.default.errors,0),r.unevaluated&&function(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",zr._`${r}.evaluated`),t.if(zr._`${e.evaluated}.dynamicProps`,(()=>t.assign(zr._`${e.evaluated}.props`,zr._`undefined`))),t.if(zr._`${e.evaluated}.dynamicItems`,(()=>t.assign(zr._`${e.evaluated}.items`,zr._`undefined`)))}(e),en(e),function(e){const{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:a}=e;r.$async?t.if(zr._`${Lr.default.errors} === 0`,(()=>t.return(Lr.default.data)),(()=>t.throw(zr._`new ${o}(${Lr.default.vErrors})`))):(t.assign(zr._`${n}.errors`,Lr.default.vErrors),a.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof zr.Name&&e.assign(zr._`${t}.props`,r);n instanceof zr.Name&&e.assign(zr._`${t}.items`,n)}(e),t.return(zr._`${Lr.default.errors} === 0`))}(e)}))}(e):Hr(e,(()=>Dr.topBoolOrEmptySchema(e)))};class cn{constructor(e,t,r){if(qr.validateKeywordUsage(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=Gr.schemaRefOrVal(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",dn(this.$data,e));else if(this.schemaCode=this.schemaValue,!qr.validSchemaType(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",Lr.default.errors))}result(e,t,r){this.gen.if(zr.not(e)),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.result(e,void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(zr._`${t} !== undefined && (${zr.or(this.invalid$data(),e)})`)}error(e,t,r){if(t)return this.setParams(t),this._error(e,r),void this.setParams({});this._error(e,r)}_error(e,t){(e?Jr.reportExtraError:Jr.reportError)(this,this.def.error,t)}$dataError(){Jr.reportError(this,this.def.$dataError||Jr.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');Jr.resetErrorsCount(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=zr.nil){this.gen.block((()=>{this.check$data(e,r),t()}))}check$data(e=zr.nil,t=zr.nil){if(!this.$data)return;const{gen:r,schemaCode:n,schemaType:o,def:a}=this;r.if(zr.or(zr._`${n} === undefined`,t)),e!==zr.nil&&r.assign(e,!0),(o.length||a.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==zr.nil&&r.assign(e,!1)),r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:n,it:o}=this;return zr.or(function(){if(r.length){if(!(t instanceof zr.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return zr._`${Ur.checkDataTypes(e,t,o.opts.strictNumbers,Ur.DataType.Wrong)}`}return zr.nil}(),function(){if(n.validateSchema){const r=e.scopeValue("validate$data",{ref:n.validateSchema});return zr._`!${r}(${t})`}return zr.nil}())}subschema(e,t){const r=Mr.getSubschema(this.it,e);Mr.extendSubschemaData(r,this.it,e),Mr.extendSubschemaMode(r,e);const n={...this.it,...r,items:void 0,props:void 0};return Zr(n,t),n}mergeEvaluated(e,t){const{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=Gr.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=Gr.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){const{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,(()=>this.mergeEvaluated(e,zr.Name))),!0}}function un(e,t,r,n){const o=new cn(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?qr.funcKeywordCode(o,r):"macro"in r?qr.macroKeywordCode(o,r):(r.compile||r.validate)&&qr.funcKeywordCode(o,r)}xt.KeywordCxt=cn;const ln=/^\/(?:[^~]|~0|~1)*$/,fn=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function dn(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,a;if(""===e)return Lr.default.rootData;if("/"===e[0]){if(!ln.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,a=Lr.default.rootData}else{const s=fn.exec(e);if(!s)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+s[1];if(o=s[2],"#"===o){if(i>=t)throw new Error(c("property/index",i));return n[t-i]}if(i>t)throw new Error(c("data",i));if(a=r[t-i],!o)return a}let s=a;const i=o.split("/");for(const e of i)e&&(a=zr._`${a}${zr.getProperty(Gr.unescapeJsonPointer(e))}`,s=zr._`${s} && ${a}`);return s;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}xt.getData=dn;var hn={};class pn extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}hn.default=pn;var yn={};const mn=vr;class vn extends Error{constructor(e,t,r){super(r||`can't resolve reference ${t} from id ${e}`),this.missingRef=mn.resolveUrl(e,t),this.missingSchema=mn.normalizeId(mn.getFullPath(this.missingRef))}}yn.default=vn;var bn={};bn.resolveSchema=bn.getCompilingSchema=bn.resolveRef=bn.compileSchema=bn.SchemaEnv=void 0;const gn=Tt,wn=hn,_n=Rt,$n=vr,Sn=Nt,An=xt,On=$r.exports;class En{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:$n.normalizeId(null==r?void 0:r.$id),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function In(e){const t=Pn.call(this,e);if(t)return t;const r=$n.getFullPath(e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:a}=this.opts,s=new gn.CodeGen(this.scope,{es5:n,lines:o,ownProperties:a});let i;e.$async&&(i=s.scopeValue("Error",{ref:wn.default,code:gn._`require("ajv/dist/runtime/validation_error").default`}));const c=s.scopeName("validate");e.validateName=c;const u={gen:s,allErrors:this.opts.allErrors,data:_n.default.data,parentData:_n.default.parentData,parentDataProperty:_n.default.parentDataProperty,dataNames:[_n.default.data],dataPathArr:[gn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:gn.stringify(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:i,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:gn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:gn._`""`,opts:this.opts,self:this};let l;try{this._compilations.add(e),An.validateFunctionCode(u),s.optimize(this.opts.code.optimize);const t=s.toString();l=`${s.scopeRefs(_n.default.scope)}return ${t}`,this.opts.code.process&&(l=this.opts.code.process(l,e));const r=new Function(`${_n.default.self}`,`${_n.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:r}),r.errors=null,r.schema=e.schema,r.schemaEnv=e,e.$async&&(r.$async=!0),!0===this.opts.code.source&&(r.source={validateName:c,validateCode:t,scopeValues:s._values}),this.opts.unevaluated){const{props:e,items:t}=u;r.evaluated={props:e instanceof gn.Name?void 0:e,items:t instanceof gn.Name?void 0:t,dynamicProps:e instanceof gn.Name,dynamicItems:t instanceof gn.Name},r.source&&(r.source.evaluated=gn.stringify(r.evaluated))}return e.validate=r,e}catch(t){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),t}finally{this._compilations.delete(e)}}function xn(e){return $n.inlineRef(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:In.call(this,e)}function Pn(e){for(const n of this._compilations)if(r=e,(t=n).schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n;var t,r}function kn(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||Tn.call(this,e,t)}function Tn(e,t){const r=On.parse(t),n=$n._getFullPath(r);let o=$n.getFullPath(e.baseId);if(Object.keys(e.schema).length>0&&n===o)return jn.call(this,r,e);const a=$n.normalizeId(n),s=this.refs[a]||this.schemas[a];if("string"==typeof s){const t=Tn.call(this,e,s);if("object"!=typeof(null==t?void 0:t.schema))return;return jn.call(this,r,t)}if("object"==typeof(null==s?void 0:s.schema)){if(s.validate||In.call(this,s),a===$n.normalizeId(t)){const{schema:t}=s;return t.$id&&(o=$n.resolveUrl(o,t.$id)),new En({schema:t,root:e,baseId:o})}return jn.call(this,r,s)}}bn.SchemaEnv=En,bn.compileSchema=In,bn.resolveRef=function(e,t,r){var n;r=$n.resolveUrl(t,r);const o=e.refs[r];if(o)return o;let a=kn.call(this,e,r);if(void 0===a){const o=null===(n=e.localRefs)||void 0===n?void 0:n[r];o&&(a=new En({schema:o,root:e,baseId:t}))}return void 0!==a?e.refs[r]=xn.call(this,a):void 0},bn.getCompilingSchema=Pn,bn.resolveSchema=Tn;const Cn=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function jn(e,{baseId:t,schema:r,root:n}){var o;if("/"!==(null===(o=e.fragment)||void 0===o?void 0:o[0]))return;for(const n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;if(void 0===(r=r[Sn.unescapeFragment(n)]))return;!Cn.has(n)&&"object"==typeof r&&r.$id&&(t=$n.resolveUrl(t,r.$id))}let a;if("boolean"!=typeof r&&r.$ref&&!Sn.schemaHasRulesButRef(r,this.RULES)){const e=$n.resolveUrl(t,r.$ref);a=Tn.call(this,n,e)}return a=a||new En({schema:r,root:n,baseId:t}),a.schema!==a.root.schema?a:void 0}var Nn={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1};!function(e){e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=xt;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=Tt;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=hn,o=yn,a=Lt,s=bn,i=Tt,c=vr,u=zt,l=Nt,f=Nn,d=["removeAdditional","useDefaults","coerceTypes"],h=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),p={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",schemaId:"JSON Schema draft-04 is not supported in Ajv v7/8.",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now, see option `strict`."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function m(e){var t,r,n,o,a,s,i,c,u,l,f,d,h,p,y,m,v,b,g,w;const _=e.strict,$=null===(t=e.code)||void 0===t?void 0:t.optimize,S=!0===$||void 0===$?1:$||0;return{strictSchema:null===(n=null!==(r=e.strictSchema)&&void 0!==r?r:_)||void 0===n||n,strictNumbers:null===(a=null!==(o=e.strictNumbers)&&void 0!==o?o:_)||void 0===a||a,strictTypes:null!==(i=null!==(s=e.strictTypes)&&void 0!==s?s:_)&&void 0!==i?i:"log",strictTuples:null!==(u=null!==(c=e.strictTuples)&&void 0!==c?c:_)&&void 0!==u?u:"log",strictRequired:null!==(f=null!==(l=e.strictRequired)&&void 0!==l?l:_)&&void 0!==f&&f,code:e.code?{...e.code,optimize:S}:{optimize:S},loopRequired:null!==(d=e.loopRequired)&&void 0!==d?d:200,loopEnum:null!==(h=e.loopEnum)&&void 0!==h?h:200,meta:null===(p=e.meta)||void 0===p||p,messages:null===(y=e.messages)||void 0===y||y,inlineRefs:null===(m=e.inlineRefs)||void 0===m||m,addUsedSchema:null===(v=e.addUsedSchema)||void 0===v||v,validateSchema:null===(b=e.validateSchema)||void 0===b||b,validateFormats:null===(g=e.validateFormats)||void 0===g||g,unicodeRegExp:null===(w=e.unicodeRegExp)||void 0===w||w}}class v{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...m(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new i.ValueScope({scope:{},prefixes:h,es5:t,lines:r}),this.logger=function(e){if(!1===e)return A;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const n=e.validateFormats;e.validateFormats=!1,this.RULES=a.getRules(),b.call(this,p,e,"NOT SUPPORTED"),b.call(this,y,e,"DEPRECATED","warn"),this._metaOpts=S.call(this),e.formats&&_.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&$.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),w.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t}=this.opts;t&&e&&this.addMetaSchema(f,f.$id,!1)}defaultMeta(){const{meta:e}=this.opts;return this.opts.defaultMeta="object"==typeof e?e.$id||e:void 0}validate(e,t){let r;if("string"==typeof e){if(r=this.getSchema(e),!r)throw new Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);const n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await a.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||s.call(this,r)}async function a(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return i.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const r=await u.call(this,e);this.refs[e]||await a.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,r,n);return this}let o;if("object"==typeof e&&(o=e.$id,void 0!==o&&"string"!=typeof o))throw new Error("schema $id must be string");return t=c.normalizeId(t||o),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let r;if(r=e.$schema,void 0!==r&&"string"!=typeof r)throw new Error("$schema must be a string");if(r=r||this.opts.defaultMeta||this.defaultMeta(),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const n=this.validate(r,e);if(!n&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=g.call(this,e));)e=t;if(void 0===t){const r=new s.SchemaEnv({schema:{}});if(t=s.resolveSchema.call(this,r,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=g.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let r=e.$id;return r&&(r=c.normalizeId(r),delete this.schemas[r],delete this.refs[r]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(r=(t=e).keyword,Array.isArray(r)&&!r.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(E.call(this,r,t),!t)return l.eachItem(r,(e=>I.call(this,e))),this;P.call(this,t);const n={...t,type:u.getJSONTypes(t.type),schemaType:u.getJSONTypes(t.schemaType)};return l.eachItem(r,0===n.type.length?e=>I.call(this,e,n):e=>n.type.forEach((t=>I.call(this,e,n,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r)):"No errors"}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const n of t){const t=n.split("/").slice(1);let o=e;for(const e of t)o=o[e];for(const e in r){const t=r[e];if("object"!=typeof t)continue;const{$data:n}=t.definition,a=o[e];n&&a&&(o[e]=T(a))}}return e}_removeAllSchemas(e,t){for(const r in e){const n=e[r];t&&!t.test(r)||("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,o=this.opts.addUsedSchema){let a;if("object"==typeof e)a=e.$id;else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(void 0!==i)return i;const u=c.getSchemaRefs.call(this,e);return r=c.normalizeId(a||r),i=new s.SchemaEnv({schema:e,meta:t,baseId:r,localRefs:u}),this._cache.set(i.schema,i),o&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=i),n&&this.validateSchema(e,!0),i}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}}function b(e,t,r,n="error"){for(const o in e){const a=o;a in t&&this.logger[n](`${r}: option ${o}. ${e[a]}`)}}function g(e){return e=c.normalizeId(e),this.schemas[e]||this.refs[e]}function w(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function _(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function $(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}}function S(){const e={...this.opts};for(const t of d)delete e[t];return e}e.default=v,v.ValidationError=n.default,v.MissingRefError=o.default;const A={log(){},warn(){},error(){}};const O=/^[a-z_$][a-z0-9_$:-]*$/i;function E(e,t){const{RULES:r}=this;if(l.eachItem(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!O.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function I(e,t,r){var n;const o=null==t?void 0:t.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let s=o?a.post:a.rules.find((({type:e})=>e===r));if(s||(s={type:r,rules:[]},a.rules.push(s)),a.keywords[e]=!0,!t)return;const i={keyword:e,definition:{...t,type:u.getJSONTypes(t.type),schemaType:u.getJSONTypes(t.schemaType)}};t.before?x.call(this,s,i,t.before):s.rules.push(i),a.all[e]=i,null===(n=t.implements)||void 0===n||n.forEach((e=>this.addKeyword(e)))}function x(e,t,r){const n=e.rules.findIndex((e=>e.keyword===r));n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function P(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=T(t)),e.validateSchema=this.compile(t,!0))}const k={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function T(e){return{anyOf:[e,k]}}}(It);var Rn={},Dn={},Bn={};const Vn={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Bn.default=Vn;var Un={};Un.callRef=Un.getValidate=void 0;const Fn=yn,qn=er,Mn=Tt,zn=Rt,Ln=bn,Kn=Nt,Gn={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:a,validateName:s,opts:i,self:c}=n,{root:u}=a;if(("#"===r||"#/"===r)&&o===u.baseId)return function(){if(a===u)return Hn(e,s,a,a.$async);const r=t.scopeValue("root",{ref:u});return Hn(e,Mn._`${r}.validate`,u,u.$async)}();const l=Ln.resolveRef.call(c,u,o,r);if(void 0===l)throw new Fn.default(o,r);return l instanceof Ln.SchemaEnv?function(t){const r=Jn(e,t);Hn(e,r,t,t.$async)}(l):function(n){const o=t.scopeValue("schema",!0===i.code.source?{ref:n,code:Mn.stringify(n)}:{ref:n}),a=t.name("valid"),s=e.subschema({schema:n,dataTypes:[],schemaPath:Mn.nil,topSchemaRef:o,errSchemaPath:r},a);e.mergeEvaluated(s),e.ok(a)}(l)}};function Jn(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):Mn._`${r.scopeValue("wrapper",{ref:t})}.validate`}function Hn(e,t,r,n){const{gen:o,it:a}=e,{allErrors:s,schemaEnv:i,opts:c}=a,u=c.passContext?zn.default.this:Mn.nil;function l(e){const t=Mn._`${e}.errors`;o.assign(zn.default.vErrors,Mn._`${zn.default.vErrors} === null ? ${t} : ${zn.default.vErrors}.concat(${t})`),o.assign(zn.default.errors,Mn._`${zn.default.vErrors}.length`)}function f(e){var t;if(!a.opts.unevaluated)return;const n=null===(t=null==r?void 0:r.validate)||void 0===t?void 0:t.evaluated;if(!0!==a.props)if(n&&!n.dynamicProps)void 0!==n.props&&(a.props=Kn.mergeEvaluated.props(o,n.props,a.props));else{const t=o.var("props",Mn._`${e}.evaluated.props`);a.props=Kn.mergeEvaluated.props(o,t,a.props,Mn.Name)}if(!0!==a.items)if(n&&!n.dynamicItems)void 0!==n.items&&(a.items=Kn.mergeEvaluated.items(o,n.items,a.items));else{const t=o.var("items",Mn._`${e}.evaluated.items`);a.items=Kn.mergeEvaluated.items(o,t,a.items,Mn.Name)}}n?function(){if(!i.$async)throw new Error("async schema referenced by sync schema");const r=o.let("valid");o.try((()=>{o.code(Mn._`await ${qn.callValidateCode(e,t,u)}`),f(t),s||o.assign(r,!0)}),(e=>{o.if(Mn._`!(${e} instanceof ${a.ValidationError})`,(()=>o.throw(e))),l(e),s||o.assign(r,!1)})),e.ok(r)}():e.result(qn.callValidateCode(e,t,u),(()=>f(t)),(()=>l(t)))}Un.getValidate=Jn,Un.callRef=Hn,Un.default=Gn;const Wn=Un,Zn=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Bn.default,Wn.default];Dn.default=Zn;var Qn={},Yn={};const Xn=Tt,eo=Xn.operators,to={maximum:{okStr:"<=",ok:eo.LTE,fail:eo.GT},minimum:{okStr:">=",ok:eo.GTE,fail:eo.LT},exclusiveMaximum:{okStr:"<",ok:eo.LT,fail:eo.GTE},exclusiveMinimum:{okStr:">",ok:eo.GT,fail:eo.LTE}},ro={message:({keyword:e,schemaCode:t})=>Xn.str`must be ${to[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Xn._`{comparison: ${to[e].okStr}, limit: ${t}}`},no={keyword:Object.keys(to),type:"number",schemaType:"number",$data:!0,error:ro,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data(Xn._`${r} ${to[t].fail} ${n} || isNaN(${r})`)}};Yn.default=no;var oo={};const ao=Tt,so={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>ao.str`must be multiple of ${e}`,params:({schemaCode:e})=>ao._`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:o}=e,a=o.opts.multipleOfPrecision,s=t.let("res"),i=a?ao._`Math.abs(Math.round(${s}) - ${s}) > 1e-${a}`:ao._`${s} !== parseInt(${s})`;e.fail$data(ao._`(${n} === 0 || (${s} = ${r}/${n}, ${i}))`)}};oo.default=so;var io={},co={};function uo(e){const t=e.length;let r,n=0,o=0;for(;o<t;)n++,r=e.charCodeAt(o++),r>=55296&&r<=56319&&o<t&&(r=e.charCodeAt(o),56320==(64512&r)&&o++);return n}co.default=uo,uo.code='require("ajv/dist/runtime/ucs2length").default';const lo=Tt,fo=Nt,ho=co,po={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>lo.str`must NOT have ${"maxLength"===e?"more":"fewer"} than ${t} characters`,params:({schemaCode:e})=>lo._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n,it:o}=e,a="maxLength"===t?lo.operators.GT:lo.operators.LT,s=!1===o.opts.unicode?lo._`${r}.length`:lo._`${fo.useFunc(e.gen,ho.default)}(${r})`;e.fail$data(lo._`${s} ${a} ${n}`)}};io.default=po;var yo={};const mo=er,vo=Tt,bo={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>vo.str`must match pattern "${e}"`,params:({schemaCode:e})=>vo._`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:o,it:a}=e,s=a.opts.unicodeRegExp?"u":"",i=r?vo._`(new RegExp(${o}, ${s}))`:mo.usePattern(e,n);e.fail$data(vo._`!${i}.test(${t})`)}};yo.default=bo;var go={};const wo=Tt,_o={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>wo.str`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>wo._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxProperties"===t?wo.operators.GT:wo.operators.LT;e.fail$data(wo._`Object.keys(${r}).length ${o} ${n}`)}};go.default=_o;var $o={};const So=er,Ao=Tt,Oo=Nt,Eo={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>Ao.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>Ao._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:o,$data:a,it:s}=e,{opts:i}=s;if(!a&&0===r.length)return;const c=r.length>=i.loopRequired;if(s.allErrors?function(){if(c||a)e.block$data(Ao.nil,u);else for(const t of r)So.checkReportMissingProp(e,t)}():function(){const s=t.let("missing");if(c||a){const r=t.let("valid",!0);e.block$data(r,(()=>function(r,a){e.setParams({missingProperty:r}),t.forOf(r,n,(()=>{t.assign(a,So.propertyInData(t,o,r,i.ownProperties)),t.if(Ao.not(a),(()=>{e.error(),t.break()}))}),Ao.nil)}(s,r))),e.ok(r)}else t.if(So.checkMissingProp(e,r,s)),So.reportMissingProp(e,s),t.else()}(),i.strictRequired){const t=e.parentSchema.properties,{definedProperties:n}=e.it;for(const e of r)if(void 0===(null==t?void 0:t[e])&&!n.has(e)){const t=`required property "${e}" is not defined at "${s.schemaEnv.baseId+s.errSchemaPath}" (strictRequired)`;Oo.checkStrictMode(s,t,s.opts.strictRequired)}}function u(){t.forOf("prop",n,(r=>{e.setParams({missingProperty:r}),t.if(So.noPropertyInData(t,o,r,i.ownProperties),(()=>e.error()))}))}}};$o.default=Eo;var Io={};const xo=Tt,Po={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>xo.str`must NOT have ${"maxItems"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>xo._`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,o="maxItems"===t?xo.operators.GT:xo.operators.LT;e.fail$data(xo._`${r}.length ${o} ${n}`)}};Io.default=Po;var ko={},To={};const Co=br;Co.code='require("ajv/dist/runtime/equal").default',To.default=Co;const jo=zt,No=Tt,Ro=Nt,Do=To,Bo={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>No.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>No._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:n,schema:o,parentSchema:a,schemaCode:s,it:i}=e;if(!n&&!o)return;const c=t.let("valid"),u=a.items?jo.getSchemaTypes(a.items):[];function l(n,o){const a=t.name("item"),s=jo.checkDataTypes(u,a,i.opts.strictNumbers,jo.DataType.Wrong),l=t.const("indices",No._`{}`);t.for(No._`;${n}--;`,(()=>{t.let(a,No._`${r}[${n}]`),t.if(s,No._`continue`),u.length>1&&t.if(No._`typeof ${a} == "string"`,No._`${a} += "_"`),t.if(No._`typeof ${l}[${a}] == "number"`,(()=>{t.assign(o,No._`${l}[${a}]`),e.error(),t.assign(c,!1).break()})).code(No._`${l}[${a}] = ${n}`)}))}function f(n,o){const a=Ro.useFunc(t,Do.default),s=t.name("outer");t.label(s).for(No._`;${n}--;`,(()=>t.for(No._`${o} = ${n}; ${o}--;`,(()=>t.if(No._`${a}(${r}[${n}], ${r}[${o}])`,(()=>{e.error(),t.assign(c,!1).break(s)}))))))}e.block$data(c,(function(){const n=t.let("i",No._`${r}.length`),o=t.let("j");e.setParams({i:n,j:o}),t.assign(c,!0),t.if(No._`${n} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?l:f)(n,o)))}),No._`${s} === false`),e.ok(c)}};ko.default=Bo;var Vo={};const Uo=Tt,Fo=Nt,qo=To,Mo={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>Uo._`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n}=e;e.fail$data(Uo._`!${Fo.useFunc(t,qo.default)}(${r}, ${n})`)}};Vo.default=Mo;var zo={};const Lo=Tt,Ko=Nt,Go=To,Jo={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>Lo._`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:o,schemaCode:a,it:s}=e;if(!n&&0===o.length)throw new Error("enum must have non-empty array");const i=o.length>=s.opts.loopEnum,c=Ko.useFunc(t,Go.default);let u;if(i||n)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",a,(e=>t.if(Lo._`${c}(${r}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(o))throw new Error("ajv implementation error");const e=t.const("vSchema",a);u=Lo.or(...o.map(((t,n)=>function(e,t){const n=o[t];return n&&"object"==typeof n?Lo._`${c}(${r}, ${e}[${t}])`:Lo._`${r} === ${n}`}(e,n))))}e.pass(u)}};zo.default=Jo;const Ho=oo,Wo=io,Zo=yo,Qo=go,Yo=$o,Xo=Io,ea=ko,ta=Vo,ra=zo,na=[Yn.default,Ho.default,Wo.default,Zo.default,Qo.default,Yo.default,Xo.default,ea.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ta.default,ra.default];Qn.default=na;var oa={},aa={validateAdditionalItems:void 0};const sa=Tt,ia=Nt,ca={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>sa.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>sa._`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;Array.isArray(n)?ua(e,n):ia.checkStrictMode(r,'"additionalItems" is ignored when "items" is not an array of schemas')}};function ua(e,t){const{gen:r,schema:n,data:o,keyword:a,it:s}=e;s.items=!0;const i=r.const("len",sa._`${o}.length`);if(!1===n)e.setParams({len:t.length}),e.pass(sa._`${i} <= ${t.length}`);else if("object"==typeof n&&!ia.alwaysValidSchema(s,n)){const n=r.var("valid",sa._`${i} <= ${t.length}`);r.if(sa.not(n),(()=>function(n){r.forRange("i",t.length,i,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:ia.Type.Num},n),s.allErrors||r.if(sa.not(n),(()=>r.break()))}))}(n))),e.ok(n)}}aa.validateAdditionalItems=ua,aa.default=ca;var la={},fa={validateTuple:void 0};const da=Tt,ha=Nt,pa=er,ya={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return ma(e,"additionalItems",t);r.items=!0,ha.alwaysValidSchema(r,t)||e.ok(pa.validateArray(e))}};function ma(e,t,r=e.schema){const{gen:n,parentSchema:o,data:a,keyword:s,it:i}=e;!function(e){const{opts:n,errSchemaPath:o}=i,a=r.length,c=a===e.minItems&&(a===e.maxItems||!1===e[t]);if(n.strictTuples&&!c){const e=`"${s}" is ${a}-tuple, but minItems or maxItems/${t} are not specified or different at path "${o}"`;ha.checkStrictMode(i,e,n.strictTuples)}}(o),i.opts.unevaluated&&r.length&&!0!==i.items&&(i.items=ha.mergeEvaluated.items(n,r.length,i.items));const c=n.name("valid"),u=n.const("len",da._`${a}.length`);r.forEach(((t,r)=>{ha.alwaysValidSchema(i,t)||(n.if(da._`${u} > ${r}`,(()=>e.subschema({keyword:s,schemaProp:r,dataProp:r},c))),e.ok(c))}))}fa.validateTuple=ma,fa.default=ya;const va=fa,ba={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>va.validateTuple(e,"items")};la.default=ba;var ga={};const wa=Tt,_a=Nt,$a=er,Sa=aa,Aa={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>wa.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>wa._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,_a.alwaysValidSchema(n,t)||(o?Sa.validateAdditionalItems(e,o):e.ok($a.validateArray(e)))}};ga.default=Aa;var Oa={};const Ea=Tt,Ia=Nt,xa={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?Ea.str`must contain at least ${e} valid item(s)`:Ea.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?Ea._`{minContains: ${e}}`:Ea._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;let s,i;const{minContains:c,maxContains:u}=n;a.opts.next?(s=void 0===c?1:c,i=u):s=1;const l=t.const("len",Ea._`${o}.length`);if(e.setParams({min:s,max:i}),void 0===i&&0===s)return void Ia.checkStrictMode(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==i&&s>i)return Ia.checkStrictMode(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if(Ia.alwaysValidSchema(a,r)){let t=Ea._`${l} >= ${s}`;return void 0!==i&&(t=Ea._`${t} && ${l} <= ${i}`),void e.pass(t)}a.items=!0;const f=t.name("valid");if(void 0===i&&1===s)d(f,(()=>t.if(f,(()=>t.break()))));else{t.let(f,!1);const e=t.name("_valid"),r=t.let("count",0);d(e,(()=>t.if(e,(()=>function(e){t.code(Ea._`${e}++`),void 0===i?t.if(Ea._`${e} >= ${s}`,(()=>t.assign(f,!0).break())):(t.if(Ea._`${e} > ${i}`,(()=>t.assign(f,!1).break())),1===s?t.assign(f,!0):t.if(Ea._`${e} >= ${s}`,(()=>t.assign(f,!0))))}(r)))))}function d(r,n){t.forRange("i",0,l,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:Ia.Type.Num,compositeRule:!0},r),n()}))}e.result(f,(()=>e.reset()))}};Oa.default=xa;var Pa={};!function(e){e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=Tt,r=Nt,n=er;e.error={message:({params:{property:e,depsCount:r,deps:n}})=>t.str`must have ${1===r?"property":"properties"} ${n} when property ${e} is present`,params:({params:{property:e,depsCount:r,deps:n,missingProperty:o}})=>t._`{property: ${e},
|
|
20
|
-
missingProperty: ${o},
|
|
21
|
-
depsCount: ${r},
|
|
22
|
-
deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(e){const[t,r]=function({schema:e}){const t={},r={};for(const n in e){if("__proto__"===n)continue;(Array.isArray(e[n])?t:r)[n]=e[n]}return[t,r]}(e);a(e,t),s(e,r)}};function a(e,r=e.schema){const{gen:o,data:a,it:s}=e;if(0===Object.keys(r).length)return;const i=o.let("missing");for(const c in r){const u=r[c];if(0===u.length)continue;const l=n.propertyInData(o,a,c,s.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")}),s.allErrors?o.if(l,(()=>{for(const t of u)n.checkReportMissingProp(e,t)})):(o.if(t._`${l} && (${n.checkMissingProp(e,u,i)})`),n.reportMissingProp(e,i),o.else())}}function s(e,t=e.schema){const{gen:o,data:a,keyword:s,it:i}=e,c=o.name("valid");for(const u in t)r.alwaysValidSchema(i,t[u])||(o.if(n.propertyInData(o,a,u,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:s,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>o.var(c,!0))),e.ok(c))}e.validatePropertyDeps=a,e.validateSchemaDeps=s,e.default=o}(Pa);var ka={};const Ta=Tt,Ca=Nt,ja={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>Ta._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:o}=e;if(Ca.alwaysValidSchema(o,r))return;const a=t.name("valid");t.forIn("key",n,(r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if(Ta.not(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};ka.default=ja;var Na={};const Ra=er,Da=Tt,Ba=Rt,Va=Nt,Ua={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>Da._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:o,errsCount:a,it:s}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:i,opts:c}=s;if(s.props=!0,"all"!==c.removeAdditional&&Va.alwaysValidSchema(s,r))return;const u=Ra.allSchemaProperties(n.properties),l=Ra.allSchemaProperties(n.patternProperties);function f(e){t.code(Da._`delete ${o}[${e}]`)}function d(n){if("all"===c.removeAdditional||c.removeAdditional&&!1===r)f(n);else{if(!1===r)return e.setParams({additionalProperty:n}),e.error(),void(i||t.break());if("object"==typeof r&&!Va.alwaysValidSchema(s,r)){const r=t.name("valid");"failing"===c.removeAdditional?(h(n,r,!1),t.if(Da.not(r),(()=>{e.reset(),f(n)}))):(h(n,r),i||t.if(Da.not(r),(()=>t.break())))}}}function h(t,r,n){const o={keyword:"additionalProperties",dataProp:t,dataPropType:Va.Type.Str};!1===n&&Object.assign(o,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(o,r)}t.forIn("key",o,(r=>{u.length||l.length?t.if(function(r){let o;if(u.length>8){const e=Va.schemaRefOrVal(s,n.properties,"properties");o=Ra.isOwnProperty(t,e,r)}else o=u.length?Da.or(...u.map((e=>Da._`${r} === ${e}`))):Da.nil;return l.length&&(o=Da.or(o,...l.map((t=>Da._`${Ra.usePattern(e,t)}.test(${r})`)))),Da.not(o)}(r),(()=>d(r))):d(r)})),e.ok(Da._`${a} === ${Ba.default.errors}`)}};Na.default=Ua;var Fa={};const qa=xt,Ma=er,za=Nt,La=Na,Ka={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:o,it:a}=e;"all"===a.opts.removeAdditional&&void 0===n.additionalProperties&&La.default.code(new qa.KeywordCxt(a,La.default,"additionalProperties"));const s=Ma.allSchemaProperties(r);for(const e of s)a.definedProperties.add(e);a.opts.unevaluated&&s.length&&!0!==a.props&&(a.props=za.mergeEvaluated.props(t,za.toHash(s),a.props));const i=s.filter((e=>!za.alwaysValidSchema(a,r[e])));if(0===i.length)return;const c=t.name("valid");for(const r of i)u(r)?l(r):(t.if(Ma.propertyInData(t,o,r,a.opts.ownProperties)),l(r),a.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(r),e.ok(c);function u(e){return a.opts.useDefaults&&!a.compositeRule&&void 0!==r[e].default}function l(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},c)}}};Fa.default=Ka;var Ga={};const Ja=er,Ha=Tt,Wa=Nt,Za=Nt,Qa={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:o,it:a}=e,{opts:s}=a,i=Ja.schemaProperties(a,r);if(0===i.length)return;const c=s.strictSchema&&!s.allowMatchingProperties&&o.properties,u=t.name("valid");!0===a.props||a.props instanceof Ha.Name||(a.props=Za.evaluatedPropsToName(t,a.props));const{props:l}=a;function f(e){for(const t in c)new RegExp(e).test(t)&&Wa.checkStrictMode(a,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function d(r){t.forIn("key",n,(n=>{t.if(Ha._`${Ja.usePattern(e,r)}.test(${n})`,(()=>{e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:n,dataPropType:Za.Type.Str},u),a.opts.unevaluated&&!0!==l?t.assign(Ha._`${l}[${n}]`,!0):a.allErrors||t.if(Ha.not(u),(()=>t.break()))}))}))}!function(){for(const e of i)c&&f(e),a.allErrors?d(e):(t.var(u,!0),d(e),t.if(u))}()}};Ga.default=Qa;var Ya={};const Xa=Nt,es={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if(Xa.alwaysValidSchema(n,r))return void e.fail();const o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.result(o,(()=>e.error()),(()=>e.reset()))},error:{message:"must NOT be valid"}};Ya.default=es;var ts={};const rs={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:er.validateUnion,error:{message:"must match a schema in anyOf"}};ts.default=rs;var ns={};const os=Tt,as=Nt,ss={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>os._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const a=r,s=t.let("valid",!1),i=t.let("passing",null),c=t.name("_valid");e.setParams({passing:i}),t.block((function(){a.forEach(((r,n)=>{let a;as.alwaysValidSchema(o,r)?t.var(c,!0):a=e.subschema({keyword:"oneOf",schemaProp:n,compositeRule:!0},c),n>0&&t.if(os._`${c} && ${s}`).assign(s,!1).assign(i,os._`[${i}, ${n}]`).else(),t.if(c,(()=>{t.assign(s,!0),t.assign(i,n),a&&e.mergeEvaluated(a,os.Name)}))}))})),e.result(s,(()=>e.reset()),(()=>e.error(!0)))}};ns.default=ss;var is={};const cs=Nt,us={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const o=t.name("valid");r.forEach(((t,r)=>{if(cs.alwaysValidSchema(n,t))return;const a=e.subschema({keyword:"allOf",schemaProp:r},o);e.ok(o),e.mergeEvaluated(a)}))}};is.default=us;var ls={};const fs=Tt,ds=Nt,hs={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>fs.str`must match "${e.ifClause}" schema`,params:({params:e})=>fs._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;void 0===r.then&&void 0===r.else&&ds.checkStrictMode(n,'"if" without "then" and "else" is ignored');const o=ps(n,"then"),a=ps(n,"else");if(!o&&!a)return;const s=t.let("valid",!0),i=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},i);e.mergeEvaluated(t)}(),e.reset(),o&&a){const r=t.let("ifClause");e.setParams({ifClause:r}),t.if(i,c("then",r),c("else",r))}else o?t.if(i,c("then")):t.if(fs.not(i),c("else"));function c(r,n){return()=>{const o=e.subschema({keyword:r},i);t.assign(s,i),e.mergeValidEvaluated(o,s),n?t.assign(n,fs._`${r}`):e.setParams({ifClause:r})}}e.pass(s,(()=>e.error(!0)))}};function ps(e,t){const r=e.schema[t];return void 0!==r&&!ds.alwaysValidSchema(e,r)}ls.default=hs;var ys={};const ms=Nt,vs={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&ms.checkStrictMode(r,`"${e}" without "if" is ignored`)}};ys.default=vs;const bs=aa,gs=la,ws=fa,_s=ga,$s=Oa,Ss=Pa,As=ka,Os=Na,Es=Fa,Is=Ga,xs=Ya,Ps=ts,ks=ns,Ts=is,Cs=ls,js=ys;oa.default=function(e=!1){const t=[xs.default,Ps.default,ks.default,Ts.default,Cs.default,js.default,As.default,Os.default,Ss.default,Es.default,Is.default];return e?t.push(gs.default,_s.default):t.push(bs.default,ws.default),t.push($s.default),t};var Ns={},Rs={};const Ds=Tt,Bs={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>Ds.str`must match format "${e}"`,params:({schemaCode:e})=>Ds._`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:o,schema:a,schemaCode:s,it:i}=e,{opts:c,errSchemaPath:u,schemaEnv:l,self:f}=i;c.validateFormats&&(o?function(){const o=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),a=r.const("fDef",Ds._`${o}[${s}]`),i=r.let("fType"),u=r.let("format");r.if(Ds._`typeof ${a} == "object" && !(${a} instanceof RegExp)`,(()=>r.assign(i,Ds._`${a}.type || "string"`).assign(u,Ds._`${a}.validate`)),(()=>r.assign(i,Ds._`"string"`).assign(u,a))),e.fail$data(Ds.or(!1===c.strictSchema?Ds.nil:Ds._`${s} && !${u}`,function(){const e=l.$async?Ds._`(${a}.async ? await ${u}(${n}) : ${u}(${n}))`:Ds._`${u}(${n})`,r=Ds._`(typeof ${u} == "function" ? ${e} : ${u}.test(${n}))`;return Ds._`${u} && ${u} !== true && ${i} === ${t} && !${r}`}()))}():function(){const o=f.formats[a];if(!o)return void function(){if(!1===c.strictSchema)return void f.logger.warn(e());throw new Error(e());function e(){return`unknown format "${a}" ignored in schema at path "${u}"`}}();if(!0===o)return;const[s,i,d]=function(e){const t=e instanceof RegExp?Ds.regexpCode(e):c.code.formats?Ds._`${c.code.formats}${Ds.getProperty(a)}`:void 0,n=r.scopeValue("formats",{key:a,ref:e,code:t});if("object"==typeof e&&!(e instanceof RegExp))return[e.type||"string",e.validate,Ds._`${n}.validate`];return["string",e,n]}(o);s===t&&e.pass(function(){if("object"==typeof o&&!(o instanceof RegExp)&&o.async){if(!l.$async)throw new Error("async format in sync schema");return Ds._`await ${d}(${n})`}return"function"==typeof i?Ds._`${d}(${n})`:Ds._`${d}.test(${n})`}())}())}};Rs.default=Bs;const Vs=[Rs.default];Ns.default=Vs;var Us={};Us.contentVocabulary=Us.metadataVocabulary=void 0,Us.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Us.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];const Fs=Qn,qs=oa,Ms=Ns,zs=Us,Ls=[Dn.default,Fs.default,qs.default(),Ms.default,zs.metadataVocabulary,zs.contentVocabulary];Rn.default=Ls;var Ks={},Gs={};!function(e){var t;e.DiscrError=void 0,(t=e.DiscrError||(e.DiscrError={})).Tag="tag",t.Mapping="mapping"}(Gs);const Js=Tt,Hs=Gs,Ws={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===Hs.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>Js._`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:o,it:a}=e,{oneOf:s}=o;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const i=n.propertyName;if("string"!=typeof i)throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");const c=t.let("valid",!1),u=t.const("tag",Js._`${r}${Js.getProperty(i)}`);function l(r){const n=t.name("valid"),o=e.subschema({keyword:"oneOf",schemaProp:r},n);return e.mergeEvaluated(o,Js.Name),n}t.if(Js._`typeof ${u} == "string"`,(()=>function(){const r=function(){var e;const t={},r=a(o);let n=!0;for(let t=0;t<s.length;t++){const o=s[t],u=null===(e=o.properties)||void 0===e?void 0:e[i];if("object"!=typeof u)throw new Error(`discriminator: oneOf schemas must have "properties/${i}"`);n=n&&(r||a(o)),c(u,t)}if(!n)throw new Error(`discriminator: "${i}" must be required`);return t;function a({required:e}){return Array.isArray(e)&&e.includes(i)}function c(e,t){if(e.const)u(e.const,t);else{if(!e.enum)throw new Error(`discriminator: "properties/${i}" must have "const" or "enum"`);for(const r of e.enum)u(r,t)}}function u(e,r){if("string"!=typeof e||e in t)throw new Error(`discriminator: "${i}" values must be unique strings`);t[e]=r}}();t.if(!1);for(const e in r)t.elseIf(Js._`${u} === ${e}`),t.assign(c,l(r[e]));t.else(),e.error(!1,{discrError:Hs.DiscrError.Mapping,tag:u,tagName:i}),t.endIf()}()),(()=>e.error(!1,{discrError:Hs.DiscrError.Tag,tag:u,tagName:i}))),e.ok(c)}};Ks.default=Ws;var Zs={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0};!function(e,t){t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const r=It,n=Rn,o=Ks,a=Zs,s=["/properties"],i="http://json-schema.org/draft-07/schema";class c extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(a,s):a;this.addMetaSchema(e,i,!1),this.refs["http://json-schema.org/schema"]=i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}e.exports=t=c,t.default=c;var u=xt;Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var l=Tt;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}})}(Et,Et.exports),Ot.isntJsonRpcError=Ot.isJsonRpcError=Ot.isntJsonRpcSuccess=Ot.isJsonRpcSuccess=Ot.isntJsonRpcRequest=Ot.isJsonRpcRequest=Ot.isntJsonRpcNotification=Ot.isJsonRpcNotification=void 0;const Qs=Et.exports,Ys={oneOf:[{type:"string"},{type:"number"}]},Xs={oneOf:[{type:"array"},{type:"object"}]},ei={type:"object",properties:{jsonrpc:{type:"string"},method:{type:"string"},params:Xs,id:!1},required:["jsonrpc","method"]},ti={type:"object",properties:{jsonrpc:{type:"string"},id:Ys,method:{type:"string"},params:Xs},required:["jsonrpc","id","method"]},ri={type:"object",properties:{jsonrpc:{type:"string"},id:Ys,result:{}},required:["jsonrpc","id","result"]},ni={type:"object",properties:{jsonrpc:{type:"string"},id:Ys,error:{type:"object",properties:{code:{type:"number"},message:{type:"string"},data:{}},required:["code","message"]}},required:["jsonrpc","id","error"]};let oi;function ai(e){return oi||(oi=new Qs.default),oi.validate(ei,e)}function si(e){return oi||(oi=new Qs.default),oi.validate(ti,e)}function ii(e){return oi||(oi=new Qs.default),oi.validate(ri,e)}function ci(e){return oi||(oi=new Qs.default),oi.validate(ni,e)}Ot.isJsonRpcNotification=ai,Ot.isntJsonRpcNotification=function(e){return!ai(e)},Ot.isJsonRpcRequest=si,Ot.isntJsonRpcRequest=function(e){return!si(e)},Ot.isJsonRpcSuccess=ii,Ot.isntJsonRpcSuccess=function(e){return!ii(e)},Ot.isJsonRpcError=ci,Ot.isntJsonRpcError=function(e){return!ci(e)};var ui={};ui.isntJson=ui.isJson=void 0,ui.isJson=function(e){try{return JSON.stringify(e),!0}catch(e){return!1}},ui.isntJson=function e(t){return!e()};var li={};function fi(e){return"number"==typeof e}li.isntNumber=li.isNumber=void 0,li.isNumber=fi,li.isntNumber=function(e){return!fi(e)};var di={};function hi(e){return null!==e&&"object"==typeof e}di.isntObject=di.isObject=void 0,di.isObject=hi,di.isntObject=function(e){return!hi(e)};var pi={};pi.isAbsoluteURL=void 0,pi.isAbsoluteURL=function(e){try{return new URL(e),!0}catch(e){return!1}},function(e){var t=se&&se.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=se&&se.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(Ze,e),r(ot,e),r(st,e),r(yt,e),r(vt,e),r(gt,e),r(_t,e),r(Ot,e),r(ui,e),r(Qe,e),r(li,e),r(di,e),r(it,e),r(Xe,e),r(pi,e)}(We);var yi=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},mi=se&&se.__await||function(e){return this instanceof mi?(this.v=e,this):new mi(e)},vi=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof mi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};He.chunkByAsync=void 0;const bi=We;He.chunkByAsync=function(e,t){return bi.isAsyncIterable(e)?function(e){return vi(this,arguments,(function*(){var r,n;let o=[],a=0;try{for(var s,i=yi(e);!(s=yield mi(i.next())).done;){const e=s.value;o.push(e),(yield mi(t(e,a)))&&(yield yield mi(o),o=[]),a++}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&(yield mi(n.call(i)))}finally{if(r)throw r.error}}o.length&&(yield yield mi(o))}))}(e):function(e){return vi(this,arguments,(function*(){let r=[],n=0;for(const o of e)r.push(o),(yield mi(t(o,n)))&&(yield yield mi(r),r=[]),n++;r.length&&(yield yield mi(r))}))}(e)},Je.ChunkByAsyncOperator=void 0;const gi=ye,wi=He,_i=fe;class $i extends _i.Subject{chunkByAsync(...e){return gi.applyChainingAsync(this.subject,wi.chunkByAsync,e)}}Je.ChunkByAsyncOperator=$i;var Si={},Ai={},Oi=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Ei=se&&se.__await||function(e){return this instanceof Ei?(this.v=e,this):new Ei(e)},Ii=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Ei?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Ai.concatAsync=void 0;const xi=We,Pi=$e;Ai.concatAsync=function(e,...t){return Pi.go((function(){return Ii(this,arguments,(function*(){var r,n;for(const s of[e,...t])if(xi.isAsyncIterable(s))try{for(var o,a=(r=void 0,Oi(s));!(o=yield Ei(a.next())).done;){const e=o.value;yield yield Ei(e)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&(yield Ei(n.call(a)))}finally{if(r)throw r.error}}else for(const e of s)yield yield Ei(e)}))}))},Si.ConcatAsyncOperator=void 0;const ki=ye,Ti=Ai,Ci=fe;class ji extends Ci.Subject{concatAsync(...e){return ki.applyChainingAsync(this.subject,Ti.concatAsync,e)}}Si.ConcatAsyncOperator=ji;var Ni={},Ri={},Di={},Bi=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Vi=se&&se.__await||function(e){return this instanceof Vi?(this.v=e,this):new Vi(e)},Ui=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Vi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Di.copyIterable=Di.copyAsyncIterable=void 0,Di.copyAsyncIterable=function(e){return Ui(this,arguments,(function*(){var t,r;try{for(var n,o=Bi(e);!(n=yield Vi(o.next())).done;){const e=n.value;yield yield Vi(e)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=o.return)&&(yield Vi(r.call(o)))}finally{if(t)throw t.error}}}))},Di.copyIterable=function*(e){for(const t of e)yield t};var Fi=se&&se.__await||function(e){return this instanceof Fi?(this.v=e,this):new Fi(e)},qi=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Fi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Ri.dropAsync=void 0;const Mi=$e,zi=Di,Li=Ae;Ri.dropAsync=function(e,t){return Li.assert(Number.isInteger(t),"The parameter count must be an integer"),Li.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?zi.copyAsyncIterable(e):Mi.go((function(){return qi(this,arguments,(function*(){const r=e[Symbol.asyncIterator]();let n;for(;!(n=yield Fi(r.next()),n.done||t<=0);)t--;for(;!n.done;)yield yield Fi(n.value),n=yield Fi(r.next())}))}))},Ni.DropAsyncOperator=void 0;const Ki=ye,Gi=ve,Ji=Ri;class Hi extends Gi.AsyncIterableOperatorBase{dropAsync(...e){return Ki.applyChainingAsync(this.subject,Ji.dropAsync,e)}}Ni.DropAsyncOperator=Hi;var Wi={},Zi={},Qi=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Yi=se&&se.__await||function(e){return this instanceof Yi?(this.v=e,this):new Yi(e)},Xi=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Yi?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},ec=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Zi.dropRightAsync=void 0;const tc=$e,rc=Di,nc=Ae;function oc(e){var t,r,n,o;return Qi(this,void 0,void 0,(function*(){const a=[];try{for(t=ec(e);!(r=yield t.next()).done;){const e=r.value;a.push(e)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return a}))}Zi.dropRightAsync=function(e,t){return nc.assert(Number.isInteger(t),"The parameter count must be an integer"),nc.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?rc.copyAsyncIterable(e):tc.go((function(){return Xi(this,arguments,(function*(){const r=(yield Yi(oc(e))).slice(0,-t);for(const e of r)yield yield Yi(e)}))}))},Wi.DropRightAsyncOperator=void 0;const ac=ye,sc=ve,ic=Zi;class cc extends sc.AsyncIterableOperatorBase{dropRightAsync(...e){return ac.applyChainingAsync(this.subject,ic.dropRightAsync,e)}}Wi.DropRightAsyncOperator=cc;var uc={},lc={},fc=se&&se.__await||function(e){return this instanceof fc?(this.v=e,this):new fc(e)},dc=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof fc?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};lc.dropUntilAsync=void 0;const hc=We;lc.dropUntilAsync=function(e,t){return hc.isAsyncIterable(e)?function(e){return dc(this,arguments,(function*(){const r=e[Symbol.asyncIterator]();let n,o=0;for(;!(n=yield fc(r.next()),n.done||(yield fc(t(n.value,o++)))););for(;!n.done;)yield yield fc(n.value),n=yield fc(r.next())}))}(e):function(e){return dc(this,arguments,(function*(){const r=e[Symbol.iterator]();let n,o=0;for(;!(n=r.next(),n.done||(yield fc(t(n.value,o++)))););for(;!n.done;)yield yield fc(n.value),n=r.next()}))}(e)},uc.DropUntilAsyncOperator=void 0;const pc=ye,yc=fe,mc=lc;class vc extends yc.Subject{dropUntilAsync(...e){return pc.applyChainingAsync(this.subject,mc.dropUntilAsync,e)}}uc.DropUntilAsyncOperator=vc;var bc={},gc={},wc=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},_c=se&&se.__await||function(e){return this instanceof _c?(this.v=e,this):new _c(e)},$c=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof _c?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};gc.filterAsync=void 0;const Sc=We;gc.filterAsync=function(e,t){return Sc.isAsyncIterable(e)?function(e){return $c(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=wc(e);!(a=yield _c(s.next())).done;){const e=a.value;(yield _c(t(e,o)))&&(yield yield _c(e)),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield _c(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return $c(this,arguments,(function*(){let r=0;for(const n of e)(yield _c(t(n,r)))&&(yield yield _c(n)),r++}))}(e)},bc.FilterAsyncOperator=void 0;const Ac=ye,Oc=fe,Ec=gc;class Ic extends Oc.Subject{filterAsync(...e){return Ac.applyChainingAsync(this.subject,Ec.filterAsync,e)}}bc.FilterAsyncOperator=Ic;var xc={},Pc={},kc={},Tc={},Cc=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},jc=se&&se.__await||function(e){return this instanceof jc?(this.v=e,this):new jc(e)},Nc=se&&se.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:jc(e[n](t)),done:"return"===n}:o?o(t):t}:o}},Rc=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof jc?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Tc.flattenByAsync=void 0;const Dc=We;function Bc(e){return Dc.isIterable(e)&&Dc.isntChar(e)}Tc.flattenByAsync=function(e,t){return Dc.isAsyncIterable(e)?function(e){return Rc(this,arguments,(function*(){var n,o;const a=1;try{for(var s,i=Cc(e);!(s=yield jc(i.next())).done;){const e=s.value;Bc(e)&&(yield jc(t(e,a)))?yield jc(yield*Nc(Cc(r(e,a+1)))):yield yield jc(e)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=i.return)&&(yield jc(o.call(i)))}finally{if(n)throw n.error}}}))}(e):function(e){return r(e,1)}(e);function r(e,n){return Rc(this,arguments,(function*(){for(const o of e)Bc(o)&&(yield jc(t(o,n)))?yield jc(yield*Nc(Cc(r(o,n+1)))):yield yield jc(o)}))}},kc.flattenDeepAsync=void 0;const Vc=Tc,Uc=Ae;kc.flattenDeepAsync=function(e,t=1/0){return Uc.assert(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),Uc.assert(t>=0,"The parameter depth must be greater than or equal to 0"),Vc.flattenByAsync(e,((e,r)=>r<=t))},Pc.flattenAsync=void 0;const Fc=kc;Pc.flattenAsync=function(e){return Fc.flattenDeepAsync(e,1)},xc.FlattenAsyncOperator=void 0;const qc=ye,Mc=ve,zc=Pc;class Lc extends Mc.AsyncIterableOperatorBase{flattenAsync(...e){return qc.applyChainingAsync(this.subject,zc.flattenAsync,e)}}xc.FlattenAsyncOperator=Lc;var Kc={FlattenByAsync:void 0};const Gc=ye,Jc=fe,Hc=Tc;class Wc extends Jc.Subject{flattenByAsync(...e){return Gc.applyChainingAsync(this.subject,Hc.flattenByAsync,e)}}Kc.FlattenByAsync=Wc;var Zc={FlattenDeepAsyncOperator:void 0};const Qc=ye,Yc=ve,Xc=kc;class eu extends Yc.AsyncIterableOperatorBase{flattenDeepAsync(...e){return Qc.applyChainingAsync(this.subject,Xc.flattenDeepAsync,e)}}Zc.FlattenDeepAsyncOperator=eu;var tu={},ru={},nu=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},ou=se&&se.__await||function(e){return this instanceof ou?(this.v=e,this):new ou(e)},au=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof ou?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};ru.mapAsync=void 0;const su=We;ru.mapAsync=function(e,t){return su.isAsyncIterable(e)?function(e){return au(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=nu(e);!(a=yield ou(s.next())).done;){const e=a.value;yield yield ou(yield ou(t(e,o))),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield ou(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return au(this,arguments,(function*(){let r=0;for(const n of e)yield yield ou(yield ou(t(n,r))),r++}))}(e)},tu.MapAsyncOperator=void 0;const iu=ye,cu=fe,uu=ru;class lu extends cu.Subject{mapAsync(...e){return iu.applyChainingAsync(this.subject,uu.mapAsync,e)}}tu.MapAsyncOperator=lu;var fu={},du={},hu=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},pu=se&&se.__await||function(e){return this instanceof pu?(this.v=e,this):new pu(e)},yu=se&&se.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:pu(e[n](t)),done:"return"===n}:o?o(t):t}:o}},mu=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof pu?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};du.repeatAsync=void 0;const vu=$e,bu=Ae;du.repeatAsync=function(e,t){return bu.assert(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),bu.assert(t>=0,"The parameter times must be greater than or equal to 0"),t===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")}(),vu.go((function(){return mu(this,arguments,(function*(){var r,n;const o=[];if(t>0){try{for(var a,s=hu(e);!(a=yield pu(s.next())).done;){const e=a.value;yield yield pu(e),o.push(e)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield pu(n.call(s)))}finally{if(r)throw r.error}}t--}for(;t>0;)yield pu(yield*yu(hu(o))),t--}))}))},fu.RepeatAsyncOperator=void 0;const gu=ye,wu=ve,_u=du;class $u extends wu.AsyncIterableOperatorBase{repeatAsync(...e){return gu.applyChainingAsync(this.subject,_u.repeatAsync,e)}}fu.RepeatAsyncOperator=$u;var Su={},Au={},Ou=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Eu=se&&se.__await||function(e){return this instanceof Eu?(this.v=e,this):new Eu(e)},Iu=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Eu?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Au.sliceAsync=void 0;const xu=$e,Pu=Ae;Au.sliceAsync=function(e,t,r=1/0){return Pu.assert(Number.isInteger(t),"The parameter start must be an integer"),Pu.assert(t>=0,"The parameter start must be greater than or equal to 0"),Pu.assert(Number.isInteger(r),"The parameter end must be an integer"),Pu.assert(r>=t,"The parameter end must be greater than or equal to start"),xu.go((function(){return Iu(this,arguments,(function*(){var n,o;let a=0;try{for(var s,i=Ou(e);!(s=yield Eu(i.next())).done;){const e=s.value;if(a>=r)break;a>=t&&(yield yield Eu(e)),a++}}catch(e){n={error:e}}finally{try{s&&!s.done&&(o=i.return)&&(yield Eu(o.call(i)))}finally{if(n)throw n.error}}}))}))},Su.SliceAsyncOperator=void 0;const ku=ye,Tu=ve,Cu=Au;class ju extends Tu.AsyncIterableOperatorBase{sliceAsync(...e){return ku.applyChainingAsync(this.subject,Cu.sliceAsync,e)}}Su.SliceAsyncOperator=ju;var Nu={},Ru={},Du=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Bu=se&&se.__await||function(e){return this instanceof Bu?(this.v=e,this):new Bu(e)},Vu=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Bu?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Ru.splitAsync=void 0,Ru.splitAsync=function(e,t){return Vu(this,arguments,(function*(){var r,n;let o=[];try{for(var a,s=Du(e);!(a=yield Bu(s.next())).done;){const e=a.value;e===t?(yield yield Bu(o),o=[]):o.push(e)}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Bu(n.call(s)))}finally{if(r)throw r.error}}yield yield Bu(o)}))},Nu.SplitAsyncOperator=void 0;const Uu=ye,Fu=ve,qu=Ru;class Mu extends Fu.AsyncIterableOperatorBase{splitAsync(...e){return Uu.applyChainingAsync(this.subject,qu.splitAsync,e)}}Nu.SplitAsyncOperator=Mu;var zu={},Lu={},Ku=se&&se.__await||function(e){return this instanceof Ku?(this.v=e,this):new Ku(e)},Gu=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Ku?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},Ju=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Lu.splitByAsync=void 0;const Hu=We;Lu.splitByAsync=function(e,t){return Hu.isAsyncIterable(e)?function(e){return Gu(this,arguments,(function*(){var r,n;let o=[],a=0;try{for(var s,i=Ju(e);!(s=yield Ku(i.next())).done;){const e=s.value;(yield Ku(t(e,a)))?(yield yield Ku(o),o=[]):o.push(e),a++}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&(yield Ku(n.call(i)))}finally{if(r)throw r.error}}yield yield Ku(o)}))}(e):function(e){return Gu(this,arguments,(function*(){let r=[],n=0;for(const o of e)(yield Ku(t(o,n)))?(yield yield Ku(r),r=[]):r.push(o),n++;yield yield Ku(r)}))}(e)},zu.SplitByAsyncOperator=void 0;const Wu=ye,Zu=fe,Qu=Lu;class Yu extends Zu.Subject{splitByAsync(...e){return Wu.applyChainingAsync(this.subject,Qu.splitByAsync,e)}}zu.SplitByAsyncOperator=Yu;var Xu={},el={},tl=se&&se.__await||function(e){return this instanceof tl?(this.v=e,this):new tl(e)},rl=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},nl=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof tl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};el.takeAsync=void 0;const ol=$e,al=Ae;el.takeAsync=function(e,t){return al.assert(Number.isInteger(t),"The parameter count must be an integer"),al.assert(t>=0,"The parameter count must be greater than or equal to 0"),ol.go((function(){return nl(this,arguments,(function*(){var r,n;if(0===t)return yield tl(void 0);try{for(var o,a=rl(e);!(o=yield tl(a.next())).done;){const e=o.value;if(yield yield tl(e),0===--t)break}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&(yield tl(n.call(a)))}finally{if(r)throw r.error}}}))}))},Xu.TakeAsyncOperator=void 0;const sl=ye,il=ve,cl=el;class ul extends il.AsyncIterableOperatorBase{takeAsync(...e){return sl.applyChainingAsync(this.subject,cl.takeAsync,e)}}Xu.TakeAsyncOperator=ul;var ll={},fl={},dl=se&&se.__await||function(e){return this instanceof dl?(this.v=e,this):new dl(e)},hl=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},pl=se&&se.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:dl(e[n](t)),done:"return"===n}:o?o(t):t}:o}},yl=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof dl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};fl.takeRightAsync=void 0;const ml=$e,vl=Ae;fl.takeRightAsync=function(e,t){return vl.assert(Number.isInteger(t),"The parameter count must be an integer"),vl.assert(t>=0,"The parameter count must be greater than or equal to 0"),ml.go((function(){return yl(this,arguments,(function*(){const r=e[Symbol.asyncIterator](),n=[];let o;for(;o=yield dl(r.next()),!o.done;)n.push(o.value),n.length>t&&n.shift();yield dl(yield*pl(hl(n)))}))}))},ll.TakeRightAsyncOperator=void 0;const bl=ye,gl=ve,wl=fl;class _l extends gl.AsyncIterableOperatorBase{takeRightAsync(...e){return bl.applyChainingAsync(this.subject,wl.takeRightAsync,e)}}ll.TakeRightAsyncOperator=_l;var $l={},Sl={},Al=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Ol=se&&se.__await||function(e){return this instanceof Ol?(this.v=e,this):new Ol(e)},El=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Ol?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Sl.takeUntilAsync=void 0;const Il=We;Sl.takeUntilAsync=function(e,t){return Il.isAsyncIterable(e)?function(e){return El(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=Al(e);!(a=yield Ol(s.next())).done;){const e=a.value;if(yield Ol(t(e,o)))break;yield yield Ol(e),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Ol(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return El(this,arguments,(function*(){let r=0;for(const n of e){if(yield Ol(t(n,r)))break;yield yield Ol(n),r++}}))}(e)},$l.TakeUntilAsyncOperator=void 0;const xl=ye,Pl=fe,kl=Sl;class Tl extends Pl.Subject{takeUntilAsync(...e){return xl.applyChainingAsync(this.subject,kl.takeUntilAsync,e)}}$l.TakeUntilAsyncOperator=Tl;var Cl={},jl={},Nl=se&&se.__await||function(e){return this instanceof Nl?(this.v=e,this):new Nl(e)},Rl=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Nl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}},Dl=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};jl.tapAsync=void 0;const Bl=We;jl.tapAsync=function(e,t){return Bl.isAsyncIterable(e)?function(e){return Rl(this,arguments,(function*(){var r,n;let o=0;try{for(var a,s=Dl(e);!(a=yield Nl(s.next())).done;){const e=a.value;yield Nl(t(e,o)),yield yield Nl(e),o++}}catch(e){r={error:e}}finally{try{a&&!a.done&&(n=s.return)&&(yield Nl(n.call(s)))}finally{if(r)throw r.error}}}))}(e):function(e){return Rl(this,arguments,(function*(){let r=0;for(const n of e)yield Nl(t(n,r)),yield yield Nl(n),r++}))}(e)},Cl.TapAsyncOperator=void 0;const Vl=ye,Ul=fe,Fl=jl;class ql extends Ul.Subject{tapAsync(...e){return Vl.applyChainingAsync(this.subject,Fl.tapAsync,e)}}Cl.TapAsyncOperator=ql;var Ml={},zl={},Ll=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},Kl=se&&se.__await||function(e){return this instanceof Kl?(this.v=e,this):new Kl(e)},Gl=se&&se.__asyncDelegator||function(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:Kl(e[n](t)),done:"return"===n}:o?o(t):t}:o}},Jl=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof Kl?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};zl.transformAsync=void 0,zl.transformAsync=function(e,t){return Jl(this,arguments,(function*(){yield Kl(yield*Gl(Ll(t(e))))}))},Ml.TransformAsyncOperator=void 0;const Hl=ye,Wl=fe,Zl=zl;class Ql extends Wl.Subject{transformAsync(...e){return Hl.applyChainingAsync(this.subject,Zl.transformAsync,e)}}Ml.TransformAsyncOperator=Ql;var Yl={},Xl={},ef=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},tf=se&&se.__await||function(e){return this instanceof tf?(this.v=e,this):new tf(e)},rf=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof tf?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Xl.uniqAsync=void 0,Xl.uniqAsync=function(e){return rf(this,arguments,(function*(){var t,r;const n=new Set;try{for(var o,a=ef(e);!(o=yield tf(a.next())).done;){const e=o.value;n.has(e)||(yield yield tf(e),n.add(e))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&(yield tf(r.call(a)))}finally{if(t)throw t.error}}}))},Yl.UniqAsyncOperator=void 0;const nf=ye,of=ve,af=Xl;class sf extends of.AsyncIterableOperatorBase{uniqAsync(...e){return nf.applyChainingAsync(this.subject,af.uniqAsync,e)}}Yl.UniqAsyncOperator=sf;var cf={},uf={},lf=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}},ff=se&&se.__await||function(e){return this instanceof ff?(this.v=e,this):new ff(e)},df=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof ff?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};uf.uniqByAsync=void 0;const hf=We;uf.uniqByAsync=function(e,t){return hf.isAsyncIterable(e)?function(e){return df(this,arguments,(function*(){var r,n;const o=new Set;let a=0;try{for(var s,i=lf(e);!(s=yield ff(i.next())).done;){const e=s.value,r=yield ff(t(e,a));o.has(r)||(yield yield ff(e),o.add(r)),a++}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&(yield ff(n.call(i)))}finally{if(r)throw r.error}}}))}(e):function(e){return df(this,arguments,(function*(){const r=new Set;let n=0;for(const o of e){const e=yield ff(t(o,n));r.has(e)||(yield yield ff(o),r.add(e)),n++}}))}(e)},cf.UniqByAsyncOperator=void 0;const pf=ye,yf=fe,mf=uf;class vf extends yf.Subject{uniqByAsync(...e){return pf.applyChainingAsync(this.subject,mf.uniqByAsync,e)}}cf.UniqByAsyncOperator=vf;var bf={},gf={},wf=se&&se.__await||function(e){return this instanceof wf?(this.v=e,this):new wf(e)},_f=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof wf?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};gf.zipAsync=void 0;const $f=We;gf.zipAsync=function(e,...t){return function(...e){return _f(this,arguments,(function*(){const t=e.length,r=e.map((e=>$f.isAsyncIterable(e)?[Symbol.asyncIterator,e[Symbol.asyncIterator]()]:[Symbol.iterator,e[Symbol.iterator]()]));for(;;){const e=new Array(t);for(let n=0;n<t;n++){const[t,o]=r[n];let a;if(a=t===Symbol.asyncIterator?yield wf(o.next()):o.next(),a.done)return yield wf(void 0);e[n]=a.value}yield yield wf(e)}}))}(e,...t)},bf.ZipAsyncOperator=void 0;const Sf=ye,Af=fe,Of=gf;class Ef extends Af.Subject{zipAsync(...e){return Sf.applyChainingAsync(this.subject,Of.zipAsync,e)}}bf.ZipAsyncOperator=Ef;var If={},xf={};xf.consume=void 0,xf.consume=function(e,t){return t(e)},If.ConsumeOperator=void 0;const Pf=ye,kf=xf,Tf=fe;class Cf extends Tf.Subject{consume(...e){return Pf.applyBinding(this.subject,kf.consume,e)}}If.ConsumeOperator=Cf;var jf={},Nf={},Rf=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Df=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Nf.eachAsync=void 0;const Bf=We;Nf.eachAsync=function(e,t){return Bf.isAsyncIterable(e)?function(e){var r,n,o,a;return Rf(this,void 0,void 0,(function*(){let s=0;try{for(r=Df(e);!(n=yield r.next()).done;){const e=n.value;yield t(e,s),s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}}))}(e):function(e){return Rf(this,void 0,void 0,(function*(){let r=0;for(const n of e)yield t(n,r),r++}))}(e)},jf.EachAsyncOperator=void 0;const Vf=ye,Uf=fe,Ff=Nf;class qf extends Uf.Subject{eachAsync(...e){return Vf.applyBinding(this.subject,Ff.eachAsync,e)}}jf.EachAsyncOperator=qf;var Mf={},zf={},Lf=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Kf=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};zf.everyAsync=void 0;const Gf=We;zf.everyAsync=function(e,t){return Gf.isAsyncIterable(e)?function(e){var r,n,o,a;return Lf(this,void 0,void 0,(function*(){let s=0;try{for(r=Kf(e);!(n=yield r.next()).done;){const e=n.value;if(!(yield t(e,s)))return!1;s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!0}))}(e):function(e){return Lf(this,void 0,void 0,(function*(){let r=0;for(const n of e){if(!(yield t(n,r)))return!1;r++}return!0}))}(e)},Mf.EveryAsyncOperator=void 0;const Jf=ye,Hf=fe,Wf=zf;class Zf extends Hf.Subject{everyAsync(...e){return Jf.applyBinding(this.subject,Wf.everyAsync,e)}}Mf.EveryAsyncOperator=Zf;var Qf={},Yf={},Xf=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},ed=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Yf.findAsync=void 0;const td=We;Yf.findAsync=function(e,t){return td.isAsyncIterable(e)?function(e){var r,n,o,a;return Xf(this,void 0,void 0,(function*(){let s=0;try{for(r=ed(e);!(n=yield r.next()).done;){const e=n.value;if(yield t(e,s))return e;s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}}))}(e):function(e){return Xf(this,void 0,void 0,(function*(){let r=0;for(const n of e){if(yield t(n,r))return n;r++}}))}(e)},Qf.FindAsyncOperator=void 0;const rd=ye,nd=fe,od=Yf;class ad extends nd.Subject{findAsync(...e){return rd.applyBinding(this.subject,od.findAsync,e)}}Qf.FindAsyncOperator=ad;var sd={},id={},cd=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},ud=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};id.firstAsync=void 0,id.firstAsync=function(e){var t,r,n,o;return cd(this,void 0,void 0,(function*(){try{for(t=ud(e);!(r=yield t.next()).done;){return r.value}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}}))},sd.FirstAsyncOperator=void 0;const ld=ye,fd=ve,dd=id;class hd extends fd.AsyncIterableOperatorBase{firstAsync(...e){return ld.applyBinding(this.subject,dd.firstAsync,e)}}sd.FirstAsyncOperator=hd;var pd={},yd={},md=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},vd=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};yd.includesAsync=void 0,yd.includesAsync=function(e,t){var r,n,o,a;return md(this,void 0,void 0,(function*(){try{for(r=vd(e);!(n=yield r.next()).done;){if(n.value===t)return!0}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!1}))},pd.IncludesAsyncOperator=void 0;const bd=ye,gd=ve,wd=yd;class _d extends gd.AsyncIterableOperatorBase{includesAsync(...e){return bd.applyBinding(this.subject,wd.includesAsync,e)}}pd.IncludesAsyncOperator=_d;var $d={},Sd={},Ad=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Od=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Sd.matchAsync=void 0,Sd.matchAsync=function(e,t){var r,n,o,a;return Ad(this,void 0,void 0,(function*(){const s=t.length;let i=0;try{for(r=Od(e);!(n=yield r.next()).done;){if(n.value===t[i]&&i++,i===s)return!0}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!1}))},$d.MatchAsyncOperator=void 0;const Ed=ye,Id=ve,xd=Sd;class Pd extends Id.AsyncIterableOperatorBase{matchAsync(...e){return Ed.applyBinding(this.subject,xd.matchAsync,e)}}$d.MatchAsyncOperator=Pd;var kd={},Td={},Cd=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},jd=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Td.reduceAsync=void 0;const Nd=We;Td.reduceAsync=function(e,t,r){return Nd.isUndefined(r)?function(e,t){return Nd.isAsyncIterable(e)?r(e):n(e);function r(e){return Cd(this,void 0,void 0,(function*(){const[r,n]=yield s(e);let o=r,a=1;for(;;){const e=yield n.next();if(e.done)break;const r=e.value;o=yield t(o,r,a++)}return o;function s(e){return Cd(this,void 0,void 0,(function*(){const t=e[Symbol.asyncIterator](),r=yield t.next();if(r.done)throw new Error("Reduce of empty iterable with no initial value");return[r.value,t]}))}}))}function n(e){return Cd(this,void 0,void 0,(function*(){const[r,n]=s(e);let o=r,a=1;for(;;){const e=n.next();if(e.done)break;const r=e.value;o=yield t(o,r,a++)}return o;function s(e){const t=e[Symbol.iterator](),r=t.next();if(r.done)throw new Error("Reduce of empty iterable with no initial value");return[r.value,t]}}))}}(e,t):function(e,t,r){return Nd.isAsyncIterable(e)?o(e):n(e);function n(e){return Cd(this,void 0,void 0,(function*(){let n=r,o=0;for(const r of e)n=yield t(n,r,o++);return n}))}function o(e){var n,o,a,s;return Cd(this,void 0,void 0,(function*(){let i=r,c=0;try{for(n=jd(e);!(o=yield n.next()).done;){const e=o.value;i=yield t(i,e,c++)}}catch(e){a={error:e}}finally{try{o&&!o.done&&(s=n.return)&&(yield s.call(n))}finally{if(a)throw a.error}}return i}))}}(e,t,r)},kd.ReduceAsyncOperator=void 0;const Rd=ye,Dd=fe,Bd=Td;class Vd extends Dd.Subject{reduceAsync(...e){return Rd.applyBinding(this.subject,Bd.reduceAsync,e)}}kd.ReduceAsyncOperator=Vd;var Ud={},Fd={},qd=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},Md=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};Fd.someAsync=void 0;const zd=We;Fd.someAsync=function(e,t){return zd.isAsyncIterable(e)?function(e){var r,n,o,a;return qd(this,void 0,void 0,(function*(){let s=0;try{for(r=Md(e);!(n=yield r.next()).done;){const e=n.value;if(yield t(e,s))return!0;s++}}catch(e){o={error:e}}finally{try{n&&!n.done&&(a=r.return)&&(yield a.call(r))}finally{if(o)throw o.error}}return!1}))}(e):function(e){return qd(this,void 0,void 0,(function*(){let r=0;for(const n of e){if(yield t(n,r))return!0;r++}return!1}))}(e)},Ud.SomeAsyncOperator=void 0;const Ld=ye,Kd=fe,Gd=Fd;class Jd extends Kd.Subject{someAsync(...e){return Ld.applyBinding(this.subject,Gd.someAsync,e)}}Ud.SomeAsyncOperator=Jd;var Hd={},Wd={},Zd=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))};Wd.lastAsync=void 0,Wd.lastAsync=function(e){return Zd(this,void 0,void 0,(function*(){const t=e[Symbol.asyncIterator]();let{value:r,done:n}=yield t.next();if(n)return;let o=r;for(;({value:r,done:n}=yield t.next()),!n;)o=r;return o}))},Hd.LastAsyncOperator=void 0;const Qd=ye,Yd=ve,Xd=Wd;class eh extends Yd.AsyncIterableOperatorBase{lastAsync(...e){return Qd.applyBinding(this.subject,Xd.lastAsync,e)}}Hd.LastAsyncOperator=eh;var th={},rh={},nh=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},oh=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};rh.toArrayAsync=void 0;const ah=xf;rh.toArrayAsync=function(e){return ah.consume(e,(e=>{var t,r;return nh(this,void 0,void 0,(function*(){var n,o;const a=[];try{for(t=oh(e);!(r=yield t.next()).done;){const e=r.value;a.push(e)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return a}))}))},th.ToArrayAsyncOperator=void 0;const sh=ye,ih=ve,ch=rh;class uh extends ih.AsyncIterableOperatorBase{toArrayAsync(...e){return sh.applyBinding(this.subject,ch.toArrayAsync,e)}}th.ToArrayAsyncOperator=uh;var lh={},fh={},dh=se&&se.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,a){function s(e){try{c(n.next(e))}catch(e){a(e)}}function i(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,i)}c((n=n.apply(e,t||[])).next())}))},hh=se&&se.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}};fh.toSetAsync=void 0;const ph=xf;fh.toSetAsync=function(e){return ph.consume(e,(e=>{var t,r;return dh(this,void 0,void 0,(function*(){var n,o;const a=new Set;try{for(t=hh(e);!(r=yield t.next()).done;){const e=r.value;a.add(e)}}catch(e){n={error:e}}finally{try{r&&!r.done&&(o=t.return)&&(yield o.call(t))}finally{if(n)throw n.error}}return a}))}))},lh.ToSetAsyncOperator=void 0;const yh=ye,mh=ve,vh=fh;class bh extends mh.AsyncIterableOperatorBase{toSetAsync(...e){return yh.applyBinding(this.subject,vh.toSetAsync,e)}}lh.ToSetAsyncOperator=bh,me.AsyncIterableOperator=void 0;const gh=ue,wh=ve,_h=we,$h=Je,Sh=Si,Ah=Ni,Oh=Wi,Eh=uc,Ih=bc,xh=xc,Ph=Kc,kh=Zc,Th=tu,Ch=fu,jh=Su,Nh=Nu,Rh=zu,Dh=Xu,Bh=ll,Vh=$l,Uh=Cl,Fh=Ml,qh=Yl,Mh=cf,zh=bf,Lh=If,Kh=jf,Gh=Mf,Jh=Qf,Hh=sd,Wh=pd,Zh=$d,Qh=kd,Yh=Ud,Xh=Hd,ep=th,tp=lh;class rp extends wh.AsyncIterableOperatorBase{}me.AsyncIterableOperator=rp,gh.mixinDecorators(rp,[_h.ChunkAsyncOperator,$h.ChunkByAsyncOperator,Sh.ConcatAsyncOperator,Ah.DropAsyncOperator,Oh.DropRightAsyncOperator,Eh.DropUntilAsyncOperator,Ih.FilterAsyncOperator,xh.FlattenAsyncOperator,Ph.FlattenByAsync,kh.FlattenDeepAsyncOperator,Th.MapAsyncOperator,Ch.RepeatAsyncOperator,jh.SliceAsyncOperator,Nh.SplitAsyncOperator,Rh.SplitByAsyncOperator,Dh.TakeAsyncOperator,Bh.TakeRightAsyncOperator,Vh.TakeUntilAsyncOperator,Uh.TapAsyncOperator,Fh.TransformAsyncOperator,qh.UniqAsyncOperator,Mh.UniqByAsyncOperator,zh.ZipAsyncOperator,Lh.ConsumeOperator,Kh.EachAsyncOperator,Gh.EveryAsyncOperator,Jh.FindAsyncOperator,Hh.FirstAsyncOperator,Wh.IncludesAsyncOperator,Zh.MatchAsyncOperator,Qh.ReduceAsyncOperator,Yh.SomeAsyncOperator,Xh.LastAsyncOperator,ep.ToArrayAsyncOperator,tp.ToSetAsyncOperator]),ye.applyChainingAsync=ye.applyChaining=ye.applyBinding=ye.getPipelineProxy=void 0;const np=ce,op=me;ye.getPipelineProxy=function(e,t){return(...r)=>e(...r,...t)},ye.applyBinding=function(e,t,r){return t(e,...r)},ye.applyChaining=function(e,t,r){return new np.IterableOperator(t(e,...r))},ye.applyChainingAsync=function(e,t,r){return new op.AsyncIterableOperator(t(e,...r))};var ap={};ap.chunkBy=void 0,ap.chunkBy=function*(e,t){let r=[],n=0;for(const o of e)r.push(o),t(o,n)&&(yield r,r=[]),n++;r.length&&(yield r)},pe.ChunkByOperator=void 0;const sp=ye,ip=ap,cp=le;class up extends cp.IterableOperatorBase{chunkBy(...e){return sp.applyChaining(this.subject,ip.chunkBy,e)}}pe.ChunkByOperator=up;var lp={},fp={chunk:void 0};const dp=$e,hp=Ae;fp.chunk=function(e,t){return hp.assert(Number.isInteger(t),"The parameter size must be an integer"),hp.assert(t>0,"The parameter size must be greater than 0"),dp.go((function*(){let r=[];for(const n of e)r.push(n),r.length>=t&&(yield r,r=[]);r.length&&(yield r)}))},lp.ChunkOperator=void 0;const pp=ye,yp=fp,mp=le;class vp extends mp.IterableOperatorBase{chunk(...e){return pp.applyChaining(this.subject,yp.chunk,e)}}lp.ChunkOperator=vp;var bp={},gp={concat:void 0};const wp=$e;gp.concat=function(e,...t){return wp.go((function*(){for(const r of[e,...t])yield*r}))},bp.ConcatOperator=void 0;const _p=ye,$p=gp,Sp=le;class Ap extends Sp.IterableOperatorBase{concat(...e){return _p.applyChaining(this.subject,$p.concat,e)}}bp.ConcatOperator=Ap;var Op={},Ep={dropRight:void 0};const Ip=$e,xp=Di,Pp=Ae;Ep.dropRight=function(e,t){return Pp.assert(Number.isInteger(t),"The parameter count must be an integer"),Pp.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?xp.copyIterable(e):Ip.go((function*(){const r=Array.from(e);yield*r.slice(0,-t)}))},Op.DropRightOperator=void 0;const kp=ye,Tp=Ep,Cp=le;class jp extends Cp.IterableOperatorBase{dropRight(...e){return kp.applyChaining(this.subject,Tp.dropRight,e)}}Op.DropRightOperator=jp;var Np={},Rp={};Rp.dropUntil=void 0,Rp.dropUntil=function*(e,t){const r=e[Symbol.iterator]();let n,o=0;for(;!(n=r.next(),n.done||t(n.value,o++)););for(;!n.done;)yield n.value,n=r.next()},Np.DropUntilOperator=void 0;const Dp=ye,Bp=Rp,Vp=le;class Up extends Vp.IterableOperatorBase{dropUntil(...e){return Dp.applyChaining(this.subject,Bp.dropUntil,e)}}Np.DropUntilOperator=Up;var Fp={},qp={drop:void 0};const Mp=$e,zp=Di,Lp=Ae;qp.drop=function(e,t){return Lp.assert(Number.isInteger(t),"The parameter count must be an integer"),Lp.assert(t>=0,"The parameter count must be greater than or equal to 0"),0===t?zp.copyIterable(e):Mp.go((function*(){const r=e[Symbol.iterator]();let n;for(;!(n=r.next(),n.done||t<=0);)t--;for(;!n.done;)yield n.value,n=r.next()}))},Fp.DropOperator=void 0;const Kp=ye,Gp=qp,Jp=le;class Hp extends Jp.IterableOperatorBase{drop(...e){return Kp.applyChaining(this.subject,Gp.drop,e)}}Fp.DropOperator=Hp;var Wp={},Zp={};Zp.filter=void 0,Zp.filter=function*(e,t){let r=0;for(const n of e)t(n,r)&&(yield n),r++},Wp.FilterOperator=void 0;const Qp=ye,Yp=Zp,Xp=le;class ey extends Xp.IterableOperatorBase{filter(...e){return Qp.applyChaining(this.subject,Yp.filter,e)}}Wp.FilterOperator=ey;var ty={},ry={flattenBy:void 0};const ny=We;ry.flattenBy=function(e,t){return function*e(r,n){for(const a of r)o=a,ny.isIterable(o)&&ny.isntChar(o)&&t(a,n)?yield*e(a,n+1):yield a;var o}(e,1)},ty.FlattenByOperator=void 0;const oy=ye,ay=ry,sy=le;class iy extends sy.IterableOperatorBase{flattenBy(...e){return oy.applyChaining(this.subject,ay.flattenBy,e)}}ty.FlattenByOperator=iy;var cy={},uy={flattenDeep:void 0};const ly=ry,fy=Ae;uy.flattenDeep=function(e,t=1/0){return fy.assert(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),fy.assert(t>=0,"The parameter depth must be greater than or equal to 0"),ly.flattenBy(e,((e,r)=>r<=t))},cy.FlattenDeepOperator=void 0;const dy=ye,hy=uy,py=le;class yy extends py.IterableOperatorBase{flattenDeep(...e){return dy.applyChaining(this.subject,hy.flattenDeep,e)}}cy.FlattenDeepOperator=yy;var my={},vy={flatten:void 0};const by=uy;vy.flatten=function(e){return by.flattenDeep(e,1)},my.FlattenOperator=void 0;const gy=ye,wy=vy,_y=le;class $y extends _y.IterableOperatorBase{flatten(...e){return gy.applyChaining(this.subject,wy.flatten,e)}}my.FlattenOperator=$y;var Sy={},Ay={};Ay.map=void 0,Ay.map=function*(e,t){let r=0;for(const n of e)yield t(n,r),r++},Sy.MapOperator=void 0;const Oy=ye,Ey=Ay,Iy=le;class xy extends Iy.IterableOperatorBase{map(...e){return Oy.applyChaining(this.subject,Ey.map,e)}}Sy.MapOperator=xy;var Py={},ky={repeat:void 0};const Ty=$e,Cy=Ae;ky.repeat=function(e,t){return Cy.assert(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),Cy.assert(t>=0,"The parameter times must be greater than or equal to 0"),t===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")}(),Ty.go((function*(){const r=[];if(t>0){for(const t of e)yield t,r.push(t);t--}for(;t>0;)yield*r,t--}))},Py.RepeatOperator=void 0;const jy=ye,Ny=ky,Ry=le;class Dy extends Ry.IterableOperatorBase{repeat(...e){return jy.applyChaining(this.subject,Ny.repeat,e)}}Py.RepeatOperator=Dy;var By={},Vy={slice:void 0};const Uy=$e,Fy=Ae;Vy.slice=function(e,t,r=1/0){return Fy.assert(Number.isInteger(t),"The parameter start must be an integer"),Fy.assert(t>=0,"The parameter start must be greater than or equal to 0"),Fy.assert(Number.isInteger(r),"The parameter end must be an integer"),Fy.assert(r>=t,"The parameter end must be greater than or equal to start"),Uy.go((function*(){let n=0;for(const o of e){if(n>=r)break;n>=t&&(yield o),n++}}))},By.SliceOperator=void 0;const qy=ye,My=Vy,zy=le;class Ly extends zy.IterableOperatorBase{slice(...e){return qy.applyChaining(this.subject,My.slice,e)}}By.SliceOperator=Ly;var Ky={},Gy={};Gy.splitBy=void 0,Gy.splitBy=function*(e,t){let r=[],n=0;for(const o of e)t(o,n)?(yield r,r=[]):r.push(o),n++;yield r},Ky.SplitByOperator=void 0;const Jy=ye,Hy=Gy,Wy=le;class Zy extends Wy.IterableOperatorBase{splitBy(...e){return Jy.applyChaining(this.subject,Hy.splitBy,e)}}Ky.SplitByOperator=Zy;var Qy={},Yy={};Yy.split=void 0,Yy.split=function*(e,t){let r=[];for(const n of e)n===t?(yield r,r=[]):r.push(n);yield r},Qy.SplitOperator=void 0;const Xy=ye,em=Yy,tm=le;class rm extends tm.IterableOperatorBase{split(...e){return Xy.applyChaining(this.subject,em.split,e)}}Qy.SplitOperator=rm;var nm={},om={takeRight:void 0};const am=$e,sm=Ae;om.takeRight=function(e,t){return sm.assert(Number.isInteger(t),"The parameter count must be an integer"),sm.assert(t>=0,"The parameter count must be greater than or equal to 0"),am.go((function*(){const r=e[Symbol.iterator](),n=[];let o;for(;o=r.next(),!o.done;)n.push(o.value),n.length>t&&n.shift();yield*n}))},nm.TakeRightOperator=void 0;const im=ye,cm=om,um=le;class lm extends um.IterableOperatorBase{takeRight(...e){return im.applyChaining(this.subject,cm.takeRight,e)}}nm.TakeRightOperator=lm;var fm={},dm={};dm.takeUntil=void 0,dm.takeUntil=function*(e,t){let r=0;for(const n of e){if(t(n,r))break;yield n,r++}},fm.TakeUntilOperator=void 0;const hm=ye,pm=dm,ym=le;class mm extends ym.IterableOperatorBase{takeUntil(...e){return hm.applyChaining(this.subject,pm.takeUntil,e)}}fm.TakeUntilOperator=mm;var vm={},bm={take:void 0};const gm=$e,wm=Ae;bm.take=function(e,t){return wm.assert(Number.isInteger(t),"The parameter count must be an integer"),wm.assert(t>=0,"The parameter count must be greater than or equal to 0"),gm.go((function*(){if(0!==t)for(const r of e)if(yield r,0===--t)break}))},vm.TakeOperator=void 0;const _m=ye,$m=bm,Sm=le;class Am extends Sm.IterableOperatorBase{take(...e){return _m.applyChaining(this.subject,$m.take,e)}}vm.TakeOperator=Am;var Om={},Em={};Em.tap=void 0,Em.tap=function*(e,t){let r=0;for(const n of e)t(n,r),yield n,r++},Om.TapOperator=void 0;const Im=ye,xm=Em,Pm=le;class km extends Pm.IterableOperatorBase{tap(...e){return Im.applyChaining(this.subject,xm.tap,e)}}Om.TapOperator=km;var Tm={},Cm={},jm=se&&se.__await||function(e){return this instanceof jm?(this.v=e,this):new jm(e)},Nm=se&&se.__asyncGenerator||function(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||i(e,t)}))})}function i(e,t){try{(r=o[e](t)).value instanceof jm?Promise.resolve(r.value.v).then(c,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function c(e){i("next",e)}function u(e){i("throw",e)}function l(e,t){e(t),a.shift(),a.length&&i(a[0][0],a[0][1])}};Cm.toAsyncIterable=void 0,Cm.toAsyncIterable=function(e){return Nm(this,arguments,(function*(){for(const t of e)yield yield jm(t)}))},Tm.ToAsyncIterableOperator=void 0;const Rm=ye,Dm=le,Bm=Cm;class Vm extends Dm.IterableOperatorBase{toAsyncIterable(...e){return Rm.applyChainingAsync(this.subject,Bm.toAsyncIterable,e)}}Tm.ToAsyncIterableOperator=Vm;var Um={},Fm={};Fm.transform=void 0,Fm.transform=function*(e,t){yield*t(e)},Um.TransformOperator=void 0;const qm=ye,Mm=Fm,zm=le;class Lm extends zm.IterableOperatorBase{transform(...e){return qm.applyChaining(this.subject,Mm.transform,e)}}Um.TransformOperator=Lm;var Km={},Gm={};Gm.uniqBy=void 0,Gm.uniqBy=function*(e,t){const r=new Set;let n=0;for(const o of e){const e=t(o,n);r.has(e)||(yield o,r.add(e)),n++}},Km.UniqByOperator=void 0;const Jm=ye,Hm=Gm,Wm=le;class Zm extends Wm.IterableOperatorBase{uniqBy(...e){return Jm.applyChaining(this.subject,Hm.uniqBy,e)}}Km.UniqByOperator=Zm;var Qm={},Ym={};Ym.uniq=void 0,Ym.uniq=function*(e){const t=new Set;for(const r of e)t.has(r)||(yield r,t.add(r))},Qm.UniqOperator=void 0;const Xm=ye,ev=Ym,tv=le;class rv extends tv.IterableOperatorBase{uniq(...e){return Xm.applyChaining(this.subject,ev.uniq,e)}}Qm.UniqOperator=rv;var nv={},ov={};ov.zip=void 0,ov.zip=function(e,...t){return function*(...e){const t=e.length,r=e.map((e=>e[Symbol.iterator]()));for(;;){const e=new Array(t);for(let n=0;n<t;n++){const{value:t,done:o}=r[n].next();if(o)return;e[n]=t}yield e}}(e,...t)},nv.ZipOperator=void 0;const av=ye,sv=ov,iv=le;class cv extends iv.IterableOperatorBase{zip(...e){return av.applyChaining(this.subject,sv.zip,e)}}nv.ZipOperator=cv;var uv={},lv={};lv.each=void 0,lv.each=function(e,t){let r=0;for(const n of e)t(n,r),r++},uv.EachOperator=void 0;const fv=ye,dv=lv,hv=le;class pv extends hv.IterableOperatorBase{each(...e){return fv.applyBinding(this.subject,dv.each,e)}}uv.EachOperator=pv;var yv={},mv={};mv.every=void 0,mv.every=function(e,t){let r=0;for(const n of e){if(!t(n,r))return!1;r++}return!0},yv.EveryOperator=void 0;const vv=ye,bv=mv,gv=le;class wv extends gv.IterableOperatorBase{every(...e){return vv.applyBinding(this.subject,bv.every,e)}}yv.EveryOperator=wv;var _v={},$v={};$v.find=void 0,$v.find=function(e,t){let r=0;for(const n of e){if(t(n,r))return n;r++}},_v.FindOperator=void 0;const Sv=ye,Av=$v,Ov=le;class Ev extends Ov.IterableOperatorBase{find(...e){return Sv.applyBinding(this.subject,Av.find,e)}}_v.FindOperator=Ev;var Iv={},xv={};xv.first=void 0,xv.first=function(e){for(const t of e)return t},Iv.FirstOperator=void 0;const Pv=ye,kv=xv,Tv=le;class Cv extends Tv.IterableOperatorBase{first(...e){return Pv.applyBinding(this.subject,kv.first,e)}}Iv.FirstOperator=Cv;var jv={},Nv={};Nv.includes=void 0,Nv.includes=function(e,t){for(const r of e)if(r===t)return!0;return!1},jv.IncludesOperator=void 0;const Rv=ye,Dv=Nv,Bv=le;class Vv extends Bv.IterableOperatorBase{includes(...e){return Rv.applyBinding(this.subject,Dv.includes,e)}}jv.IncludesOperator=Vv;var Uv={},Fv={};Fv.match=void 0,Fv.match=function(e,t){const r=t.length;let n=0;for(const o of e)if(o===t[n]&&n++,n===r)return!0;return!1},Uv.MatchOperator=void 0;const qv=ye,Mv=Fv,zv=le;class Lv extends zv.IterableOperatorBase{match(...e){return qv.applyBinding(this.subject,Mv.match,e)}}Uv.MatchOperator=Lv;var Kv={},Gv={reduce:void 0};const Jv=We;Gv.reduce=function(e,t,r){return Jv.isUndefined(r)?function(e,t){const[r,n]=s(e);let o=r,a=1;for(;;){const e=n.next();if(e.done)break;o=t(o,e.value,a++)}return o;function s(e){const t=e[Symbol.iterator](),r=t.next();if(r.done)throw new Error("Reduce of empty iterable with no initial value");return[r.value,t]}}(e,t):function(e,t,r){let n=r,o=0;for(const r of e)n=t(n,r,o++);return n}(e,t,r)},Kv.ReduceOperator=void 0;const Hv=ye,Wv=Gv,Zv=le;class Qv extends Zv.IterableOperatorBase{reduce(...e){return Hv.applyBinding(this.subject,Wv.reduce,e)}}Kv.ReduceOperator=Qv;var Yv={},Xv={};Xv.some=void 0,Xv.some=function(e,t){let r=0;for(const n of e){if(t(n,r))return!0;r++}return!1},Yv.SomeOperator=void 0;const eb=ye,tb=Xv,rb=le;class nb extends rb.IterableOperatorBase{some(...e){return eb.applyBinding(this.subject,tb.some,e)}}Yv.SomeOperator=nb;var ob={},ab={};ab.last=void 0,ab.last=function(e){const t=e[Symbol.iterator]();let{value:r,done:n}=t.next();if(n)return;let o=r;for(;({value:r,done:n}=t.next()),!n;)o=r;return o},ob.LastOperator=void 0;const sb=ye,ib=ab,cb=le;class ub extends cb.IterableOperatorBase{last(...e){return sb.applyBinding(this.subject,ib.last,e)}}ob.LastOperator=ub;var lb={},fb={toArray:void 0};const db=xf;fb.toArray=function(e){return db.consume(e,(e=>Array.from(e)))},lb.ToArrayOperator=void 0;const hb=ye,pb=fb,yb=le;class mb extends yb.IterableOperatorBase{toArray(...e){return hb.applyBinding(this.subject,pb.toArray,e)}}lb.ToArrayOperator=mb;var vb={},bb={toSet:void 0};const gb=xf;bb.toSet=function(e){return gb.consume(e,(e=>new Set(e)))},vb.ToSetOperator=void 0;const wb=ye,_b=bb,$b=le;class Sb extends $b.IterableOperatorBase{toSet(...e){return wb.applyBinding(this.subject,_b.toSet,e)}}vb.ToSetOperator=Sb,ce.IterableOperator=void 0;const Ab=ue,Ob=le,Eb=pe,Ib=lp,xb=bp,Pb=Op,kb=Np,Tb=Fp,Cb=Wp,jb=ty,Nb=cy,Rb=my,Db=Sy,Bb=Py,Vb=By,Ub=Ky,Fb=Qy,qb=nm,Mb=fm,zb=vm,Lb=Om,Kb=Tm,Gb=Ml,Jb=Um,Hb=Km,Wb=Qm,Zb=nv,Qb=Je,Yb=Si,Xb=uc,eg=bc,tg=Kc,rg=tu,ng=zu,og=$l,ag=Cl,sg=cf,ig=bf,cg=If,ug=uv,lg=yv,fg=_v,dg=Iv,hg=jv,pg=Uv,yg=Kv,mg=Yv,vg=ob,bg=lb,gg=vb,wg=jf,_g=Mf,$g=Qf,Sg=kd,Ag=Ud;class Og extends Ob.IterableOperatorBase{}ce.IterableOperator=Og,Ab.mixinDecorators(Og,[Ib.ChunkOperator,Eb.ChunkByOperator,xb.ConcatOperator,Pb.DropRightOperator,kb.DropUntilOperator,Tb.DropOperator,Cb.FilterOperator,jb.FlattenByOperator,Nb.FlattenDeepOperator,Rb.FlattenOperator,Db.MapOperator,Bb.RepeatOperator,Vb.SliceOperator,Ub.SplitByOperator,Fb.SplitOperator,qb.TakeRightOperator,Mb.TakeUntilOperator,zb.TakeOperator,Lb.TapOperator,Jb.TransformOperator,Hb.UniqByOperator,Wb.UniqOperator,Zb.ZipOperator,Qb.ChunkByAsyncOperator,Yb.ConcatAsyncOperator,Xb.DropUntilAsyncOperator,eg.FilterAsyncOperator,tg.FlattenByAsync,rg.MapAsyncOperator,ng.SplitByAsyncOperator,og.TakeUntilAsyncOperator,ag.TapAsyncOperator,Kb.ToAsyncIterableOperator,Gb.TransformAsyncOperator,sg.UniqByAsyncOperator,ig.ZipAsyncOperator,cg.ConsumeOperator,ug.EachOperator,lg.EveryOperator,fg.FindOperator,dg.FirstOperator,hg.IncludesOperator,pg.MatchOperator,yg.ReduceOperator,mg.SomeOperator,vg.LastOperator,bg.ToArrayOperator,gg.ToSetOperator,wg.EachAsyncOperator,_g.EveryAsyncOperator,$g.FindAsyncOperator,Sg.ReduceAsyncOperator,Ag.SomeAsyncOperator]),function(e){var t=se&&se.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),r=se&&se.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||t(r,e,n)};r(ce,e),r(me,e)}(ie);const Eg=new Set,Ig=new Set;let xg=!1,Pg=!1;e.observeAdditionOfDescendantNodes=function(e){return ae(e,{childList:!0,subtree:!0}).pipe(H((e=>new ie.IterableOperator(e).map((e=>e.addedNodes)).flatten().toArray())),oe((e=>e.length>0)))},e.observeRemovalOfDescendantNodes=function(e){return ae(e,{childList:!0,subtree:!0}).pipe(H((e=>new ie.IterableOperator(e).map((e=>e.removedNodes)).flatten().toArray())),oe((e=>e.length>0)))},e.observeStateChanges=function(){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=G(e),n=J(e,1/0),o=e;return o.length?1===o.length?q(o[0]):Y(n)(L(o,r)):V}(new k((e=>(xg||function(){const e=history.pushState;history.pushState=function(...t){Reflect.apply(e,this,t),Eg.forEach((e=>e.next()))},xg=!0}(),Eg.add(e),()=>Eg.delete(e)))),new k((e=>(Pg||function(){const e=history.replaceState;history.replaceState=function(...t){Reflect.apply(e,this,t),Ig.forEach((e=>e.next()))},Pg=!0}(),Ig.add(e),()=>Ig.delete(e)))),re(window,"popstate")).pipe(H((e=>{})))},e.observeUrlChanges=function(){let e=document.URL;return(t?D(t):B).pipe(oe((()=>e!==document.URL)),function(e,t,r){var n=f(e)||t||r?{next:e,error:t,complete:r}:e;return n?C((function(e,t){e.subscribe(new j(t,(function(e){var r;null===(r=n.next)||void 0===r||r.call(n,e),t.next(e)}),(function(){var e;null===(e=n.complete)||void 0===e||e.call(n),t.complete()}),(function(e){var r;null===(r=n.error)||void 0===r||r.call(n,e),t.error(e)})))})):x}((()=>e=document.URL)),H((()=>{})));var t},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var t=function(n,e){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,e)};function e(n,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=n}t(n,e),n.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function r(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))}function o(n,t){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=t.call(n,a)}catch(n){i=[6,n],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(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],r=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(n,t){var e="function"==typeof Symbol&&n[Symbol.iterator];if(!e)return n;var r,o,i=e.call(n),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(n){o={error:n}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return a}function c(n,t,e){if(e||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return n.concat(r||Array.prototype.slice.call(t))}function s(n){return this instanceof s?(this.v=n,this):new s(n)}function u(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof s?Promise.resolve(e.value.v).then(u,l):f(i[0][2],e)}catch(n){f(i[0][3],n)}var e}function u(n){c("next",n)}function l(n){c("throw",n)}function f(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}}function l(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n=i(n),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}}function f(n){return"function"==typeof n}var y,d=((y=function(n){return function(t){n(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(n,t){return t+1+") "+n.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}}((function(n){Error.call(n),n.stack=(new Error).stack}))).prototype=Object.create(Error.prototype),y.prototype.constructor=y,y);function p(n,t){if(n){var e=n.indexOf(t);0<=e&&n.splice(e,1)}}var h=function(){function n(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._teardowns=null}var t;return n.prototype.unsubscribe=function(){var n,t,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 u=i(s),l=u.next();!l.done;l=u.next()){l.value.remove(this)}}catch(t){n={error:t}}finally{try{l&&!l.done&&(t=u.return)&&t.call(u)}finally{if(n)throw n.error}}else s.remove(this);var y=this.initialTeardown;if(f(y))try{y()}catch(n){o=n instanceof d?n.errors:[n]}var p=this._teardowns;if(p){this._teardowns=null;try{for(var h=i(p),v=h.next();!v.done;v=h.next()){var m=v.value;try{b(m)}catch(n){o=null!=o?o:[],n instanceof d?o=c(c([],a(o)),a(n.errors)):o.push(n)}}}catch(n){e={error:n}}finally{try{v&&!v.done&&(r=h.return)&&r.call(h)}finally{if(e)throw e.error}}}if(o)throw new d(o)}},n.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)b(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},n.prototype._hasParent=function(n){var t=this._parentage;return t===n||Array.isArray(t)&&t.includes(n)},n.prototype._addParent=function(n){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n},n.prototype._removeParent=function(n){var t=this._parentage;t===n?this._parentage=null:Array.isArray(t)&&p(t,n)},n.prototype.remove=function(t){var e=this._teardowns;e&&p(e,t),t instanceof n&&t._removeParent(this)},n.EMPTY=((t=new n).closed=!0,t),n}();function v(n){return n instanceof h||n&&"closed"in n&&f(n.remove)&&f(n.add)&&f(n.unsubscribe)}function b(n){f(n)?n():n.unsubscribe()}var m={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},w={setTimeout:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=w.delegate;return((null==e?void 0:e.setTimeout)||setTimeout).apply(void 0,c([],a(n)))},clearTimeout:function(n){var t=w.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(n)},delegate:void 0};function A(n){w.setTimeout((function(){var t=m.onUnhandledError;if(!t)throw n;t(n)}))}function S(){}var _=O("C",void 0,void 0);function O(n,t,e){return{kind:n,value:t,error:e}}var I=null;function g(n){m.useDeprecatedSynchronousErrorHandling&&I&&(I.errorThrown=!0,I.error=n)}var x=function(n){function t(t){var e=n.call(this)||this;return e.isStopped=!1,t?(e.destination=t,v(t)&&t.add(e)):e.destination=E,e}return e(t,n),t.create=function(n,t,e){return new P(n,t,e)},t.prototype.next=function(n){this.isStopped?j(function(n){return O("N",n,void 0)}(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?j(function(n){return O("E",void 0,n)}(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?j(_,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(h),P=function(n){function t(t,e,r){var o,i=n.call(this)||this;if(f(t))o=t;else if(t){var a;o=t.next,e=t.error,r=t.complete,i&&m.useDeprecatedNextContext?(a=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:a=t,o=null==o?void 0:o.bind(a),e=null==e?void 0:e.bind(a),r=null==r?void 0:r.bind(a)}return i.destination={next:o?T(o):S,error:T(null!=e?e:B),complete:r?T(r):S},i}return e(t,n),t}(x);function T(n,t){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];try{n.apply(void 0,c([],a(t)))}catch(n){m.useDeprecatedSynchronousErrorHandling?g(n):A(n)}}}function B(n){throw n}function j(n,t){var e=m.onStoppedNotification;e&&w.setTimeout((function(){return e(n,t)}))}var E={closed:!0,next:S,error:B,complete:S},k="function"==typeof Symbol&&Symbol.observable||"@@observable";function C(n){return n}function R(n){return 0===n.length?C:1===n.length?n[0]:function(t){return n.reduce((function(n,t){return t(n)}),t)}}var U=function(){function n(n){n&&(this._subscribe=n)}return n.prototype.lift=function(t){var e=new n;return e.source=this,e.operator=t,e},n.prototype.subscribe=function(n,t,e){var r,o=this,i=(r=n)&&r instanceof x||function(n){return n&&f(n.next)&&f(n.error)&&f(n.complete)}(r)&&v(r)?n:new P(n,t,e);return function(n){if(m.useDeprecatedSynchronousErrorHandling){var t=!I;if(t&&(I={errorThrown:!1,error:null}),n(),t){var e=I,r=e.errorThrown,o=e.error;if(I=null,r)throw o}}else n()}((function(){var n=o,t=n.operator,e=n.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))})),i},n.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){n.error(t)}},n.prototype.forEach=function(n,t){var e=this;return new(t=D(t))((function(t,r){var o=new P({next:function(t){try{n(t)}catch(n){r(n),o.unsubscribe()}},error:r,complete:t});e.subscribe(o)}))},n.prototype._subscribe=function(n){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(n)},n.prototype[k]=function(){return this},n.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return R(n)(this)},n.prototype.toPromise=function(n){var t=this;return new(n=D(n))((function(n,e){var r;t.subscribe((function(n){return r=n}),(function(n){return e(n)}),(function(){return n(r)}))}))},n.create=function(t){return new n(t)},n}();function D(n){var t;return null!==(t=null!=n?n:m.Promise)&&void 0!==t?t:Promise}function F(n){return function(t){if(function(n){return f(null==n?void 0:n.lift)}(t))return t.lift((function(t){try{return n(t,this)}catch(n){this.error(n)}}));throw new TypeError("Unable to lift unknown Observable type")}}var q=function(n){function t(t,e,r,o,i){var a=n.call(this,t)||this;return a.onFinalize=i,a._next=e?function(n){try{e(n)}catch(n){t.error(n)}}:n.prototype._next,a._error=o?function(n){try{o(n)}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._error,a._complete=r?function(){try{r()}catch(n){t.error(n)}finally{this.unsubscribe()}}:n.prototype._complete,a}return e(t,n),t.prototype.unsubscribe=function(){var t,e=this.closed;n.prototype.unsubscribe.call(this),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))},t}(x),N={now:function(){return(N.delegate||performance).now()},delegate:void 0},V={schedule:function(n){var t=requestAnimationFrame,e=cancelAnimationFrame,r=V.delegate;r&&(t=r.requestAnimationFrame,e=r.cancelAnimationFrame);var o=t((function(t){e=void 0,n(t)}));return new h((function(){return null==e?void 0:e(o)}))},requestAnimationFrame:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=V.delegate;return((null==e?void 0:e.requestAnimationFrame)||requestAnimationFrame).apply(void 0,c([],a(n)))},cancelAnimationFrame:function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=V.delegate;return((null==e?void 0:e.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,c([],a(n)))},delegate:void 0};function G(n){var t=V.schedule;return new U((function(e){var r=new h,o=n||N,i=o.now(),a=function(c){var s=o.now();e.next({timestamp:n?s:c,elapsed:s-i}),e.closed||r.add(t(a))};return r.add(t(a)),r}))}var L=G(),J=new U((function(n){return n.complete()}));function z(n){return n[n.length-1]}function M(n){return(t=z(n))&&f(t.schedule)?n.pop():void 0;var t}function Z(n,t){return"number"==typeof z(n)?n.pop():t}var H=function(n){return n&&"number"==typeof n.length&&"function"!=typeof n};function Y(n){return f(null==n?void 0:n.then)}function W(n){return f(n[k])}function K(n){return Symbol.asyncIterator&&f(null==n?void 0:n[Symbol.asyncIterator])}function Q(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var X="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function $(n){return f(null==n?void 0:n[X])}function nn(n){return u(this,arguments,(function(){var t,e,r;return o(this,(function(o){switch(o.label){case 0:t=n.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,s(t.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 t.releaseLock(),[7];case 10:return[2]}}))}))}function tn(n){return f(null==n?void 0:n.getReader)}function en(n){if(n instanceof U)return n;if(null!=n){if(W(n))return e=n,new U((function(n){var t=e[k]();if(f(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(H(n))return function(n){return new U((function(t){for(var e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()}))}(n);if(Y(n))return t=n,new U((function(n){t.then((function(t){n.closed||(n.next(t),n.complete())}),(function(t){return n.error(t)})).then(null,A)}));if(K(n))return rn(n);if($(n))return function(n){return new U((function(t){var e,r;try{for(var o=i(n),a=o.next();!a.done;a=o.next()){var c=a.value;if(t.next(c),t.closed)return}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}t.complete()}))}(n);if(tn(n))return rn(nn(n))}var t,e;throw Q(n)}function rn(n){return new U((function(t){(function(n,t){var e,i,a,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(n),o.label=1;case 1:return[4,e.next()];case 2:if((i=o.sent()).done)return[3,4];if(r=i.value,t.next(r),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=o.sent(),a={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(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}}))}))})(n,t).catch((function(n){return t.error(n)}))}))}function on(n,t,e,r,o){void 0===r&&(r=0),void 0===o&&(o=!1);var i=t.schedule((function(){e(),o?n.add(this.schedule(null,r)):this.unsubscribe()}),r);if(n.add(i),!o)return i}function an(n,t){return void 0===t&&(t=0),F((function(e,r){e.subscribe(new q(r,(function(e){return on(r,n,(function(){return r.next(e)}),t)}),(function(){return on(r,n,(function(){return r.complete()}),t)}),(function(e){return on(r,n,(function(){return r.error(e)}),t)})))}))}function cn(n,t){return void 0===t&&(t=0),F((function(e,r){r.add(n.schedule((function(){return e.subscribe(r)}),t))}))}function sn(n,t){if(!n)throw new Error("Iterable cannot be null");return new U((function(e){on(e,t,(function(){var r=n[Symbol.asyncIterator]();on(e,t,(function(){r.next().then((function(n){n.done?e.complete():e.next(n.value)}))}),0,!0)}))}))}function un(n,t){if(null!=n){if(W(n))return function(n,t){return en(n).pipe(cn(t),an(t))}(n,t);if(H(n))return function(n,t){return new U((function(e){var r=0;return t.schedule((function(){r===n.length?e.complete():(e.next(n[r++]),e.closed||this.schedule())}))}))}(n,t);if(Y(n))return function(n,t){return en(n).pipe(cn(t),an(t))}(n,t);if(K(n))return sn(n,t);if($(n))return function(n,t){return new U((function(e){var r;return on(e,t,(function(){r=n[X](),on(e,t,(function(){var n,t,o;try{t=(n=r.next()).value,o=n.done}catch(n){return void e.error(n)}o?e.complete():e.next(t)}),0,!0)})),function(){return f(null==r?void 0:r.return)&&r.return()}}))}(n,t);if(tn(n))return function(n,t){return sn(nn(n),t)}(n,t)}throw Q(n)}function ln(n,t){return t?un(n,t):en(n)}function fn(n,t){return F((function(e,r){var o=0;e.subscribe(new q(r,(function(e){r.next(n.call(t,e,o++))})))}))}var yn=Array.isArray;function dn(n){return fn((function(t){return function(n,t){return yn(t)?n.apply(void 0,c([],a(t))):n(t)}(n,t)}))}function pn(n,t,e){return void 0===e&&(e=1/0),f(t)?pn((function(e,r){return fn((function(n,o){return t(e,n,r,o)}))(en(n(e,r)))}),e):("number"==typeof t&&(e=t),F((function(t,r){return function(n,t,e,r,o,i,a,c){var s=[],u=0,l=0,f=!1,y=function(){!f||s.length||u||t.complete()},d=function(n){return u<r?p(n):s.push(n)},p=function(n){i&&t.next(n),u++;var c=!1;en(e(n,l++)).subscribe(new q(t,(function(n){null==o||o(n),i?d(n):t.next(n)}),(function(){c=!0}),void 0,(function(){if(c)try{u--;for(var n=function(){var n=s.shift();a?on(t,a,(function(){return p(n)})):p(n)};s.length&&u<r;)n();y()}catch(n){t.error(n)}})))};return n.subscribe(new q(t,d,(function(){f=!0,y()}))),function(){null==c||c()}}(t,r,n,e)})))}function hn(n){return void 0===n&&(n=1/0),pn(C,n)}var vn=["addListener","removeListener"],bn=["addEventListener","removeEventListener"],mn=["on","off"];function wn(n,t,e,r){if(f(e)&&(r=e,e=void 0),r)return wn(n,t,e).pipe(dn(r));var o=a(function(n){return f(n.addEventListener)&&f(n.removeEventListener)}(n)?bn.map((function(r){return function(o){return n[r](t,o,e)}})):function(n){return f(n.addListener)&&f(n.removeListener)}(n)?vn.map(An(n,t)):function(n){return f(n.on)&&f(n.off)}(n)?mn.map(An(n,t)):[],2),i=o[0],c=o[1];if(!i&&H(n))return pn((function(n){return wn(n,t,e)}))(en(n));if(!i)throw new TypeError("Invalid event target");return new U((function(n){var t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return n.next(1<t.length?t:t[0])};return i(t),function(){return c(t)}}))}function An(n,t){return function(e){return function(r){return n[e](t,r)}}}function Sn(n,t){return F((function(e,r){var o=0;e.subscribe(new q(r,(function(e){return n.call(t,e,o++)&&r.next(e)})))}))}function _n(...n){return new U((t=>{const e=new MutationObserver((n=>t.next(n)));return e.observe(...n),()=>e.disconnect()}))}var On="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},In={},gn={},xn={};xn.mixinDecorators=void 0,xn.mixinDecorators=function(n,t){for(const e of t)for(const t of Object.getOwnPropertyNames(e.prototype)){if("constructor"===t)continue;const r=Object.getOwnPropertyDescriptor(e.prototype,t);Object.defineProperty(n.prototype,t,r)}};var Pn={},Tn={Subject:void 0};Tn.Subject=class{constructor(n){this.subject=n}},Pn.IterableOperatorBase=void 0;const Bn=Tn;class jn extends Bn.Subject{[Symbol.iterator](){return this.subject[Symbol.iterator]()}}Pn.IterableOperatorBase=jn;var En={},kn={},Cn={},Rn={AsyncIterableOperatorBase:void 0};const Un=Tn;class Dn extends Un.Subject{[Symbol.asyncIterator](){return this.subject[Symbol.asyncIterator]()}}Rn.AsyncIterableOperatorBase=Dn;var Fn={},qn={},Nn={},Vn={};Vn.go=void 0,Vn.go=function(n){return n()},function(n){var t=On&&On.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]});(On&&On.__exportStar||function(n,e){for(var r in n)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||t(e,n,r)})(Vn,n)}(Nn);var Gn={},Ln={CustomError:void 0};class Jn extends Error{get name(){return this.constructor.name}}Ln.CustomError=Jn;var zn={ExpectedError:void 0};const Mn=Ln;class Zn extends Mn.CustomError{}zn.ExpectedError=Zn;var Hn={AssertionError:void 0};const Yn=Ln;class Wn extends Yn.CustomError{}Hn.AssertionError=Wn;var Kn={};Kn.normalize=void 0,Kn.normalize=function(n){var t;return{name:n.name,message:n.message,stack:null!==(t=n.stack)&&void 0!==t?t:null}};var Qn={refute:void 0};const Xn=zn;Qn.refute=function(n,t){if(n)throw new Xn.ExpectedError(t)};var $n={assert:void 0};const nt=Hn;$n.assert=function(n,t){if(!n)throw new nt.AssertionError(t)},function(n){var t=On&&On.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),e=On&&On.__exportStar||function(n,e){for(var r in n)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||t(e,n,r)};e(Ln,n),e(zn,n),e(Hn,n),e(Kn,n),e(Qn,n),e($n,n)}(Gn);var tt=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},et=On&&On.__await||function(n){return this instanceof et?(this.v=n,this):new et(n)},rt=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof et?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};qn.chunkAsync=void 0;const ot=Nn,it=Gn;qn.chunkAsync=function(n,t){return(0,it.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,it.assert)(t>0,"The parameter size must be greater than 0"),(0,ot.go)((function(){return rt(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=tt(n);!(i=yield et(a.next())).done;){const n=i.value;o.push(n),o.length>=t&&(yield yield et(o),o=[])}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield et(r.call(a)))}finally{if(e)throw e.error}}o.length&&(yield yield et(o))}))}))},Fn.ChunkAsyncOperator=void 0;const at=kn,ct=Rn,st=qn;class ut extends ct.AsyncIterableOperatorBase{chunkAsync(...n){return(0,at.applyChainingAsync)(this.subject,st.chunkAsync,n)}}Fn.ChunkAsyncOperator=ut;var lt={},ft={},yt={},dt={};function pt(n){return Array.isArray(n)}dt.isntEmptyArray=dt.isEmptyArray=dt.isntArray=dt.isArray=void 0,dt.isArray=pt,dt.isntArray=function(n){return!pt(n)},dt.isEmptyArray=function(n){return 0===n.length},dt.isntEmptyArray=function(n){return 0!==n.length};var ht={},vt={};function bt(n){return null===n}vt.isntNull=vt.isNull=void 0,vt.isNull=bt,vt.isntNull=function(n){return!bt(n)};var mt={};function wt(n){return void 0===n}mt.isntUndefined=mt.isUndefined=void 0,mt.isUndefined=wt,mt.isntUndefined=function(n){return!wt(n)},ht.isntAsyncIterable=ht.isAsyncIterable=void 0;const At=vt,St=mt;function _t(n){return(0,At.isntNull)(n)&&(0,St.isntUndefined)(n)&&"function"==typeof n[Symbol.asyncIterator]}ht.isAsyncIterable=_t,ht.isntAsyncIterable=function(n){return!_t(n)};var Ot={};function It(n){return"bigint"==typeof n}Ot.isntBigInt=Ot.isBigInt=void 0,Ot.isBigInt=It,Ot.isntBigInt=function(n){return!It(n)};var gt={};function xt(n){return"boolean"==typeof n}gt.isntBoolean=gt.isBoolean=void 0,gt.isBoolean=xt,gt.isntBoolean=function(n){return!xt(n)};var Pt={},Tt={};function Bt(n){return"string"==typeof n}Tt.isntString=Tt.isString=void 0,Tt.isString=Bt,Tt.isntString=function(n){return!Bt(n)},Pt.isntChar=Pt.isChar=void 0;const jt=Tt;function Et(n){return(0,jt.isString)(n)&&1===n.length}Pt.isChar=Et,Pt.isntChar=function(n){return!Et(n)};var kt={};function Ct(n){return n instanceof Date}kt.isntDate=kt.isDate=void 0,kt.isDate=Ct,kt.isntDate=function(n){return!Ct(n)};var Rt={};Rt.inEnum=void 0,Rt.inEnum=function(n,t){return Object.values(t).includes(n)};var Ut={};function Dt(n){return n instanceof Error}Ut.isntError=Ut.isError=void 0,Ut.isError=Dt,Ut.isntError=function(n){return!Dt(n)};var Ft={};function qt(n){return!n}Ft.isntFalsy=Ft.isFalsy=void 0,Ft.isFalsy=qt,Ft.isntFalsy=function(n){return!qt(n)};var Nt={};function Vt(n){return"function"==typeof n}Nt.isntFunction=Nt.isFunction=void 0,Nt.isFunction=Vt,Nt.isntFunction=function(n){return!Vt(n)};var Gt={};Gt.isntIterable=Gt.isIterable=void 0;const Lt=vt,Jt=mt;function zt(n){return(0,Lt.isntNull)(n)&&(0,Jt.isntUndefined)(n)&&"function"==typeof n[Symbol.iterator]}Gt.isIterable=zt,Gt.isntIterable=function(n){return!zt(n)};var Mt={},Zt={};var Ht=Function.prototype,Yt=Object.prototype,Wt=Ht.toString,Kt=Yt.hasOwnProperty,Qt=Wt.call(Object),Xt=Yt.toString,$t=function(n,t){return function(e){return n(t(e))}}(Object.getPrototypeOf,Object);var ne=function(n){if(!function(n){return!!n&&"object"==typeof n}(n)||"[object Object]"!=Xt.call(n)||function(n){var t=!1;if(null!=n&&"function"!=typeof n.toString)try{t=!!(n+"")}catch(n){}return t}(n))return!1;var t=$t(n);if(null===t)return!0;var e=Kt.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&Wt.call(e)==Qt},te=On&&On.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Zt.isntEmptyObject=Zt.isEmptyObject=Zt.isntPlainObject=Zt.isPlainObject=Zt.isntObject=Zt.isObject=void 0;const ee=te(ne);function re(n){return null!==n&&"object"==typeof n}function oe(n){return(0,ee.default)(n)}Zt.isObject=re,Zt.isntObject=function(n){return!re(n)},Zt.isPlainObject=oe,Zt.isntPlainObject=function(n){return!oe(n)},Zt.isEmptyObject=function(n){return 0===Object.keys(n).length},Zt.isntEmptyObject=function(n){return 0!==Object.keys(n).length};var ie={};function ae(n){return"number"==typeof n}ie.isntNumber=ie.isNumber=void 0,ie.isNumber=ae,ie.isntNumber=function(n){return!ae(n)},Mt.isntJsonRpcError=Mt.isJsonRpcError=Mt.isntJsonRpcSuccess=Mt.isJsonRpcSuccess=Mt.isntJsonRpcRequest=Mt.isJsonRpcRequest=Mt.isntJsonRpcNotification=Mt.isJsonRpcNotification=void 0;const ce=dt,se=Zt,ue=Tt,le=ie,fe=mt;function ye(n){return(0,ue.isString)(n)||(0,le.isNumber)(n)}function de(n){return(0,ce.isArray)(n)||(0,se.isObject)(n)}function pe(n){return(0,se.isPlainObject)(n)&&(0,ue.isString)(n.jsonrpc)&&(0,ue.isString)(n.method)&&(0,fe.isUndefined)(n.id)&&de(n.params)}function he(n){return(0,se.isPlainObject)(n)&&(0,ue.isString)(n.jsonrpc)&&(0,ue.isString)(n.method)&&ye(n.id)&&de(n.params)}function ve(n){return(0,se.isPlainObject)(n)&&(0,ue.isString)(n.jsonrpc)&&(0,ue.isString)(n.id)&&"result"in n}function be(n){return(0,se.isPlainObject)(n)&&(0,ue.isString)(n.jsonrpc)&&ye(n.id)&&function(n){return(0,se.isPlainObject)(n)&&(0,le.isNumber)(n.code)&&(0,ue.isString)(n.message)&&((0,fe.isUndefined)(n.data)||(0,se.isObject)(n.data))}(n.error)}Mt.isJsonRpcNotification=pe,Mt.isntJsonRpcNotification=function(n){return!pe(n)},Mt.isJsonRpcRequest=he,Mt.isntJsonRpcRequest=function(n){return!he(n)},Mt.isJsonRpcSuccess=ve,Mt.isntJsonRpcSuccess=function(n){return!ve(n)},Mt.isJsonRpcError=be,Mt.isntJsonRpcError=function(n){return!be(n)};var me={};me.isntJson=me.isJson=void 0,me.isJson=function(n){try{return JSON.stringify(n),!0}catch(n){return!1}},me.isntJson=function n(t){return!n()};var we={};we.isAbsoluteURL=void 0,we.isAbsoluteURL=function(n){try{return new URL(n),!0}catch(n){return!1}},function(n){var t=On&&On.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),e=On&&On.__exportStar||function(n,e){for(var r in n)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||t(e,n,r)};e(dt,n),e(ht,n),e(Ot,n),e(gt,n),e(Pt,n),e(kt,n),e(Rt,n),e(Ut,n),e(Ft,n),e(Nt,n),e(Gt,n),e(Mt,n),e(me,n),e(vt,n),e(ie,n),e(Zt,n),e(Tt,n),e(mt,n),e(we,n)}(yt);var Ae=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Se=On&&On.__await||function(n){return this instanceof Se?(this.v=n,this):new Se(n)},_e=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Se?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};ft.chunkByAsync=void 0;const Oe=yt;ft.chunkByAsync=function(n,t){return(0,Oe.isAsyncIterable)(n)?function(n){return _e(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=Ae(n);!(a=yield Se(c.next())).done;){const n=a.value;o.push(n),(yield Se(t(n,i)))&&(yield yield Se(o),o=[]),i++}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=c.return)&&(yield Se(r.call(c)))}finally{if(e)throw e.error}}o.length&&(yield yield Se(o))}))}(n):function(n){return _e(this,arguments,(function*(){let e=[],r=0;for(const o of n)e.push(o),(yield Se(t(o,r)))&&(yield yield Se(e),e=[]),r++;e.length&&(yield yield Se(e))}))}(n)},lt.ChunkByAsyncOperator=void 0;const Ie=kn,ge=ft,xe=Tn;class Pe extends xe.Subject{chunkByAsync(...n){return(0,Ie.applyChainingAsync)(this.subject,ge.chunkByAsync,n)}}lt.ChunkByAsyncOperator=Pe;var Te={},Be={},je=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Ee=On&&On.__await||function(n){return this instanceof Ee?(this.v=n,this):new Ee(n)},ke=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Ee?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Be.concatAsync=void 0;const Ce=yt,Re=Nn;Be.concatAsync=function(n,...t){return(0,Re.go)((function(){return ke(this,arguments,(function*(){var e,r;for(const a of[n,...t])if((0,Ce.isAsyncIterable)(a))try{for(var o,i=(e=void 0,je(a));!(o=yield Ee(i.next())).done;){const n=o.value;yield yield Ee(n)}}catch(n){e={error:n}}finally{try{o&&!o.done&&(r=i.return)&&(yield Ee(r.call(i)))}finally{if(e)throw e.error}}else for(const n of a)yield yield Ee(n)}))}))},Te.ConcatAsyncOperator=void 0;const Ue=kn,De=Be,Fe=Tn;class qe extends Fe.Subject{concatAsync(...n){return(0,Ue.applyChainingAsync)(this.subject,De.concatAsync,n)}}Te.ConcatAsyncOperator=qe;var Ne={},Ve={},Ge={},Le=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Je=On&&On.__await||function(n){return this instanceof Je?(this.v=n,this):new Je(n)},ze=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Je?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ge.copyIterable=Ge.copyAsyncIterable=void 0,Ge.copyAsyncIterable=function(n){return ze(this,arguments,(function*(){var t,e;try{for(var r,o=Le(n);!(r=yield Je(o.next())).done;){const n=r.value;yield yield Je(n)}}catch(n){t={error:n}}finally{try{r&&!r.done&&(e=o.return)&&(yield Je(e.call(o)))}finally{if(t)throw t.error}}}))},Ge.copyIterable=function*(n){for(const t of n)yield t};var Me=On&&On.__await||function(n){return this instanceof Me?(this.v=n,this):new Me(n)},Ze=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Me?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ve.dropAsync=void 0;const He=Nn,Ye=Ge,We=Gn;Ve.dropAsync=function(n,t){return(0,We.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,We.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Ye.copyAsyncIterable)(n):(0,He.go)((function(){var e;return Ze(this,arguments,(function*(){const r=n[Symbol.asyncIterator]();let o;try{let n;for(;!(({value:n,done:o}=yield Me(r.next())),o||t<=0);)t--;for(;!o;)yield yield Me(n),({value:n,done:o}=yield Me(r.next()))}finally{o||(yield Me(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))},Ne.DropAsyncOperator=void 0;const Ke=kn,Qe=Rn,Xe=Ve;class $e extends Qe.AsyncIterableOperatorBase{dropAsync(...n){return(0,Ke.applyChainingAsync)(this.subject,Xe.dropAsync,n)}}Ne.DropAsyncOperator=$e;var nr={},tr={},er=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},rr=On&&On.__await||function(n){return this instanceof rr?(this.v=n,this):new rr(n)},or=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof rr?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},ir=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};tr.dropRightAsync=void 0;const ar=Nn,cr=Ge,sr=Gn;function ur(n){var t,e,r,o;return er(this,void 0,void 0,(function*(){const i=[];try{for(t=ir(n);!(e=yield t.next()).done;){const n=e.value;i.push(n)}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}return i}))}tr.dropRightAsync=function(n,t){return(0,sr.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,sr.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,cr.copyAsyncIterable)(n):(0,ar.go)((function(){return or(this,arguments,(function*(){const e=(yield rr(ur(n))).slice(0,-t);for(const n of e)yield yield rr(n)}))}))},nr.DropRightAsyncOperator=void 0;const lr=kn,fr=Rn,yr=tr;class dr extends fr.AsyncIterableOperatorBase{dropRightAsync(...n){return(0,lr.applyChainingAsync)(this.subject,yr.dropRightAsync,n)}}nr.DropRightAsyncOperator=dr;var pr={},hr={},vr=On&&On.__await||function(n){return this instanceof vr?(this.v=n,this):new vr(n)},br=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof vr?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};hr.dropUntilAsync=void 0;const mr=yt;hr.dropUntilAsync=function(n,t){return(0,mr.isAsyncIterable)(n)?function(n){var e;return br(this,arguments,(function*(){const r=n[Symbol.asyncIterator]();let o;try{let n,i=0;for(;!(({value:n,done:o}=yield vr(r.next())),o||(yield vr(t(n,i++)))););for(;!o;)yield yield vr(n),({value:n,done:o}=yield vr(r.next()))}finally{o||(yield vr(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}(n):function(n){var e;return br(this,arguments,(function*(){const r=n[Symbol.iterator]();let o;try{let n,i=0;for(;!(({value:n,done:o}=r.next()),o||(yield vr(t(n,i++)))););for(;!o;)yield yield vr(n),({value:n,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))}(n)},pr.DropUntilAsyncOperator=void 0;const wr=kn,Ar=Tn,Sr=hr;class _r extends Ar.Subject{dropUntilAsync(...n){return(0,wr.applyChainingAsync)(this.subject,Sr.dropUntilAsync,n)}}pr.DropUntilAsyncOperator=_r;var Or={},Ir={},gr=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},xr=On&&On.__await||function(n){return this instanceof xr?(this.v=n,this):new xr(n)},Pr=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof xr?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ir.filterAsync=void 0;const Tr=yt;Ir.filterAsync=function(n,t){return(0,Tr.isAsyncIterable)(n)?function(n){return Pr(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=gr(n);!(i=yield xr(a.next())).done;){const n=i.value;(yield xr(t(n,o)))&&(yield yield xr(n)),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield xr(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return Pr(this,arguments,(function*(){let e=0;for(const r of n)(yield xr(t(r,e)))&&(yield yield xr(r)),e++}))}(n)},Or.FilterAsyncOperator=void 0;const Br=kn,jr=Tn,Er=Ir;class kr extends jr.Subject{filterAsync(...n){return(0,Br.applyChainingAsync)(this.subject,Er.filterAsync,n)}}Or.FilterAsyncOperator=kr;var Cr={},Rr={},Ur={},Dr={},Fr=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},qr=On&&On.__await||function(n){return this instanceof qr?(this.v=n,this):new qr(n)},Nr=On&&On.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:qr(n[r](t)),done:"return"===r}:o?o(t):t}:o}},Vr=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof qr?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Dr.flattenByAsync=void 0;const Gr=yt;function Lr(n){return(0,Gr.isIterable)(n)&&(0,Gr.isntChar)(n)}Dr.flattenByAsync=function(n,t){return(0,Gr.isAsyncIterable)(n)?function(n){return Vr(this,arguments,(function*(){var r,o;const i=1;try{for(var a,c=Fr(n);!(a=yield qr(c.next())).done;){const n=a.value;Lr(n)&&(yield qr(t(n,i)))?yield qr(yield*Nr(Fr(e(n,i+1)))):yield yield qr(n)}}catch(n){r={error:n}}finally{try{a&&!a.done&&(o=c.return)&&(yield qr(o.call(c)))}finally{if(r)throw r.error}}}))}(n):function(n){return e(n,1)}(n);function e(n,r){return Vr(this,arguments,(function*(){for(const o of n)Lr(o)&&(yield qr(t(o,r)))?yield qr(yield*Nr(Fr(e(o,r+1)))):yield yield qr(o)}))}},Ur.flattenDeepAsync=void 0;const Jr=Dr,zr=Gn;Ur.flattenDeepAsync=function(n,t=1/0){return(0,zr.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,zr.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,Jr.flattenByAsync)(n,((n,e)=>e<=t))},Rr.flattenAsync=void 0;const Mr=Ur;Rr.flattenAsync=function(n){return(0,Mr.flattenDeepAsync)(n,1)},Cr.FlattenAsyncOperator=void 0;const Zr=kn,Hr=Rn,Yr=Rr;class Wr extends Hr.AsyncIterableOperatorBase{flattenAsync(...n){return(0,Zr.applyChainingAsync)(this.subject,Yr.flattenAsync,n)}}Cr.FlattenAsyncOperator=Wr;var Kr={FlattenByAsync:void 0};const Qr=kn,Xr=Tn,$r=Dr;class no extends Xr.Subject{flattenByAsync(...n){return(0,Qr.applyChainingAsync)(this.subject,$r.flattenByAsync,n)}}Kr.FlattenByAsync=no;var to={FlattenDeepAsyncOperator:void 0};const eo=kn,ro=Rn,oo=Ur;class io extends ro.AsyncIterableOperatorBase{flattenDeepAsync(...n){return(0,eo.applyChainingAsync)(this.subject,oo.flattenDeepAsync,n)}}to.FlattenDeepAsyncOperator=io;var ao={},co={},so=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},uo=On&&On.__await||function(n){return this instanceof uo?(this.v=n,this):new uo(n)},lo=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof uo?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};co.mapAsync=void 0;const fo=yt;co.mapAsync=function(n,t){return(0,fo.isAsyncIterable)(n)?function(n){return lo(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=so(n);!(i=yield uo(a.next())).done;){const n=i.value;yield yield uo(yield uo(t(n,o))),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield uo(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return lo(this,arguments,(function*(){let e=0;for(const r of n)yield yield uo(yield uo(t(r,e))),e++}))}(n)},ao.MapAsyncOperator=void 0;const yo=kn,po=Tn,ho=co;class vo extends po.Subject{mapAsync(...n){return(0,yo.applyChainingAsync)(this.subject,ho.mapAsync,n)}}ao.MapAsyncOperator=vo;var bo={},mo={},wo=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Ao=On&&On.__await||function(n){return this instanceof Ao?(this.v=n,this):new Ao(n)},So=On&&On.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:Ao(n[r](t)),done:"return"===r}:o?o(t):t}:o}},_o=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Ao?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};mo.repeatAsync=void 0;const Oo=Nn,Io=Gn;mo.repeatAsync=function(n,t){return(0,Io.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,Io.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===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,Oo.go)((function(){return _o(this,arguments,(function*(){var e,r;const o=[];if(t>0){try{for(var i,a=wo(n);!(i=yield Ao(a.next())).done;){const n=i.value;yield yield Ao(n),o.push(n)}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield Ao(r.call(a)))}finally{if(e)throw e.error}}t--}for(;t>0;)yield Ao(yield*So(wo(o))),t--}))}))},bo.RepeatAsyncOperator=void 0;const go=kn,xo=Rn,Po=mo;class To extends xo.AsyncIterableOperatorBase{repeatAsync(...n){return(0,go.applyChainingAsync)(this.subject,Po.repeatAsync,n)}}bo.RepeatAsyncOperator=To;var Bo={},jo={},Eo=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},ko=On&&On.__await||function(n){return this instanceof ko?(this.v=n,this):new ko(n)},Co=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ko?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};jo.sliceAsync=void 0;const Ro=Nn,Uo=Gn;jo.sliceAsync=function(n,t,e=1/0){return(0,Uo.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Uo.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Uo.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Uo.assert)(e>=t,"The parameter end must be greater than or equal to start"),(0,Ro.go)((function(){return Co(this,arguments,(function*(){var r,o;let i=0;try{for(var a,c=Eo(n);!(a=yield ko(c.next())).done;){const n=a.value;if(i>=e)break;i>=t&&(yield yield ko(n)),i++}}catch(n){r={error:n}}finally{try{a&&!a.done&&(o=c.return)&&(yield ko(o.call(c)))}finally{if(r)throw r.error}}}))}))},Bo.SliceAsyncOperator=void 0;const Do=kn,Fo=Rn,qo=jo;class No extends Fo.AsyncIterableOperatorBase{sliceAsync(...n){return(0,Do.applyChainingAsync)(this.subject,qo.sliceAsync,n)}}Bo.SliceAsyncOperator=No;var Vo={},Go={},Lo=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Jo=On&&On.__await||function(n){return this instanceof Jo?(this.v=n,this):new Jo(n)},zo=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Jo?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Go.splitAsync=void 0,Go.splitAsync=function(n,t){return zo(this,arguments,(function*(){var e,r;let o=[];try{for(var i,a=Lo(n);!(i=yield Jo(a.next())).done;){const n=i.value;n===t?(yield yield Jo(o),o=[]):o.push(n)}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield Jo(r.call(a)))}finally{if(e)throw e.error}}yield yield Jo(o)}))},Vo.SplitAsyncOperator=void 0;const Mo=kn,Zo=Rn,Ho=Go;class Yo extends Zo.AsyncIterableOperatorBase{splitAsync(...n){return(0,Mo.applyChainingAsync)(this.subject,Ho.splitAsync,n)}}Vo.SplitAsyncOperator=Yo;var Wo={},Ko={},Qo=On&&On.__await||function(n){return this instanceof Qo?(this.v=n,this):new Qo(n)},Xo=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Qo?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},$o=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Ko.splitByAsync=void 0;const ni=yt;Ko.splitByAsync=function(n,t){return(0,ni.isAsyncIterable)(n)?function(n){return Xo(this,arguments,(function*(){var e,r;let o=[],i=0;try{for(var a,c=$o(n);!(a=yield Qo(c.next())).done;){const n=a.value;(yield Qo(t(n,i)))?(yield yield Qo(o),o=[]):o.push(n),i++}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=c.return)&&(yield Qo(r.call(c)))}finally{if(e)throw e.error}}yield yield Qo(o)}))}(n):function(n){return Xo(this,arguments,(function*(){let e=[],r=0;for(const o of n)(yield Qo(t(o,r)))?(yield yield Qo(e),e=[]):e.push(o),r++;yield yield Qo(e)}))}(n)},Wo.SplitByAsyncOperator=void 0;const ti=kn,ei=Tn,ri=Ko;class oi extends ei.Subject{splitByAsync(...n){return(0,ti.applyChainingAsync)(this.subject,ri.splitByAsync,n)}}Wo.SplitByAsyncOperator=oi;var ii={},ai={},ci=On&&On.__await||function(n){return this instanceof ci?(this.v=n,this):new ci(n)},si=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},ui=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ci?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};ai.takeAsync=void 0;const li=Nn,fi=Gn;ai.takeAsync=function(n,t){return(0,fi.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,fi.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,li.go)((function(){return ui(this,arguments,(function*(){var e,r;if(0===t)return yield ci(void 0);try{for(var o,i=si(n);!(o=yield ci(i.next())).done;){const n=o.value;if(yield yield ci(n),0===--t)break}}catch(n){e={error:n}}finally{try{o&&!o.done&&(r=i.return)&&(yield ci(r.call(i)))}finally{if(e)throw e.error}}}))}))},ii.TakeAsyncOperator=void 0;const yi=kn,di=Rn,pi=ai;class hi extends di.AsyncIterableOperatorBase{takeAsync(...n){return(0,yi.applyChainingAsync)(this.subject,pi.takeAsync,n)}}ii.TakeAsyncOperator=hi;var vi={},bi={},mi=On&&On.__await||function(n){return this instanceof mi?(this.v=n,this):new mi(n)},wi=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Ai=On&&On.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:mi(n[r](t)),done:"return"===r}:o?o(t):t}:o}},Si=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof mi?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};bi.takeRightAsync=void 0;const _i=Nn,Oi=Gn;bi.takeRightAsync=function(n,t){return(0,Oi.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Oi.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,_i.go)((function(){var e;return Si(this,arguments,(function*(){const r=n[Symbol.asyncIterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=yield mi(r.next())),!o;)n.push(i),n.length>t&&n.shift();yield mi(yield*Ai(wi(n)))}finally{o||(yield mi(null===(e=r.return)||void 0===e?void 0:e.call(r)))}}))}))},vi.TakeRightAsyncOperator=void 0;const Ii=kn,gi=Rn,xi=bi;class Pi extends gi.AsyncIterableOperatorBase{takeRightAsync(...n){return(0,Ii.applyChainingAsync)(this.subject,xi.takeRightAsync,n)}}vi.TakeRightAsyncOperator=Pi;var Ti={},Bi={},ji=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Ei=On&&On.__await||function(n){return this instanceof Ei?(this.v=n,this):new Ei(n)},ki=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Ei?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Bi.takeUntilAsync=void 0;const Ci=yt;Bi.takeUntilAsync=function(n,t){return(0,Ci.isAsyncIterable)(n)?function(n){return ki(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=ji(n);!(i=yield Ei(a.next())).done;){const n=i.value;if(yield Ei(t(n,o)))break;yield yield Ei(n),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield Ei(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return ki(this,arguments,(function*(){let e=0;for(const r of n){if(yield Ei(t(r,e)))break;yield yield Ei(r),e++}}))}(n)},Ti.TakeUntilAsyncOperator=void 0;const Ri=kn,Ui=Tn,Di=Bi;class Fi extends Ui.Subject{takeUntilAsync(...n){return(0,Ri.applyChainingAsync)(this.subject,Di.takeUntilAsync,n)}}Ti.TakeUntilAsyncOperator=Fi;var qi={},Ni={},Vi=On&&On.__await||function(n){return this instanceof Vi?(this.v=n,this):new Vi(n)},Gi=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Vi?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},Li=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Ni.tapAsync=void 0;const Ji=yt;Ni.tapAsync=function(n,t){return(0,Ji.isAsyncIterable)(n)?function(n){return Gi(this,arguments,(function*(){var e,r;let o=0;try{for(var i,a=Li(n);!(i=yield Vi(a.next())).done;){const n=i.value;yield Vi(t(n,o)),yield yield Vi(n),o++}}catch(n){e={error:n}}finally{try{i&&!i.done&&(r=a.return)&&(yield Vi(r.call(a)))}finally{if(e)throw e.error}}}))}(n):function(n){return Gi(this,arguments,(function*(){let e=0;for(const r of n)yield Vi(t(r,e)),yield yield Vi(r),e++}))}(n)},qi.TapAsyncOperator=void 0;const zi=kn,Mi=Tn,Zi=Ni;class Hi extends Mi.Subject{tapAsync(...n){return(0,zi.applyChainingAsync)(this.subject,Zi.tapAsync,n)}}qi.TapAsyncOperator=Hi;var Yi={},Wi={},Ki=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},Qi=On&&On.__await||function(n){return this instanceof Qi?(this.v=n,this):new Qi(n)},Xi=On&&On.__asyncDelegator||function(n){var t,e;return t={},r("next"),r("throw",(function(n){throw n})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=n[r]?function(t){return(e=!e)?{value:Qi(n[r](t)),done:"return"===r}:o?o(t):t}:o}},$i=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Qi?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Wi.transformAsync=void 0,Wi.transformAsync=function(n,t){return $i(this,arguments,(function*(){yield Qi(yield*Xi(Ki(t(n))))}))},Yi.TransformAsyncOperator=void 0;const na=kn,ta=Tn,ea=Wi;class ra extends ta.Subject{transformAsync(...n){return(0,na.applyChainingAsync)(this.subject,ea.transformAsync,n)}}Yi.TransformAsyncOperator=ra;var oa={},ia={},aa=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},ca=On&&On.__await||function(n){return this instanceof ca?(this.v=n,this):new ca(n)},sa=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ca?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};ia.uniqAsync=void 0,ia.uniqAsync=function(n){return sa(this,arguments,(function*(){var t,e;const r=new Set;try{for(var o,i=aa(n);!(o=yield ca(i.next())).done;){const n=o.value;r.has(n)||(yield yield ca(n),r.add(n))}}catch(n){t={error:n}}finally{try{o&&!o.done&&(e=i.return)&&(yield ca(e.call(i)))}finally{if(t)throw t.error}}}))},oa.UniqAsyncOperator=void 0;const ua=kn,la=Rn,fa=ia;class ya extends la.AsyncIterableOperatorBase{uniqAsync(...n){return(0,ua.applyChainingAsync)(this.subject,fa.uniqAsync,n)}}oa.UniqAsyncOperator=ya;var da={},pa={},ha=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}},va=On&&On.__await||function(n){return this instanceof va?(this.v=n,this):new va(n)},ba=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof va?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};pa.uniqByAsync=void 0;const ma=yt;pa.uniqByAsync=function(n,t){return(0,ma.isAsyncIterable)(n)?function(n){return ba(this,arguments,(function*(){var e,r;const o=new Set;let i=0;try{for(var a,c=ha(n);!(a=yield va(c.next())).done;){const n=a.value,e=yield va(t(n,i));o.has(e)||(yield yield va(n),o.add(e)),i++}}catch(n){e={error:n}}finally{try{a&&!a.done&&(r=c.return)&&(yield va(r.call(c)))}finally{if(e)throw e.error}}}))}(n):function(n){return ba(this,arguments,(function*(){const e=new Set;let r=0;for(const o of n){const n=yield va(t(o,r));e.has(n)||(yield yield va(o),e.add(n)),r++}}))}(n)},da.UniqByAsyncOperator=void 0;const wa=kn,Aa=Tn,Sa=pa;class _a extends Aa.Subject{uniqByAsync(...n){return(0,wa.applyChainingAsync)(this.subject,Sa.uniqByAsync,n)}}da.UniqByAsyncOperator=_a;var Oa={},Ia={},ga=On&&On.__await||function(n){return this instanceof ga?(this.v=n,this):new ga(n)},xa=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof ga?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Ia.zipAsync=void 0;const Pa=yt;var Ta;!function(n){n[n.Sync=0]="Sync",n[n.Async=1]="Async"}(Ta||(Ta={})),Ia.zipAsync=function(n,...t){return function(...n){var t,e,r,o;return xa(this,arguments,(function*(){const i=n.length,a=n.map((n=>(0,Pa.isAsyncIterable)(n)?[Ta.Async,n[Symbol.asyncIterator]()]:[Ta.Sync,n[Symbol.iterator]()])),c=a.map((()=>!1));try{for(;;){const n=new Array(i);for(let t=0;t<i;t++){const[e,r]=a[t];let o;if(o=e===Ta.Async?yield ga(r.next()):r.next(),o.done)return c[t]=!0,yield ga(void 0);n[t]=o.value}yield yield ga(n)}}finally{const n=a.filter(((n,t)=>!c[t]));for(const[i,a]of n)i===Ta.Async?yield ga(null===(e=(t=a).return)||void 0===e?void 0:e.call(t)):null===(o=(r=a).return)||void 0===o||o.call(r)}}))}(n,...t)},Oa.ZipAsyncOperator=void 0;const Ba=kn,ja=Tn,Ea=Ia;class ka extends ja.Subject{zipAsync(...n){return(0,Ba.applyChainingAsync)(this.subject,Ea.zipAsync,n)}}Oa.ZipAsyncOperator=ka;var Ca={},Ra={};Ra.consume=void 0,Ra.consume=function(n,t){return t(n)},Ca.ConsumeOperator=void 0;const Ua=kn,Da=Ra,Fa=Tn;class qa extends Fa.Subject{consume(...n){return(0,Ua.applyBinding)(this.subject,Da.consume,n)}}Ca.ConsumeOperator=qa;var Na={},Va={},Ga=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},La=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Va.eachAsync=void 0;const Ja=yt;Va.eachAsync=function(n,t){return(0,Ja.isAsyncIterable)(n)?function(n){var e,r,o,i;return Ga(this,void 0,void 0,(function*(){let a=0;try{for(e=La(n);!(r=yield e.next()).done;){const n=r.value;yield t(n,a),a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(n):function(n){return Ga(this,void 0,void 0,(function*(){let e=0;for(const r of n)yield t(r,e),e++}))}(n)},Na.EachAsyncOperator=void 0;const za=kn,Ma=Tn,Za=Va;class Ha extends Ma.Subject{eachAsync(...n){return(0,za.applyBinding)(this.subject,Za.eachAsync,n)}}Na.EachAsyncOperator=Ha;var Ya={},Wa={},Ka=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Qa=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Wa.everyAsync=void 0;const Xa=yt;Wa.everyAsync=function(n,t){return(0,Xa.isAsyncIterable)(n)?function(n){var e,r,o,i;return Ka(this,void 0,void 0,(function*(){let a=0;try{for(e=Qa(n);!(r=yield e.next()).done;){const n=r.value;if(!(yield t(n,a)))return!1;a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!0}))}(n):function(n){return Ka(this,void 0,void 0,(function*(){let e=0;for(const r of n){if(!(yield t(r,e)))return!1;e++}return!0}))}(n)},Ya.EveryAsyncOperator=void 0;const $a=kn,nc=Tn,tc=Wa;class ec extends nc.Subject{everyAsync(...n){return(0,$a.applyBinding)(this.subject,tc.everyAsync,n)}}Ya.EveryAsyncOperator=ec;var rc={},oc={},ic=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},ac=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};oc.findAsync=void 0;const cc=yt;oc.findAsync=function(n,t){return(0,cc.isAsyncIterable)(n)?function(n){var e,r,o,i;return ic(this,void 0,void 0,(function*(){let a=0;try{for(e=ac(n);!(r=yield e.next()).done;){const n=r.value;if(yield t(n,a))return n;a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}}))}(n):function(n){return ic(this,void 0,void 0,(function*(){let e=0;for(const r of n){if(yield t(r,e))return r;e++}}))}(n)},rc.FindAsyncOperator=void 0;const sc=kn,uc=Tn,lc=oc;class fc extends uc.Subject{findAsync(...n){return(0,sc.applyBinding)(this.subject,lc.findAsync,n)}}rc.FindAsyncOperator=fc;var yc={},dc={},pc=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},hc=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};dc.firstAsync=void 0,dc.firstAsync=function(n){var t,e,r,o;return pc(this,void 0,void 0,(function*(){try{for(t=hc(n);!(e=yield t.next()).done;){return e.value}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}}))},yc.FirstAsyncOperator=void 0;const vc=kn,bc=Rn,mc=dc;class wc extends bc.AsyncIterableOperatorBase{firstAsync(...n){return(0,vc.applyBinding)(this.subject,mc.firstAsync,n)}}yc.FirstAsyncOperator=wc;var Ac={},Sc={},_c=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Oc=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Sc.includesAsync=void 0,Sc.includesAsync=function(n,t){var e,r,o,i;return _c(this,void 0,void 0,(function*(){try{for(e=Oc(n);!(r=yield e.next()).done;){if(r.value===t)return!0}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))},Ac.IncludesAsyncOperator=void 0;const Ic=kn,gc=Rn,xc=Sc;class Pc extends gc.AsyncIterableOperatorBase{includesAsync(...n){return(0,Ic.applyBinding)(this.subject,xc.includesAsync,n)}}Ac.IncludesAsyncOperator=Pc;var Tc={},Bc={},jc=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Ec=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Bc.matchAsync=void 0,Bc.matchAsync=function(n,t){var e,r,o,i;return jc(this,void 0,void 0,(function*(){const a=t.length;let c=0;try{for(e=Ec(n);!(r=yield e.next()).done;){if(r.value===t[c]&&c++,c===a)return!0}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))},Tc.MatchAsyncOperator=void 0;const kc=kn,Cc=Rn,Rc=Bc;class Uc extends Cc.AsyncIterableOperatorBase{matchAsync(...n){return(0,kc.applyBinding)(this.subject,Rc.matchAsync,n)}}Tc.MatchAsyncOperator=Uc;var Dc={},Fc={},qc=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Nc=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Fc.reduceAsync=void 0;const Vc=yt;Fc.reduceAsync=function(n,t,e){return(0,Vc.isUndefined)(e)?function(n,t){return(0,Vc.isAsyncIterable)(n)?e(n):r(n);function e(n){var e;return qc(this,void 0,void 0,(function*(){const r=n[Symbol.asyncIterator]();let o;try{let n,a=yield i(r),c=1;for(;({value:n,done:o}=yield r.next()),!o;)a=yield t(a,n,c++);return a}finally{o||(yield null===(e=r.return)||void 0===e?void 0:e.call(r))}function i(n){return qc(this,void 0,void 0,(function*(){const t=yield n.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}))}}))}function r(n){var e;return qc(this,void 0,void 0,(function*(){const r=n[Symbol.iterator]();let o;try{let n,a=i(r),c=1;for(;({value:n,done:o}=r.next()),!o;)a=yield t(a,n,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(n){const t=n.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}))}}(n,t):function(n,t,e){return(0,Vc.isAsyncIterable)(n)?o(n):r(n);function r(n){return qc(this,void 0,void 0,(function*(){let r=e,o=0;for(const e of n)r=yield t(r,e,o++);return r}))}function o(n){var r,o,i,a;return qc(this,void 0,void 0,(function*(){let c=e,s=0;try{for(r=Nc(n);!(o=yield r.next()).done;){const n=o.value;c=yield t(c,n,s++)}}catch(n){i={error:n}}finally{try{o&&!o.done&&(a=r.return)&&(yield a.call(r))}finally{if(i)throw i.error}}return c}))}}(n,t,e)},Dc.ReduceAsyncOperator=void 0;const Gc=kn,Lc=Tn,Jc=Fc;class zc extends Lc.Subject{reduceAsync(...n){return(0,Gc.applyBinding)(this.subject,Jc.reduceAsync,n)}}Dc.ReduceAsyncOperator=zc;var Mc={},Zc={},Hc=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},Yc=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};Zc.someAsync=void 0;const Wc=yt;Zc.someAsync=function(n,t){return(0,Wc.isAsyncIterable)(n)?function(n){var e,r,o,i;return Hc(this,void 0,void 0,(function*(){let a=0;try{for(e=Yc(n);!(r=yield e.next()).done;){const n=r.value;if(yield t(n,a))return!0;a++}}catch(n){o={error:n}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}return!1}))}(n):function(n){return Hc(this,void 0,void 0,(function*(){let e=0;for(const r of n){if(yield t(r,e))return!0;e++}return!1}))}(n)},Mc.SomeAsyncOperator=void 0;const Kc=kn,Qc=Tn,Xc=Zc;class $c extends Qc.Subject{someAsync(...n){return(0,Kc.applyBinding)(this.subject,Xc.someAsync,n)}}Mc.SomeAsyncOperator=$c;var ns={},ts={},es=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))};ts.lastAsync=void 0,ts.lastAsync=function(n){var t;return es(this,void 0,void 0,(function*(){const e=n[Symbol.asyncIterator]();let r;try{let n,o;for(;({value:n,done:r}=yield e.next()),!r;)o=n;return o}finally{r||(yield null===(t=e.return)||void 0===t?void 0:t.call(e))}}))},ns.LastAsyncOperator=void 0;const rs=kn,os=Rn,is=ts;class as extends os.AsyncIterableOperatorBase{lastAsync(...n){return(0,rs.applyBinding)(this.subject,is.lastAsync,n)}}ns.LastAsyncOperator=as;var cs={},ss={},us=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},ls=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};ss.toArrayAsync=void 0;const fs=Ra;ss.toArrayAsync=function(n){return(0,fs.consume)(n,(n=>{var t,e;return us(this,void 0,void 0,(function*(){var r,o;const i=[];try{for(t=ls(n);!(e=yield t.next()).done;){const n=e.value;i.push(n)}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}return i}))}))},cs.ToArrayAsyncOperator=void 0;const ys=kn,ds=Rn,ps=ss;class hs extends ds.AsyncIterableOperatorBase{toArrayAsync(...n){return(0,ys.applyBinding)(this.subject,ps.toArrayAsync,n)}}cs.ToArrayAsyncOperator=hs;var vs={},bs={},ms=On&&On.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(o,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r.throw(n))}catch(n){i(n)}}function s(n){var t;n.done?o(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(a,c)}s((r=r.apply(n,t||[])).next())}))},ws=On&&On.__asyncValues||function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,e=n[Symbol.asyncIterator];return e?e.call(n):(n="function"==typeof __values?__values(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(e){t[e]=n[e]&&function(t){return new Promise((function(r,o){(function(n,t,e,r){Promise.resolve(r).then((function(t){n({value:t,done:e})}),t)})(r,o,(t=n[e](t)).done,t.value)}))}}};bs.toSetAsync=void 0;const As=Ra;bs.toSetAsync=function(n){return(0,As.consume)(n,(n=>{var t,e;return ms(this,void 0,void 0,(function*(){var r,o;const i=new Set;try{for(t=ws(n);!(e=yield t.next()).done;){const n=e.value;i.add(n)}}catch(n){r={error:n}}finally{try{e&&!e.done&&(o=t.return)&&(yield o.call(t))}finally{if(r)throw r.error}}return i}))}))},vs.ToSetAsyncOperator=void 0;const Ss=kn,_s=Rn,Os=bs;class Is extends _s.AsyncIterableOperatorBase{toSetAsync(...n){return(0,Ss.applyBinding)(this.subject,Os.toSetAsync,n)}}vs.ToSetAsyncOperator=Is,Cn.AsyncIterableOperator=void 0;const gs=xn,xs=Rn,Ps=Fn,Ts=lt,Bs=Te,js=Ne,Es=nr,ks=pr,Cs=Or,Rs=Cr,Us=Kr,Ds=to,Fs=ao,qs=bo,Ns=Bo,Vs=Vo,Gs=Wo,Ls=ii,Js=vi,zs=Ti,Ms=qi,Zs=Yi,Hs=oa,Ys=da,Ws=Oa,Ks=Ca,Qs=Na,Xs=Ya,$s=rc,nu=yc,tu=Ac,eu=Tc,ru=Dc,ou=Mc,iu=ns,au=cs,cu=vs;class su extends xs.AsyncIterableOperatorBase{}Cn.AsyncIterableOperator=su,(0,gs.mixinDecorators)(su,[Ps.ChunkAsyncOperator,Ts.ChunkByAsyncOperator,Bs.ConcatAsyncOperator,js.DropAsyncOperator,Es.DropRightAsyncOperator,ks.DropUntilAsyncOperator,Cs.FilterAsyncOperator,Rs.FlattenAsyncOperator,Us.FlattenByAsync,Ds.FlattenDeepAsyncOperator,Fs.MapAsyncOperator,qs.RepeatAsyncOperator,Ns.SliceAsyncOperator,Vs.SplitAsyncOperator,Gs.SplitByAsyncOperator,Ls.TakeAsyncOperator,Js.TakeRightAsyncOperator,zs.TakeUntilAsyncOperator,Ms.TapAsyncOperator,Zs.TransformAsyncOperator,Hs.UniqAsyncOperator,Ys.UniqByAsyncOperator,Ws.ZipAsyncOperator,Ks.ConsumeOperator,Qs.EachAsyncOperator,Xs.EveryAsyncOperator,$s.FindAsyncOperator,nu.FirstAsyncOperator,tu.IncludesAsyncOperator,eu.MatchAsyncOperator,ru.ReduceAsyncOperator,ou.SomeAsyncOperator,iu.LastAsyncOperator,au.ToArrayAsyncOperator,cu.ToSetAsyncOperator]),kn.applyChainingAsync=kn.applyChaining=kn.applyBinding=kn.getPipelineProxy=void 0;const uu=gn,lu=Cn;kn.getPipelineProxy=function(n,t){return(...e)=>n(...e,...t)},kn.applyBinding=function(n,t,e){return t(n,...e)},kn.applyChaining=function(n,t,e){return new uu.IterableOperator(t(n,...e))},kn.applyChainingAsync=function(n,t,e){return new lu.AsyncIterableOperator(t(n,...e))};var fu={};fu.chunkBy=void 0,fu.chunkBy=function*(n,t){let e=[],r=0;for(const o of n)e.push(o),t(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)},En.ChunkByOperator=void 0;const yu=kn,du=fu,pu=Pn;class hu extends pu.IterableOperatorBase{chunkBy(...n){return(0,yu.applyChaining)(this.subject,du.chunkBy,n)}}En.ChunkByOperator=hu;var vu={},bu={chunk:void 0};const mu=Nn,wu=Gn;bu.chunk=function(n,t){return(0,wu.assert)(Number.isInteger(t),"The parameter size must be an integer"),(0,wu.assert)(t>0,"The parameter size must be greater than 0"),(0,mu.go)((function*(){let e=[];for(const r of n)e.push(r),e.length>=t&&(yield e,e=[]);e.length&&(yield e)}))},vu.ChunkOperator=void 0;const Au=kn,Su=bu,_u=Pn;class Ou extends _u.IterableOperatorBase{chunk(...n){return(0,Au.applyChaining)(this.subject,Su.chunk,n)}}vu.ChunkOperator=Ou;var Iu={},gu={concat:void 0};const xu=Nn;gu.concat=function(n,...t){return(0,xu.go)((function*(){for(const e of[n,...t])yield*e}))},Iu.ConcatOperator=void 0;const Pu=kn,Tu=gu,Bu=Pn;class ju extends Bu.IterableOperatorBase{concat(...n){return(0,Pu.applyChaining)(this.subject,Tu.concat,n)}}Iu.ConcatOperator=ju;var Eu={},ku={dropRight:void 0};const Cu=Nn,Ru=Ge,Uu=Gn;ku.dropRight=function(n,t){return(0,Uu.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Uu.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Ru.copyIterable)(n):(0,Cu.go)((function*(){const e=Array.from(n);yield*e.slice(0,-t)}))},Eu.DropRightOperator=void 0;const Du=kn,Fu=ku,qu=Pn;class Nu extends qu.IterableOperatorBase{dropRight(...n){return(0,Du.applyChaining)(this.subject,Fu.dropRight,n)}}Eu.DropRightOperator=Nu;var Vu={},Gu={};Gu.dropUntil=void 0,Gu.dropUntil=function*(n,t){var e;const r=n[Symbol.iterator]();let o;try{let n,i=0;for(;!(({value:n,done:o}=r.next()),o||t(n,i++)););for(;!o;)yield n,({value:n,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}},Vu.DropUntilOperator=void 0;const Lu=kn,Ju=Gu,zu=Pn;class Mu extends zu.IterableOperatorBase{dropUntil(...n){return(0,Lu.applyChaining)(this.subject,Ju.dropUntil,n)}}Vu.DropUntilOperator=Mu;var Zu={},Hu={drop:void 0};const Yu=Nn,Wu=Ge,Ku=Gn;Hu.drop=function(n,t){return(0,Ku.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Ku.assert)(t>=0,"The parameter count must be greater than or equal to 0"),0===t?(0,Wu.copyIterable)(n):(0,Yu.go)((function*(){var e;const r=n[Symbol.iterator]();let o;try{let n;for(;!(({value:n,done:o}=r.next()),o||t<=0);)t--;for(;!o;)yield n,({value:n,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))},Zu.DropOperator=void 0;const Qu=kn,Xu=Hu,$u=Pn;class nl extends $u.IterableOperatorBase{drop(...n){return(0,Qu.applyChaining)(this.subject,Xu.drop,n)}}Zu.DropOperator=nl;var tl={},el={};el.filter=void 0,el.filter=function*(n,t){let e=0;for(const r of n)t(r,e)&&(yield r),e++},tl.FilterOperator=void 0;const rl=kn,ol=el,il=Pn;class al extends il.IterableOperatorBase{filter(...n){return(0,rl.applyChaining)(this.subject,ol.filter,n)}}tl.FilterOperator=al;var cl={},sl={flattenBy:void 0};const ul=yt;sl.flattenBy=function(n,t){return function*n(e,r){for(const i of e)(0,ul.isIterable)(o=i)&&(0,ul.isntChar)(o)&&t(i,r)?yield*n(i,r+1):yield i;var o}(n,1)},cl.FlattenByOperator=void 0;const ll=kn,fl=sl,yl=Pn;class dl extends yl.IterableOperatorBase{flattenBy(...n){return(0,ll.applyChaining)(this.subject,fl.flattenBy,n)}}cl.FlattenByOperator=dl;var pl={},hl={flattenDeep:void 0};const vl=sl,bl=Gn;hl.flattenDeep=function(n,t=1/0){return(0,bl.assert)(t===1/0||Number.isInteger(t),"The parameter depth must be an integer"),(0,bl.assert)(t>=0,"The parameter depth must be greater than or equal to 0"),(0,vl.flattenBy)(n,((n,e)=>e<=t))},pl.FlattenDeepOperator=void 0;const ml=kn,wl=hl,Al=Pn;class Sl extends Al.IterableOperatorBase{flattenDeep(...n){return(0,ml.applyChaining)(this.subject,wl.flattenDeep,n)}}pl.FlattenDeepOperator=Sl;var _l={},Ol={flatten:void 0};const Il=hl;Ol.flatten=function(n){return(0,Il.flattenDeep)(n,1)},_l.FlattenOperator=void 0;const gl=kn,xl=Ol,Pl=Pn;class Tl extends Pl.IterableOperatorBase{flatten(...n){return(0,gl.applyChaining)(this.subject,xl.flatten,n)}}_l.FlattenOperator=Tl;var Bl={},jl={};jl.map=void 0,jl.map=function*(n,t){let e=0;for(const r of n)yield t(r,e),e++},Bl.MapOperator=void 0;const El=kn,kl=jl,Cl=Pn;class Rl extends Cl.IterableOperatorBase{map(...n){return(0,El.applyChaining)(this.subject,kl.map,n)}}Bl.MapOperator=Rl;var Ul={},Dl={repeat:void 0};const Fl=Nn,ql=Gn;Dl.repeat=function(n,t){return(0,ql.assert)(t===1/0||Number.isInteger(t),"The parameter times must be an integer"),(0,ql.assert)(t>=0,"The parameter times must be greater than or equal to 0"),t===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,Fl.go)((function*(){const e=[];if(t>0){for(const t of n)yield t,e.push(t);t--}for(;t>0;)yield*e,t--}))},Ul.RepeatOperator=void 0;const Nl=kn,Vl=Dl,Gl=Pn;class Ll extends Gl.IterableOperatorBase{repeat(...n){return(0,Nl.applyChaining)(this.subject,Vl.repeat,n)}}Ul.RepeatOperator=Ll;var Jl={},zl={slice:void 0};const Ml=Nn,Zl=Gn;zl.slice=function(n,t,e=1/0){return(0,Zl.assert)(Number.isInteger(t),"The parameter start must be an integer"),(0,Zl.assert)(t>=0,"The parameter start must be greater than or equal to 0"),(0,Zl.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Zl.assert)(e>=t,"The parameter end must be greater than or equal to start"),(0,Ml.go)((function*(){let r=0;for(const o of n){if(r>=e)break;r>=t&&(yield o),r++}}))},Jl.SliceOperator=void 0;const Hl=kn,Yl=zl,Wl=Pn;class Kl extends Wl.IterableOperatorBase{slice(...n){return(0,Hl.applyChaining)(this.subject,Yl.slice,n)}}Jl.SliceOperator=Kl;var Ql={},Xl={};Xl.splitBy=void 0,Xl.splitBy=function*(n,t){let e=[],r=0;for(const o of n)t(o,r)?(yield e,e=[]):e.push(o),r++;yield e},Ql.SplitByOperator=void 0;const $l=kn,nf=Xl,tf=Pn;class ef extends tf.IterableOperatorBase{splitBy(...n){return(0,$l.applyChaining)(this.subject,nf.splitBy,n)}}Ql.SplitByOperator=ef;var rf={},of={};of.split=void 0,of.split=function*(n,t){let e=[];for(const r of n)r===t?(yield e,e=[]):e.push(r);yield e},rf.SplitOperator=void 0;const af=kn,cf=of,sf=Pn;class uf extends sf.IterableOperatorBase{split(...n){return(0,af.applyChaining)(this.subject,cf.split,n)}}rf.SplitOperator=uf;var lf={},ff={takeRight:void 0};const yf=Nn,df=Gn;ff.takeRight=function(n,t){return(0,df.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,df.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,yf.go)((function*(){var e;const r=n[Symbol.iterator]();let o;try{const n=[];let i;for(;({value:i,done:o}=r.next()),!o;)n.push(i),n.length>t&&n.shift();yield*n}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))},lf.TakeRightOperator=void 0;const pf=kn,hf=ff,vf=Pn;class bf extends vf.IterableOperatorBase{takeRight(...n){return(0,pf.applyChaining)(this.subject,hf.takeRight,n)}}lf.TakeRightOperator=bf;var mf={},wf={};wf.takeUntil=void 0,wf.takeUntil=function*(n,t){let e=0;for(const r of n){if(t(r,e))break;yield r,e++}},mf.TakeUntilOperator=void 0;const Af=kn,Sf=wf,_f=Pn;class Of extends _f.IterableOperatorBase{takeUntil(...n){return(0,Af.applyChaining)(this.subject,Sf.takeUntil,n)}}mf.TakeUntilOperator=Of;var If={},gf={take:void 0};const xf=Nn,Pf=Gn;gf.take=function(n,t){return(0,Pf.assert)(Number.isInteger(t),"The parameter count must be an integer"),(0,Pf.assert)(t>=0,"The parameter count must be greater than or equal to 0"),(0,xf.go)((function*(){if(0!==t)for(const e of n)if(yield e,0===--t)break}))},If.TakeOperator=void 0;const Tf=kn,Bf=gf,jf=Pn;class Ef extends jf.IterableOperatorBase{take(...n){return(0,Tf.applyChaining)(this.subject,Bf.take,n)}}If.TakeOperator=Ef;var kf={},Cf={};Cf.tap=void 0,Cf.tap=function*(n,t){let e=0;for(const r of n)t(r,e),yield r,e++},kf.TapOperator=void 0;const Rf=kn,Uf=Cf,Df=Pn;class Ff extends Df.IterableOperatorBase{tap(...n){return(0,Rf.applyChaining)(this.subject,Uf.tap,n)}}kf.TapOperator=Ff;var qf={},Nf={},Vf=On&&On.__await||function(n){return this instanceof Vf?(this.v=n,this):new Vf(n)},Gf=On&&On.__asyncGenerator||function(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(n,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(n){o[n]&&(r[n]=function(t){return new Promise((function(e,r){i.push([n,t,e,r])>1||c(n,t)}))})}function c(n,t){try{(e=o[n](t)).value instanceof Vf?Promise.resolve(e.value.v).then(s,u):l(i[0][2],e)}catch(n){l(i[0][3],n)}var e}function s(n){c("next",n)}function u(n){c("throw",n)}function l(n,t){n(t),i.shift(),i.length&&c(i[0][0],i[0][1])}};Nf.toAsyncIterable=void 0,Nf.toAsyncIterable=function(n){return Gf(this,arguments,(function*(){for(const t of n)yield yield Vf(t)}))},qf.ToAsyncIterableOperator=void 0;const Lf=kn,Jf=Pn,zf=Nf;class Mf extends Jf.IterableOperatorBase{toAsyncIterable(...n){return(0,Lf.applyChainingAsync)(this.subject,zf.toAsyncIterable,n)}}qf.ToAsyncIterableOperator=Mf;var Zf={},Hf={};Hf.transform=void 0,Hf.transform=function*(n,t){yield*t(n)},Zf.TransformOperator=void 0;const Yf=kn,Wf=Hf,Kf=Pn;class Qf extends Kf.IterableOperatorBase{transform(...n){return(0,Yf.applyChaining)(this.subject,Wf.transform,n)}}Zf.TransformOperator=Qf;var Xf={},$f={};$f.uniqBy=void 0,$f.uniqBy=function*(n,t){const e=new Set;let r=0;for(const o of n){const n=t(o,r);e.has(n)||(yield o,e.add(n)),r++}},Xf.UniqByOperator=void 0;const ny=kn,ty=$f,ey=Pn;class ry extends ey.IterableOperatorBase{uniqBy(...n){return(0,ny.applyChaining)(this.subject,ty.uniqBy,n)}}Xf.UniqByOperator=ry;var oy={},iy={};iy.uniq=void 0,iy.uniq=function*(n){const t=new Set;for(const e of n)t.has(e)||(yield e,t.add(e))},oy.UniqOperator=void 0;const ay=kn,cy=iy,sy=Pn;class uy extends sy.IterableOperatorBase{uniq(...n){return(0,ay.applyChaining)(this.subject,cy.uniq,n)}}oy.UniqOperator=uy;var ly={},fy={};fy.zip=void 0,fy.zip=function(n,...t){return function*(...n){const t=n.length,e=n.map((n=>n[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const n=new Array(t);for(let o=0;o<t;o++){const{value:t,done:i}=e[o].next();if(i)return void(r[o]=!0);n[o]=t}yield n}}finally{e.filter(((n,t)=>!r[t])).forEach((n=>{var t;return null===(t=n.return)||void 0===t?void 0:t.call(n)}))}}(n,...t)},ly.ZipOperator=void 0;const yy=kn,dy=fy,py=Pn;class hy extends py.IterableOperatorBase{zip(...n){return(0,yy.applyChaining)(this.subject,dy.zip,n)}}ly.ZipOperator=hy;var vy={},by={};by.each=void 0,by.each=function(n,t){let e=0;for(const r of n)t(r,e),e++},vy.EachOperator=void 0;const my=kn,wy=by,Ay=Pn;class Sy extends Ay.IterableOperatorBase{each(...n){return(0,my.applyBinding)(this.subject,wy.each,n)}}vy.EachOperator=Sy;var _y={},Oy={};Oy.every=void 0,Oy.every=function(n,t){let e=0;for(const r of n){if(!t(r,e))return!1;e++}return!0},_y.EveryOperator=void 0;const Iy=kn,gy=Oy,xy=Pn;class Py extends xy.IterableOperatorBase{every(...n){return(0,Iy.applyBinding)(this.subject,gy.every,n)}}_y.EveryOperator=Py;var Ty={},By={};By.find=void 0,By.find=function(n,t){let e=0;for(const r of n){if(t(r,e))return r;e++}},Ty.FindOperator=void 0;const jy=kn,Ey=By,ky=Pn;class Cy extends ky.IterableOperatorBase{find(...n){return(0,jy.applyBinding)(this.subject,Ey.find,n)}}Ty.FindOperator=Cy;var Ry={},Uy={};Uy.first=void 0,Uy.first=function(n){for(const t of n)return t},Ry.FirstOperator=void 0;const Dy=kn,Fy=Uy,qy=Pn;class Ny extends qy.IterableOperatorBase{first(...n){return(0,Dy.applyBinding)(this.subject,Fy.first,n)}}Ry.FirstOperator=Ny;var Vy={},Gy={};Gy.includes=void 0,Gy.includes=function(n,t){for(const e of n)if(e===t)return!0;return!1},Vy.IncludesOperator=void 0;const Ly=kn,Jy=Gy,zy=Pn;class My extends zy.IterableOperatorBase{includes(...n){return(0,Ly.applyBinding)(this.subject,Jy.includes,n)}}Vy.IncludesOperator=My;var Zy={},Hy={};Hy.match=void 0,Hy.match=function(n,t){const e=t.length;let r=0;for(const o of n)if(o===t[r]&&r++,r===e)return!0;return!1},Zy.MatchOperator=void 0;const Yy=kn,Wy=Hy,Ky=Pn;class Qy extends Ky.IterableOperatorBase{match(...n){return(0,Yy.applyBinding)(this.subject,Wy.match,n)}}Zy.MatchOperator=Qy;var Xy={},$y={reduce:void 0};const nd=yt;$y.reduce=function(n,t,e){return(0,nd.isUndefined)(e)?function(n,t){var e;const r=n[Symbol.iterator]();let o;try{let n,a=i(r),c=1;for(;({value:n,done:o}=r.next()),!o;)a=t(a,n,c++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(n){const t=n.next();if(t.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return t.value}}(n,t):function(n,t,e){let r=e,o=0;for(const e of n)r=t(r,e,o++);return r}(n,t,e)},Xy.ReduceOperator=void 0;const td=kn,ed=$y,rd=Pn;class od extends rd.IterableOperatorBase{reduce(...n){return(0,td.applyBinding)(this.subject,ed.reduce,n)}}Xy.ReduceOperator=od;var id={},ad={};ad.some=void 0,ad.some=function(n,t){let e=0;for(const r of n){if(t(r,e))return!0;e++}return!1},id.SomeOperator=void 0;const cd=kn,sd=ad,ud=Pn;class ld extends ud.IterableOperatorBase{some(...n){return(0,cd.applyBinding)(this.subject,sd.some,n)}}id.SomeOperator=ld;var fd={},yd={};yd.last=void 0,yd.last=function(n){var t;const e=n[Symbol.iterator]();let r;try{let n,o;for(;({value:n,done:r}=e.next()),!r;)o=n;return o}finally{r||null===(t=e.return)||void 0===t||t.call(e)}},fd.LastOperator=void 0;const dd=kn,pd=yd,hd=Pn;class vd extends hd.IterableOperatorBase{last(...n){return(0,dd.applyBinding)(this.subject,pd.last,n)}}fd.LastOperator=vd;var bd={},md={toArray:void 0};const wd=Ra;md.toArray=function(n){return(0,wd.consume)(n,(n=>Array.from(n)))},bd.ToArrayOperator=void 0;const Ad=kn,Sd=md,_d=Pn;class Od extends _d.IterableOperatorBase{toArray(...n){return(0,Ad.applyBinding)(this.subject,Sd.toArray,n)}}bd.ToArrayOperator=Od;var Id={},gd={toSet:void 0};const xd=Ra;gd.toSet=function(n){return(0,xd.consume)(n,(n=>new Set(n)))},Id.ToSetOperator=void 0;const Pd=kn,Td=gd,Bd=Pn;class jd extends Bd.IterableOperatorBase{toSet(...n){return(0,Pd.applyBinding)(this.subject,Td.toSet,n)}}Id.ToSetOperator=jd,gn.IterableOperator=void 0;const Ed=xn,kd=Pn,Cd=En,Rd=vu,Ud=Iu,Dd=Eu,Fd=Vu,qd=Zu,Nd=tl,Vd=cl,Gd=pl,Ld=_l,Jd=Bl,zd=Ul,Md=Jl,Zd=Ql,Hd=rf,Yd=lf,Wd=mf,Kd=If,Qd=kf,Xd=qf,$d=Yi,np=Zf,tp=Xf,ep=oy,rp=ly,op=lt,ip=Te,ap=pr,cp=Or,sp=Kr,up=ao,lp=Wo,fp=Ti,yp=qi,dp=da,pp=Oa,hp=Ca,vp=vy,bp=_y,mp=Ty,wp=Ry,Ap=Vy,Sp=Zy,_p=Xy,Op=id,Ip=fd,gp=bd,xp=Id,Pp=Na,Tp=Ya,Bp=rc,jp=Dc,Ep=Mc;class kp extends kd.IterableOperatorBase{}gn.IterableOperator=kp,(0,Ed.mixinDecorators)(kp,[Rd.ChunkOperator,Cd.ChunkByOperator,Ud.ConcatOperator,Dd.DropRightOperator,Fd.DropUntilOperator,qd.DropOperator,Nd.FilterOperator,Vd.FlattenByOperator,Gd.FlattenDeepOperator,Ld.FlattenOperator,Jd.MapOperator,zd.RepeatOperator,Md.SliceOperator,Zd.SplitByOperator,Hd.SplitOperator,Yd.TakeRightOperator,Wd.TakeUntilOperator,Kd.TakeOperator,Qd.TapOperator,np.TransformOperator,tp.UniqByOperator,ep.UniqOperator,rp.ZipOperator,op.ChunkByAsyncOperator,ip.ConcatAsyncOperator,ap.DropUntilAsyncOperator,cp.FilterAsyncOperator,sp.FlattenByAsync,up.MapAsyncOperator,lp.SplitByAsyncOperator,fp.TakeUntilAsyncOperator,yp.TapAsyncOperator,Xd.ToAsyncIterableOperator,$d.TransformAsyncOperator,dp.UniqByAsyncOperator,pp.ZipAsyncOperator,hp.ConsumeOperator,vp.EachOperator,bp.EveryOperator,mp.FindOperator,wp.FirstOperator,Ap.IncludesOperator,Sp.MatchOperator,_p.ReduceOperator,Op.SomeOperator,Ip.LastOperator,gp.ToArrayOperator,xp.ToSetOperator,Pp.EachAsyncOperator,Tp.EveryAsyncOperator,Bp.FindAsyncOperator,jp.ReduceAsyncOperator,Ep.SomeAsyncOperator]),function(n){var t=On&&On.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),e=On&&On.__exportStar||function(n,e){for(var r in n)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||t(e,n,r)};e(gn,n),e(Cn,n)}(In);const Cp=new Set,Rp=new Set;let Up=!1,Dp=!1;n.observeAdditionOfDescendantNodes=function(n){return _n(n,{childList:!0,subtree:!0}).pipe(fn((n=>new In.IterableOperator(n).map((n=>n.addedNodes)).flatten().toArray())),Sn((n=>n.length>0)))},n.observeRemovalOfDescendantNodes=function(n){return _n(n,{childList:!0,subtree:!0}).pipe(fn((n=>new In.IterableOperator(n).map((n=>n.removedNodes)).flatten().toArray())),Sn((n=>n.length>0)))},n.observeStateChanges=function(){return function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=M(n),r=Z(n,1/0),o=n;return o.length?1===o.length?en(o[0]):hn(r)(ln(o,e)):J}(new U((n=>(Up||function(){const n=history.pushState;history.pushState=function(...t){Reflect.apply(n,this,t),Cp.forEach((n=>n.next()))},Up=!0}(),Cp.add(n),()=>Cp.delete(n)))),new U((n=>(Dp||function(){const n=history.replaceState;history.replaceState=function(...t){Reflect.apply(n,this,t),Rp.forEach((n=>n.next()))},Dp=!0}(),Rp.add(n),()=>Rp.delete(n)))),wn(window,"popstate")).pipe(fn((n=>{})))},n.observeUrlChanges=function(){let n=document.URL;return(t?G(t):L).pipe(Sn((()=>n!==document.URL)),function(n,t,e){var r=f(n)||t||e?{next:n,error:t,complete:e}:n;return r?F((function(n,t){var e;null===(e=r.subscribe)||void 0===e||e.call(r);var o=!0;n.subscribe(new q(t,(function(n){var e;null===(e=r.next)||void 0===e||e.call(r,n),t.next(n)}),(function(){var n;o=!1,null===(n=r.complete)||void 0===n||n.call(r),t.complete()}),(function(n){var e;o=!1,null===(e=r.error)||void 0===e||e.call(r,n),t.error(n)}),(function(){var n,t;o&&(null===(n=r.unsubscribe)||void 0===n||n.call(r)),null===(t=r.finalize)||void 0===t||t.call(r)})))})):C}((()=>n=document.URL)),fn((()=>{})));var t},Object.defineProperty(n,"__esModule",{value:!0})}));
|
|
23
16
|
//# sourceMappingURL=index.umd.min.js.map
|