Socket
Socket
Sign inDemoInstall

@blackglory/structures

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blackglory/structures - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

16

dist/es2015/index.umd.min.js

@@ -15,17 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Structures={})}(this,(function(t){"use strict";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function e(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function n(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}var r,i,o,s,a;r=new WeakMap;class c{constructor(){i.set(this,new Map)}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(t,n){e(this,i,"f").has(t)||e(this,i,"f").set(t,new Set);e(this,i,"f").get(t).add(n)}off(t,n){if(!e(this,i,"f").has(t))return;const r=e(this,i,"f").get(t);r.delete(n),0===r.size&&e(this,i,"f").delete(t)}emit(t,n){if(!e(this,i,"f").has(t))return;e(this,i,"f").get(t).forEach((t=>t(n)))}}class u{constructor(t){this.hash=t,o.set(this,new Map)}get[(o=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,o,"f").size}set(t,n){return e(this,o,"f").set(this.hash(t),n),this}has(t){return e(this,o,"f").has(this.hash(t))}get(t){return e(this,o,"f").get(this.hash(t))}delete(t){return e(this,o,"f").delete(this.hash(t))}clear(){e(this,o,"f").clear()}}class f{constructor(t){this.hash=t,s.set(this,new Map)}get[(s=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,s,"f").size}[Symbol.iterator](){return e(this,s,"f").values()}add(t){return e(this,s,"f").set(this.hash(t),t),this}delete(t){return e(this,s,"f").delete(this.hash(t))}has(t){return e(this,s,"f").has(this.hash(t))}clear(){e(this,s,"f").clear()}values(){return e(this,s,"f").values()}}class l{constructor(){a.set(this,[])}get[(a=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,a,"f").length}empty(){e(this,a,"f").length=0}enqueue(...t){e(this,a,"f").push(...t)}dequeue(){return e(this,a,"f").shift()}remove(t){let n;for(;(n=e(this,a,"f").indexOf(t))>=0;)e(this,a,"f").splice(n,1)}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},y={CustomError:void 0};class p extends Error{get name(){return this.constructor.name}}y.CustomError=p;var v={ExpectedError:void 0};const m=y;class b extends m.CustomError{}v.ExpectedError=b;var g={AssertionError:void 0};const w=y;class S extends w.CustomError{}g.AssertionError=S;var T={};T.normalize=void 0,T.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var A={refute:void 0};const E=v;A.refute=function(t,e){if(t)throw new E.ExpectedError(e)};var x={assert:void 0};const I=g;x.assert=function(t,e){if(!t)throw new I.AssertionError(e)},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(y,t),n(v,t),n(g,t),n(T,t),n(A,t),n(x,t)}(h);var _={},M={},O={},B={},j={};j.go=void 0,j.go=function(t){return t()},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(j,t)}(B),O.chunkAsync=void 0;const R=B,k=h;O.chunkAsync=function(t,e){return(0,k.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,k.assert)(e>0,"The parameter size must be greater than 0"),(0,R.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var N={},C={},J={};function U(t){return Array.isArray(t)}J.isntEmptyArray=J.isEmptyArray=J.isntArray=J.isArray=void 0,J.isArray=U,J.isntArray=function(t){return!U(t)},J.isEmptyArray=function(t){return 0===t.length},J.isntEmptyArray=function(t){return 0!==t.length};var P={},q={};function D(t){return null===t}q.isntNull=q.isNull=void 0,q.isNull=D,q.isntNull=function(t){return!D(t)};var z={};function F(t){return void 0===t}z.isntUndefined=z.isUndefined=void 0,z.isUndefined=F,z.isntUndefined=function(t){return!F(t)},P.isntAsyncIterable=P.isAsyncIterable=void 0;const W=q,L=z;function H(t){return(0,W.isntNull)(t)&&(0,L.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}P.isAsyncIterable=H,P.isntAsyncIterable=function(t){return!H(t)};var K={};function V(t){return"bigint"==typeof t}K.isntBigInt=K.isBigInt=void 0,K.isBigInt=V,K.isntBigInt=function(t){return!V(t)};var Y={};function $(t){return"boolean"==typeof t}Y.isntBoolean=Y.isBoolean=void 0,Y.isBoolean=$,Y.isntBoolean=function(t){return!$(t)};var Q={},G={};function X(t){return"string"==typeof t}G.isntString=G.isString=void 0,G.isString=X,G.isntString=function(t){return!X(t)},Q.isntChar=Q.isChar=void 0;const Z=G;function tt(t){return(0,Z.isString)(t)&&1===t.length}Q.isChar=tt,Q.isntChar=function(t){return!tt(t)};var et={};function nt(t){return t instanceof Date}et.isntDate=et.isDate=void 0,et.isDate=nt,et.isntDate=function(t){return!nt(t)};var rt={};rt.inEnum=void 0,rt.inEnum=function(t,e){return Object.values(e).includes(t)};var it={};function ot(t){return t instanceof Error}it.isntError=it.isError=void 0,it.isError=ot,it.isntError=function(t){return!ot(t)};var st={};function at(t){return!t}st.isntFalsy=st.isFalsy=void 0,st.isFalsy=at,st.isntFalsy=function(t){return!at(t)};var ct={};function ut(t){return"function"==typeof t}ct.isntFunction=ct.isFunction=void 0,ct.isFunction=ut,ct.isntFunction=function(t){return!ut(t)};var ft={};ft.isntIterable=ft.isIterable=void 0;const lt=q,dt=z;function ht(t){return(0,lt.isntNull)(t)&&(0,dt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}ft.isIterable=ht,ft.isntIterable=function(t){return!ht(t)};var yt={},pt={};function vt(t){return null!==t&&"object"==typeof t}pt.isntEmptyObject=pt.isEmptyObject=pt.isRecord=pt.isntObject=pt.isObject=void 0,pt.isObject=vt,pt.isntObject=function(t){return!vt(t)},pt.isRecord=function(t){return vt(t)},pt.isEmptyObject=function(t){return 0===Object.keys(t).length},pt.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var mt={};function bt(t){return"number"==typeof t}mt.isntNumber=mt.isNumber=void 0,mt.isNumber=bt,mt.isntNumber=function(t){return!bt(t)},yt.isntJsonRpcError=yt.isJsonRpcError=yt.isntJsonRpcSuccess=yt.isJsonRpcSuccess=yt.isntJsonRpcRequest=yt.isJsonRpcRequest=yt.isntJsonRpcNotification=yt.isJsonRpcNotification=void 0;const gt=J,wt=pt,St=G,Tt=mt,At=z;function Et(t){return(0,St.isString)(t)||(0,Tt.isNumber)(t)}function xt(t){return(0,gt.isArray)(t)||(0,wt.isObject)(t)}function It(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&(0,St.isString)(t.method)&&(0,At.isUndefined)(t.id)&&xt(t.params)}function _t(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&(0,St.isString)(t.method)&&Et(t.id)&&xt(t.params)}function Mt(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&(0,St.isString)(t.id)&&(0,At.isntUndefined)(t.result)}function Ot(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&Et(t.id)&&function(t){return(0,wt.isRecord)(t)&&(0,Tt.isNumber)(t.code)&&(0,St.isString)(t.message)&&((0,At.isUndefined)(t.data)||(0,wt.isObject)(t.data))}(t.error)}yt.isJsonRpcNotification=It,yt.isntJsonRpcNotification=function(t){return!It(t)},yt.isJsonRpcRequest=_t,yt.isntJsonRpcRequest=function(t){return!_t(t)},yt.isJsonRpcSuccess=Mt,yt.isntJsonRpcSuccess=function(t){return!Mt(t)},yt.isJsonRpcError=Ot,yt.isntJsonRpcError=function(t){return!Ot(t)};var Bt={};Bt.isntJson=Bt.isJson=void 0,Bt.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Bt.isntJson=function t(e){return!t()};var jt={};jt.isAbsoluteURL=void 0,jt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(J,t),n(P,t),n(K,t),n(Y,t),n(Q,t),n(et,t),n(rt,t),n(it,t),n(st,t),n(ct,t),n(ft,t),n(yt,t),n(Bt,t),n(q,t),n(mt,t),n(pt,t),n(G,t),n(z,t),n(jt,t)}(C),N.chunkByAsync=void 0;const Rt=C;N.chunkByAsync=function(t,e){return(0,Rt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var kt={};kt.chunkBy=void 0,kt.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Nt={chunk:void 0};const Ct=B,Jt=h;Nt.chunk=function(t,e){return(0,Jt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Jt.assert)(e>0,"The parameter size must be greater than 0"),(0,Ct.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ut={concatAsync:void 0};const Pt=C,qt=B;Ut.concatAsync=function(t,...e){return(0,qt.go)((async function*(){for(const n of[t,...e])if((0,Pt.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Dt={concat:void 0};const zt=B;Dt.concat=function(t,...e){return(0,zt.go)((function*(){for(const n of[t,...e])yield*n}))};var Ft={},Wt={};Wt.copyIterable=Wt.copyAsyncIterable=void 0,Wt.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Wt.copyIterable=function*(t){for(const e of t)yield e},Ft.dropAsync=void 0;const Lt=B,Ht=Wt,Kt=h;Ft.dropAsync=function(t,e){return(0,Kt.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Kt.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ht.copyAsyncIterable)(t):(0,Lt.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Vt={dropRightAsync:void 0};const Yt=B,$t=Wt,Qt=h;Vt.dropRightAsync=function(t,e){return(0,Qt.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Qt.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,$t.copyAsyncIterable)(t):(0,Yt.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var Gt={dropRight:void 0};const Xt=B,Zt=Wt,te=h;Gt.dropRight=function(t,e){return(0,te.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,te.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Zt.copyIterable)(t):(0,Xt.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var ee={dropUntilAsync:void 0};const ne=C;ee.dropUntilAsync=function(t,e){return(0,ne.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var re={};re.dropUntil=void 0,re.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var ie={drop:void 0};const oe=B,se=Wt,ae=h;ie.drop=function(t,e){return(0,ae.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ae.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,se.copyIterable)(t):(0,oe.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var ce={filterAsync:void 0};const ue=C;ce.filterAsync=function(t,e){return(0,ue.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var fe={};fe.filter=void 0,fe.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var le={},de={},he={flattenByAsync:void 0};const ye=C;function pe(t){return(0,ye.isIterable)(t)&&(0,ye.isntChar)(t)}he.flattenByAsync=function(t,e){return(0,ye.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}},de.flattenDeepAsync=void 0;const ve=he,me=h;de.flattenDeepAsync=function(t,e=1/0){return(0,me.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,me.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ve.flattenByAsync)(t,((t,n)=>n<=e))},le.flattenAsync=void 0;const be=de;le.flattenAsync=function(t){return(0,be.flattenDeepAsync)(t,1)};var ge={flattenBy:void 0};const we=C;ge.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,we.isIterable)(i=o)&&(0,we.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Se={flattenDeep:void 0};const Te=ge,Ae=h;Se.flattenDeep=function(t,e=1/0){return(0,Ae.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Ae.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Te.flattenBy)(t,((t,n)=>n<=e))};var Ee={flatten:void 0};const xe=Se;Ee.flatten=function(t){return(0,xe.flattenDeep)(t,1)};var Ie={mapAsync:void 0};const _e=C;Ie.mapAsync=function(t,e){return(0,_e.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var Me={};Me.map=void 0,Me.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Oe={repeatAsync:void 0};const Be=B,je=h;Oe.repeatAsync=function(t,e){return(0,je.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,je.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Be.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Re={repeat:void 0};const ke=B,Ne=h;Re.repeat=function(t,e){return(0,Ne.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Ne.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,ke.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Ce={sliceAsync:void 0};const Je=B,Ue=h;Ce.sliceAsync=function(t,e,n=1/0){return(0,Ue.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Ue.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Ue.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Ue.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Je.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var Pe={slice:void 0};const qe=B,De=h;Pe.slice=function(t,e,n=1/0){return(0,De.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,De.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,De.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,De.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,qe.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var ze={};ze.splitAsync=void 0,ze.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Fe={splitByAsync:void 0};const We=C;Fe.splitByAsync=function(t,e){return(0,We.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var Le={};Le.splitBy=void 0,Le.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var He={};He.split=void 0,He.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ke={takeAsync:void 0};const Ve=B,Ye=h;Ke.takeAsync=function(t,e){return(0,Ye.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ye.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ve.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var $e={takeRightAsync:void 0};const Qe=B,Ge=h;$e.takeRightAsync=function(t,e){return(0,Ge.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ge.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Qe.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Xe={takeRight:void 0};const Ze=B,tn=h;Xe.takeRight=function(t,e){return(0,tn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,tn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ze.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var en={takeUntilAsync:void 0};const nn=C;en.takeUntilAsync=function(t,e){return(0,nn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var rn={};rn.takeUntil=void 0,rn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var on={take:void 0};const sn=B,an=h;on.take=function(t,e){return(0,an.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,an.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,sn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var cn={tapAsync:void 0};const un=C;cn.tapAsync=function(t,e){return(0,un.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var fn={};fn.tap=void 0,fn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var ln={};ln.toAsyncIterable=void 0,ln.toAsyncIterable=async function*(t){for(const e of t)yield e};var dn={};dn.transformAsync=void 0,dn.transformAsync=async function*(t,e){yield*e(t)};var hn={};hn.transform=void 0,hn.transform=function*(t,e){yield*e(t)};var yn={};yn.uniqAsync=void 0,yn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var pn={uniqByAsync:void 0};const vn=C;pn.uniqByAsync=function(t,e){return(0,vn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var mn={};mn.uniqBy=void 0,mn.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var bn={};bn.uniq=void 0,bn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var gn={zipAsync:void 0};const wn=C;var Sn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Sn||(Sn={})),gn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,s=t.map((t=>(0,wn.isAsyncIterable)(t)?[Sn.Async,t[Symbol.asyncIterator]()]:[Sn.Sync,t[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=s[e];let i;if(i=n===Sn.Async?await r.next():r.next(),i.done)return void(a[e]=!0);t[e]=i.value}yield t}}finally{const t=s.filter(((t,e)=>!a[e]));for(const[o,s]of t)o===Sn.Async?await(null===(n=(e=s).return)||void 0===n?void 0:n.call(e)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(t,...e)};var Tn={};Tn.zip=void 0,Tn.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(O,t),n(N,t),n(kt,t),n(Nt,t),n(Ut,t),n(Dt,t),n(Ft,t),n(Vt,t),n(Gt,t),n(ee,t),n(re,t),n(ie,t),n(ce,t),n(fe,t),n(le,t),n(he,t),n(ge,t),n(de,t),n(Se,t),n(Ee,t),n(Ie,t),n(Me,t),n(Oe,t),n(Re,t),n(Ce,t),n(Pe,t),n(ze,t),n(Fe,t),n(Le,t),n(He,t),n(Ke,t),n($e,t),n(Xe,t),n(en,t),n(rn,t),n(on,t),n(cn,t),n(fn,t),n(ln,t),n(dn,t),n(hn,t),n(yn,t),n(pn,t),n(mn,t),n(bn,t),n(gn,t),n(Tn,t)}(M);var An={},En={};En.consume=void 0,En.consume=function(t,e){return e(t)};var xn={eachAsync:void 0};const In=C;xn.eachAsync=function(t,e){return(0,In.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var _n={};_n.each=void 0,_n.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Mn={everyAsync:void 0};const On=C;Mn.everyAsync=function(t,e){return(0,On.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var Bn={};Bn.every=void 0,Bn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var jn={findAsync:void 0};const Rn=C;jn.findAsync=function(t,e){return(0,Rn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var kn={};kn.find=void 0,kn.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Nn={};Nn.firstAsync=void 0,Nn.firstAsync=async function(t){for await(const e of t)return e};var Cn={};Cn.first=void 0,Cn.first=function(t){for(const e of t)return e};var Jn={};Jn.includesAsync=void 0,Jn.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Un={};Un.includes=void 0,Un.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Pn={};Pn.matchAsync=void 0,Pn.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var qn={};qn.match=void 0,qn.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var Dn={reduceAsync:void 0};const zn=C;Dn.reduceAsync=function(t,e,n){return(0,zn.isUndefined)(n)?function(t,e){return(0,zn.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,s=await o(r),a=1;for(;({value:t,done:i}=await r.next()),!i;)s=await e(s,t,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=await e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,zn.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var Fn={reduce:void 0};const Wn=C;Fn.reduce=function(t,e,n){return(0,Wn.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var Ln={someAsync:void 0};const Hn=C;Ln.someAsync=function(t,e){return(0,Hn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var Kn={};Kn.some=void 0,Kn.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Vn={};Vn.lastAsync=void 0,Vn.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Yn={};Yn.last=void 0,Yn.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var $n={toArrayAsync:void 0};const Qn=En;$n.toArrayAsync=function(t){return(0,Qn.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Gn={toArray:void 0};const Xn=En;Gn.toArray=function(t){return(0,Xn.consume)(t,(t=>Array.from(t)))};var Zn={toSetAsync:void 0};const tr=En;Zn.toSetAsync=function(t){return(0,tr.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var er={toSet:void 0};const nr=En;var rr,ir;er.toSet=function(t){return(0,nr.consume)(t,(t=>new Set(t)))},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(En,t),n(xn,t),n(_n,t),n(Mn,t),n(Bn,t),n(jn,t),n(kn,t),n(Nn,t),n(Cn,t),n(Jn,t),n(Un,t),n(Pn,t),n(qn,t),n(Dn,t),n(Fn,t),n(Ln,t),n(Kn,t),n(Vn,t),n(Yn,t),n($n,t),n(Gn,t),n(Zn,t),n(er,t)}(An),function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(M,t),n(An,t)}(_);class or{constructor(t){rr.set(this,void 0),ir.set(this,new Map),h.assert(Number.isInteger(t),"The parameter limit must be an integer"),h.assert(t>0,"The parameter limit must be a positive value"),n(this,rr,t,"f")}get[(rr=new WeakMap,ir=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,ir,"f").size}set(t,n){return e(this,ir,"f").has(t)?this.updateItem(t,n):(e(this,ir,"f").size===e(this,rr,"f")&&e(this,ir,"f").delete(this.getColdestKey()),e(this,ir,"f").set(t,n)),this}has(t){return e(this,ir,"f").has(t)}get(t){if(!this.has(t))return;const n=e(this,ir,"f").get(t);return this.updateItem(t,n),n}delete(t){return e(this,ir,"f").delete(t)}clear(){e(this,ir,"f").clear()}updateItem(t,n){e(this,ir,"f").delete(t),e(this,ir,"f").set(t,n)}getColdestKey(){return _.first(e(this,ir,"f").keys())}}var sr={},ar={},cr={},ur={};ur.random=void 0,ur.random=function(t,e){return Math.random()*(e-t)+t};var fr={};fr.randomInt=void 0,fr.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var lr={};lr.randomIntInclusive=void 0,lr.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(ur,t),n(fr,t),n(lr,t)}(cr),ar.calculateExponentialBackoffTimeout=void 0;const dr=cr;ar.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**e*t,n);return i?(0,dr.randomIntInclusive)(0,o):o};var hr={};hr.setTimeout=void 0,hr.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var yr={setSchedule:void 0};const pr=hr;yr.setSchedule=function(t,e){const n=t-Date.now();return(0,pr.setTimeout)(n,e)};var vr={};vr.setInterval=void 0,vr.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var mr={setImmediate:void 0};const br=hr;mr.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,br.setTimeout)(0,t)};var gr={setTimeoutLoop:void 0};const wr=hr;gr.setTimeoutLoop=function(t,e){let n=!1,r=(0,wr.setTimeout)(t,(async function i(){await e(),n||(r=(0,wr.setTimeout)(t,i))}));return()=>{n=!0,r()}};var Sr={setDynamicTimeoutLoop:void 0};const Tr=hr;var Ar,Er,xr,Ir,_r,Mr,Or;Sr.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,Tr.setTimeout)(t,(async function i(){const o=Date.now();await e();const s=Date.now()-o;n||(r=(0,Tr.setTimeout)(Math.max(t-s,0),i))}));return()=>{n=!0,r()}},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(ar,t),n(hr,t),n(yr,t),n(vr,t),n(mr,t),n(gr,t),n(Sr,t)}(sr);class Br{constructor(){Ar.set(this,new Map),Er.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(Ar=new WeakMap,Er=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,Ar,"f").size}set(t,n,r){return e(this,Ar,"f").set(t,n),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+r),this}has(t){return e(this,Ar,"f").has(t)}get(t){return e(this,Ar,"f").get(t)}delete(t){const n=e(this,Ar,"f").delete(t);if(n){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return n}clear(){var t;e(this,Ar,"f").clear(),null===(t=e(this,Er,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const n=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(n>=0?this.itemMetadataSortedByExpirationTime.splice(0,n):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>e(this,Ar,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=e(this,Er,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=sr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));n(this,Er,(()=>{e(),n(this,Er,void 0,"f")}),"f")}}}}class jr{constructor(t){xr.set(this,void 0),Ir.set(this,new Map),_r.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],h.assert(Number.isInteger(t),"The parameter limit must be an integer"),h.assert(t>0,"The parameter limit must be a positive value"),n(this,xr,t,"f")}get[(xr=new WeakMap,Ir=new WeakMap,_r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,Ir,"f").size}set(t,n,r){return e(this,Ir,"f").has(t)?(this.updateItem(t,n),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+r)):(e(this,Ir,"f").size===e(this,xr,"f")&&e(this,Ir,"f").delete(this.getColdestKey()),e(this,Ir,"f").set(t,n),this.addItemMetadata(t,Date.now()+r)),this}has(t){return e(this,Ir,"f").has(t)}get(t){if(this.has(t)){const n=e(this,Ir,"f").get(t);return this.updateItem(t,n),n}}delete(t){const n=e(this,Ir,"f").delete(t);if(n){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return n}clear(){var t;e(this,Ir,"f").clear(),null===(t=e(this,_r,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,n){e(this,Ir,"f").delete(t),e(this,Ir,"f").set(t,n)}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const n=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(n>=0?this.itemMetadataSortedByExpirationTime.splice(0,n):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>e(this,Ir,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=e(this,_r,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=sr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));n(this,_r,(()=>{e(),n(this,_r,void 0,"f")}),"f")}}}getColdestKey(){return _.first(e(this,Ir,"f").keys())}}class Rr{constructor(t){this.value=t,this.children=new Map}}class kr{constructor(){Mr.set(this,new Rr)}get[(Mr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(t,n){let r=e(this,Mr,"f");for(const e of t)r.children.has(e)||r.children.set(e,new Rr),r=r.children.get(e);return r.value=n,this}has(t){let n=e(this,Mr,"f");for(const e of t){if(!n.children.has(e))return!1;n=n.children.get(e)}return void 0!==n.value}get(t){let n=e(this,Mr,"f");for(const e of t){if(!n.children.has(e))return;n=n.children.get(e)}return n.value}delete(t){const n=[];let r=e(this,Mr,"f");for(const e of t){if(!r.children.has(e))return!1;n.push(r),r=r.children.get(e)}if(delete r.value,0===r.children.size)for(const[e,r]of _.toArray(_.zip(t,n)).reverse())if(r.children.delete(e),0!==r.children.size)break;return!0}}class Nr{constructor(t,e){this.schema=t,Or.set(this,void 0),n(this,Or,e,"f")}get state(){return e(this,Or,"f")}matches(t){return e(this,Or,"f")===t}send(t){if(!(t in this.schema[this.state]))throw new Cr(this.state,t);n(this,Or,this.schema[this.state][t],"f")}}Or=new WeakMap;class Cr extends h.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Jr=function(t,e){return(Jr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Ur(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Jr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Pr(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qr(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Dr(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}function zr(t){return"function"==typeof t}function Fr(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Wr=Fr((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Lr(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Hr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Pr(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(zr(c))try{c()}catch(t){i=t instanceof Wr?t.errors:[t]}var u=this._teardowns;if(u){this._teardowns=null;try{for(var f=Pr(u),l=f.next();!l.done;l=f.next()){var d=l.value;try{Yr(d)}catch(t){i=null!=i?i:[],t instanceof Wr?i=Dr(Dr([],qr(i)),qr(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}if(i)throw new Wr(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Yr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Lr(e,t)},t.prototype.remove=function(e){var n=this._teardowns;n&&Lr(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Kr=Hr.EMPTY;function Vr(t){return t instanceof Hr||t&&"closed"in t&&zr(t.remove)&&zr(t.add)&&zr(t.unsubscribe)}function Yr(t){zr(t)?t():t.unsubscribe()}var $r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qr={setTimeout:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qr.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,Dr([],qr(t)))},clearTimeout:function(t){var e=Qr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Gr(t){Qr.setTimeout((function(){throw t}))}function Xr(){}var Zr=null;function ti(t){if($r.useDeprecatedSynchronousErrorHandling){var e=!Zr;if(e&&(Zr={errorThrown:!1,error:null}),t(),e){var n=Zr,r=n.errorThrown,i=n.error;if(Zr=null,r)throw i}}else t()}var ei=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Vr(e)&&e.add(n)):n.destination=oi,n}return Ur(e,t),e.create=function(t,e,n){return new ni(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Hr),ni=function(t){function e(e,n,r){var i,o=t.call(this)||this;if(zr(e))i=e;else if(e){var s;i=e.next,n=e.error,r=e.complete,o&&$r.useDeprecatedNextContext?(s=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:s=e,i=null==i?void 0:i.bind(s),n=null==n?void 0:n.bind(s),r=null==r?void 0:r.bind(s)}return o.destination={next:i?ri(i):Xr,error:ri(null!=n?n:ii),complete:r?ri(r):Xr},o}return Ur(e,t),e}(ei);function ri(t,e){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{t.apply(void 0,Dr([],qr(e)))}catch(t){Gr(t)}}}function ii(t){throw t}var oi={closed:!0,next:Xr,error:ii,complete:Xr},si="function"==typeof Symbol&&Symbol.observable||"@@observable";function ai(t){return t}function ci(t){return 0===t.length?ai:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var ui=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof ei||function(t){return t&&zr(t.next)&&zr(t.error)&&zr(t.complete)}(r)&&Vr(r)?t:new ni(t,e,n);return ti((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=fi(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),null==i||i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[si]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ci(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=fi(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function fi(t){var e;return null!==(e=null!=t?t:$r.Promise)&&void 0!==e?e:Promise}var li=Fr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),di=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Ur(e,t),e.prototype.lift=function(t){var e=new hi(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new li},e.prototype.next=function(t){var e=this;ti((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){var i=e.observers.slice();try{for(var o=Pr(i),s=o.next();!s.done;s=o.next()){s.value.next(t)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;ti((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;ti((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=e.hasError,r=e.isStopped,i=e.observers;return n||r?Kr:(i.push(t),new Hr((function(){return Lr(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new ui;return t.source=this,t},e.create=function(t,e){return new hi(t,e)},e}(ui),hi=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Ur(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:Kr},e}(di),yi={},pi={};function vi(t){return Array.isArray(t)}pi.isntEmptyArray=pi.isEmptyArray=pi.isntArray=pi.isArray=void 0,pi.isArray=vi,pi.isntArray=function(t){return!vi(t)},pi.isEmptyArray=function(t){return 0===t.length},pi.isntEmptyArray=function(t){return 0!==t.length};var mi={},bi={};function gi(t){return null===t}bi.isntNull=bi.isNull=void 0,bi.isNull=gi,bi.isntNull=function(t){return!gi(t)};var wi={};function Si(t){return void 0===t}wi.isntUndefined=wi.isUndefined=void 0,wi.isUndefined=Si,wi.isntUndefined=function(t){return!Si(t)},mi.isntAsyncIterable=mi.isAsyncIterable=void 0;const Ti=bi,Ai=wi;function Ei(t){return(0,Ti.isntNull)(t)&&(0,Ai.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}mi.isAsyncIterable=Ei,mi.isntAsyncIterable=function(t){return!Ei(t)};var xi={};function Ii(t){return"bigint"==typeof t}xi.isntBigInt=xi.isBigInt=void 0,xi.isBigInt=Ii,xi.isntBigInt=function(t){return!Ii(t)};var _i={};function Mi(t){return"boolean"==typeof t}_i.isntBoolean=_i.isBoolean=void 0,_i.isBoolean=Mi,_i.isntBoolean=function(t){return!Mi(t)};var Oi={},Bi={};function ji(t){return"string"==typeof t}Bi.isntString=Bi.isString=void 0,Bi.isString=ji,Bi.isntString=function(t){return!ji(t)},Oi.isntChar=Oi.isChar=void 0;const Ri=Bi;function ki(t){return(0,Ri.isString)(t)&&1===t.length}Oi.isChar=ki,Oi.isntChar=function(t){return!ki(t)};var Ni={};function Ci(t){return t instanceof Date}Ni.isntDate=Ni.isDate=void 0,Ni.isDate=Ci,Ni.isntDate=function(t){return!Ci(t)};var Ji={};Ji.inEnum=void 0,Ji.inEnum=function(t,e){return Object.values(e).includes(t)};var Ui={};function Pi(t){return t instanceof Error}Ui.isntError=Ui.isError=void 0,Ui.isError=Pi,Ui.isntError=function(t){return!Pi(t)};var qi={};function Di(t){return!t}qi.isntFalsy=qi.isFalsy=void 0,qi.isFalsy=Di,qi.isntFalsy=function(t){return!Di(t)};var zi={};function Fi(t){return"function"==typeof t}zi.isntFunction=zi.isFunction=void 0,zi.isFunction=Fi,zi.isntFunction=function(t){return!Fi(t)};var Wi={};Wi.isntIterable=Wi.isIterable=void 0;const Li=bi,Hi=wi;function Ki(t){return(0,Li.isntNull)(t)&&(0,Hi.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Wi.isIterable=Ki,Wi.isntIterable=function(t){return!Ki(t)};var Vi={},Yi={};function $i(t){return null!==t&&"object"==typeof t}Yi.isntEmptyObject=Yi.isEmptyObject=Yi.isRecord=Yi.isntObject=Yi.isObject=void 0,Yi.isObject=$i,Yi.isntObject=function(t){return!$i(t)},Yi.isRecord=function(t){return $i(t)},Yi.isEmptyObject=function(t){return 0===Object.keys(t).length},Yi.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var Qi={};function Gi(t){return"number"==typeof t}Qi.isntNumber=Qi.isNumber=void 0,Qi.isNumber=Gi,Qi.isntNumber=function(t){return!Gi(t)},Vi.isntJsonRpcError=Vi.isJsonRpcError=Vi.isntJsonRpcSuccess=Vi.isJsonRpcSuccess=Vi.isntJsonRpcRequest=Vi.isJsonRpcRequest=Vi.isntJsonRpcNotification=Vi.isJsonRpcNotification=void 0;const Xi=pi,Zi=Yi,to=Bi,eo=Qi,no=wi;function ro(t){return(0,to.isString)(t)||(0,eo.isNumber)(t)}function io(t){return(0,Xi.isArray)(t)||(0,Zi.isObject)(t)}function oo(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&(0,to.isString)(t.method)&&(0,no.isUndefined)(t.id)&&io(t.params)}function so(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&(0,to.isString)(t.method)&&ro(t.id)&&io(t.params)}function ao(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&(0,to.isString)(t.id)&&"result"in t}function co(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&ro(t.id)&&function(t){return(0,Zi.isRecord)(t)&&(0,eo.isNumber)(t.code)&&(0,to.isString)(t.message)&&((0,no.isUndefined)(t.data)||(0,Zi.isObject)(t.data))}(t.error)}Vi.isJsonRpcNotification=oo,Vi.isntJsonRpcNotification=function(t){return!oo(t)},Vi.isJsonRpcRequest=so,Vi.isntJsonRpcRequest=function(t){return!so(t)},Vi.isJsonRpcSuccess=ao,Vi.isntJsonRpcSuccess=function(t){return!ao(t)},Vi.isJsonRpcError=co,Vi.isntJsonRpcError=function(t){return!co(t)};var uo={};uo.isntJson=uo.isJson=void 0,uo.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},uo.isntJson=function t(e){return!t()};var fo={};fo.isAbsoluteURL=void 0,fo.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(pi,t),n(mi,t),n(xi,t),n(_i,t),n(Oi,t),n(Ni,t),n(Ji,t),n(Ui,t),n(qi,t),n(zi,t),n(Wi,t),n(Vi,t),n(uo,t),n(bi,t),n(Qi,t),n(Yi,t),n(Bi,t),n(wi,t),n(fo,t)}(yi);t.BadEventError=Cr,t.Box=class{constructor(t){r.set(this,void 0),n(this,r,t,"f")}set(t){n(this,r,t,"f")}get(){return e(this,r,"f")}},t.Emitter=c,t.ExpirableMap=Br,t.FiniteStateMachine=Nr,t.HashMap=u,t.HashSet=f,t.LRUMap=or,t.ObservableFiniteStateMachine=class extends Nr{constructor(){super(...arguments),this.stateChanges=new di}observeStateChanges(){return this.stateChanges}send(t){const e=this.state;super.send(t);const n=this.state;this.stateChanges.next({event:t,oldState:e,newState:n}),yi.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=l,t.TLRUMap=jr,t.TrieMap=kr,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return null===n?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var e,n,r,i,o,s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function c(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function f(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function l(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function d(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}e=new WeakMap;class h{constructor(){n.set(this,new Map)}get[(n=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(t,e){l(this,n,"f").has(t)||l(this,n,"f").set(t,new Set);l(this,n,"f").get(t).add(e)}off(t,e){if(!l(this,n,"f").has(t))return;const r=l(this,n,"f").get(t);r.delete(e),0===r.size&&l(this,n,"f").delete(t)}emit(t,e){if(!l(this,n,"f").has(t))return;l(this,n,"f").get(t).forEach((t=>t(e)))}}class y{constructor(t){this.hash=t,r.set(this,new Map)}get[(r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,r,"f").size}set(t,e){return l(this,r,"f").set(this.hash(t),e),this}has(t){return l(this,r,"f").has(this.hash(t))}get(t){return l(this,r,"f").get(this.hash(t))}delete(t){return l(this,r,"f").delete(this.hash(t))}clear(){l(this,r,"f").clear()}}class p{constructor(t){this.hash=t,i.set(this,new Map)}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,i,"f").size}[Symbol.iterator](){return l(this,i,"f").values()}add(t){return l(this,i,"f").set(this.hash(t),t),this}delete(t){return l(this,i,"f").delete(this.hash(t))}has(t){return l(this,i,"f").has(this.hash(t))}clear(){l(this,i,"f").clear()}values(){return l(this,i,"f").values()}}class v{constructor(){o.set(this,[])}get[(o=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,o,"f").length}empty(){l(this,o,"f").length=0}enqueue(...t){l(this,o,"f").push(...t)}dequeue(){return l(this,o,"f").shift()}remove(t){let e;for(;(e=l(this,o,"f").indexOf(t))>=0;)l(this,o,"f").splice(e,1)}}var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b={},g={CustomError:void 0};class w extends Error{get name(){return this.constructor.name}}g.CustomError=w;var S={ExpectedError:void 0};const A=g;class T extends A.CustomError{}S.ExpectedError=T;var x={AssertionError:void 0};const E=g;class I extends E.CustomError{}x.AssertionError=I;var O={};O.normalize=void 0,O.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var _={refute:void 0};const j=S;_.refute=function(t,e){if(t)throw new j.ExpectedError(e)};var M={assert:void 0};const B=x;M.assert=function(t,e){if(!t)throw new B.AssertionError(e)},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(g,t),n(S,t),n(x,t),n(O,t),n(_,t),n(M,t)}(b);var k={},R={},N={},C={},P={};P.go=void 0,P.go=function(t){return t()},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(P,t)}(C),N.chunkAsync=void 0;const J=C,U=b;N.chunkAsync=function(t,e){return(0,U.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,U.assert)(e>0,"The parameter size must be greater than 0"),(0,J.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var q={},D={},z={};function F(t){return Array.isArray(t)}z.isntEmptyArray=z.isEmptyArray=z.isntArray=z.isArray=void 0,z.isArray=F,z.isntArray=function(t){return!F(t)},z.isEmptyArray=function(t){return 0===t.length},z.isntEmptyArray=function(t){return 0!==t.length};var W={},L={};function H(t){return null===t}L.isntNull=L.isNull=void 0,L.isNull=H,L.isntNull=function(t){return!H(t)};var K={};function V(t){return void 0===t}K.isntUndefined=K.isUndefined=void 0,K.isUndefined=V,K.isntUndefined=function(t){return!V(t)},W.isntAsyncIterable=W.isAsyncIterable=void 0;const Y=L,$=K;function Q(t){return(0,Y.isntNull)(t)&&(0,$.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}W.isAsyncIterable=Q,W.isntAsyncIterable=function(t){return!Q(t)};var G={};function X(t){return"bigint"==typeof t}G.isntBigInt=G.isBigInt=void 0,G.isBigInt=X,G.isntBigInt=function(t){return!X(t)};var Z={};function tt(t){return"boolean"==typeof t}Z.isntBoolean=Z.isBoolean=void 0,Z.isBoolean=tt,Z.isntBoolean=function(t){return!tt(t)};var et={},nt={};function rt(t){return"string"==typeof t}nt.isntString=nt.isString=void 0,nt.isString=rt,nt.isntString=function(t){return!rt(t)},et.isntChar=et.isChar=void 0;const it=nt;function ot(t){return(0,it.isString)(t)&&1===t.length}et.isChar=ot,et.isntChar=function(t){return!ot(t)};var st={};function at(t){return t instanceof Date}st.isntDate=st.isDate=void 0,st.isDate=at,st.isntDate=function(t){return!at(t)};var ct={};ct.inEnum=void 0,ct.inEnum=function(t,e){return Object.values(e).includes(t)};var ut={};function ft(t){return t instanceof Error}ut.isntError=ut.isError=void 0,ut.isError=ft,ut.isntError=function(t){return!ft(t)};var lt={};function dt(t){return!t}lt.isntFalsy=lt.isFalsy=void 0,lt.isFalsy=dt,lt.isntFalsy=function(t){return!dt(t)};var ht={};function yt(t){return"function"==typeof t}ht.isntFunction=ht.isFunction=void 0,ht.isFunction=yt,ht.isntFunction=function(t){return!yt(t)};var pt={};pt.isntIterable=pt.isIterable=void 0;const vt=L,mt=K;function bt(t){return(0,vt.isntNull)(t)&&(0,mt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}pt.isIterable=bt,pt.isntIterable=function(t){return!bt(t)};var gt={},wt={};function St(t){return null!==t&&"object"==typeof t}wt.isntEmptyObject=wt.isEmptyObject=wt.isRecord=wt.isntObject=wt.isObject=void 0,wt.isObject=St,wt.isntObject=function(t){return!St(t)},wt.isRecord=function(t){return St(t)},wt.isEmptyObject=function(t){return 0===Object.keys(t).length},wt.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var At={};function Tt(t){return"number"==typeof t}At.isntNumber=At.isNumber=void 0,At.isNumber=Tt,At.isntNumber=function(t){return!Tt(t)},gt.isntJsonRpcError=gt.isJsonRpcError=gt.isntJsonRpcSuccess=gt.isJsonRpcSuccess=gt.isntJsonRpcRequest=gt.isJsonRpcRequest=gt.isntJsonRpcNotification=gt.isJsonRpcNotification=void 0;const xt=z,Et=wt,It=nt,Ot=At,_t=K;function jt(t){return(0,It.isString)(t)||(0,Ot.isNumber)(t)}function Mt(t){return(0,xt.isArray)(t)||(0,Et.isObject)(t)}function Bt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&(0,It.isString)(t.method)&&(0,_t.isUndefined)(t.id)&&Mt(t.params)}function kt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&(0,It.isString)(t.method)&&jt(t.id)&&Mt(t.params)}function Rt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&(0,It.isString)(t.id)&&(0,_t.isntUndefined)(t.result)}function Nt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&jt(t.id)&&function(t){return(0,Et.isRecord)(t)&&(0,Ot.isNumber)(t.code)&&(0,It.isString)(t.message)&&((0,_t.isUndefined)(t.data)||(0,Et.isObject)(t.data))}(t.error)}gt.isJsonRpcNotification=Bt,gt.isntJsonRpcNotification=function(t){return!Bt(t)},gt.isJsonRpcRequest=kt,gt.isntJsonRpcRequest=function(t){return!kt(t)},gt.isJsonRpcSuccess=Rt,gt.isntJsonRpcSuccess=function(t){return!Rt(t)},gt.isJsonRpcError=Nt,gt.isntJsonRpcError=function(t){return!Nt(t)};var Ct={};Ct.isntJson=Ct.isJson=void 0,Ct.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Ct.isntJson=function t(e){return!t()};var Pt={};Pt.isAbsoluteURL=void 0,Pt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(z,t),n(W,t),n(G,t),n(Z,t),n(et,t),n(st,t),n(ct,t),n(ut,t),n(lt,t),n(ht,t),n(pt,t),n(gt,t),n(Ct,t),n(L,t),n(At,t),n(wt,t),n(nt,t),n(K,t),n(Pt,t)}(D),q.chunkByAsync=void 0;const Jt=D;q.chunkByAsync=function(t,e){return(0,Jt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Ut={};Ut.chunkBy=void 0,Ut.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var qt={chunk:void 0};const Dt=C,zt=b;qt.chunk=function(t,e){return(0,zt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,zt.assert)(e>0,"The parameter size must be greater than 0"),(0,Dt.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ft={concatAsync:void 0};const Wt=D,Lt=C;Ft.concatAsync=function(t,...e){return(0,Lt.go)((async function*(){for(const n of[t,...e])if((0,Wt.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Ht={concat:void 0};const Kt=C;Ht.concat=function(t,...e){return(0,Kt.go)((function*(){for(const n of[t,...e])yield*n}))};var Vt={},Yt={};Yt.copyIterable=Yt.copyAsyncIterable=void 0,Yt.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Yt.copyIterable=function*(t){for(const e of t)yield e},Vt.dropAsync=void 0;const $t=C,Qt=Yt,Gt=b;Vt.dropAsync=function(t,e){return(0,Gt.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Gt.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Qt.copyAsyncIterable)(t):(0,$t.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Xt={dropRightAsync:void 0};const Zt=C,te=Yt,ee=b;Xt.dropRightAsync=function(t,e){return(0,ee.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ee.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,te.copyAsyncIterable)(t):(0,Zt.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var ne={dropRight:void 0};const re=C,ie=Yt,oe=b;ne.dropRight=function(t,e){return(0,oe.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,oe.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ie.copyIterable)(t):(0,re.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var se={dropUntilAsync:void 0};const ae=D;se.dropUntilAsync=function(t,e){return(0,ae.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var ce={};ce.dropUntil=void 0,ce.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var ue={drop:void 0};const fe=C,le=Yt,de=b;ue.drop=function(t,e){return(0,de.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,de.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,le.copyIterable)(t):(0,fe.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var he={filterAsync:void 0};const ye=D;he.filterAsync=function(t,e){return(0,ye.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var pe={};pe.filter=void 0,pe.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var ve={},me={},be={flattenByAsync:void 0};const ge=D;function we(t){return(0,ge.isIterable)(t)&&(0,ge.isntChar)(t)}be.flattenByAsync=function(t,e){return(0,ge.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)we(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)we(i)&&await e(i,r)?yield*n(i,r+1):yield i}},me.flattenDeepAsync=void 0;const Se=be,Ae=b;me.flattenDeepAsync=function(t,e=1/0){return(0,Ae.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Ae.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Se.flattenByAsync)(t,((t,n)=>n<=e))},ve.flattenAsync=void 0;const Te=me;ve.flattenAsync=function(t){return(0,Te.flattenDeepAsync)(t,1)};var xe={flattenBy:void 0};const Ee=D;xe.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,Ee.isIterable)(i=o)&&(0,Ee.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Ie={flattenDeep:void 0};const Oe=xe,_e=b;Ie.flattenDeep=function(t,e=1/0){return(0,_e.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,_e.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Oe.flattenBy)(t,((t,n)=>n<=e))};var je={flatten:void 0};const Me=Ie;je.flatten=function(t){return(0,Me.flattenDeep)(t,1)};var Be={mapAsync:void 0};const ke=D;Be.mapAsync=function(t,e){return(0,ke.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var Re={};Re.map=void 0,Re.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Ne={repeatAsync:void 0};const Ce=C,Pe=b;Ne.repeatAsync=function(t,e){return(0,Pe.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Pe.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Ce.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Je={repeat:void 0};const Ue=C,qe=b;Je.repeat=function(t,e){return(0,qe.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,qe.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Ue.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var De={sliceAsync:void 0};const ze=C,Fe=b;De.sliceAsync=function(t,e,n=1/0){return(0,Fe.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Fe.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Fe.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Fe.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,ze.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var We={slice:void 0};const Le=C,He=b;We.slice=function(t,e,n=1/0){return(0,He.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,He.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,He.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,He.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Le.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var Ke={};Ke.splitAsync=void 0,Ke.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ve={splitByAsync:void 0};const Ye=D;Ve.splitByAsync=function(t,e){return(0,Ye.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var $e={};$e.splitBy=void 0,$e.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var Qe={};Qe.split=void 0,Qe.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ge={takeAsync:void 0};const Xe=C,Ze=b;Ge.takeAsync=function(t,e){return(0,Ze.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ze.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Xe.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var tn={takeRightAsync:void 0};const en=C,nn=b;tn.takeRightAsync=function(t,e){return(0,nn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,nn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,en.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var rn={takeRight:void 0};const on=C,sn=b;rn.takeRight=function(t,e){return(0,sn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,sn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,on.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var an={takeUntilAsync:void 0};const cn=D;an.takeUntilAsync=function(t,e){return(0,cn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var un={};un.takeUntil=void 0,un.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var fn={take:void 0};const ln=C,dn=b;fn.take=function(t,e){return(0,dn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,dn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ln.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var hn={tapAsync:void 0};const yn=D;hn.tapAsync=function(t,e){return(0,yn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var pn={};pn.tap=void 0,pn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var vn={};vn.toAsyncIterable=void 0,vn.toAsyncIterable=async function*(t){for(const e of t)yield e};var mn={};mn.transformAsync=void 0,mn.transformAsync=async function*(t,e){yield*e(t)};var bn={};bn.transform=void 0,bn.transform=function*(t,e){yield*e(t)};var gn={};gn.uniqAsync=void 0,gn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var wn={uniqByAsync:void 0};const Sn=D;wn.uniqByAsync=function(t,e){return(0,Sn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var An={};An.uniqBy=void 0,An.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var Tn={};Tn.uniq=void 0,Tn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var xn={zipAsync:void 0};const En=D;var In;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(In||(In={})),xn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,s=t.map((t=>(0,En.isAsyncIterable)(t)?[In.Async,t[Symbol.asyncIterator]()]:[In.Sync,t[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=s[e];let i;if(i=n===In.Async?await r.next():r.next(),i.done)return void(a[e]=!0);t[e]=i.value}yield t}}finally{const t=s.filter(((t,e)=>!a[e]));for(const[o,s]of t)o===In.Async?await(null===(n=(e=s).return)||void 0===n?void 0:n.call(e)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(t,...e)};var On={};On.zip=void 0,On.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(N,t),n(q,t),n(Ut,t),n(qt,t),n(Ft,t),n(Ht,t),n(Vt,t),n(Xt,t),n(ne,t),n(se,t),n(ce,t),n(ue,t),n(he,t),n(pe,t),n(ve,t),n(be,t),n(xe,t),n(me,t),n(Ie,t),n(je,t),n(Be,t),n(Re,t),n(Ne,t),n(Je,t),n(De,t),n(We,t),n(Ke,t),n(Ve,t),n($e,t),n(Qe,t),n(Ge,t),n(tn,t),n(rn,t),n(an,t),n(un,t),n(fn,t),n(hn,t),n(pn,t),n(vn,t),n(mn,t),n(bn,t),n(gn,t),n(wn,t),n(An,t),n(Tn,t),n(xn,t),n(On,t)}(R);var _n={},jn={};jn.consume=void 0,jn.consume=function(t,e){return e(t)};var Mn={eachAsync:void 0};const Bn=D;Mn.eachAsync=function(t,e){return(0,Bn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var kn={};kn.each=void 0,kn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Rn={everyAsync:void 0};const Nn=D;Rn.everyAsync=function(t,e){return(0,Nn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var Cn={};Cn.every=void 0,Cn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Pn={findAsync:void 0};const Jn=D;Pn.findAsync=function(t,e){return(0,Jn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var Un={};Un.find=void 0,Un.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var qn={};qn.firstAsync=void 0,qn.firstAsync=async function(t){for await(const e of t)return e};var Dn={};Dn.first=void 0,Dn.first=function(t){for(const e of t)return e};var zn={};zn.includesAsync=void 0,zn.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Fn={};Fn.includes=void 0,Fn.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Wn={};Wn.matchAsync=void 0,Wn.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var Ln={};Ln.match=void 0,Ln.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var Hn={reduceAsync:void 0};const Kn=D;Hn.reduceAsync=function(t,e,n){return(0,Kn.isUndefined)(n)?function(t,e){return(0,Kn.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,s=await o(r),a=1;for(;({value:t,done:i}=await r.next()),!i;)s=await e(s,t,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=await e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Kn.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var Vn={reduce:void 0};const Yn=D;Vn.reduce=function(t,e,n){return(0,Yn.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var $n={someAsync:void 0};const Qn=D;$n.someAsync=function(t,e){return(0,Qn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var Gn={};Gn.some=void 0,Gn.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Xn={};Xn.lastAsync=void 0,Xn.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Zn={};Zn.last=void 0,Zn.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var tr={toArrayAsync:void 0};const er=jn;tr.toArrayAsync=function(t){return(0,er.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var nr={toArray:void 0};const rr=jn;nr.toArray=function(t){return(0,rr.consume)(t,(t=>Array.from(t)))};var ir={toSetAsync:void 0};const or=jn;ir.toSetAsync=function(t){return(0,or.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var sr={toSet:void 0};const ar=jn;var cr,ur;sr.toSet=function(t){return(0,ar.consume)(t,(t=>new Set(t)))},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(jn,t),n(Mn,t),n(kn,t),n(Rn,t),n(Cn,t),n(Pn,t),n(Un,t),n(qn,t),n(Dn,t),n(zn,t),n(Fn,t),n(Wn,t),n(Ln,t),n(Hn,t),n(Vn,t),n($n,t),n(Gn,t),n(Xn,t),n(Zn,t),n(tr,t),n(nr,t),n(ir,t),n(sr,t)}(_n),function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(R,t),n(_n,t)}(k);class fr{constructor(t){cr.set(this,void 0),ur.set(this,new Map),b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,cr,t,"f")}get[(cr=new WeakMap,ur=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,ur,"f").size}set(t,e){return l(this,ur,"f").has(t)?this.updateItem(t,e):(l(this,ur,"f").size===l(this,cr,"f")&&l(this,ur,"f").delete(this.getColdestKey()),l(this,ur,"f").set(t,e)),this}has(t){return l(this,ur,"f").has(t)}get(t){if(!this.has(t))return;const e=l(this,ur,"f").get(t);return this.updateItem(t,e),e}delete(t){return l(this,ur,"f").delete(t)}clear(){l(this,ur,"f").clear()}updateItem(t,e){l(this,ur,"f").delete(t),l(this,ur,"f").set(t,e)}getColdestKey(){return k.first(l(this,ur,"f").keys())}}var lr={},dr={},hr={},yr={};yr.random=void 0,yr.random=function(t,e){return Math.random()*(e-t)+t};var pr={};pr.randomInt=void 0,pr.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var vr={};vr.randomIntInclusive=void 0,vr.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(yr,t),n(pr,t),n(vr,t)}(hr),dr.calculateExponentialBackoffTimeout=void 0;const mr=hr;dr.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**e*t,n);return i?(0,mr.randomIntInclusive)(0,o):o};var br={};br.setTimeout=void 0,br.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var gr={setSchedule:void 0};const wr=br;gr.setSchedule=function(t,e){const n=t-Date.now();return(0,wr.setTimeout)(n,e)};var Sr={};Sr.setInterval=void 0,Sr.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var Ar={setImmediate:void 0};const Tr=br;Ar.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,Tr.setTimeout)(0,t)};var xr={setTimeoutLoop:void 0};const Er=br;xr.setTimeoutLoop=function(t,e){let n=!1,r=(0,Er.setTimeout)(t,(async function i(){await e(),n||(r=(0,Er.setTimeout)(t,i))}));return()=>{n=!0,r()}};var Ir={setDynamicTimeoutLoop:void 0};const Or=br;var _r,jr,Mr,Br,kr,Rr,Nr;Ir.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,Or.setTimeout)(t,(async function i(){const o=Date.now();await e();const s=Date.now()-o;n||(r=(0,Or.setTimeout)(Math.max(t-s,0),i))}));return()=>{n=!0,r()}},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(dr,t),n(br,t),n(gr,t),n(Sr,t),n(Ar,t),n(xr,t),n(Ir,t)}(lr);class Cr{constructor(){_r.set(this,new Map),jr.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(_r=new WeakMap,jr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,_r,"f").size}set(t,e,n){return l(this,_r,"f").set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return l(this,_r,"f").has(t)}get(t){return l(this,_r,"f").get(t)}delete(t){const e=l(this,_r,"f").delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;l(this,_r,"f").clear(),null===(t=l(this,jr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>l(this,_r,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=l(this,jr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=lr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,jr,(()=>{e(),d(this,jr,void 0,"f")}),"f")}}}}class Pr{constructor(t){Mr.set(this,void 0),Br.set(this,new Map),kr.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,Mr,t,"f")}get[(Mr=new WeakMap,Br=new WeakMap,kr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,Br,"f").size}set(t,e,n){return l(this,Br,"f").has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(l(this,Br,"f").size===l(this,Mr,"f")&&l(this,Br,"f").delete(this.getColdestKey()),l(this,Br,"f").set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return l(this,Br,"f").has(t)}get(t){if(this.has(t)){const e=l(this,Br,"f").get(t);return this.updateItem(t,e),e}}delete(t){const e=l(this,Br,"f").delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;l(this,Br,"f").clear(),null===(t=l(this,kr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){l(this,Br,"f").delete(t),l(this,Br,"f").set(t,e)}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>l(this,Br,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=l(this,kr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=lr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,kr,(()=>{e(),d(this,kr,void 0,"f")}),"f")}}}getColdestKey(){return k.first(l(this,Br,"f").keys())}}class Jr{constructor(t){this.value=t,this.children=new Map}}class Ur{constructor(){Rr.set(this,new Jr)}get[(Rr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(t,e){let n=l(this,Rr,"f");for(const e of t)n.children.has(e)||n.children.set(e,new Jr),n=n.children.get(e);return n.value=e,this}has(t){let e=l(this,Rr,"f");for(const n of t){if(!e.children.has(n))return!1;e=e.children.get(n)}return void 0!==e.value}get(t){let e=l(this,Rr,"f");for(const n of t){if(!e.children.has(n))return;e=e.children.get(n)}return e.value}delete(t){const e=[];let n=l(this,Rr,"f");for(const r of t){if(!n.children.has(r))return!1;e.push(n),n=n.children.get(r)}if(delete n.value,0===n.children.size)for(const[n,r]of k.toArray(k.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class qr{constructor(t,e){this.schema=t,Nr.set(this,void 0),d(this,Nr,e,"f")}get state(){return l(this,Nr,"f")}matches(t){return l(this,Nr,"f")===t}send(t){if(!(t in this.schema[this.state]))throw new Dr(this.state,t);d(this,Nr,this.schema[this.state][t],"f")}}Nr=new WeakMap;class Dr extends b.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}function zr(t){return"function"==typeof t}function Fr(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Wr=Fr((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Lr(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Hr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=c(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(zr(l))try{l()}catch(t){i=t instanceof Wr?t.errors:[t]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var h=c(d),y=h.next();!y.done;y=h.next()){var p=y.value;try{Yr(p)}catch(t){i=null!=i?i:[],t instanceof Wr?i=f(f([],u(i)),u(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{y&&!y.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(i)throw new Wr(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Yr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Lr(e,t)},t.prototype.remove=function(e){var n=this._teardowns;n&&Lr(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Kr=Hr.EMPTY;function Vr(t){return t instanceof Hr||t&&"closed"in t&&zr(t.remove)&&zr(t.add)&&zr(t.unsubscribe)}function Yr(t){zr(t)?t():t.unsubscribe()}var $r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qr={setTimeout:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qr.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,f([],u(t)))},clearTimeout:function(t){var e=Qr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Gr(t){Qr.setTimeout((function(){throw t}))}function Xr(){}var Zr=null;function ti(t){if($r.useDeprecatedSynchronousErrorHandling){var e=!Zr;if(e&&(Zr={errorThrown:!1,error:null}),t(),e){var n=Zr,r=n.errorThrown,i=n.error;if(Zr=null,r)throw i}}else t()}var ei=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Vr(e)&&e.add(n)):n.destination=oi,n}return a(e,t),e.create=function(t,e,n){return new ni(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Hr),ni=function(t){function e(e,n,r){var i,o=t.call(this)||this;if(zr(e))i=e;else if(e){var s;i=e.next,n=e.error,r=e.complete,o&&$r.useDeprecatedNextContext?(s=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:s=e,i=null==i?void 0:i.bind(s),n=null==n?void 0:n.bind(s),r=null==r?void 0:r.bind(s)}return o.destination={next:i?ri(i):Xr,error:ri(null!=n?n:ii),complete:r?ri(r):Xr},o}return a(e,t),e}(ei);function ri(t,e){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{t.apply(void 0,f([],u(e)))}catch(t){Gr(t)}}}function ii(t){throw t}var oi={closed:!0,next:Xr,error:ii,complete:Xr},si="function"==typeof Symbol&&Symbol.observable||"@@observable";function ai(t){return t}function ci(t){return 0===t.length?ai:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var ui=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof ei||function(t){return t&&zr(t.next)&&zr(t.error)&&zr(t.complete)}(r)&&Vr(r)?t:new ni(t,e,n);return ti((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=fi(e))((function(e,r){var i=new ni({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[si]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ci(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=fi(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function fi(t){var e;return null!==(e=null!=t?t:$r.Promise)&&void 0!==e?e:Promise}var li=Fr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),di=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return a(e,t),e.prototype.lift=function(t){var e=new hi(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new li},e.prototype.next=function(t){var e=this;ti((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){var i=e.observers.slice();try{for(var o=c(i),s=o.next();!s.done;s=o.next()){s.value.next(t)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;ti((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;ti((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=e.hasError,r=e.isStopped,i=e.observers;return n||r?Kr:(i.push(t),new Hr((function(){return Lr(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new ui;return t.source=this,t},e.create=function(t,e){return new hi(t,e)},e}(ui),hi=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return a(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:Kr},e}(di),yi={},pi={};function vi(t){return Array.isArray(t)}pi.isntEmptyArray=pi.isEmptyArray=pi.isntArray=pi.isArray=void 0,pi.isArray=vi,pi.isntArray=function(t){return!vi(t)},pi.isEmptyArray=function(t){return 0===t.length},pi.isntEmptyArray=function(t){return 0!==t.length};var mi={},bi={};function gi(t){return null===t}bi.isntNull=bi.isNull=void 0,bi.isNull=gi,bi.isntNull=function(t){return!gi(t)};var wi={};function Si(t){return void 0===t}wi.isntUndefined=wi.isUndefined=void 0,wi.isUndefined=Si,wi.isntUndefined=function(t){return!Si(t)},mi.isntAsyncIterable=mi.isAsyncIterable=void 0;const Ai=bi,Ti=wi;function xi(t){return(0,Ai.isntNull)(t)&&(0,Ti.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}mi.isAsyncIterable=xi,mi.isntAsyncIterable=function(t){return!xi(t)};var Ei={};function Ii(t){return"bigint"==typeof t}Ei.isntBigInt=Ei.isBigInt=void 0,Ei.isBigInt=Ii,Ei.isntBigInt=function(t){return!Ii(t)};var Oi={};function _i(t){return"boolean"==typeof t}Oi.isntBoolean=Oi.isBoolean=void 0,Oi.isBoolean=_i,Oi.isntBoolean=function(t){return!_i(t)};var ji={},Mi={};function Bi(t){return"string"==typeof t}Mi.isntString=Mi.isString=void 0,Mi.isString=Bi,Mi.isntString=function(t){return!Bi(t)},ji.isntChar=ji.isChar=void 0;const ki=Mi;function Ri(t){return(0,ki.isString)(t)&&1===t.length}ji.isChar=Ri,ji.isntChar=function(t){return!Ri(t)};var Ni={};function Ci(t){return t instanceof Date}Ni.isntDate=Ni.isDate=void 0,Ni.isDate=Ci,Ni.isntDate=function(t){return!Ci(t)};var Pi={};Pi.inEnum=void 0,Pi.inEnum=function(t,e){return Object.values(e).includes(t)};var Ji={};function Ui(t){return t instanceof Error}Ji.isntError=Ji.isError=void 0,Ji.isError=Ui,Ji.isntError=function(t){return!Ui(t)};var qi={};function Di(t){return!t}qi.isntFalsy=qi.isFalsy=void 0,qi.isFalsy=Di,qi.isntFalsy=function(t){return!Di(t)};var zi={};function Fi(t){return"function"==typeof t}zi.isntFunction=zi.isFunction=void 0,zi.isFunction=Fi,zi.isntFunction=function(t){return!Fi(t)};var Wi={};Wi.isntIterable=Wi.isIterable=void 0;const Li=bi,Hi=wi;function Ki(t){return(0,Li.isntNull)(t)&&(0,Hi.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Wi.isIterable=Ki,Wi.isntIterable=function(t){return!Ki(t)};var Vi={},Yi={};var $i=Function.prototype,Qi=Object.prototype,Gi=$i.toString,Xi=Qi.hasOwnProperty,Zi=Gi.call(Object),to=Qi.toString,eo=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var no=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=to.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=eo(t);if(null===e)return!0;var n=Xi.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Gi.call(n)==Zi},ro=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Yi.isntEmptyObject=Yi.isEmptyObject=Yi.isntPlainObject=Yi.isPlainObject=Yi.isntObject=Yi.isObject=void 0;const io=ro(no);function oo(t){return null!==t&&"object"==typeof t}function so(t){return(0,io.default)(t)}Yi.isObject=oo,Yi.isntObject=function(t){return!oo(t)},Yi.isPlainObject=so,Yi.isntPlainObject=function(t){return!so(t)},Yi.isEmptyObject=function(t){return 0===Object.keys(t).length},Yi.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var ao={};function co(t){return"number"==typeof t}ao.isntNumber=ao.isNumber=void 0,ao.isNumber=co,ao.isntNumber=function(t){return!co(t)},Vi.isntJsonRpcError=Vi.isJsonRpcError=Vi.isntJsonRpcSuccess=Vi.isJsonRpcSuccess=Vi.isntJsonRpcRequest=Vi.isJsonRpcRequest=Vi.isntJsonRpcNotification=Vi.isJsonRpcNotification=void 0;const uo=pi,fo=Yi,lo=Mi,ho=ao,yo=wi;function po(t){return(0,lo.isString)(t)||(0,ho.isNumber)(t)}function vo(t){return(0,uo.isArray)(t)||(0,fo.isObject)(t)}function mo(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&(0,lo.isString)(t.method)&&(0,yo.isUndefined)(t.id)&&vo(t.params)}function bo(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&(0,lo.isString)(t.method)&&po(t.id)&&vo(t.params)}function go(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&(0,lo.isString)(t.id)&&"result"in t}function wo(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&po(t.id)&&function(t){return(0,fo.isPlainObject)(t)&&(0,ho.isNumber)(t.code)&&(0,lo.isString)(t.message)&&((0,yo.isUndefined)(t.data)||(0,fo.isObject)(t.data))}(t.error)}Vi.isJsonRpcNotification=mo,Vi.isntJsonRpcNotification=function(t){return!mo(t)},Vi.isJsonRpcRequest=bo,Vi.isntJsonRpcRequest=function(t){return!bo(t)},Vi.isJsonRpcSuccess=go,Vi.isntJsonRpcSuccess=function(t){return!go(t)},Vi.isJsonRpcError=wo,Vi.isntJsonRpcError=function(t){return!wo(t)};var So={};So.isntJson=So.isJson=void 0,So.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},So.isntJson=function t(e){return!t()};var Ao={};Ao.isAbsoluteURL=void 0,Ao.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(pi,t),n(mi,t),n(Ei,t),n(Oi,t),n(ji,t),n(Ni,t),n(Pi,t),n(Ji,t),n(qi,t),n(zi,t),n(Wi,t),n(Vi,t),n(So,t),n(bi,t),n(ao,t),n(Yi,t),n(Mi,t),n(wi,t),n(Ao,t)}(yi);t.BadEventError=Dr,t.Box=class{constructor(t){e.set(this,void 0),d(this,e,t,"f")}set(t){d(this,e,t,"f")}get(){return l(this,e,"f")}},t.Emitter=h,t.ExpirableMap=Cr,t.FiniteStateMachine=qr,t.HashMap=y,t.HashSet=p,t.LRUMap=fr,t.ObservableFiniteStateMachine=class extends qr{constructor(){super(...arguments),this.stateChanges=new di}observeStateChanges(){return this.stateChanges}send(t){const e=this.state;super.send(t);const n=this.state;this.stateChanges.next({event:t,oldState:e,newState:n}),yi.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=v,t.TLRUMap=Pr,t.TrieMap=Ur,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return null===n?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map

@@ -15,17 +15,3 @@ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Structures={})}(this,(function(t){"use strict";

PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */function e(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function n(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}var r,i,o,s,a;r=new WeakMap;class c{constructor(){i.set(this,new Map)}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(t,n){e(this,i,"f").has(t)||e(this,i,"f").set(t,new Set);e(this,i,"f").get(t).add(n)}off(t,n){if(!e(this,i,"f").has(t))return;const r=e(this,i,"f").get(t);r.delete(n),0===r.size&&e(this,i,"f").delete(t)}emit(t,n){if(!e(this,i,"f").has(t))return;e(this,i,"f").get(t).forEach((t=>t(n)))}}class u{constructor(t){this.hash=t,o.set(this,new Map)}get[(o=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,o,"f").size}set(t,n){return e(this,o,"f").set(this.hash(t),n),this}has(t){return e(this,o,"f").has(this.hash(t))}get(t){return e(this,o,"f").get(this.hash(t))}delete(t){return e(this,o,"f").delete(this.hash(t))}clear(){e(this,o,"f").clear()}}class f{constructor(t){this.hash=t,s.set(this,new Map)}get[(s=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,s,"f").size}[Symbol.iterator](){return e(this,s,"f").values()}add(t){return e(this,s,"f").set(this.hash(t),t),this}delete(t){return e(this,s,"f").delete(this.hash(t))}has(t){return e(this,s,"f").has(this.hash(t))}clear(){e(this,s,"f").clear()}values(){return e(this,s,"f").values()}}class l{constructor(){a.set(this,[])}get[(a=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,a,"f").length}empty(){e(this,a,"f").length=0}enqueue(...t){e(this,a,"f").push(...t)}dequeue(){return e(this,a,"f").shift()}remove(t){let n;for(;(n=e(this,a,"f").indexOf(t))>=0;)e(this,a,"f").splice(n,1)}}var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},y={CustomError:void 0};class p extends Error{get name(){return this.constructor.name}}y.CustomError=p;var v={ExpectedError:void 0};const m=y;class b extends m.CustomError{}v.ExpectedError=b;var g={AssertionError:void 0};const w=y;class S extends w.CustomError{}g.AssertionError=S;var T={};T.normalize=void 0,T.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var A={refute:void 0};const E=v;A.refute=function(t,e){if(t)throw new E.ExpectedError(e)};var x={assert:void 0};const I=g;x.assert=function(t,e){if(!t)throw new I.AssertionError(e)},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(y,t),n(v,t),n(g,t),n(T,t),n(A,t),n(x,t)}(h);var _={},M={},O={},B={},j={};j.go=void 0,j.go=function(t){return t()},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(j,t)}(B),O.chunkAsync=void 0;const R=B,k=h;O.chunkAsync=function(t,e){return(0,k.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,k.assert)(e>0,"The parameter size must be greater than 0"),(0,R.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var N={},C={},J={};function U(t){return Array.isArray(t)}J.isntEmptyArray=J.isEmptyArray=J.isntArray=J.isArray=void 0,J.isArray=U,J.isntArray=function(t){return!U(t)},J.isEmptyArray=function(t){return 0===t.length},J.isntEmptyArray=function(t){return 0!==t.length};var P={},q={};function D(t){return null===t}q.isntNull=q.isNull=void 0,q.isNull=D,q.isntNull=function(t){return!D(t)};var z={};function F(t){return void 0===t}z.isntUndefined=z.isUndefined=void 0,z.isUndefined=F,z.isntUndefined=function(t){return!F(t)},P.isntAsyncIterable=P.isAsyncIterable=void 0;const W=q,L=z;function H(t){return(0,W.isntNull)(t)&&(0,L.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}P.isAsyncIterable=H,P.isntAsyncIterable=function(t){return!H(t)};var K={};function V(t){return"bigint"==typeof t}K.isntBigInt=K.isBigInt=void 0,K.isBigInt=V,K.isntBigInt=function(t){return!V(t)};var Y={};function $(t){return"boolean"==typeof t}Y.isntBoolean=Y.isBoolean=void 0,Y.isBoolean=$,Y.isntBoolean=function(t){return!$(t)};var Q={},G={};function X(t){return"string"==typeof t}G.isntString=G.isString=void 0,G.isString=X,G.isntString=function(t){return!X(t)},Q.isntChar=Q.isChar=void 0;const Z=G;function tt(t){return(0,Z.isString)(t)&&1===t.length}Q.isChar=tt,Q.isntChar=function(t){return!tt(t)};var et={};function nt(t){return t instanceof Date}et.isntDate=et.isDate=void 0,et.isDate=nt,et.isntDate=function(t){return!nt(t)};var rt={};rt.inEnum=void 0,rt.inEnum=function(t,e){return Object.values(e).includes(t)};var it={};function ot(t){return t instanceof Error}it.isntError=it.isError=void 0,it.isError=ot,it.isntError=function(t){return!ot(t)};var st={};function at(t){return!t}st.isntFalsy=st.isFalsy=void 0,st.isFalsy=at,st.isntFalsy=function(t){return!at(t)};var ct={};function ut(t){return"function"==typeof t}ct.isntFunction=ct.isFunction=void 0,ct.isFunction=ut,ct.isntFunction=function(t){return!ut(t)};var ft={};ft.isntIterable=ft.isIterable=void 0;const lt=q,dt=z;function ht(t){return(0,lt.isntNull)(t)&&(0,dt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}ft.isIterable=ht,ft.isntIterable=function(t){return!ht(t)};var yt={},pt={};function vt(t){return null!==t&&"object"==typeof t}pt.isntEmptyObject=pt.isEmptyObject=pt.isRecord=pt.isntObject=pt.isObject=void 0,pt.isObject=vt,pt.isntObject=function(t){return!vt(t)},pt.isRecord=function(t){return vt(t)},pt.isEmptyObject=function(t){return 0===Object.keys(t).length},pt.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var mt={};function bt(t){return"number"==typeof t}mt.isntNumber=mt.isNumber=void 0,mt.isNumber=bt,mt.isntNumber=function(t){return!bt(t)},yt.isntJsonRpcError=yt.isJsonRpcError=yt.isntJsonRpcSuccess=yt.isJsonRpcSuccess=yt.isntJsonRpcRequest=yt.isJsonRpcRequest=yt.isntJsonRpcNotification=yt.isJsonRpcNotification=void 0;const gt=J,wt=pt,St=G,Tt=mt,At=z;function Et(t){return(0,St.isString)(t)||(0,Tt.isNumber)(t)}function xt(t){return(0,gt.isArray)(t)||(0,wt.isObject)(t)}function It(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&(0,St.isString)(t.method)&&(0,At.isUndefined)(t.id)&&xt(t.params)}function _t(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&(0,St.isString)(t.method)&&Et(t.id)&&xt(t.params)}function Mt(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&(0,St.isString)(t.id)&&(0,At.isntUndefined)(t.result)}function Ot(t){return(0,wt.isRecord)(t)&&(0,St.isString)(t.jsonrpc)&&Et(t.id)&&function(t){return(0,wt.isRecord)(t)&&(0,Tt.isNumber)(t.code)&&(0,St.isString)(t.message)&&((0,At.isUndefined)(t.data)||(0,wt.isObject)(t.data))}(t.error)}yt.isJsonRpcNotification=It,yt.isntJsonRpcNotification=function(t){return!It(t)},yt.isJsonRpcRequest=_t,yt.isntJsonRpcRequest=function(t){return!_t(t)},yt.isJsonRpcSuccess=Mt,yt.isntJsonRpcSuccess=function(t){return!Mt(t)},yt.isJsonRpcError=Ot,yt.isntJsonRpcError=function(t){return!Ot(t)};var Bt={};Bt.isntJson=Bt.isJson=void 0,Bt.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Bt.isntJson=function t(e){return!t()};var jt={};jt.isAbsoluteURL=void 0,jt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(J,t),n(P,t),n(K,t),n(Y,t),n(Q,t),n(et,t),n(rt,t),n(it,t),n(st,t),n(ct,t),n(ft,t),n(yt,t),n(Bt,t),n(q,t),n(mt,t),n(pt,t),n(G,t),n(z,t),n(jt,t)}(C),N.chunkByAsync=void 0;const Rt=C;N.chunkByAsync=function(t,e){return(0,Rt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var kt={};kt.chunkBy=void 0,kt.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var Nt={chunk:void 0};const Ct=B,Jt=h;Nt.chunk=function(t,e){return(0,Jt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Jt.assert)(e>0,"The parameter size must be greater than 0"),(0,Ct.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ut={concatAsync:void 0};const Pt=C,qt=B;Ut.concatAsync=function(t,...e){return(0,qt.go)((async function*(){for(const n of[t,...e])if((0,Pt.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Dt={concat:void 0};const zt=B;Dt.concat=function(t,...e){return(0,zt.go)((function*(){for(const n of[t,...e])yield*n}))};var Ft={},Wt={};Wt.copyIterable=Wt.copyAsyncIterable=void 0,Wt.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Wt.copyIterable=function*(t){for(const e of t)yield e},Ft.dropAsync=void 0;const Lt=B,Ht=Wt,Kt=h;Ft.dropAsync=function(t,e){return(0,Kt.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Kt.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ht.copyAsyncIterable)(t):(0,Lt.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Vt={dropRightAsync:void 0};const Yt=B,$t=Wt,Qt=h;Vt.dropRightAsync=function(t,e){return(0,Qt.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Qt.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,$t.copyAsyncIterable)(t):(0,Yt.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var Gt={dropRight:void 0};const Xt=B,Zt=Wt,te=h;Gt.dropRight=function(t,e){return(0,te.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,te.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Zt.copyIterable)(t):(0,Xt.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var ee={dropUntilAsync:void 0};const ne=C;ee.dropUntilAsync=function(t,e){return(0,ne.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var re={};re.dropUntil=void 0,re.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var ie={drop:void 0};const oe=B,se=Wt,ae=h;ie.drop=function(t,e){return(0,ae.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ae.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,se.copyIterable)(t):(0,oe.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var ce={filterAsync:void 0};const ue=C;ce.filterAsync=function(t,e){return(0,ue.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var fe={};fe.filter=void 0,fe.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var le={},de={},he={flattenByAsync:void 0};const ye=C;function pe(t){return(0,ye.isIterable)(t)&&(0,ye.isntChar)(t)}he.flattenByAsync=function(t,e){return(0,ye.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)pe(i)&&await e(i,r)?yield*n(i,r+1):yield i}},de.flattenDeepAsync=void 0;const ve=he,me=h;de.flattenDeepAsync=function(t,e=1/0){return(0,me.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,me.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ve.flattenByAsync)(t,((t,n)=>n<=e))},le.flattenAsync=void 0;const be=de;le.flattenAsync=function(t){return(0,be.flattenDeepAsync)(t,1)};var ge={flattenBy:void 0};const we=C;ge.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,we.isIterable)(i=o)&&(0,we.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Se={flattenDeep:void 0};const Te=ge,Ae=h;Se.flattenDeep=function(t,e=1/0){return(0,Ae.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Ae.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Te.flattenBy)(t,((t,n)=>n<=e))};var Ee={flatten:void 0};const xe=Se;Ee.flatten=function(t){return(0,xe.flattenDeep)(t,1)};var Ie={mapAsync:void 0};const _e=C;Ie.mapAsync=function(t,e){return(0,_e.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var Me={};Me.map=void 0,Me.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Oe={repeatAsync:void 0};const Be=B,je=h;Oe.repeatAsync=function(t,e){return(0,je.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,je.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Be.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Re={repeat:void 0};const ke=B,Ne=h;Re.repeat=function(t,e){return(0,Ne.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Ne.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,ke.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Ce={sliceAsync:void 0};const Je=B,Ue=h;Ce.sliceAsync=function(t,e,n=1/0){return(0,Ue.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Ue.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Ue.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Ue.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Je.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var Pe={slice:void 0};const qe=B,De=h;Pe.slice=function(t,e,n=1/0){return(0,De.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,De.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,De.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,De.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,qe.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var ze={};ze.splitAsync=void 0,ze.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Fe={splitByAsync:void 0};const We=C;Fe.splitByAsync=function(t,e){return(0,We.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var Le={};Le.splitBy=void 0,Le.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var He={};He.split=void 0,He.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ke={takeAsync:void 0};const Ve=B,Ye=h;Ke.takeAsync=function(t,e){return(0,Ye.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ye.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ve.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var $e={takeRightAsync:void 0};const Qe=B,Ge=h;$e.takeRightAsync=function(t,e){return(0,Ge.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ge.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Qe.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Xe={takeRight:void 0};const Ze=B,tn=h;Xe.takeRight=function(t,e){return(0,tn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,tn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ze.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var en={takeUntilAsync:void 0};const nn=C;en.takeUntilAsync=function(t,e){return(0,nn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var rn={};rn.takeUntil=void 0,rn.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var on={take:void 0};const sn=B,an=h;on.take=function(t,e){return(0,an.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,an.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,sn.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var cn={tapAsync:void 0};const un=C;cn.tapAsync=function(t,e){return(0,un.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var fn={};fn.tap=void 0,fn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var ln={};ln.toAsyncIterable=void 0,ln.toAsyncIterable=async function*(t){for(const e of t)yield e};var dn={};dn.transformAsync=void 0,dn.transformAsync=async function*(t,e){yield*e(t)};var hn={};hn.transform=void 0,hn.transform=function*(t,e){yield*e(t)};var yn={};yn.uniqAsync=void 0,yn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var pn={uniqByAsync:void 0};const vn=C;pn.uniqByAsync=function(t,e){return(0,vn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var mn={};mn.uniqBy=void 0,mn.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var bn={};bn.uniq=void 0,bn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var gn={zipAsync:void 0};const wn=C;var Sn;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Sn||(Sn={})),gn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,s=t.map((t=>(0,wn.isAsyncIterable)(t)?[Sn.Async,t[Symbol.asyncIterator]()]:[Sn.Sync,t[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=s[e];let i;if(i=n===Sn.Async?await r.next():r.next(),i.done)return void(a[e]=!0);t[e]=i.value}yield t}}finally{const t=s.filter(((t,e)=>!a[e]));for(const[o,s]of t)o===Sn.Async?await(null===(n=(e=s).return)||void 0===n?void 0:n.call(e)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(t,...e)};var Tn={};Tn.zip=void 0,Tn.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(O,t),n(N,t),n(kt,t),n(Nt,t),n(Ut,t),n(Dt,t),n(Ft,t),n(Vt,t),n(Gt,t),n(ee,t),n(re,t),n(ie,t),n(ce,t),n(fe,t),n(le,t),n(he,t),n(ge,t),n(de,t),n(Se,t),n(Ee,t),n(Ie,t),n(Me,t),n(Oe,t),n(Re,t),n(Ce,t),n(Pe,t),n(ze,t),n(Fe,t),n(Le,t),n(He,t),n(Ke,t),n($e,t),n(Xe,t),n(en,t),n(rn,t),n(on,t),n(cn,t),n(fn,t),n(ln,t),n(dn,t),n(hn,t),n(yn,t),n(pn,t),n(mn,t),n(bn,t),n(gn,t),n(Tn,t)}(M);var An={},En={};En.consume=void 0,En.consume=function(t,e){return e(t)};var xn={eachAsync:void 0};const In=C;xn.eachAsync=function(t,e){return(0,In.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var _n={};_n.each=void 0,_n.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Mn={everyAsync:void 0};const On=C;Mn.everyAsync=function(t,e){return(0,On.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var Bn={};Bn.every=void 0,Bn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var jn={findAsync:void 0};const Rn=C;jn.findAsync=function(t,e){return(0,Rn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var kn={};kn.find=void 0,kn.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Nn={};Nn.firstAsync=void 0,Nn.firstAsync=async function(t){for await(const e of t)return e};var Cn={};Cn.first=void 0,Cn.first=function(t){for(const e of t)return e};var Jn={};Jn.includesAsync=void 0,Jn.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Un={};Un.includes=void 0,Un.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Pn={};Pn.matchAsync=void 0,Pn.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var qn={};qn.match=void 0,qn.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var Dn={reduceAsync:void 0};const zn=C;Dn.reduceAsync=function(t,e,n){return(0,zn.isUndefined)(n)?function(t,e){return(0,zn.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,s=await o(r),a=1;for(;({value:t,done:i}=await r.next()),!i;)s=await e(s,t,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=await e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,zn.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var Fn={reduce:void 0};const Wn=C;Fn.reduce=function(t,e,n){return(0,Wn.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var Ln={someAsync:void 0};const Hn=C;Ln.someAsync=function(t,e){return(0,Hn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var Kn={};Kn.some=void 0,Kn.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Vn={};Vn.lastAsync=void 0,Vn.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Yn={};Yn.last=void 0,Yn.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var $n={toArrayAsync:void 0};const Qn=En;$n.toArrayAsync=function(t){return(0,Qn.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Gn={toArray:void 0};const Xn=En;Gn.toArray=function(t){return(0,Xn.consume)(t,(t=>Array.from(t)))};var Zn={toSetAsync:void 0};const tr=En;Zn.toSetAsync=function(t){return(0,tr.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var er={toSet:void 0};const nr=En;var rr,ir;er.toSet=function(t){return(0,nr.consume)(t,(t=>new Set(t)))},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(En,t),n(xn,t),n(_n,t),n(Mn,t),n(Bn,t),n(jn,t),n(kn,t),n(Nn,t),n(Cn,t),n(Jn,t),n(Un,t),n(Pn,t),n(qn,t),n(Dn,t),n(Fn,t),n(Ln,t),n(Kn,t),n(Vn,t),n(Yn,t),n($n,t),n(Gn,t),n(Zn,t),n(er,t)}(An),function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(M,t),n(An,t)}(_);class or{constructor(t){rr.set(this,void 0),ir.set(this,new Map),h.assert(Number.isInteger(t),"The parameter limit must be an integer"),h.assert(t>0,"The parameter limit must be a positive value"),n(this,rr,t,"f")}get[(rr=new WeakMap,ir=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,ir,"f").size}set(t,n){return e(this,ir,"f").has(t)?this.updateItem(t,n):(e(this,ir,"f").size===e(this,rr,"f")&&e(this,ir,"f").delete(this.getColdestKey()),e(this,ir,"f").set(t,n)),this}has(t){return e(this,ir,"f").has(t)}get(t){if(!this.has(t))return;const n=e(this,ir,"f").get(t);return this.updateItem(t,n),n}delete(t){return e(this,ir,"f").delete(t)}clear(){e(this,ir,"f").clear()}updateItem(t,n){e(this,ir,"f").delete(t),e(this,ir,"f").set(t,n)}getColdestKey(){return _.first(e(this,ir,"f").keys())}}var sr={},ar={},cr={},ur={};ur.random=void 0,ur.random=function(t,e){return Math.random()*(e-t)+t};var fr={};fr.randomInt=void 0,fr.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var lr={};lr.randomIntInclusive=void 0,lr.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(ur,t),n(fr,t),n(lr,t)}(cr),ar.calculateExponentialBackoffTimeout=void 0;const dr=cr;ar.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**e*t,n);return i?(0,dr.randomIntInclusive)(0,o):o};var hr={};hr.setTimeout=void 0,hr.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var yr={setSchedule:void 0};const pr=hr;yr.setSchedule=function(t,e){const n=t-Date.now();return(0,pr.setTimeout)(n,e)};var vr={};vr.setInterval=void 0,vr.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var mr={setImmediate:void 0};const br=hr;mr.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,br.setTimeout)(0,t)};var gr={setTimeoutLoop:void 0};const wr=hr;gr.setTimeoutLoop=function(t,e){let n=!1,r=(0,wr.setTimeout)(t,(async function i(){await e(),n||(r=(0,wr.setTimeout)(t,i))}));return()=>{n=!0,r()}};var Sr={setDynamicTimeoutLoop:void 0};const Tr=hr;var Ar,Er,xr,Ir,_r,Mr,Or;Sr.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,Tr.setTimeout)(t,(async function i(){const o=Date.now();await e();const s=Date.now()-o;n||(r=(0,Tr.setTimeout)(Math.max(t-s,0),i))}));return()=>{n=!0,r()}},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(ar,t),n(hr,t),n(yr,t),n(vr,t),n(mr,t),n(gr,t),n(Sr,t)}(sr);class Br{constructor(){Ar.set(this,new Map),Er.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(Ar=new WeakMap,Er=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,Ar,"f").size}set(t,n,r){return e(this,Ar,"f").set(t,n),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+r),this}has(t){return e(this,Ar,"f").has(t)}get(t){return e(this,Ar,"f").get(t)}delete(t){const n=e(this,Ar,"f").delete(t);if(n){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return n}clear(){var t;e(this,Ar,"f").clear(),null===(t=e(this,Er,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const n=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(n>=0?this.itemMetadataSortedByExpirationTime.splice(0,n):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>e(this,Ar,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=e(this,Er,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=sr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));n(this,Er,(()=>{e(),n(this,Er,void 0,"f")}),"f")}}}}class jr{constructor(t){xr.set(this,void 0),Ir.set(this,new Map),_r.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],h.assert(Number.isInteger(t),"The parameter limit must be an integer"),h.assert(t>0,"The parameter limit must be a positive value"),n(this,xr,t,"f")}get[(xr=new WeakMap,Ir=new WeakMap,_r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return e(this,Ir,"f").size}set(t,n,r){return e(this,Ir,"f").has(t)?(this.updateItem(t,n),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+r)):(e(this,Ir,"f").size===e(this,xr,"f")&&e(this,Ir,"f").delete(this.getColdestKey()),e(this,Ir,"f").set(t,n),this.addItemMetadata(t,Date.now()+r)),this}has(t){return e(this,Ir,"f").has(t)}get(t){if(this.has(t)){const n=e(this,Ir,"f").get(t);return this.updateItem(t,n),n}}delete(t){const n=e(this,Ir,"f").delete(t);if(n){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return n}clear(){var t;e(this,Ir,"f").clear(),null===(t=e(this,_r,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,n){e(this,Ir,"f").delete(t),e(this,Ir,"f").set(t,n)}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const n=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(n>=0?this.itemMetadataSortedByExpirationTime.splice(0,n):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>e(this,Ir,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=e(this,_r,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=sr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));n(this,_r,(()=>{e(),n(this,_r,void 0,"f")}),"f")}}}getColdestKey(){return _.first(e(this,Ir,"f").keys())}}class Rr{constructor(t){this.value=t,this.children=new Map}}class kr{constructor(){Mr.set(this,new Rr)}get[(Mr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(t,n){let r=e(this,Mr,"f");for(const e of t)r.children.has(e)||r.children.set(e,new Rr),r=r.children.get(e);return r.value=n,this}has(t){let n=e(this,Mr,"f");for(const e of t){if(!n.children.has(e))return!1;n=n.children.get(e)}return void 0!==n.value}get(t){let n=e(this,Mr,"f");for(const e of t){if(!n.children.has(e))return;n=n.children.get(e)}return n.value}delete(t){const n=[];let r=e(this,Mr,"f");for(const e of t){if(!r.children.has(e))return!1;n.push(r),r=r.children.get(e)}if(delete r.value,0===r.children.size)for(const[e,r]of _.toArray(_.zip(t,n)).reverse())if(r.children.delete(e),0!==r.children.size)break;return!0}}class Nr{constructor(t,e){this.schema=t,Or.set(this,void 0),n(this,Or,e,"f")}get state(){return e(this,Or,"f")}matches(t){return e(this,Or,"f")===t}send(t){if(!(t in this.schema[this.state]))throw new Cr(this.state,t);n(this,Or,this.schema[this.state][t],"f")}}Or=new WeakMap;class Cr extends h.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Jr=function(t,e){return(Jr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Ur(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}Jr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Pr(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function qr(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Dr(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t}function zr(t){return"function"==typeof t}function Fr(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Wr=Fr((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Lr(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Hr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Pr(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(zr(c))try{c()}catch(t){i=t instanceof Wr?t.errors:[t]}var u=this._teardowns;if(u){this._teardowns=null;try{for(var f=Pr(u),l=f.next();!l.done;l=f.next()){var d=l.value;try{Yr(d)}catch(t){i=null!=i?i:[],t instanceof Wr?i=Dr(Dr([],qr(i)),qr(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{l&&!l.done&&(r=f.return)&&r.call(f)}finally{if(n)throw n.error}}}if(i)throw new Wr(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Yr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Lr(e,t)},t.prototype.remove=function(e){var n=this._teardowns;n&&Lr(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Kr=Hr.EMPTY;function Vr(t){return t instanceof Hr||t&&"closed"in t&&zr(t.remove)&&zr(t.add)&&zr(t.unsubscribe)}function Yr(t){zr(t)?t():t.unsubscribe()}var $r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qr={setTimeout:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qr.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,Dr([],qr(t)))},clearTimeout:function(t){var e=Qr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Gr(t){Qr.setTimeout((function(){throw t}))}function Xr(){}var Zr=null;function ti(t){if($r.useDeprecatedSynchronousErrorHandling){var e=!Zr;if(e&&(Zr={errorThrown:!1,error:null}),t(),e){var n=Zr,r=n.errorThrown,i=n.error;if(Zr=null,r)throw i}}else t()}var ei=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Vr(e)&&e.add(n)):n.destination=oi,n}return Ur(e,t),e.create=function(t,e,n){return new ni(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Hr),ni=function(t){function e(e,n,r){var i,o=t.call(this)||this;if(zr(e))i=e;else if(e){var s;i=e.next,n=e.error,r=e.complete,o&&$r.useDeprecatedNextContext?(s=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:s=e,i=null==i?void 0:i.bind(s),n=null==n?void 0:n.bind(s),r=null==r?void 0:r.bind(s)}return o.destination={next:i?ri(i):Xr,error:ri(null!=n?n:ii),complete:r?ri(r):Xr},o}return Ur(e,t),e}(ei);function ri(t,e){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{t.apply(void 0,Dr([],qr(e)))}catch(t){Gr(t)}}}function ii(t){throw t}var oi={closed:!0,next:Xr,error:ii,complete:Xr},si="function"==typeof Symbol&&Symbol.observable||"@@observable";function ai(t){return t}function ci(t){return 0===t.length?ai:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var ui=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof ei||function(t){return t&&zr(t.next)&&zr(t.error)&&zr(t.complete)}(r)&&Vr(r)?t:new ni(t,e,n);return ti((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=fi(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),null==i||i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[si]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ci(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=fi(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function fi(t){var e;return null!==(e=null!=t?t:$r.Promise)&&void 0!==e?e:Promise}var li=Fr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),di=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Ur(e,t),e.prototype.lift=function(t){var e=new hi(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new li},e.prototype.next=function(t){var e=this;ti((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){var i=e.observers.slice();try{for(var o=Pr(i),s=o.next();!s.done;s=o.next()){s.value.next(t)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;ti((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;ti((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=e.hasError,r=e.isStopped,i=e.observers;return n||r?Kr:(i.push(t),new Hr((function(){return Lr(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new ui;return t.source=this,t},e.create=function(t,e){return new hi(t,e)},e}(ui),hi=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Ur(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:Kr},e}(di),yi={},pi={};function vi(t){return Array.isArray(t)}pi.isntEmptyArray=pi.isEmptyArray=pi.isntArray=pi.isArray=void 0,pi.isArray=vi,pi.isntArray=function(t){return!vi(t)},pi.isEmptyArray=function(t){return 0===t.length},pi.isntEmptyArray=function(t){return 0!==t.length};var mi={},bi={};function gi(t){return null===t}bi.isntNull=bi.isNull=void 0,bi.isNull=gi,bi.isntNull=function(t){return!gi(t)};var wi={};function Si(t){return void 0===t}wi.isntUndefined=wi.isUndefined=void 0,wi.isUndefined=Si,wi.isntUndefined=function(t){return!Si(t)},mi.isntAsyncIterable=mi.isAsyncIterable=void 0;const Ti=bi,Ai=wi;function Ei(t){return(0,Ti.isntNull)(t)&&(0,Ai.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}mi.isAsyncIterable=Ei,mi.isntAsyncIterable=function(t){return!Ei(t)};var xi={};function Ii(t){return"bigint"==typeof t}xi.isntBigInt=xi.isBigInt=void 0,xi.isBigInt=Ii,xi.isntBigInt=function(t){return!Ii(t)};var _i={};function Mi(t){return"boolean"==typeof t}_i.isntBoolean=_i.isBoolean=void 0,_i.isBoolean=Mi,_i.isntBoolean=function(t){return!Mi(t)};var Oi={},Bi={};function ji(t){return"string"==typeof t}Bi.isntString=Bi.isString=void 0,Bi.isString=ji,Bi.isntString=function(t){return!ji(t)},Oi.isntChar=Oi.isChar=void 0;const Ri=Bi;function ki(t){return(0,Ri.isString)(t)&&1===t.length}Oi.isChar=ki,Oi.isntChar=function(t){return!ki(t)};var Ni={};function Ci(t){return t instanceof Date}Ni.isntDate=Ni.isDate=void 0,Ni.isDate=Ci,Ni.isntDate=function(t){return!Ci(t)};var Ji={};Ji.inEnum=void 0,Ji.inEnum=function(t,e){return Object.values(e).includes(t)};var Ui={};function Pi(t){return t instanceof Error}Ui.isntError=Ui.isError=void 0,Ui.isError=Pi,Ui.isntError=function(t){return!Pi(t)};var qi={};function Di(t){return!t}qi.isntFalsy=qi.isFalsy=void 0,qi.isFalsy=Di,qi.isntFalsy=function(t){return!Di(t)};var zi={};function Fi(t){return"function"==typeof t}zi.isntFunction=zi.isFunction=void 0,zi.isFunction=Fi,zi.isntFunction=function(t){return!Fi(t)};var Wi={};Wi.isntIterable=Wi.isIterable=void 0;const Li=bi,Hi=wi;function Ki(t){return(0,Li.isntNull)(t)&&(0,Hi.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Wi.isIterable=Ki,Wi.isntIterable=function(t){return!Ki(t)};var Vi={},Yi={};function $i(t){return null!==t&&"object"==typeof t}Yi.isntEmptyObject=Yi.isEmptyObject=Yi.isRecord=Yi.isntObject=Yi.isObject=void 0,Yi.isObject=$i,Yi.isntObject=function(t){return!$i(t)},Yi.isRecord=function(t){return $i(t)},Yi.isEmptyObject=function(t){return 0===Object.keys(t).length},Yi.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var Qi={};function Gi(t){return"number"==typeof t}Qi.isntNumber=Qi.isNumber=void 0,Qi.isNumber=Gi,Qi.isntNumber=function(t){return!Gi(t)},Vi.isntJsonRpcError=Vi.isJsonRpcError=Vi.isntJsonRpcSuccess=Vi.isJsonRpcSuccess=Vi.isntJsonRpcRequest=Vi.isJsonRpcRequest=Vi.isntJsonRpcNotification=Vi.isJsonRpcNotification=void 0;const Xi=pi,Zi=Yi,to=Bi,eo=Qi,no=wi;function ro(t){return(0,to.isString)(t)||(0,eo.isNumber)(t)}function io(t){return(0,Xi.isArray)(t)||(0,Zi.isObject)(t)}function oo(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&(0,to.isString)(t.method)&&(0,no.isUndefined)(t.id)&&io(t.params)}function so(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&(0,to.isString)(t.method)&&ro(t.id)&&io(t.params)}function ao(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&(0,to.isString)(t.id)&&"result"in t}function co(t){return(0,Zi.isRecord)(t)&&(0,to.isString)(t.jsonrpc)&&ro(t.id)&&function(t){return(0,Zi.isRecord)(t)&&(0,eo.isNumber)(t.code)&&(0,to.isString)(t.message)&&((0,no.isUndefined)(t.data)||(0,Zi.isObject)(t.data))}(t.error)}Vi.isJsonRpcNotification=oo,Vi.isntJsonRpcNotification=function(t){return!oo(t)},Vi.isJsonRpcRequest=so,Vi.isntJsonRpcRequest=function(t){return!so(t)},Vi.isJsonRpcSuccess=ao,Vi.isntJsonRpcSuccess=function(t){return!ao(t)},Vi.isJsonRpcError=co,Vi.isntJsonRpcError=function(t){return!co(t)};var uo={};uo.isntJson=uo.isJson=void 0,uo.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},uo.isntJson=function t(e){return!t()};var fo={};fo.isAbsoluteURL=void 0,fo.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=d&&d.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=d&&d.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(pi,t),n(mi,t),n(xi,t),n(_i,t),n(Oi,t),n(Ni,t),n(Ji,t),n(Ui,t),n(qi,t),n(zi,t),n(Wi,t),n(Vi,t),n(uo,t),n(bi,t),n(Qi,t),n(Yi,t),n(Bi,t),n(wi,t),n(fo,t)}(yi);t.BadEventError=Cr,t.Box=class{constructor(t){r.set(this,void 0),n(this,r,t,"f")}set(t){n(this,r,t,"f")}get(){return e(this,r,"f")}},t.Emitter=c,t.ExpirableMap=Br,t.FiniteStateMachine=Nr,t.HashMap=u,t.HashSet=f,t.LRUMap=or,t.ObservableFiniteStateMachine=class extends Nr{constructor(){super(...arguments),this.stateChanges=new di}observeStateChanges(){return this.stateChanges}send(t){const e=this.state;super.send(t);const n=this.state;this.stateChanges.next({event:t,oldState:e,newState:n}),yi.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=l,t.TLRUMap=jr,t.TrieMap=kr,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return null===n?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
***************************************************************************** */var e,n,r,i,o,s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function c(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function f(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}function l(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function d(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}e=new WeakMap;class h{constructor(){n.set(this,new Map)}get[(n=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}on(t,e){l(this,n,"f").has(t)||l(this,n,"f").set(t,new Set);l(this,n,"f").get(t).add(e)}off(t,e){if(!l(this,n,"f").has(t))return;const r=l(this,n,"f").get(t);r.delete(e),0===r.size&&l(this,n,"f").delete(t)}emit(t,e){if(!l(this,n,"f").has(t))return;l(this,n,"f").get(t).forEach((t=>t(e)))}}class y{constructor(t){this.hash=t,r.set(this,new Map)}get[(r=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,r,"f").size}set(t,e){return l(this,r,"f").set(this.hash(t),e),this}has(t){return l(this,r,"f").has(this.hash(t))}get(t){return l(this,r,"f").get(this.hash(t))}delete(t){return l(this,r,"f").delete(this.hash(t))}clear(){l(this,r,"f").clear()}}class p{constructor(t){this.hash=t,i.set(this,new Map)}get[(i=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,i,"f").size}[Symbol.iterator](){return l(this,i,"f").values()}add(t){return l(this,i,"f").set(this.hash(t),t),this}delete(t){return l(this,i,"f").delete(this.hash(t))}has(t){return l(this,i,"f").has(this.hash(t))}clear(){l(this,i,"f").clear()}values(){return l(this,i,"f").values()}}class v{constructor(){o.set(this,[])}get[(o=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,o,"f").length}empty(){l(this,o,"f").length=0}enqueue(...t){l(this,o,"f").push(...t)}dequeue(){return l(this,o,"f").shift()}remove(t){let e;for(;(e=l(this,o,"f").indexOf(t))>=0;)l(this,o,"f").splice(e,1)}}var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b={},g={CustomError:void 0};class w extends Error{get name(){return this.constructor.name}}g.CustomError=w;var S={ExpectedError:void 0};const A=g;class T extends A.CustomError{}S.ExpectedError=T;var x={AssertionError:void 0};const E=g;class I extends E.CustomError{}x.AssertionError=I;var O={};O.normalize=void 0,O.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var _={refute:void 0};const j=S;_.refute=function(t,e){if(t)throw new j.ExpectedError(e)};var M={assert:void 0};const B=x;M.assert=function(t,e){if(!t)throw new B.AssertionError(e)},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(g,t),n(S,t),n(x,t),n(O,t),n(_,t),n(M,t)}(b);var k={},R={},N={},C={},P={};P.go=void 0,P.go=function(t){return t()},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]});(m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(P,t)}(C),N.chunkAsync=void 0;const J=C,U=b;N.chunkAsync=function(t,e){return(0,U.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,U.assert)(e>0,"The parameter size must be greater than 0"),(0,J.go)((async function*(){let n=[];for await(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var q={},D={},z={};function F(t){return Array.isArray(t)}z.isntEmptyArray=z.isEmptyArray=z.isntArray=z.isArray=void 0,z.isArray=F,z.isntArray=function(t){return!F(t)},z.isEmptyArray=function(t){return 0===t.length},z.isntEmptyArray=function(t){return 0!==t.length};var W={},L={};function H(t){return null===t}L.isntNull=L.isNull=void 0,L.isNull=H,L.isntNull=function(t){return!H(t)};var K={};function V(t){return void 0===t}K.isntUndefined=K.isUndefined=void 0,K.isUndefined=V,K.isntUndefined=function(t){return!V(t)},W.isntAsyncIterable=W.isAsyncIterable=void 0;const Y=L,$=K;function Q(t){return(0,Y.isntNull)(t)&&(0,$.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}W.isAsyncIterable=Q,W.isntAsyncIterable=function(t){return!Q(t)};var G={};function X(t){return"bigint"==typeof t}G.isntBigInt=G.isBigInt=void 0,G.isBigInt=X,G.isntBigInt=function(t){return!X(t)};var Z={};function tt(t){return"boolean"==typeof t}Z.isntBoolean=Z.isBoolean=void 0,Z.isBoolean=tt,Z.isntBoolean=function(t){return!tt(t)};var et={},nt={};function rt(t){return"string"==typeof t}nt.isntString=nt.isString=void 0,nt.isString=rt,nt.isntString=function(t){return!rt(t)},et.isntChar=et.isChar=void 0;const it=nt;function ot(t){return(0,it.isString)(t)&&1===t.length}et.isChar=ot,et.isntChar=function(t){return!ot(t)};var st={};function at(t){return t instanceof Date}st.isntDate=st.isDate=void 0,st.isDate=at,st.isntDate=function(t){return!at(t)};var ct={};ct.inEnum=void 0,ct.inEnum=function(t,e){return Object.values(e).includes(t)};var ut={};function ft(t){return t instanceof Error}ut.isntError=ut.isError=void 0,ut.isError=ft,ut.isntError=function(t){return!ft(t)};var lt={};function dt(t){return!t}lt.isntFalsy=lt.isFalsy=void 0,lt.isFalsy=dt,lt.isntFalsy=function(t){return!dt(t)};var ht={};function yt(t){return"function"==typeof t}ht.isntFunction=ht.isFunction=void 0,ht.isFunction=yt,ht.isntFunction=function(t){return!yt(t)};var pt={};pt.isntIterable=pt.isIterable=void 0;const vt=L,mt=K;function bt(t){return(0,vt.isntNull)(t)&&(0,mt.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}pt.isIterable=bt,pt.isntIterable=function(t){return!bt(t)};var gt={},wt={};function St(t){return null!==t&&"object"==typeof t}wt.isntEmptyObject=wt.isEmptyObject=wt.isRecord=wt.isntObject=wt.isObject=void 0,wt.isObject=St,wt.isntObject=function(t){return!St(t)},wt.isRecord=function(t){return St(t)},wt.isEmptyObject=function(t){return 0===Object.keys(t).length},wt.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var At={};function Tt(t){return"number"==typeof t}At.isntNumber=At.isNumber=void 0,At.isNumber=Tt,At.isntNumber=function(t){return!Tt(t)},gt.isntJsonRpcError=gt.isJsonRpcError=gt.isntJsonRpcSuccess=gt.isJsonRpcSuccess=gt.isntJsonRpcRequest=gt.isJsonRpcRequest=gt.isntJsonRpcNotification=gt.isJsonRpcNotification=void 0;const xt=z,Et=wt,It=nt,Ot=At,_t=K;function jt(t){return(0,It.isString)(t)||(0,Ot.isNumber)(t)}function Mt(t){return(0,xt.isArray)(t)||(0,Et.isObject)(t)}function Bt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&(0,It.isString)(t.method)&&(0,_t.isUndefined)(t.id)&&Mt(t.params)}function kt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&(0,It.isString)(t.method)&&jt(t.id)&&Mt(t.params)}function Rt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&(0,It.isString)(t.id)&&(0,_t.isntUndefined)(t.result)}function Nt(t){return(0,Et.isRecord)(t)&&(0,It.isString)(t.jsonrpc)&&jt(t.id)&&function(t){return(0,Et.isRecord)(t)&&(0,Ot.isNumber)(t.code)&&(0,It.isString)(t.message)&&((0,_t.isUndefined)(t.data)||(0,Et.isObject)(t.data))}(t.error)}gt.isJsonRpcNotification=Bt,gt.isntJsonRpcNotification=function(t){return!Bt(t)},gt.isJsonRpcRequest=kt,gt.isntJsonRpcRequest=function(t){return!kt(t)},gt.isJsonRpcSuccess=Rt,gt.isntJsonRpcSuccess=function(t){return!Rt(t)},gt.isJsonRpcError=Nt,gt.isntJsonRpcError=function(t){return!Nt(t)};var Ct={};Ct.isntJson=Ct.isJson=void 0,Ct.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Ct.isntJson=function t(e){return!t()};var Pt={};Pt.isAbsoluteURL=void 0,Pt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(z,t),n(W,t),n(G,t),n(Z,t),n(et,t),n(st,t),n(ct,t),n(ut,t),n(lt,t),n(ht,t),n(pt,t),n(gt,t),n(Ct,t),n(L,t),n(At,t),n(wt,t),n(nt,t),n(K,t),n(Pt,t)}(D),q.chunkByAsync=void 0;const Jt=D;q.chunkByAsync=function(t,e){return(0,Jt.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const i of t)n.push(i),await e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var Ut={};Ut.chunkBy=void 0,Ut.chunkBy=function*(t,e){let n=[],r=0;for(const i of t)n.push(i),e(i,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var qt={chunk:void 0};const Dt=C,zt=b;qt.chunk=function(t,e){return(0,zt.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,zt.assert)(e>0,"The parameter size must be greater than 0"),(0,Dt.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ft={concatAsync:void 0};const Wt=D,Lt=C;Ft.concatAsync=function(t,...e){return(0,Lt.go)((async function*(){for(const n of[t,...e])if((0,Wt.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var Ht={concat:void 0};const Kt=C;Ht.concat=function(t,...e){return(0,Kt.go)((function*(){for(const n of[t,...e])yield*n}))};var Vt={},Yt={};Yt.copyIterable=Yt.copyAsyncIterable=void 0,Yt.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Yt.copyIterable=function*(t){for(const e of t)yield e},Vt.dropAsync=void 0;const $t=C,Qt=Yt,Gt=b;Vt.dropAsync=function(t,e){return(0,Gt.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Gt.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Qt.copyAsyncIterable)(t):(0,$t.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{let t;for(;!(({value:t,done:i}=await r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Xt={dropRightAsync:void 0};const Zt=C,te=Yt,ee=b;Xt.dropRightAsync=function(t,e){return(0,ee.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ee.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,te.copyAsyncIterable)(t):(0,Zt.go)((async function*(){const n=(await async function(t){const e=[];for await(const n of t)e.push(n);return e}(t)).slice(0,-e);for(const t of n)yield t}))};var ne={dropRight:void 0};const re=C,ie=Yt,oe=b;ne.dropRight=function(t,e){return(0,oe.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,oe.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ie.copyIterable)(t):(0,re.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var se={dropUntilAsync:void 0};const ae=D;se.dropUntilAsync=function(t,e){return(0,ae.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=await r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=await r.next())}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}(t):async function*(t){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||await e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var ce={};ce.dropUntil=void 0,ce.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,o=0;for(;!(({value:t,done:i}=r.next()),i||e(t,o++)););for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}};var ue={drop:void 0};const fe=C,le=Yt,de=b;ue.drop=function(t,e){return(0,de.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,de.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,le.copyIterable)(t):(0,fe.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{let t;for(;!(({value:t,done:i}=r.next()),i||e<=0);)e--;for(;!i;)yield t,({value:t,done:i}=r.next())}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var he={filterAsync:void 0};const ye=D;he.filterAsync=function(t,e){return(0,ye.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n)&&(yield r),n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n)&&(yield r),n++}(t)};var pe={};pe.filter=void 0,pe.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var ve={},me={},be={flattenByAsync:void 0};const ge=D;function we(t){return(0,ge.isIterable)(t)&&(0,ge.isntChar)(t)}be.flattenByAsync=function(t,e){return(0,ge.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)we(i)&&await e(i,r)?yield*n(i,r+1):yield i}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const i of t)we(i)&&await e(i,r)?yield*n(i,r+1):yield i}},me.flattenDeepAsync=void 0;const Se=be,Ae=b;me.flattenDeepAsync=function(t,e=1/0){return(0,Ae.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,Ae.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Se.flattenByAsync)(t,((t,n)=>n<=e))},ve.flattenAsync=void 0;const Te=me;ve.flattenAsync=function(t){return(0,Te.flattenDeepAsync)(t,1)};var xe={flattenBy:void 0};const Ee=D;xe.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,Ee.isIterable)(i=o)&&(0,Ee.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var Ie={flattenDeep:void 0};const Oe=xe,_e=b;Ie.flattenDeep=function(t,e=1/0){return(0,_e.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,_e.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,Oe.flattenBy)(t,((t,n)=>n<=e))};var je={flatten:void 0};const Me=Ie;je.flatten=function(t){return(0,Me.flattenDeep)(t,1)};var Be={mapAsync:void 0};const ke=D;Be.mapAsync=function(t,e){return(0,ke.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)yield await e(r,n),n++}(t):async function*(t){let n=0;for(const r of t)yield await e(r,n),n++}(t)};var Re={};Re.map=void 0,Re.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var Ne={repeatAsync:void 0};const Ce=C,Pe=b;Ne.repeatAsync=function(t,e){return(0,Pe.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Pe.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Ce.go)((async function*(){const n=[];if(e>0){for await(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var Je={repeat:void 0};const Ue=C,qe=b;Je.repeat=function(t,e){return(0,qe.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,qe.assert)(e>=0,"The parameter times must be greater than or equal to 0"),e===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,Ue.go)((function*(){const n=[];if(e>0){for(const e of t)yield e,n.push(e);e--}for(;e>0;)yield*n,e--}))};var De={sliceAsync:void 0};const ze=C,Fe=b;De.sliceAsync=function(t,e,n=1/0){return(0,Fe.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Fe.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Fe.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Fe.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,ze.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var We={slice:void 0};const Le=C,He=b;We.slice=function(t,e,n=1/0){return(0,He.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,He.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,He.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,He.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Le.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var Ke={};Ke.splitAsync=void 0,Ke.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ve={splitByAsync:void 0};const Ye=D;Ve.splitByAsync=function(t,e){return(0,Ye.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t):async function*(t){let n=[],r=0;for(const i of t)await e(i,r)?(yield n,n=[]):n.push(i),r++;yield n}(t)};var $e={};$e.splitBy=void 0,$e.splitBy=function*(t,e){let n=[],r=0;for(const i of t)e(i,r)?(yield n,n=[]):n.push(i),r++;yield n};var Qe={};Qe.split=void 0,Qe.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ge={takeAsync:void 0};const Xe=C,Ze=b;Ge.takeAsync=function(t,e){return(0,Ze.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ze.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Xe.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var tn={takeRightAsync:void 0};const en=C,nn=b;tn.takeRightAsync=function(t,e){return(0,nn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,nn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,en.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=await r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var rn={takeRight:void 0};const on=C,sn=b;rn.takeRight=function(t,e){return(0,sn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,sn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,on.go)((function*(){var n;const r=t[Symbol.iterator]();let i;try{const t=[];let o;for(;({value:o,done:i}=r.next()),!i;)t.push(o),t.length>e&&t.shift();yield*t}finally{i||null===(n=r.return)||void 0===n||n.call(r)}}))};var an={takeUntilAsync:void 0};const cn=D;an.takeUntilAsync=function(t,e){return(0,cn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t){if(await e(r,n))break;yield r,n++}}(t):async function*(t){let n=0;for(const r of t){if(await e(r,n))break;yield r,n++}}(t)};var un={};un.takeUntil=void 0,un.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var fn={take:void 0};const ln=C,dn=b;fn.take=function(t,e){return(0,dn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,dn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,ln.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var hn={tapAsync:void 0};const yn=D;hn.tapAsync=function(t,e){return(0,yn.isAsyncIterable)(t)?async function*(t){let n=0;for await(const r of t)await e(r,n),yield r,n++}(t):async function*(t){let n=0;for(const r of t)await e(r,n),yield r,n++}(t)};var pn={};pn.tap=void 0,pn.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var vn={};vn.toAsyncIterable=void 0,vn.toAsyncIterable=async function*(t){for(const e of t)yield e};var mn={};mn.transformAsync=void 0,mn.transformAsync=async function*(t,e){yield*e(t)};var bn={};bn.transform=void 0,bn.transform=function*(t,e){yield*e(t)};var gn={};gn.uniqAsync=void 0,gn.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var wn={uniqByAsync:void 0};const Sn=D;wn.uniqByAsync=function(t,e){return(0,Sn.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const i of t){const t=await e(i,r);n.has(t)||(yield i,n.add(t)),r++}}(t)};var An={};An.uniqBy=void 0,An.uniqBy=function*(t,e){const n=new Set;let r=0;for(const i of t){const t=e(i,r);n.has(t)||(yield i,n.add(t)),r++}};var Tn={};Tn.uniq=void 0,Tn.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var xn={zipAsync:void 0};const En=D;var In;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(In||(In={})),xn.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,s=t.map((t=>(0,En.isAsyncIterable)(t)?[In.Async,t[Symbol.asyncIterator]()]:[In.Sync,t[Symbol.iterator]()])),a=s.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=s[e];let i;if(i=n===In.Async?await r.next():r.next(),i.done)return void(a[e]=!0);t[e]=i.value}yield t}}finally{const t=s.filter(((t,e)=>!a[e]));for(const[o,s]of t)o===In.Async?await(null===(n=(e=s).return)||void 0===n?void 0:n.call(e)):null===(i=(r=s).return)||void 0===i||i.call(r)}}(t,...e)};var On={};On.zip=void 0,On.zip=function(t,...e){return function*(...t){const e=t.length,n=t.map((t=>t[Symbol.iterator]())),r=n.map((()=>!1));try{for(;;){const t=new Array(e);for(let i=0;i<e;i++){const{value:e,done:o}=n[i].next();if(o)return void(r[i]=!0);t[i]=e}yield t}}finally{n.filter(((t,e)=>!r[e])).forEach((t=>{var e;return null===(e=t.return)||void 0===e?void 0:e.call(t)}))}}(t,...e)},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(N,t),n(q,t),n(Ut,t),n(qt,t),n(Ft,t),n(Ht,t),n(Vt,t),n(Xt,t),n(ne,t),n(se,t),n(ce,t),n(ue,t),n(he,t),n(pe,t),n(ve,t),n(be,t),n(xe,t),n(me,t),n(Ie,t),n(je,t),n(Be,t),n(Re,t),n(Ne,t),n(Je,t),n(De,t),n(We,t),n(Ke,t),n(Ve,t),n($e,t),n(Qe,t),n(Ge,t),n(tn,t),n(rn,t),n(an,t),n(un,t),n(fn,t),n(hn,t),n(pn,t),n(vn,t),n(mn,t),n(bn,t),n(gn,t),n(wn,t),n(An,t),n(Tn,t),n(xn,t),n(On,t)}(R);var _n={},jn={};jn.consume=void 0,jn.consume=function(t,e){return e(t)};var Mn={eachAsync:void 0};const Bn=D;Mn.eachAsync=function(t,e){return(0,Bn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t)await e(r,n),n++}(t):async function(t){let n=0;for(const r of t)await e(r,n),n++}(t)};var kn={};kn.each=void 0,kn.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var Rn={everyAsync:void 0};const Nn=D;Rn.everyAsync=function(t,e){return(0,Nn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(!await e(r,n))return!1;n++}return!0}(t):async function(t){let n=0;for(const r of t){if(!await e(r,n))return!1;n++}return!0}(t)};var Cn={};Cn.every=void 0,Cn.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Pn={findAsync:void 0};const Jn=D;Pn.findAsync=function(t,e){return(0,Jn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return r;n++}return}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return r;n++}return}(t)};var Un={};Un.find=void 0,Un.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var qn={};qn.firstAsync=void 0,qn.firstAsync=async function(t){for await(const e of t)return e};var Dn={};Dn.first=void 0,Dn.first=function(t){for(const e of t)return e};var zn={};zn.includesAsync=void 0,zn.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Fn={};Fn.includes=void 0,Fn.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Wn={};Wn.matchAsync=void 0,Wn.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var Ln={};Ln.match=void 0,Ln.match=function(t,e){const n=e.length;let r=0;for(const i of t)if(i===e[r]&&r++,r===n)return!0;return!1};var Hn={reduceAsync:void 0};const Kn=D;Hn.reduceAsync=function(t,e,n){return(0,Kn.isUndefined)(n)?function(t,e){return(0,Kn.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,s=await o(r),a=1;for(;({value:t,done:i}=await r.next()),!i;)s=await e(s,t,a++);return s}finally{i||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function o(t){const e=await t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}async function r(t){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=await e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Kn.isAsyncIterable)(t)?i(t):r(t);async function r(t){let r=n,i=0;for(const n of t)r=await e(r,n,i++);return r}async function i(t){let r=n,i=0;for await(const n of t)r=await e(r,n,i++);return r}}(t,e,n)};var Vn={reduce:void 0};const Yn=D;Vn.reduce=function(t,e,n){return(0,Yn.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,s=o(r),a=1;for(;({value:t,done:i}=r.next()),!i;)s=e(s,t,a++);return s}finally{i||null===(n=r.return)||void 0===n||n.call(r)}function o(t){const e=t.next();if(e.done)throw i=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,i=0;for(const n of t)r=e(r,n,i++);return r}(t,e,n)};var $n={someAsync:void 0};const Qn=D;$n.someAsync=function(t,e){return(0,Qn.isAsyncIterable)(t)?async function(t){let n=0;for await(const r of t){if(await e(r,n))return!0;n++}return!1}(t):async function(t){let n=0;for(const r of t){if(await e(r,n))return!0;n++}return!1}(t)};var Gn={};Gn.some=void 0,Gn.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Xn={};Xn.lastAsync=void 0,Xn.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,i;for(;({value:t,done:r}=await n.next()),!r;)i=t;return i}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Zn={};Zn.last=void 0,Zn.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,i;for(;({value:t,done:r}=n.next()),!r;)i=t;return i}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var tr={toArrayAsync:void 0};const er=jn;tr.toArrayAsync=function(t){return(0,er.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var nr={toArray:void 0};const rr=jn;nr.toArray=function(t){return(0,rr.consume)(t,(t=>Array.from(t)))};var ir={toSetAsync:void 0};const or=jn;ir.toSetAsync=function(t){return(0,or.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var sr={toSet:void 0};const ar=jn;var cr,ur;sr.toSet=function(t){return(0,ar.consume)(t,(t=>new Set(t)))},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(jn,t),n(Mn,t),n(kn,t),n(Rn,t),n(Cn,t),n(Pn,t),n(Un,t),n(qn,t),n(Dn,t),n(zn,t),n(Fn,t),n(Wn,t),n(Ln,t),n(Hn,t),n(Vn,t),n($n,t),n(Gn,t),n(Xn,t),n(Zn,t),n(tr,t),n(nr,t),n(ir,t),n(sr,t)}(_n),function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(R,t),n(_n,t)}(k);class fr{constructor(t){cr.set(this,void 0),ur.set(this,new Map),b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,cr,t,"f")}get[(cr=new WeakMap,ur=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,ur,"f").size}set(t,e){return l(this,ur,"f").has(t)?this.updateItem(t,e):(l(this,ur,"f").size===l(this,cr,"f")&&l(this,ur,"f").delete(this.getColdestKey()),l(this,ur,"f").set(t,e)),this}has(t){return l(this,ur,"f").has(t)}get(t){if(!this.has(t))return;const e=l(this,ur,"f").get(t);return this.updateItem(t,e),e}delete(t){return l(this,ur,"f").delete(t)}clear(){l(this,ur,"f").clear()}updateItem(t,e){l(this,ur,"f").delete(t),l(this,ur,"f").set(t,e)}getColdestKey(){return k.first(l(this,ur,"f").keys())}}var lr={},dr={},hr={},yr={};yr.random=void 0,yr.random=function(t,e){return Math.random()*(e-t)+t};var pr={};pr.randomInt=void 0,pr.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var vr={};vr.randomIntInclusive=void 0,vr.randomIntInclusive=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(yr,t),n(pr,t),n(vr,t)}(hr),dr.calculateExponentialBackoffTimeout=void 0;const mr=hr;dr.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:i=!0}){const o=Math.min(r**e*t,n);return i?(0,mr.randomIntInclusive)(0,o):o};var br={};br.setTimeout=void 0,br.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var gr={setSchedule:void 0};const wr=br;gr.setSchedule=function(t,e){const n=t-Date.now();return(0,wr.setTimeout)(n,e)};var Sr={};Sr.setInterval=void 0,Sr.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var Ar={setImmediate:void 0};const Tr=br;Ar.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,Tr.setTimeout)(0,t)};var xr={setTimeoutLoop:void 0};const Er=br;xr.setTimeoutLoop=function(t,e){let n=!1,r=(0,Er.setTimeout)(t,(async function i(){await e(),n||(r=(0,Er.setTimeout)(t,i))}));return()=>{n=!0,r()}};var Ir={setDynamicTimeoutLoop:void 0};const Or=br;var _r,jr,Mr,Br,kr,Rr,Nr;Ir.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,Or.setTimeout)(t,(async function i(){const o=Date.now();await e();const s=Date.now()-o;n||(r=(0,Or.setTimeout)(Math.max(t-s,0),i))}));return()=>{n=!0,r()}},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(dr,t),n(br,t),n(gr,t),n(Sr,t),n(Ar,t),n(xr,t),n(Ir,t)}(lr);class Cr{constructor(){_r.set(this,new Map),jr.set(this,void 0),this.itemMetadataSortedByExpirationTime=[]}get[(_r=new WeakMap,jr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,_r,"f").size}set(t,e,n){return l(this,_r,"f").set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return l(this,_r,"f").has(t)}get(t){return l(this,_r,"f").get(t)}delete(t){const e=l(this,_r,"f").delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;l(this,_r,"f").clear(),null===(t=l(this,jr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>l(this,_r,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=l(this,jr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=lr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,jr,(()=>{e(),d(this,jr,void 0,"f")}),"f")}}}}class Pr{constructor(t){Mr.set(this,void 0),Br.set(this,new Map),kr.set(this,void 0),this.itemMetadataSortedByExpirationTime=[],b.assert(Number.isInteger(t),"The parameter limit must be an integer"),b.assert(t>0,"The parameter limit must be a positive value"),d(this,Mr,t,"f")}get[(Mr=new WeakMap,Br=new WeakMap,kr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}get size(){return l(this,Br,"f").size}set(t,e,n){return l(this,Br,"f").has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(l(this,Br,"f").size===l(this,Mr,"f")&&l(this,Br,"f").delete(this.getColdestKey()),l(this,Br,"f").set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return l(this,Br,"f").has(t)}get(t){if(this.has(t)){const e=l(this,Br,"f").get(t);return this.updateItem(t,e),e}}delete(t){const e=l(this,Br,"f").delete(t);if(e){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout()}return e}clear(){var t;l(this,Br,"f").clear(),null===(t=l(this,kr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){l(this,Br,"f").delete(t),l(this,Br,"f").set(t,e)}addItemMetadata(t,e){for(let n=0;n<this.itemMetadataSortedByExpirationTime.length;n++){if(e<this.itemMetadataSortedByExpirationTime[n].expirationTime)return this.itemMetadataSortedByExpirationTime.splice(n,0,{key:t,expirationTime:e}),void(0===n&&this.rescheduleClearTimeout())}this.itemMetadataSortedByExpirationTime.push({key:t,expirationTime:e}),1===this.itemMetadataSortedByExpirationTime.length&&this.rescheduleClearTimeout()}removeItemMetadata(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.key===t));e>=0&&(this.itemMetadataSortedByExpirationTime.splice(e,1),0===e&&this.rescheduleClearTimeout())}clearExpiredItems(t){const e=this.itemMetadataSortedByExpirationTime.findIndex((e=>e.expirationTime>t));(e>=0?this.itemMetadataSortedByExpirationTime.splice(0,e):this.itemMetadataSortedByExpirationTime.splice(0,this.itemMetadataSortedByExpirationTime.length)).forEach((t=>l(this,Br,"f").delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=l(this,kr,"f"))||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=lr.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));d(this,kr,(()=>{e(),d(this,kr,void 0,"f")}),"f")}}}getColdestKey(){return k.first(l(this,Br,"f").keys())}}class Jr{constructor(t){this.value=t,this.children=new Map}}class Ur{constructor(){Rr.set(this,new Jr)}get[(Rr=new WeakMap,Symbol.toStringTag)](){return this.constructor.name}set(t,e){let n=l(this,Rr,"f");for(const e of t)n.children.has(e)||n.children.set(e,new Jr),n=n.children.get(e);return n.value=e,this}has(t){let e=l(this,Rr,"f");for(const n of t){if(!e.children.has(n))return!1;e=e.children.get(n)}return void 0!==e.value}get(t){let e=l(this,Rr,"f");for(const n of t){if(!e.children.has(n))return;e=e.children.get(n)}return e.value}delete(t){const e=[];let n=l(this,Rr,"f");for(const r of t){if(!n.children.has(r))return!1;e.push(n),n=n.children.get(r)}if(delete n.value,0===n.children.size)for(const[n,r]of k.toArray(k.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class qr{constructor(t,e){this.schema=t,Nr.set(this,void 0),d(this,Nr,e,"f")}get state(){return l(this,Nr,"f")}matches(t){return l(this,Nr,"f")===t}send(t){if(!(t in this.schema[this.state]))throw new Dr(this.state,t);d(this,Nr,this.schema[this.state][t],"f")}}Nr=new WeakMap;class Dr extends b.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}function zr(t){return"function"==typeof t}function Fr(t){var e=t((function(t){Error.call(t),t.stack=(new Error).stack}));return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Wr=Fr((function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}}));function Lr(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var Hr=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=c(o),a=s.next();!a.done;a=s.next()){a.value.remove(this)}}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(zr(l))try{l()}catch(t){i=t instanceof Wr?t.errors:[t]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var h=c(d),y=h.next();!y.done;y=h.next()){var p=y.value;try{Yr(p)}catch(t){i=null!=i?i:[],t instanceof Wr?i=f(f([],u(i)),u(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{y&&!y.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}if(i)throw new Wr(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Yr(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(e)}},t.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},t.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},t.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Lr(e,t)},t.prototype.remove=function(e){var n=this._teardowns;n&&Lr(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Kr=Hr.EMPTY;function Vr(t){return t instanceof Hr||t&&"closed"in t&&zr(t.remove)&&zr(t.add)&&zr(t.unsubscribe)}function Yr(t){zr(t)?t():t.unsubscribe()}var $r={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qr={setTimeout:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Qr.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,f([],u(t)))},clearTimeout:function(t){var e=Qr.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Gr(t){Qr.setTimeout((function(){throw t}))}function Xr(){}var Zr=null;function ti(t){if($r.useDeprecatedSynchronousErrorHandling){var e=!Zr;if(e&&(Zr={errorThrown:!1,error:null}),t(),e){var n=Zr,r=n.errorThrown,i=n.error;if(Zr=null,r)throw i}}else t()}var ei=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,Vr(e)&&e.add(n)):n.destination=oi,n}return a(e,t),e.create=function(t,e,n){return new ni(t,e,n)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Hr),ni=function(t){function e(e,n,r){var i,o=t.call(this)||this;if(zr(e))i=e;else if(e){var s;i=e.next,n=e.error,r=e.complete,o&&$r.useDeprecatedNextContext?(s=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:s=e,i=null==i?void 0:i.bind(s),n=null==n?void 0:n.bind(s),r=null==r?void 0:r.bind(s)}return o.destination={next:i?ri(i):Xr,error:ri(null!=n?n:ii),complete:r?ri(r):Xr},o}return a(e,t),e}(ei);function ri(t,e){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{t.apply(void 0,f([],u(e)))}catch(t){Gr(t)}}}function ii(t){throw t}var oi={closed:!0,next:Xr,error:ii,complete:Xr},si="function"==typeof Symbol&&Symbol.observable||"@@observable";function ai(t){return t}function ci(t){return 0===t.length?ai:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var ui=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r,i=this,o=(r=t)&&r instanceof ei||function(t){return t&&zr(t.next)&&zr(t.error)&&zr(t.complete)}(r)&&Vr(r)?t:new ni(t,e,n);return ti((function(){var t=i,e=t.operator,n=t.source;o.add(e?e.call(o,n):n?i._subscribe(o):i._trySubscribe(o))})),o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=fi(e))((function(e,r){var i=new ni({next:function(e){try{t(e)}catch(t){r(t),i.unsubscribe()}},error:r,complete:e});n.subscribe(i)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[si]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ci(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=fi(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function fi(t){var e;return null!==(e=null!=t?t:$r.Promise)&&void 0!==e?e:Promise}var li=Fr((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),di=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return a(e,t),e.prototype.lift=function(t){var e=new hi(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new li},e.prototype.next=function(t){var e=this;ti((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){var i=e.observers.slice();try{for(var o=c(i),s=o.next();!s.done;s=o.next()){s.value.next(t)}}catch(t){n={error:t}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;ti((function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var n=e.observers;n.length;)n.shift().error(t)}}))},e.prototype.complete=function(){var t=this;ti((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}}))},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,n=e.hasError,r=e.isStopped,i=e.observers;return n||r?Kr:(i.push(t),new Hr((function(){return Lr(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,i=e.isStopped;n?t.error(r):i&&t.complete()},e.prototype.asObservable=function(){var t=new ui;return t.source=this,t},e.create=function(t,e){return new hi(t,e)},e}(ui),hi=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return a(e,t),e.prototype.next=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===n||n.call(e,t)},e.prototype.error=function(t){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===n||n.call(e,t)},e.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},e.prototype._subscribe=function(t){var e,n;return null!==(n=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==n?n:Kr},e}(di),yi={},pi={};function vi(t){return Array.isArray(t)}pi.isntEmptyArray=pi.isEmptyArray=pi.isntArray=pi.isArray=void 0,pi.isArray=vi,pi.isntArray=function(t){return!vi(t)},pi.isEmptyArray=function(t){return 0===t.length},pi.isntEmptyArray=function(t){return 0!==t.length};var mi={},bi={};function gi(t){return null===t}bi.isntNull=bi.isNull=void 0,bi.isNull=gi,bi.isntNull=function(t){return!gi(t)};var wi={};function Si(t){return void 0===t}wi.isntUndefined=wi.isUndefined=void 0,wi.isUndefined=Si,wi.isntUndefined=function(t){return!Si(t)},mi.isntAsyncIterable=mi.isAsyncIterable=void 0;const Ai=bi,Ti=wi;function xi(t){return(0,Ai.isntNull)(t)&&(0,Ti.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}mi.isAsyncIterable=xi,mi.isntAsyncIterable=function(t){return!xi(t)};var Ei={};function Ii(t){return"bigint"==typeof t}Ei.isntBigInt=Ei.isBigInt=void 0,Ei.isBigInt=Ii,Ei.isntBigInt=function(t){return!Ii(t)};var Oi={};function _i(t){return"boolean"==typeof t}Oi.isntBoolean=Oi.isBoolean=void 0,Oi.isBoolean=_i,Oi.isntBoolean=function(t){return!_i(t)};var ji={},Mi={};function Bi(t){return"string"==typeof t}Mi.isntString=Mi.isString=void 0,Mi.isString=Bi,Mi.isntString=function(t){return!Bi(t)},ji.isntChar=ji.isChar=void 0;const ki=Mi;function Ri(t){return(0,ki.isString)(t)&&1===t.length}ji.isChar=Ri,ji.isntChar=function(t){return!Ri(t)};var Ni={};function Ci(t){return t instanceof Date}Ni.isntDate=Ni.isDate=void 0,Ni.isDate=Ci,Ni.isntDate=function(t){return!Ci(t)};var Pi={};Pi.inEnum=void 0,Pi.inEnum=function(t,e){return Object.values(e).includes(t)};var Ji={};function Ui(t){return t instanceof Error}Ji.isntError=Ji.isError=void 0,Ji.isError=Ui,Ji.isntError=function(t){return!Ui(t)};var qi={};function Di(t){return!t}qi.isntFalsy=qi.isFalsy=void 0,qi.isFalsy=Di,qi.isntFalsy=function(t){return!Di(t)};var zi={};function Fi(t){return"function"==typeof t}zi.isntFunction=zi.isFunction=void 0,zi.isFunction=Fi,zi.isntFunction=function(t){return!Fi(t)};var Wi={};Wi.isntIterable=Wi.isIterable=void 0;const Li=bi,Hi=wi;function Ki(t){return(0,Li.isntNull)(t)&&(0,Hi.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Wi.isIterable=Ki,Wi.isntIterable=function(t){return!Ki(t)};var Vi={},Yi={};var $i=Function.prototype,Qi=Object.prototype,Gi=$i.toString,Xi=Qi.hasOwnProperty,Zi=Gi.call(Object),to=Qi.toString,eo=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var no=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=to.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=eo(t);if(null===e)return!0;var n=Xi.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Gi.call(n)==Zi},ro=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Yi.isntEmptyObject=Yi.isEmptyObject=Yi.isntPlainObject=Yi.isPlainObject=Yi.isntObject=Yi.isObject=void 0;const io=ro(no);function oo(t){return null!==t&&"object"==typeof t}function so(t){return(0,io.default)(t)}Yi.isObject=oo,Yi.isntObject=function(t){return!oo(t)},Yi.isPlainObject=so,Yi.isntPlainObject=function(t){return!so(t)},Yi.isEmptyObject=function(t){return 0===Object.keys(t).length},Yi.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var ao={};function co(t){return"number"==typeof t}ao.isntNumber=ao.isNumber=void 0,ao.isNumber=co,ao.isntNumber=function(t){return!co(t)},Vi.isntJsonRpcError=Vi.isJsonRpcError=Vi.isntJsonRpcSuccess=Vi.isJsonRpcSuccess=Vi.isntJsonRpcRequest=Vi.isJsonRpcRequest=Vi.isntJsonRpcNotification=Vi.isJsonRpcNotification=void 0;const uo=pi,fo=Yi,lo=Mi,ho=ao,yo=wi;function po(t){return(0,lo.isString)(t)||(0,ho.isNumber)(t)}function vo(t){return(0,uo.isArray)(t)||(0,fo.isObject)(t)}function mo(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&(0,lo.isString)(t.method)&&(0,yo.isUndefined)(t.id)&&vo(t.params)}function bo(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&(0,lo.isString)(t.method)&&po(t.id)&&vo(t.params)}function go(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&(0,lo.isString)(t.id)&&"result"in t}function wo(t){return(0,fo.isPlainObject)(t)&&(0,lo.isString)(t.jsonrpc)&&po(t.id)&&function(t){return(0,fo.isPlainObject)(t)&&(0,ho.isNumber)(t.code)&&(0,lo.isString)(t.message)&&((0,yo.isUndefined)(t.data)||(0,fo.isObject)(t.data))}(t.error)}Vi.isJsonRpcNotification=mo,Vi.isntJsonRpcNotification=function(t){return!mo(t)},Vi.isJsonRpcRequest=bo,Vi.isntJsonRpcRequest=function(t){return!bo(t)},Vi.isJsonRpcSuccess=go,Vi.isntJsonRpcSuccess=function(t){return!go(t)},Vi.isJsonRpcError=wo,Vi.isntJsonRpcError=function(t){return!wo(t)};var So={};So.isntJson=So.isJson=void 0,So.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},So.isntJson=function t(e){return!t()};var Ao={};Ao.isAbsoluteURL=void 0,Ao.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=m&&m.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),n=m&&m.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};n(pi,t),n(mi,t),n(Ei,t),n(Oi,t),n(ji,t),n(Ni,t),n(Pi,t),n(Ji,t),n(qi,t),n(zi,t),n(Wi,t),n(Vi,t),n(So,t),n(bi,t),n(ao,t),n(Yi,t),n(Mi,t),n(wi,t),n(Ao,t)}(yi);t.BadEventError=Dr,t.Box=class{constructor(t){e.set(this,void 0),d(this,e,t,"f")}set(t){d(this,e,t,"f")}get(){return l(this,e,"f")}},t.Emitter=h,t.ExpirableMap=Cr,t.FiniteStateMachine=qr,t.HashMap=y,t.HashSet=p,t.LRUMap=fr,t.ObservableFiniteStateMachine=class extends qr{constructor(){super(...arguments),this.stateChanges=new di}observeStateChanges(){return this.stateChanges}send(t){const e=this.state;super.send(t);const n=this.state;this.stateChanges.next({event:t,oldState:e,newState:n}),yi.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}},t.Queue=v,t.TLRUMap=Pr,t.TrieMap=Ur,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return null===n?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=index.umd.min.js.map

35

package.json
{
"name": "@blackglory/structures",
"version": "0.3.1",
"version": "0.3.2",
"description": "",

@@ -11,2 +11,3 @@ "files": [

"types": "lib/es2018/index.d.ts",
"sideEffects": false,
"repository": "git@github.com:BlackGlory/structures.git",

@@ -44,37 +45,37 @@ "author": "BlackGlory <woshenmedoubuzhidao@blackglory.me>",

"devDependencies": {
"@blackglory/jest-matchers": "^0.1.21",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@blackglory/jest-matchers": "^0.2.1",
"@commitlint/cli": "^16.0.1",
"@commitlint/config-conventional": "^16.0.0",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.6",
"@rollup/plugin-replace": "^3.0.0",
"@rollup/plugin-node-resolve": "^13.1.3",
"@rollup/plugin-replace": "^3.0.1",
"@rollup/plugin-typescript": "^8.3.0",
"@types/jest": "^27.0.3",
"@types/jest": "^27.4.0",
"@types/node": "^16.11.12",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"eslint": "^8.4.1",
"extra-promise": "^0.19.4",
"@typescript-eslint/eslint-plugin": "^5.9.0",
"@typescript-eslint/parser": "^5.9.0",
"eslint": "^8.6.0",
"extra-promise": "^0.21.0",
"husky": "^4.3.8",
"jest": "^27.4.4",
"jest": "^27.4.7",
"npm-run-all": "^4.1.5",
"return-style": "^0.12.5",
"rimraf": "^3.0.2",
"rollup": "^2.61.1",
"rollup": "^2.63.0",
"rollup-plugin-analyzer": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"standard-version": "^9.3.2",
"ts-jest": "^27.1.1",
"ts-jest": "^27.1.2",
"tscpaths": "^0.0.9",
"tslib": "^2.3.1",
"typescript": "^4.5.3"
"typescript": "^4.5.4"
},
"dependencies": {
"@blackglory/errors": "^1.1.2",
"@blackglory/types": "^0.5.2",
"@blackglory/types": "^0.6.5",
"extra-timers": "^0.2.4",
"iterable-operator": "^0.14.4",
"rxjs": "^7.4.0"
"rxjs": "^7.5.1"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc