@blackglory/structures 0.6.5 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -0
- package/dist/es2015/index.min.mjs +2 -2
- package/dist/es2015/index.min.mjs.map +1 -1
- package/dist/es2015/index.mjs +1239 -749
- package/dist/es2015/index.mjs.map +1 -1
- package/dist/es2015/index.umd.js +1239 -748
- package/dist/es2015/index.umd.js.map +1 -1
- package/dist/es2015/index.umd.min.js +2 -2
- package/dist/es2015/index.umd.min.js.map +1 -1
- package/dist/es2018/index.min.mjs +2 -2
- package/dist/es2018/index.min.mjs.map +1 -1
- package/dist/es2018/index.mjs +1239 -749
- package/dist/es2018/index.mjs.map +1 -1
- package/dist/es2018/index.umd.js +1239 -748
- package/dist/es2018/index.umd.js.map +1 -1
- package/dist/es2018/index.umd.min.js +2 -2
- package/dist/es2018/index.umd.min.js.map +1 -1
- package/lib/es2015/dynamic-typed-array.d.ts +22 -0
- package/lib/es2015/dynamic-typed-array.js +111 -0
- package/lib/es2015/dynamic-typed-array.js.map +1 -0
- package/lib/es2015/index.d.ts +1 -0
- package/lib/es2015/index.js +3 -0
- package/lib/es2015/index.js.map +1 -1
- package/lib/es2018/dynamic-typed-array.d.ts +22 -0
- package/lib/es2018/dynamic-typed-array.js +111 -0
- package/lib/es2018/dynamic-typed-array.js.map +1 -0
- package/lib/es2018/index.d.ts +1 -0
- package/lib/es2018/index.js +3 -0
- package/lib/es2018/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!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";class e{constructor(t){this.value=t}get[Symbol.toStringTag](){return this.constructor.name}set(t){this.value=t}get(){return this.value}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={},o={};function i(t){return Array.isArray(t)}o.isntEmptyArray=o.isEmptyArray=o.isntArray=o.isArray=void 0,o.isArray=i,o.isntArray=function(t){return!i(t)},o.isEmptyArray=function(t){return 0===t.length},o.isntEmptyArray=function(t){return 0!==t.length};var a={},s={};function c(t){return null===t}s.isntNull=s.isNull=void 0,s.isNull=c,s.isntNull=function(t){return!c(t)};var u={};function l(t){return void 0===t}u.isntUndefined=u.isUndefined=void 0,u.isUndefined=l,u.isntUndefined=function(t){return!l(t)};var f={};function d(t){return"function"==typeof t}f.isntFunction=f.isFunction=void 0,f.isFunction=d,f.isntFunction=function(t){return!d(t)},a.isntAsyncIterable=a.isAsyncIterable=void 0;const y=s,h=u,v=f;function p(t){return(0,y.isntNull)(t)&&(0,h.isntUndefined)(t)&&(0,v.isFunction)(t[Symbol.asyncIterator])}a.isAsyncIterable=p,a.isntAsyncIterable=function(t){return!p(t)};var m={};function b(t){return"bigint"==typeof t}m.isntBigInt=m.isBigInt=void 0,m.isBigInt=b,m.isntBigInt=function(t){return!b(t)};var g={};function w(t){return"boolean"==typeof t}g.isntBoolean=g.isBoolean=void 0,g.isBoolean=w,g.isntBoolean=function(t){return!w(t)};var A={},S={};function I(t){return"string"==typeof t}S.isntString=S.isString=void 0,S.isString=I,S.isntString=function(t){return!I(t)},A.isntChar=A.isChar=void 0;const _=S;function T(t){return(0,_.isString)(t)&&1===t.length}A.isChar=T,A.isntChar=function(t){return!T(t)};var x={};function E(t){return t instanceof Date}x.isntDate=x.isDate=void 0,x.isDate=E,x.isntDate=function(t){return!E(t)};var O={};O.inEnum=void 0,O.inEnum=function(t,e){return Object.values(e).includes(t)};var j={};function k(t){return t instanceof Error}j.isntError=j.isError=void 0,j.isError=k,j.isntError=function(t){return!k(t)};var N={};function B(t){return!t}N.isntFalsy=N.isFalsy=void 0,N.isFalsy=B,N.isntFalsy=function(t){return!B(t)};var P={};P.isntIterable=P.isIterable=void 0;const q=s,C=u,M=f;function z(t){return(0,q.isntNull)(t)&&(0,C.isntUndefined)(t)&&(0,M.isFunction)(t[Symbol.iterator])}P.isIterable=z,P.isntIterable=function(t){return!z(t)};var R={},U={};function D(t){return"number"==typeof t}function F(t){return Number.isNaN(t)}U.isntNaN=U.isNaN=U.isNegativeInfinity=U.isPositiveInfinity=U.isFinite=U.isntNumber=U.isNumber=void 0,U.isNumber=D,U.isntNumber=function(t){return!D(t)},U.isFinite=function(t){return Number.isFinite(t)},U.isPositiveInfinity=function(t){return t===1/0},U.isNegativeInfinity=function(t){return t===-1/0},U.isNaN=F,U.isntNaN=function(t){return!F(t)};var J={},V="object"==typeof n&&n&&n.Object===Object&&n,L="object"==typeof self&&self&&self.Object===Object&&self,W=(V||L||Function("return this")()).Symbol,K=W,Y=Object.prototype,H=Y.hasOwnProperty,$=Y.toString,Q=K?K.toStringTag:void 0;var X=function(t){var e=H.call(t,Q),n=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var o=$.call(t);return r&&(e?t[Q]=n:delete t[Q]),o},G=Object.prototype.toString;var Z=X,tt=function(t){return G.call(t)},et=W?W.toStringTag:void 0;var nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":et&&et in Object(t)?Z(t):tt(t)};var rt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var ot=nt,it=rt,at=function(t){return null!=t&&"object"==typeof t},st=Function.prototype,ct=Object.prototype,ut=st.toString,lt=ct.hasOwnProperty,ft=ut.call(Object);var dt=function(t){if(!at(t)||"[object Object]"!=ot(t))return!1;var e=it(t);if(null===e)return!0;var n=lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==ft},yt=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};J.isntEmptyObject=J.isEmptyObject=J.isntPlainObject=J.isPlainObject=J.isntObject=J.isObject=void 0;const ht=yt(dt);function vt(t){return null!==t&&"object"==typeof t}function pt(t){return(0,ht.default)(t)}J.isObject=vt,J.isntObject=function(t){return!vt(t)},J.isPlainObject=pt,J.isntPlainObject=function(t){return!pt(t)},J.isEmptyObject=function(t){return 0===Object.keys(t).length},J.isntEmptyObject=function(t){return 0!==Object.keys(t).length},R.isntJsonable=R.isJsonable=R.isntJson=R.isJson=void 0;const mt=s,bt=g,gt=S,wt=U,At=o,St=J;function It(t){return(0,mt.isNull)(t)||(0,bt.isBoolean)(t)||(0,gt.isString)(t)||(0,wt.isNumber)(t)||(0,At.isArray)(t)&&t.every(It)||(0,St.isPlainObject)(t)&&Object.values(t).every(It)}R.isJson=It,R.isntJson=function(t){return!It(t)},R.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},R.isntJsonable=function t(e){return!t()};var _t={};_t.isPromiseLike=_t.isntPromiseLike=_t.isntPromise=_t.isPromise=void 0;const Tt=J,xt=f;function Et(t){return t instanceof Promise}function Ot(t){return(0,Tt.isObject)(t)&&(0,xt.isFunction)(t.then)}_t.isPromise=Et,_t.isntPromise=function(t){return!Et(t)},_t.isntPromiseLike=function(t){return!Ot(t)},_t.isPromiseLike=Ot;var jt={};jt.isAbsoluteURL=void 0,jt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(o,t),r(a,t),r(m,t),r(g,t),r(A,t),r(x,t),r(O,t),r(j,t),r(N,t),r(f,t),r(P,t),r(R,t),r(s,t),r(U,t),r(J,t),r(_t,t),r(S,t),r(u,t),r(jt,t)}(r);class kt{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(t,e){this.map.has(t)||this.map.set(t,new Set);return this.map.get(t).add(n),()=>{if(!this.map.has(t))return;const e=this.map.get(t);e.delete(n),0===e.size&&this.map.delete(t)};function n(...t){e(...t)}}once(t,e){const n=this.on(t,((...t)=>{e(...t),n()}));return n}emit(t,...e){this.map.has(t)&&this.map.get(t).forEach((t=>t(...e)))}}class Nt{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.set(this.hash(t),e),this}has(t){return this.map.has(this.hash(t))}get(t){return this.map.get(this.hash(t))}delete(t){return this.map.delete(this.hash(t))}clear(){this.map.clear()}}class Bt{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(t){return this.map.set(this.hash(t),t),this}delete(t){return this.map.delete(this.hash(t))}has(t){return this.map.has(this.hash(t))}clear(){this.map.clear()}values(){return this.map.values()}}class Pt{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...t){this.items.push(...t)}dequeue(){return this.items.shift()}remove(t){let e;for(;(e=this.items.indexOf(t))>=0;)this.items.splice(e,1)}}var qt={},Ct={},Mt={},zt={},Rt={},Ut={},Dt={};Dt.go=void 0,Dt.go=function(t){return t()},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Dt,t)}(Ut);var Ft={},Jt={},Vt={},Lt={},Wt={},Kt={},Yt={CustomError:void 0};class Ht extends Error{get name(){return this.constructor.name}}Yt.CustomError=Ht;var $t={ExpectedError:void 0};const Qt=Yt;class Xt extends Qt.CustomError{}$t.ExpectedError=Xt;var Gt={AssertionError:void 0};const Zt=Yt;class te extends Zt.CustomError{}Gt.AssertionError=te;var ee={};ee.normalize=void 0,ee.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var ne={refute:void 0};const re=$t;ne.refute=function(t,e){if(t)throw new re.ExpectedError(e)};var oe={assert:void 0};const ie=Gt;oe.assert=function(t,e){if(!t)throw new ie.AssertionError(e)},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Yt,t),r($t,t),r(Gt,t),r(ee,t),r(ne,t),r(oe,t)}(Kt),Wt.chunkAsync=void 0;const ae=Ut,se=Kt;Wt.chunkAsync=function(t,e){return(0,se.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,se.assert)(e>0,"The parameter size must be greater than 0"),(0,ae.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 ce={},ue={},le={};function fe(t){return Array.isArray(t)}le.isntEmptyArray=le.isEmptyArray=le.isntArray=le.isArray=void 0,le.isArray=fe,le.isntArray=function(t){return!fe(t)},le.isEmptyArray=function(t){return 0===t.length},le.isntEmptyArray=function(t){return 0!==t.length};var de={},ye={};function he(t){return null===t}ye.isntNull=ye.isNull=void 0,ye.isNull=he,ye.isntNull=function(t){return!he(t)};var ve={};function pe(t){return void 0===t}ve.isntUndefined=ve.isUndefined=void 0,ve.isUndefined=pe,ve.isntUndefined=function(t){return!pe(t)},de.isntAsyncIterable=de.isAsyncIterable=void 0;const me=ye,be=ve;function ge(t){return(0,me.isntNull)(t)&&(0,be.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}de.isAsyncIterable=ge,de.isntAsyncIterable=function(t){return!ge(t)};var we={};function Ae(t){return"bigint"==typeof t}we.isntBigInt=we.isBigInt=void 0,we.isBigInt=Ae,we.isntBigInt=function(t){return!Ae(t)};var Se={};function Ie(t){return"boolean"==typeof t}Se.isntBoolean=Se.isBoolean=void 0,Se.isBoolean=Ie,Se.isntBoolean=function(t){return!Ie(t)};var _e={},Te={};function xe(t){return"string"==typeof t}Te.isntString=Te.isString=void 0,Te.isString=xe,Te.isntString=function(t){return!xe(t)},_e.isntChar=_e.isChar=void 0;const Ee=Te;function Oe(t){return(0,Ee.isString)(t)&&1===t.length}_e.isChar=Oe,_e.isntChar=function(t){return!Oe(t)};var je={};function ke(t){return t instanceof Date}je.isntDate=je.isDate=void 0,je.isDate=ke,je.isntDate=function(t){return!ke(t)};var Ne={};Ne.inEnum=void 0,Ne.inEnum=function(t,e){return Object.values(e).includes(t)};var Be={};function Pe(t){return t instanceof Error}Be.isntError=Be.isError=void 0,Be.isError=Pe,Be.isntError=function(t){return!Pe(t)};var qe={};function Ce(t){return!t}qe.isntFalsy=qe.isFalsy=void 0,qe.isFalsy=Ce,qe.isntFalsy=function(t){return!Ce(t)};var Me={};function ze(t){return"function"==typeof t}Me.isntFunction=Me.isFunction=void 0,Me.isFunction=ze,Me.isntFunction=function(t){return!ze(t)};var Re={};Re.isntIterable=Re.isIterable=void 0;const Ue=ye,De=ve;function Fe(t){return(0,Ue.isntNull)(t)&&(0,De.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Re.isIterable=Fe,Re.isntIterable=function(t){return!Fe(t)};var Je={},Ve={};var Le=Function.prototype,We=Object.prototype,Ke=Le.toString,Ye=We.hasOwnProperty,He=Ke.call(Object),$e=We.toString,Qe=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var Xe=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=$e.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=Qe(t);if(null===e)return!0;var n=Ye.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ke.call(n)==He},Ge=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Ve.isntEmptyObject=Ve.isEmptyObject=Ve.isntPlainObject=Ve.isPlainObject=Ve.isntObject=Ve.isObject=void 0;const Ze=Ge(Xe);function tn(t){return null!==t&&"object"==typeof t}function en(t){return(0,Ze.default)(t)}Ve.isObject=tn,Ve.isntObject=function(t){return!tn(t)},Ve.isPlainObject=en,Ve.isntPlainObject=function(t){return!en(t)},Ve.isEmptyObject=function(t){return 0===Object.keys(t).length},Ve.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var nn={};function rn(t){return"number"==typeof t}nn.isntNumber=nn.isNumber=void 0,nn.isNumber=rn,nn.isntNumber=function(t){return!rn(t)},Je.isntJsonRpcError=Je.isJsonRpcError=Je.isntJsonRpcSuccess=Je.isJsonRpcSuccess=Je.isntJsonRpcRequest=Je.isJsonRpcRequest=Je.isntJsonRpcNotification=Je.isJsonRpcNotification=void 0;const on=le,an=Ve,sn=Te,cn=nn,un=ve;function ln(t){return(0,sn.isString)(t)||(0,cn.isNumber)(t)}function fn(t){return(0,on.isArray)(t)||(0,an.isObject)(t)}function dn(t){return(0,an.isPlainObject)(t)&&(0,sn.isString)(t.jsonrpc)&&(0,sn.isString)(t.method)&&(0,un.isUndefined)(t.id)&&fn(t.params)}function yn(t){return(0,an.isPlainObject)(t)&&(0,sn.isString)(t.jsonrpc)&&(0,sn.isString)(t.method)&&ln(t.id)&&fn(t.params)}function hn(t){return(0,an.isPlainObject)(t)&&(0,sn.isString)(t.jsonrpc)&&(0,sn.isString)(t.id)&&"result"in t}function vn(t){return(0,an.isPlainObject)(t)&&(0,sn.isString)(t.jsonrpc)&&ln(t.id)&&function(t){return(0,an.isPlainObject)(t)&&(0,cn.isNumber)(t.code)&&(0,sn.isString)(t.message)&&((0,un.isUndefined)(t.data)||(0,an.isObject)(t.data))}(t.error)}Je.isJsonRpcNotification=dn,Je.isntJsonRpcNotification=function(t){return!dn(t)},Je.isJsonRpcRequest=yn,Je.isntJsonRpcRequest=function(t){return!yn(t)},Je.isJsonRpcSuccess=hn,Je.isntJsonRpcSuccess=function(t){return!hn(t)},Je.isJsonRpcError=vn,Je.isntJsonRpcError=function(t){return!vn(t)};var pn={};pn.isntJson=pn.isJson=void 0,pn.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},pn.isntJson=function t(e){return!t()};var mn={};mn.isAbsoluteURL=void 0,mn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(le,t),r(de,t),r(we,t),r(Se,t),r(_e,t),r(je,t),r(Ne,t),r(Be,t),r(qe,t),r(Me,t),r(Re,t),r(Je,t),r(pn,t),r(ye,t),r(nn,t),r(Ve,t),r(Te,t),r(ve,t),r(mn,t)}(ue),ce.chunkByAsync=void 0;const bn=ue;ce.chunkByAsync=function(t,e){return(0,bn.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var gn={};gn.chunkBy=void 0,gn.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var wn={chunk:void 0};const An=Ut,Sn=Kt;wn.chunk=function(t,e){return(0,Sn.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Sn.assert)(e>0,"The parameter size must be greater than 0"),(0,An.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var In={concatAsync:void 0};const _n=ue,Tn=Ut;In.concatAsync=function(t,...e){return(0,Tn.go)((async function*(){for(const n of[t,...e])if((0,_n.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var xn={concat:void 0};const En=Ut;xn.concat=function(t,...e){return(0,En.go)((function*(){for(const n of[t,...e])yield*n}))};var On={},jn={};jn.copyIterable=jn.copyAsyncIterable=void 0,jn.copyAsyncIterable=async function*(t){for await(const e of t)yield e},jn.copyIterable=function*(t){for(const e of t)yield e},On.dropAsync=void 0;const kn=Ut,Nn=jn,Bn=Kt;On.dropAsync=function(t,e){return(0,Bn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Bn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Nn.copyAsyncIterable)(t):(0,kn.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Pn={dropRightAsync:void 0};const qn=Ut,Cn=jn,Mn=Kt;Pn.dropRightAsync=function(t,e){return(0,Mn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Cn.copyAsyncIterable)(t):(0,qn.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 zn={dropRight:void 0};const Rn=Ut,Un=jn,Dn=Kt;zn.dropRight=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===e?(0,Un.copyIterable)(t):(0,Rn.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Fn={dropUntilAsync:void 0};const Jn=ue;Fn.dropUntilAsync=function(t,e){return(0,Jn.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Vn={};Vn.dropUntil=void 0,Vn.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Ln={drop:void 0};const Wn=Ut,Kn=jn,Yn=Kt;Ln.drop=function(t,e){return(0,Yn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Yn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Kn.copyIterable)(t):(0,Wn.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Hn={filterAsync:void 0};const $n=ue;Hn.filterAsync=function(t,e){return(0,$n.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 Qn={};Qn.filter=void 0,Qn.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Xn={},Gn={},Zn={flattenByAsync:void 0};const tr=ue;function er(t){return(0,tr.isIterable)(t)&&(0,tr.isntChar)(t)}Zn.flattenByAsync=function(t,e){return(0,tr.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)er(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)er(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Gn.flattenDeepAsync=void 0;const nr=Zn,rr=Kt;Gn.flattenDeepAsync=function(t,e=1/0){return(0,rr.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,rr.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,nr.flattenByAsync)(t,((t,n)=>n<=e))},Xn.flattenAsync=void 0;const or=Gn;Xn.flattenAsync=function(t){return(0,or.flattenDeepAsync)(t,1)};var ir={flattenBy:void 0};const ar=ue;ir.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,ar.isIterable)(o=i)&&(0,ar.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var sr={flattenDeep:void 0};const cr=ir,ur=Kt;sr.flattenDeep=function(t,e=1/0){return(0,ur.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ur.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,cr.flattenBy)(t,((t,n)=>n<=e))};var lr={flatten:void 0};const fr=sr;lr.flatten=function(t){return(0,fr.flattenDeep)(t,1)};var dr={mapAsync:void 0};const yr=ue;dr.mapAsync=function(t,e){return(0,yr.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 hr={};hr.map=void 0,hr.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var vr={repeatAsync:void 0};const pr=Ut,mr=Kt;vr.repeatAsync=function(t,e){return(0,mr.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,mr.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,pr.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 br={repeat:void 0};const gr=Ut,wr=Kt;br.repeat=function(t,e){return(0,wr.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,wr.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,gr.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 Ar={sliceAsync:void 0};const Sr=Ut,Ir=Kt;Ar.sliceAsync=function(t,e,n=1/0){return(0,Ir.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Ir.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Ir.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Ir.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Sr.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var _r={slice:void 0};const Tr=Ut,xr=Kt;_r.slice=function(t,e,n=1/0){return(0,xr.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,xr.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,xr.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,xr.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Tr.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Er={};Er.splitAsync=void 0,Er.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Or={splitByAsync:void 0};const jr=ue;Or.splitByAsync=function(t,e){return(0,jr.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var kr={};kr.splitBy=void 0,kr.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Nr={};Nr.split=void 0,Nr.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Br={takeAsync:void 0};const Pr=Ut,qr=Kt;Br.takeAsync=function(t,e){return(0,qr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Pr.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Cr={takeRightAsync:void 0};const Mr=Ut,zr=Kt;Cr.takeRightAsync=function(t,e){return(0,zr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,zr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Mr.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Rr={takeRight:void 0};const Ur=Ut,Dr=Kt;Rr.takeRight=function(t,e){return(0,Dr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Dr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ur.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Fr={takeUntilAsync:void 0};const Jr=ue;Fr.takeUntilAsync=function(t,e){return(0,Jr.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 Vr={};Vr.takeUntil=void 0,Vr.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Lr={take:void 0};const Wr=Ut,Kr=Kt;Lr.take=function(t,e){return(0,Kr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Kr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Wr.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Yr={tapAsync:void 0};const Hr=ue;Yr.tapAsync=function(t,e){return(0,Hr.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 $r={};$r.tap=void 0,$r.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Qr={};Qr.toAsyncIterable=void 0,Qr.toAsyncIterable=async function*(t){for(const e of t)yield e};var Xr={};Xr.transformAsync=void 0,Xr.transformAsync=async function*(t,e){yield*e(t)};var Gr={};Gr.transform=void 0,Gr.transform=function*(t,e){yield*e(t)};var Zr={};Zr.uniqAsync=void 0,Zr.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var to={uniqByAsync:void 0};const eo=ue;to.uniqByAsync=function(t,e){return(0,eo.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var no={};no.uniqBy=void 0,no.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var ro={};ro.uniq=void 0,ro.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var oo={zipAsync:void 0};const io=ue;var ao;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(ao||(ao={})),oo.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,io.isAsyncIterable)(t)?[ao.Async,t[Symbol.asyncIterator]()]:[ao.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===ao.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===ao.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var so={};so.zip=void 0,so.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Wt,t),r(ce,t),r(gn,t),r(wn,t),r(In,t),r(xn,t),r(On,t),r(Pn,t),r(zn,t),r(Fn,t),r(Vn,t),r(Ln,t),r(Hn,t),r(Qn,t),r(Xn,t),r(Zn,t),r(ir,t),r(Gn,t),r(sr,t),r(lr,t),r(dr,t),r(hr,t),r(vr,t),r(br,t),r(Ar,t),r(_r,t),r(Er,t),r(Or,t),r(kr,t),r(Nr,t),r(Br,t),r(Cr,t),r(Rr,t),r(Fr,t),r(Vr,t),r(Lr,t),r(Yr,t),r($r,t),r(Qr,t),r(Xr,t),r(Gr,t),r(Zr,t),r(to,t),r(no,t),r(ro,t),r(oo,t),r(so,t)}(Lt);var co={},uo={};uo.consume=void 0,uo.consume=function(t,e){return e(t)};var lo={eachAsync:void 0};const fo=ue;lo.eachAsync=function(t,e){return(0,fo.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 yo={};yo.each=void 0,yo.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var ho={everyAsync:void 0};const vo=ue;ho.everyAsync=function(t,e){return(0,vo.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 po={};po.every=void 0,po.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var mo={findAsync:void 0};const bo=ue;mo.findAsync=function(t,e){return(0,bo.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 go={};go.find=void 0,go.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var wo={};wo.firstAsync=void 0,wo.firstAsync=async function(t){for await(const e of t)return e};var Ao={};Ao.first=void 0,Ao.first=function(t){for(const e of t)return e};var So={};So.includesAsync=void 0,So.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Io={};Io.includes=void 0,Io.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var _o={};_o.matchAsync=void 0,_o.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var To={};To.match=void 0,To.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var xo={reduceAsync:void 0};const Eo=ue;xo.reduceAsync=function(t,e,n){return(0,Eo.isUndefined)(n)?function(t,e){return(0,Eo.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,Eo.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Oo={reduce:void 0};const jo=ue;Oo.reduce=function(t,e,n){return(0,jo.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var ko={someAsync:void 0};const No=ue;ko.someAsync=function(t,e){return(0,No.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 Bo={};Bo.some=void 0,Bo.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Po={};Po.lastAsync=void 0,Po.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var qo={};qo.last=void 0,qo.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Co={toArrayAsync:void 0};const Mo=uo;Co.toArrayAsync=function(t){return(0,Mo.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var zo={toArray:void 0};const Ro=uo;zo.toArray=function(t){return(0,Ro.consume)(t,(t=>Array.from(t)))};var Uo={toSetAsync:void 0};const Do=uo;Uo.toSetAsync=function(t){return(0,Do.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Fo={toSet:void 0};const Jo=uo;Fo.toSet=function(t){return(0,Jo.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(uo,t),r(lo,t),r(yo,t),r(ho,t),r(po,t),r(mo,t),r(go,t),r(wo,t),r(Ao,t),r(So,t),r(Io,t),r(_o,t),r(To,t),r(xo,t),r(Oo,t),r(ko,t),r(Bo,t),r(Po,t),r(qo,t),r(Co,t),r(zo,t),r(Uo,t),r(Fo,t)}(co),function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Lt,t),r(co,t)}(Vt);var Vo={},Lo={};Lo.traverseErrorPrototypeChain=void 0,Lo.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Vo.getErrorNames=void 0;const Wo=ue,Ko=Lo;Vo.getErrorNames=function*(t){var e;if((0,Wo.isError)(t))for(const n of(0,Ko.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Yo={isSerializableError:void 0};const Ho=ue;Yo.isSerializableError=function(t){return(0,Ho.isObject)(t)&&(0,Ho.isString)(t.name)&&(0,Ho.isString)(t.message)&&((0,Ho.isString)(t.stack)||(0,Ho.isNull)(t.stack))&&(0,Ho.isArray)(t.ancestors)&&t.ancestors.every(Ho.isString)},Jt.CustomError=void 0;const $o=Vt,Qo=Vo,Xo=ue,Go=Yo;class Zo extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,$o.first)((0,Qo.getErrorNames)(this)))&&void 0!==t?t:Zo.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Xo.isError)(t)||(0,Go.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Qo.getErrorNames)(this.prototype)].reverse(),r=(0,$o.toArray)((0,Qo.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Jt.CustomError=Zo;var ti={AssertionError:void 0};const ei=Jt;class ni extends ei.CustomError{}ti.AssertionError=ni;var ri={normalize:void 0};const oi=Vo,ii=Vt;ri.normalize=function(t){var e;const[n,...r]=(0,ii.toArray)((0,oi.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var ai={},si={},ci={};ci.pass=void 0,ci.pass=function(){},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(ci,t)}(si),ai.hydrate=void 0;const ui=si;function li(t,e){const n=function(){(0,ui.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}ai.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=li(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var fi={assert:void 0};const di=ti;fi.assert=function(t,e){if(!t)throw new di.AssertionError(e)},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Jt,t),r(ti,t),r(Yo,t),r(ri,t),r(ai,t),r(fi,t),r(Vo,t),r(Lo,t)}(Ft),Rt.chunkAsync=void 0;const yi=Ut,hi=Ft;Rt.chunkAsync=function(t,e){return(0,hi.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,hi.assert)(e>0,"The parameter size must be greater than 0"),(0,yi.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 vi={chunkByAsync:void 0};const pi=ue;vi.chunkByAsync=function(t,e){return(0,pi.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var mi={};mi.chunkBy=void 0,mi.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var bi={chunk:void 0};const gi=Ut,wi=Ft;bi.chunk=function(t,e){return(0,wi.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,wi.assert)(e>0,"The parameter size must be greater than 0"),(0,gi.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ai={concatAsync:void 0};const Si=ue,Ii=Ut;Ai.concatAsync=function(t,...e){return(0,Ii.go)((async function*(){for(const n of[t,...e])if((0,Si.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var _i={concat:void 0};const Ti=Ut;_i.concat=function(t,...e){return(0,Ti.go)((function*(){for(const n of[t,...e])yield*n}))};var xi={},Ei={};Ei.copyIterable=Ei.copyAsyncIterable=void 0,Ei.copyAsyncIterable=async function*(t){for await(const e of t)yield e},Ei.copyIterable=function*(t){for(const e of t)yield e},xi.dropAsync=void 0;const Oi=Ut,ji=Ei,ki=Ft;xi.dropAsync=function(t,e){return(0,ki.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,ki.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ji.copyAsyncIterable)(t):(0,Oi.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Ni={dropRightAsync:void 0};const Bi=Ut,Pi=Ei,qi=Ft;Ni.dropRightAsync=function(t,e){return(0,qi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Pi.copyAsyncIterable)(t):(0,Bi.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 Ci={dropRight:void 0};const Mi=Ut,zi=Ei,Ri=Ft;Ci.dropRight=function(t,e){return(0,Ri.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ri.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,zi.copyIterable)(t):(0,Mi.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Ui={dropUntilAsync:void 0};const Di=ue;Ui.dropUntilAsync=function(t,e){return(0,Di.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Fi={};Fi.dropUntil=void 0,Fi.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Ji={drop:void 0};const Vi=Ut,Li=Ei,Wi=Ft;Ji.drop=function(t,e){return(0,Wi.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wi.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Li.copyIterable)(t):(0,Vi.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Ki={filterAsync:void 0};const Yi=ue;Ki.filterAsync=function(t,e){return(0,Yi.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 Hi={};Hi.filter=void 0,Hi.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var $i={},Qi={},Xi={flattenByAsync:void 0};const Gi=ue;function Zi(t){return(0,Gi.isIterable)(t)&&(0,Gi.isntChar)(t)}Xi.flattenByAsync=function(t,e){return(0,Gi.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)Zi(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)Zi(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Qi.flattenDeepAsync=void 0;const ta=Xi,ea=Ft;Qi.flattenDeepAsync=function(t,e=1/0){return(0,ea.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ea.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ta.flattenByAsync)(t,((t,n)=>n<=e))},$i.flattenAsync=void 0;const na=Qi;$i.flattenAsync=function(t){return(0,na.flattenDeepAsync)(t,1)};var ra={flattenBy:void 0};const oa=ue;ra.flattenBy=function(t,e){return function*t(n,r){for(const i of n)(0,oa.isIterable)(o=i)&&(0,oa.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var ia={flattenDeep:void 0};const aa=ra,sa=Ft;ia.flattenDeep=function(t,e=1/0){return(0,sa.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,sa.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,aa.flattenBy)(t,((t,n)=>n<=e))};var ca={flatten:void 0};const ua=ia;ca.flatten=function(t){return(0,ua.flattenDeep)(t,1)};var la={mapAsync:void 0};const fa=ue;la.mapAsync=function(t,e){return(0,fa.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 da={};da.map=void 0,da.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var ya={repeatAsync:void 0};const ha=Ut,va=Ft;ya.repeatAsync=function(t,e){return(0,va.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,va.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,ha.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 pa={repeat:void 0};const ma=Ut,ba=Ft;pa.repeat=function(t,e){return(0,ba.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,ba.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,ma.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 ga={sliceAsync:void 0};const wa=Ut,Aa=Ft;ga.sliceAsync=function(t,e,n=1/0){return(0,Aa.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Aa.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Aa.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Aa.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,wa.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Sa={slice:void 0};const Ia=Ut,_a=Ft;Sa.slice=function(t,e,n=1/0){return(0,_a.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,_a.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,_a.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,_a.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ia.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Ta={};Ta.splitAsync=void 0,Ta.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var xa={splitByAsync:void 0};const Ea=ue;xa.splitByAsync=function(t,e){return(0,Ea.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var Oa={};Oa.splitBy=void 0,Oa.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var ja={};ja.split=void 0,ja.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var ka={takeAsync:void 0};const Na=Ut,Ba=Ft;ka.takeAsync=function(t,e){return(0,Ba.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ba.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Na.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Pa={takeRightAsync:void 0};const qa=Ut,Ca=Ft;Pa.takeRightAsync=function(t,e){return(0,Ca.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ca.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,qa.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Ma={takeRight:void 0};const za=Ut,Ra=Ft;Ma.takeRight=function(t,e){return(0,Ra.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ra.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,za.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Ua={takeUntilAsync:void 0};const Da=ue;Ua.takeUntilAsync=function(t,e){return(0,Da.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 Fa={};Fa.takeUntil=void 0,Fa.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Ja={take:void 0};const Va=Ut,La=Ft;Ja.take=function(t,e){return(0,La.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,La.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Va.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Wa={tapAsync:void 0};const Ka=ue;Wa.tapAsync=function(t,e){return(0,Ka.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 Ya={};Ya.tap=void 0,Ya.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Ha={};Ha.toAsyncIterable=void 0,Ha.toAsyncIterable=async function*(t){for(const e of t)yield e};var $a={};$a.transformAsync=void 0,$a.transformAsync=async function*(t,e){yield*e(t)};var Qa={};Qa.transform=void 0,Qa.transform=function*(t,e){yield*e(t)};var Xa={};Xa.uniqAsync=void 0,Xa.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var Ga={uniqByAsync:void 0};const Za=ue;Ga.uniqByAsync=function(t,e){return(0,Za.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var ts={};ts.uniqBy=void 0,ts.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var es={};es.uniq=void 0,es.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var ns={zipAsync:void 0};const rs=ue;var os;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(os||(os={})),ns.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,rs.isAsyncIterable)(t)?[os.Async,t[Symbol.asyncIterator]()]:[os.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===os.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===os.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var is={};is.zip=void 0,is.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Rt,t),r(vi,t),r(mi,t),r(bi,t),r(Ai,t),r(_i,t),r(xi,t),r(Ni,t),r(Ci,t),r(Ui,t),r(Fi,t),r(Ji,t),r(Ki,t),r(Hi,t),r($i,t),r(Xi,t),r(ra,t),r(Qi,t),r(ia,t),r(ca,t),r(la,t),r(da,t),r(ya,t),r(pa,t),r(ga,t),r(Sa,t),r(Ta,t),r(xa,t),r(Oa,t),r(ja,t),r(ka,t),r(Pa,t),r(Ma,t),r(Ua,t),r(Fa,t),r(Ja,t),r(Wa,t),r(Ya,t),r(Ha,t),r($a,t),r(Qa,t),r(Xa,t),r(Ga,t),r(ts,t),r(es,t),r(ns,t),r(is,t)}(zt);var as={},ss={};ss.consume=void 0,ss.consume=function(t,e){return e(t)};var cs={eachAsync:void 0};const us=ue;cs.eachAsync=function(t,e){return(0,us.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 ls={};ls.each=void 0,ls.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var fs={everyAsync:void 0};const ds=ue;fs.everyAsync=function(t,e){return(0,ds.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 ys={};ys.every=void 0,ys.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var hs={findAsync:void 0};const vs=ue;hs.findAsync=function(t,e){return(0,vs.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 ps={};ps.find=void 0,ps.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var ms={};ms.firstAsync=void 0,ms.firstAsync=async function(t){for await(const e of t)return e};var bs={};bs.first=void 0,bs.first=function(t){for(const e of t)return e};var gs={};gs.includesAsync=void 0,gs.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var ws={};ws.includes=void 0,ws.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var As={};As.matchAsync=void 0,As.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Ss={};Ss.match=void 0,Ss.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Is={reduceAsync:void 0};const _s=ue;Is.reduceAsync=function(t,e,n){return(0,_s.isUndefined)(n)?function(t,e){return(0,_s.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,_s.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var Ts={reduce:void 0};const xs=ue;Ts.reduce=function(t,e,n){return(0,xs.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var Es={someAsync:void 0};const Os=ue;Es.someAsync=function(t,e){return(0,Os.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 js={};js.some=void 0,js.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var ks={};ks.lastAsync=void 0,ks.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Ns={};Ns.last=void 0,Ns.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var Bs={toArrayAsync:void 0};const Ps=ss;Bs.toArrayAsync=function(t){return(0,Ps.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var qs={toArray:void 0};const Cs=ss;qs.toArray=function(t){return(0,Cs.consume)(t,(t=>Array.from(t)))};var Ms={toSetAsync:void 0};const zs=ss;Ms.toSetAsync=function(t){return(0,zs.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Rs={toSet:void 0};const Us=ss;Rs.toSet=function(t){return(0,Us.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(ss,t),r(cs,t),r(ls,t),r(fs,t),r(ys,t),r(hs,t),r(ps,t),r(ms,t),r(bs,t),r(gs,t),r(ws,t),r(As,t),r(Ss,t),r(Is,t),r(Ts,t),r(Es,t),r(js,t),r(ks,t),r(Ns,t),r(Bs,t),r(qs,t),r(Ms,t),r(Rs,t)}(as),function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(zt,t),r(as,t)}(Mt);var Ds={},Fs={};Fs.traverseErrorPrototypeChain=void 0,Fs.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Ds.getErrorNames=void 0;const Js=ue,Vs=Fs;Ds.getErrorNames=function*(t){var e;if((0,Js.isError)(t))for(const n of(0,Vs.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Ls={isSerializableError:void 0};const Ws=ue;Ls.isSerializableError=function(t){return(0,Ws.isObject)(t)&&(0,Ws.isString)(t.name)&&(0,Ws.isString)(t.message)&&((0,Ws.isString)(t.stack)||(0,Ws.isNull)(t.stack))&&(0,Ws.isArray)(t.ancestors)&&t.ancestors.every(Ws.isString)},Ct.CustomError=void 0;const Ks=Mt,Ys=Ds,Hs=ue,$s=Ls;class Qs extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Ks.first)((0,Ys.getErrorNames)(this)))&&void 0!==t?t:Qs.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Hs.isError)(t)||(0,$s.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Ys.getErrorNames)(this.prototype)].reverse(),r=(0,Ks.toArray)((0,Ys.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Ct.CustomError=Qs;var Xs={AssertionError:void 0};const Gs=Ct;class Zs extends Gs.CustomError{}Xs.AssertionError=Zs;var tc={normalize:void 0};const ec=Ds,nc=Mt;tc.normalize=function(t){var e;const[n,...r]=(0,nc.toArray)((0,ec.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var rc={},oc={},ic={};ic.pass=void 0,ic.pass=function(){},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(ic,t)}(oc),rc.hydrate=void 0;const ac=oc;function sc(t,e){const n=function(){(0,ac.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}rc.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=sc(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,o};var cc={assert:void 0};const uc=Xs;cc.assert=function(t,e){if(!t)throw new uc.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ct,t),r(Xs,t),r(Ls,t),r(tc,t),r(rc,t),r(cc,t),r(Ds,t),r(Fs,t)}(qt);var lc={},fc={},dc={},yc={},hc={};hc.go=void 0,hc.go=function(t){return t()},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(hc,t)}(yc),dc.chunkAsync=void 0;const vc=yc,pc=qt;dc.chunkAsync=function(t,e){return(0,pc.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,pc.assert)(e>0,"The parameter size must be greater than 0"),(0,vc.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 mc={chunkByAsync:void 0};const bc=r;mc.chunkByAsync=function(t,e){return(0,bc.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t):async function*(t){let n=[],r=0;for(const o of t)n.push(o),await e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)}(t)};var gc={};gc.chunkBy=void 0,gc.chunkBy=function*(t,e){let n=[],r=0;for(const o of t)n.push(o),e(o,r)&&(yield n,n=[]),r++;n.length&&(yield n)};var wc={chunk:void 0};const Ac=yc,Sc=qt;wc.chunk=function(t,e){return(0,Sc.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Sc.assert)(e>0,"The parameter size must be greater than 0"),(0,Ac.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ic={concatAsync:void 0};const _c=r,Tc=yc;Ic.concatAsync=function(t,...e){return(0,Tc.go)((async function*(){for(const n of[t,...e])if((0,_c.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var xc={concat:void 0};const Ec=yc;xc.concat=function(t,...e){return(0,Ec.go)((function*(){for(const n of[t,...e])yield*n}))};var Oc={},jc={};jc.copyIterable=jc.copyAsyncIterable=void 0,jc.copyAsyncIterable=async function*(t){for await(const e of t)yield e},jc.copyIterable=function*(t){for(const e of t)yield e},Oc.dropAsync=void 0;const kc=yc,Nc=jc,Bc=qt;Oc.dropAsync=function(t,e){return(0,Bc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Bc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Nc.copyAsyncIterable)(t):(0,kc.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Pc={dropRightAsync:void 0};const qc=yc,Cc=jc,Mc=qt;Pc.dropRightAsync=function(t,e){return(0,Mc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Cc.copyAsyncIterable)(t):(0,qc.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 zc={dropRight:void 0};const Rc=yc,Uc=jc,Dc=qt;zc.dropRight=function(t,e){return(0,Dc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Dc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Uc.copyIterable)(t):(0,Rc.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Fc={dropUntilAsync:void 0};const Jc=r;Fc.dropUntilAsync=function(t,e){return(0,Jc.isAsyncIterable)(t)?async function*(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||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 o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}(t)};var Vc={};Vc.dropUntil=void 0,Vc.dropUntil=function*(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||e(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}};var Lc={drop:void 0};const Wc=yc,Kc=jc,Yc=qt;Lc.drop=function(t,e){return(0,Yc.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Yc.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Kc.copyIterable)(t):(0,Wc.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||e<=0);)e--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Hc={filterAsync:void 0};const $c=r;Hc.filterAsync=function(t,e){return(0,$c.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 Qc={};Qc.filter=void 0,Qc.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Xc={},Gc={},Zc={flattenByAsync:void 0};const tu=r;function eu(t){return(0,tu.isIterable)(t)&&(0,tu.isntChar)(t)}Zc.flattenByAsync=function(t,e){return(0,tu.isAsyncIterable)(t)?async function*(t){const r=1;for await(const o of t)eu(o)&&await e(o,r)?yield*n(o,r+1):yield o}(t):function(t){return n(t,1)}(t);async function*n(t,r){for(const o of t)eu(o)&&await e(o,r)?yield*n(o,r+1):yield o}},Gc.flattenDeepAsync=void 0;const nu=Zc,ru=qt;Gc.flattenDeepAsync=function(t,e=1/0){return(0,ru.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ru.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,nu.flattenByAsync)(t,((t,n)=>n<=e))},Xc.flattenAsync=void 0;const ou=Gc;Xc.flattenAsync=function(t){return(0,ou.flattenDeepAsync)(t,1)};var iu={flattenBy:void 0};const au=r;iu.flattenBy=function(t,e){return function*t(n,r){for(const i of n)o=i,(0,au.isIterable)(o)&&(0,au.isntChar)(o)&&e(i,r)?yield*t(i,r+1):yield i;var o}(t,1)};var su={flattenDeep:void 0};const cu=iu,uu=qt;su.flattenDeep=function(t,e=1/0){return(0,uu.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,uu.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,cu.flattenBy)(t,((t,n)=>n<=e))};var lu={flatten:void 0};const fu=su;lu.flatten=function(t){return(0,fu.flattenDeep)(t,1)};var du={mapAsync:void 0};const yu=r;du.mapAsync=function(t,e){return(0,yu.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 hu={};hu.map=void 0,hu.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var vu={repeatAsync:void 0};const pu=yc,mu=qt;vu.repeatAsync=function(t,e){return(0,mu.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,mu.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,pu.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 bu={repeat:void 0};const gu=yc,wu=qt;bu.repeat=function(t,e){return(0,wu.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,wu.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,gu.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 Au={sliceAsync:void 0};const Su=yc,Iu=qt;Au.sliceAsync=function(t,e,n=1/0){return(0,Iu.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Iu.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Iu.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Iu.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Su.go)((async function*(){let r=0;for await(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var _u={slice:void 0};const Tu=yc,xu=qt;_u.slice=function(t,e,n=1/0){return(0,xu.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,xu.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,xu.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,xu.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Tu.go)((function*(){let r=0;for(const o of t){if(r>=n)break;r>=e&&(yield o),r++}}))};var Eu={};Eu.splitAsync=void 0,Eu.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ou={splitByAsync:void 0};const ju=r;Ou.splitByAsync=function(t,e){return(0,ju.isAsyncIterable)(t)?async function*(t){let n=[],r=0;for await(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t):async function*(t){let n=[],r=0;for(const o of t)await e(o,r)?(yield n,n=[]):n.push(o),r++;yield n}(t)};var ku={};ku.splitBy=void 0,ku.splitBy=function*(t,e){let n=[],r=0;for(const o of t)e(o,r)?(yield n,n=[]):n.push(o),r++;yield n};var Nu={};Nu.split=void 0,Nu.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Bu={takeAsync:void 0};const Pu=yc,qu=qt;Bu.takeAsync=function(t,e){return(0,qu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Pu.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Cu={takeRightAsync:void 0};const Mu=yc,zu=qt;Cu.takeRightAsync=function(t,e){return(0,zu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,zu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Mu.go)((async function*(){var n;const r=t[Symbol.asyncIterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=await r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}}))};var Ru={takeRight:void 0};const Uu=yc,Du=qt;Ru.takeRight=function(t,e){return(0,Du.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Du.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Uu.go)((function*(){var n;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>e&&t.shift();yield*t}finally{o||null===(n=r.return)||void 0===n||n.call(r)}}))};var Fu={takeUntilAsync:void 0};const Ju=r;Fu.takeUntilAsync=function(t,e){return(0,Ju.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 Vu={};Vu.takeUntil=void 0,Vu.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Lu={take:void 0};const Wu=yc,Ku=qt;Lu.take=function(t,e){return(0,Ku.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ku.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Wu.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Yu={tapAsync:void 0};const Hu=r;Yu.tapAsync=function(t,e){return(0,Hu.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 $u={};$u.tap=void 0,$u.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Qu={};Qu.toAsyncIterable=void 0,Qu.toAsyncIterable=async function*(t){for(const e of t)yield e};var Xu={};Xu.transformAsync=void 0,Xu.transformAsync=async function*(t,e){yield*e(t)};var Gu={};Gu.transform=void 0,Gu.transform=function*(t,e){yield*e(t)};var Zu={};Zu.uniqAsync=void 0,Zu.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var tl={uniqByAsync:void 0};const el=r;tl.uniqByAsync=function(t,e){return(0,el.isAsyncIterable)(t)?async function*(t){const n=new Set;let r=0;for await(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t):async function*(t){const n=new Set;let r=0;for(const o of t){const t=await e(o,r);n.has(t)||(yield o,n.add(t)),r++}}(t)};var nl={};nl.uniqBy=void 0,nl.uniqBy=function*(t,e){const n=new Set;let r=0;for(const o of t){const t=e(o,r);n.has(t)||(yield o,n.add(t)),r++}};var rl={};rl.uniq=void 0,rl.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var ol={zipAsync:void 0};const il=r;var al;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(al||(al={})),ol.zipAsync=function(t,...e){return async function*(...t){var e,n,r,o;const i=t.length,a=t.map((t=>(0,il.isAsyncIterable)(t)?[al.Async,t[Symbol.asyncIterator]()]:[al.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let e=0;e<i;e++){const[n,r]=a[e];let o;if(o=n===al.Async?await r.next():r.next(),o.done)return void(s[e]=!0);t[e]=o.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[i,a]of t)i===al.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...e)};var sl={};sl.zip=void 0,sl.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 o=0;o<e;o++){const{value:e,done:i}=n[o].next();if(i)return void(r[o]=!0);t[o]=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=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(dc,t),r(mc,t),r(gc,t),r(wc,t),r(Ic,t),r(xc,t),r(Oc,t),r(Pc,t),r(zc,t),r(Fc,t),r(Vc,t),r(Lc,t),r(Hc,t),r(Qc,t),r(Xc,t),r(Zc,t),r(iu,t),r(Gc,t),r(su,t),r(lu,t),r(du,t),r(hu,t),r(vu,t),r(bu,t),r(Au,t),r(_u,t),r(Eu,t),r(Ou,t),r(ku,t),r(Nu,t),r(Bu,t),r(Cu,t),r(Ru,t),r(Fu,t),r(Vu,t),r(Lu,t),r(Yu,t),r($u,t),r(Qu,t),r(Xu,t),r(Gu,t),r(Zu,t),r(tl,t),r(nl,t),r(rl,t),r(ol,t),r(sl,t)}(fc);var cl={},ul={};ul.consume=void 0,ul.consume=function(t,e){return e(t)};var ll={eachAsync:void 0};const fl=r;ll.eachAsync=function(t,e){return(0,fl.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 dl={};dl.each=void 0,dl.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var yl={everyAsync:void 0};const hl=r;yl.everyAsync=function(t,e){return(0,hl.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 vl={};vl.every=void 0,vl.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var pl={findAsync:void 0};const ml=r;pl.findAsync=function(t,e){return(0,ml.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 bl={};bl.find=void 0,bl.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var gl={};gl.firstAsync=void 0,gl.firstAsync=async function(t){for await(const e of t)return e};var wl={};wl.first=void 0,wl.first=function(t){for(const e of t)return e};var Al={};Al.includesAsync=void 0,Al.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Sl={};Sl.includes=void 0,Sl.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Il={};Il.matchAsync=void 0,Il.matchAsync=async function(t,e){const n=e.length;let r=0;for await(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var _l={};_l.match=void 0,_l.match=function(t,e){const n=e.length;let r=0;for(const o of t)if(o===e[r]&&r++,r===n)return!0;return!1};var Tl={reduceAsync:void 0};const xl=r;Tl.reduceAsync=function(t,e,n){return(0,xl.isUndefined)(n)?function(t,e){return(0,xl.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await e(a,t,s++);return a}finally{o||await(null===(n=r.return)||void 0===n?void 0:n.call(r))}async function i(t){const e=await t.next();if(e.done)throw o=!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 o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}}(t,e):function(t,e,n){return(0,xl.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=n,o=0;for(const n of t)r=await e(r,n,o++);return r}async function o(t){let r=n,o=0;for await(const n of t)r=await e(r,n,o++);return r}}(t,e,n)};var El={reduce:void 0};const Ol=r;El.reduce=function(t,e,n){return(0,Ol.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=e(a,t,s++);return a}finally{o||null===(n=r.return)||void 0===n||n.call(r)}function i(t){const e=t.next();if(e.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return e.value}}(t,e):function(t,e,n){let r=n,o=0;for(const n of t)r=e(r,n,o++);return r}(t,e,n)};var jl={someAsync:void 0};const kl=r;jl.someAsync=function(t,e){return(0,kl.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 Nl={};Nl.some=void 0,Nl.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Bl={};Bl.lastAsync=void 0,Bl.lastAsync=async function(t){var e;const n=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await n.next()),!r;)o=t;return o}finally{r||await(null===(e=n.return)||void 0===e?void 0:e.call(n))}};var Pl={};Pl.last=void 0,Pl.last=function(t){var e;const n=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=n.next()),!r;)o=t;return o}finally{r||null===(e=n.return)||void 0===e||e.call(n)}};var ql={toArrayAsync:void 0};const Cl=ul;ql.toArrayAsync=function(t){return(0,Cl.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Ml={toArray:void 0};const zl=ul;Ml.toArray=function(t){return(0,zl.consume)(t,(t=>Array.from(t)))};var Rl={toSetAsync:void 0};const Ul=ul;Rl.toSetAsync=function(t){return(0,Ul.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Dl={toSet:void 0};const Fl=ul;Dl.toSet=function(t){return(0,Fl.consume)(t,(t=>new Set(t)))};var Jl={};Jl.count=void 0,Jl.count=function(t){let e=0;for(const n of t)e++;return e};var Vl={};Vl.countAsync=void 0,Vl.countAsync=async function(t){let e=0;for await(const n of t)e++;return e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(ul,t),r(ll,t),r(dl,t),r(yl,t),r(vl,t),r(pl,t),r(bl,t),r(gl,t),r(wl,t),r(Al,t),r(Sl,t),r(Il,t),r(_l,t),r(Tl,t),r(El,t),r(jl,t),r(Nl,t),r(Bl,t),r(Pl,t),r(ql,t),r(Ml,t),r(Rl,t),r(Dl,t),r(Jl,t),r(Vl,t)}(cl),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(e,n);o&&!("get"in o?!e.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,o)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(fc,t),r(cl,t)}(lc);class Ll{constructor(t){this.map=new Map,qt.assert(Number.isInteger(t),"The parameter limit must be an integer"),qt.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.has(t)?this.updateItem(t,e):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e)),this}has(t){return this.map.has(t)}get(t){if(!this.has(t))return;const e=this.map.get(t);return this.updateItem(t,e),e}delete(t){return this.map.delete(t)}clear(){this.map.clear()}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}getColdestKey(){return lc.first(this.map.keys())}}var Wl={},Kl={},Yl={},Hl={};Hl.random=void 0,Hl.random=function(t,e){return Math.random()*(e-t)+t};var $l={};$l.randomInt=void 0,$l.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var Ql={};Ql.randomIntInclusive=void 0,Ql.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=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Hl,t),r($l,t),r(Ql,t)}(Yl),Kl.calculateExponentialBackoffTimeout=void 0;const Xl=Yl;Kl.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:e,maxTimeout:n=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**e*t,n);return o?(0,Xl.randomIntInclusive)(0,i):i};var Gl={};Gl.setTimeout=void 0,Gl.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var Zl={setSchedule:void 0};const tf=Gl;Zl.setSchedule=function(t,e){const n=t-Date.now();return(0,tf.setTimeout)(n,e)};var ef={};ef.setInterval=void 0,ef.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var nf={setImmediate:void 0};const rf=Gl;nf.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,rf.setTimeout)(0,t)};var of={setTimeoutLoop:void 0};const af=Gl;of.setTimeoutLoop=function(t,e){let n=!1,r=(0,af.setTimeout)(t,(async function o(){await e(),n||(r=(0,af.setTimeout)(t,o))}));return()=>{n=!0,r()}};var sf={setDynamicTimeoutLoop:void 0};const cf=Gl;sf.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,cf.setTimeout)(t,(async function o(){const i=Date.now();await e();const a=Date.now()-i;n||(r=(0,cf.setTimeout)(Math.max(t-a,0),o))}));return()=>{n=!0,r()}},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Kl,t),r(Gl,t),r(Zl,t),r(ef,t),r(nf,t),r(of,t),r(sf,t)}(Wl);class uf{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return this.map.has(t)}get(t){return this.map.get(t)}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Wl.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}}class lf{constructor(t){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],qt.assert(Number.isInteger(t),"The parameter limit must be an integer"),qt.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return this.map.has(t)}get(t){if(this.has(t)){const e=this.map.get(t);return this.updateItem(t,e),e}}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){this.map.delete(t),this.map.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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Wl.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return lc.first(this.map.keys())}}class ff{constructor(t){this.value=t,this.children=new Map}}class df{constructor(){this.root=new ff}get[Symbol.toStringTag](){return this.constructor.name}*entries(){yield*function*t(e,n){for(const[o,i]of e.children){const e=[...n,o];r.isntUndefined(i.value)&&(yield[e,i.value]),yield*t(i,e)}}(this.root,[])}keys(){return lc.map(this.entries(),(([t])=>t))}values(){return lc.map(this.entries(),(([t,e])=>e))}set(t,e){let n=this.root;for(const e of t)n.children.has(e)||n.children.set(e,new ff),n=n.children.get(e);return n.value=e,this}has(t){let e=this.root;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=this.root;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=this.root;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 lc.toArray(lc.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class yf{constructor(t,e){this.schema=t,this._state=e}get[Symbol.toStringTag](){return this.constructor.name}get state(){return this._state}matches(t){return this._state===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new hf(this.state,t);this._state=this.schema[this.state][t]}}class hf extends qt.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
|
|
1
|
+
!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";class e{constructor(t){this.value=t}get[Symbol.toStringTag](){return this.constructor.name}set(t){this.value=t}get(){return this.value}}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r={},i={};function o(t){return Array.isArray(t)}i.isntEmptyArray=i.isEmptyArray=i.isntArray=i.isArray=void 0,i.isArray=o,i.isntArray=function(t){return!o(t)},i.isEmptyArray=function(t){return 0===t.length},i.isntEmptyArray=function(t){return 0!==t.length};var a={},s={};function c(t){return null===t}s.isntNull=s.isNull=void 0,s.isNull=c,s.isntNull=function(t){return!c(t)};var u={};function l(t){return void 0===t}u.isntUndefined=u.isUndefined=void 0,u.isUndefined=l,u.isntUndefined=function(t){return!l(t)};var f={};function d(t){return"function"==typeof t}f.isntFunction=f.isFunction=void 0,f.isFunction=d,f.isntFunction=function(t){return!d(t)},a.isntAsyncIterable=a.isAsyncIterable=void 0;const y=s,h=u,v=f;function p(t){return(0,y.isntNull)(t)&&(0,h.isntUndefined)(t)&&(0,v.isFunction)(t[Symbol.asyncIterator])}a.isAsyncIterable=p,a.isntAsyncIterable=function(t){return!p(t)};var m={};function b(t){return"bigint"==typeof t}m.isntBigInt=m.isBigInt=void 0,m.isBigInt=b,m.isntBigInt=function(t){return!b(t)};var g={};function w(t){return"boolean"==typeof t}g.isntBoolean=g.isBoolean=void 0,g.isBoolean=w,g.isntBoolean=function(t){return!w(t)};var A={},S={};function I(t){return"string"==typeof t}S.isntString=S.isString=void 0,S.isString=I,S.isntString=function(t){return!I(t)},A.isntChar=A.isChar=void 0;const _=S;function T(t){return(0,_.isString)(t)&&1===t.length}A.isChar=T,A.isntChar=function(t){return!T(t)};var x={};function E(t){return t instanceof Date}x.isntDate=x.isDate=void 0,x.isDate=E,x.isntDate=function(t){return!E(t)};var O={};O.inEnum=void 0,O.inEnum=function(t,e){return Object.values(e).includes(t)};var j={};function N(t){return t instanceof Error}j.isntError=j.isError=void 0,j.isError=N,j.isntError=function(t){return!N(t)};var k={};function B(t){return!t}k.isntFalsy=k.isFalsy=void 0,k.isFalsy=B,k.isntFalsy=function(t){return!B(t)};var P={};P.isntIterable=P.isIterable=void 0;const q=s,C=u,M=f;function R(t){return(0,q.isntNull)(t)&&(0,C.isntUndefined)(t)&&(0,M.isFunction)(t[Symbol.iterator])}P.isIterable=R,P.isntIterable=function(t){return!R(t)};var z={},F={};function U(t){return"number"==typeof t}function D(t){return Number.isNaN(t)}F.isntNaN=F.isNaN=F.isNegativeInfinity=F.isPositiveInfinity=F.isFinite=F.isntNumber=F.isNumber=void 0,F.isNumber=U,F.isntNumber=function(t){return!U(t)},F.isFinite=function(t){return Number.isFinite(t)},F.isPositiveInfinity=function(t){return t===1/0},F.isNegativeInfinity=function(t){return t===-1/0},F.isNaN=D,F.isntNaN=function(t){return!D(t)};var J={},L="object"==typeof n&&n&&n.Object===Object&&n,V="object"==typeof self&&self&&self.Object===Object&&self,W=(L||V||Function("return this")()).Symbol,K=W,Y=Object.prototype,H=Y.hasOwnProperty,$=Y.toString,Q=K?K.toStringTag:void 0;var X=function(t){var e=H.call(t,Q),n=t[Q];try{t[Q]=void 0;var r=!0}catch(t){}var i=$.call(t);return r&&(e?t[Q]=n:delete t[Q]),i},G=Object.prototype.toString;var Z=X,tt=function(t){return G.call(t)},et=W?W.toStringTag:void 0;var nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":et&&et in Object(t)?Z(t):tt(t)};var rt=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var it=nt,ot=rt,at=function(t){return null!=t&&"object"==typeof t},st=Function.prototype,ct=Object.prototype,ut=st.toString,lt=ct.hasOwnProperty,ft=ut.call(Object);var dt=function(t){if(!at(t)||"[object Object]"!=it(t))return!1;var e=ot(t);if(null===e)return!0;var n=lt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==ft},yt=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};J.isntEmptyObject=J.isEmptyObject=J.isntPlainObject=J.isPlainObject=J.isntObject=J.isObject=void 0;const ht=yt(dt);function vt(t){return null!==t&&"object"==typeof t}function pt(t){return(0,ht.default)(t)}J.isObject=vt,J.isntObject=function(t){return!vt(t)},J.isPlainObject=pt,J.isntPlainObject=function(t){return!pt(t)},J.isEmptyObject=function(t){return 0===Object.keys(t).length},J.isntEmptyObject=function(t){return 0!==Object.keys(t).length},z.isntJsonable=z.isJsonable=z.isntJson=z.isJson=void 0;const mt=s,bt=g,gt=S,wt=F,At=i,St=J;function It(t){return(0,mt.isNull)(t)||(0,bt.isBoolean)(t)||(0,gt.isString)(t)||(0,wt.isNumber)(t)||(0,At.isArray)(t)&&t.every(It)||(0,St.isPlainObject)(t)&&Object.values(t).every(It)}z.isJson=It,z.isntJson=function(t){return!It(t)},z.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},z.isntJsonable=function t(e){return!t()};var _t={};_t.isPromiseLike=_t.isntPromiseLike=_t.isntPromise=_t.isPromise=void 0;const Tt=J,xt=f;function Et(t){return t instanceof Promise}function Ot(t){return(0,Tt.isObject)(t)&&(0,xt.isFunction)(t.then)}_t.isPromise=Et,_t.isntPromise=function(t){return!Et(t)},_t.isntPromiseLike=function(t){return!Ot(t)},_t.isPromiseLike=Ot;var jt={};jt.isAbsoluteURL=void 0,jt.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var Nt={};function kt(t){return t instanceof RegExp}Nt.isntRegExp=Nt.isRegExp=void 0,Nt.isRegExp=kt,Nt.isntRegExp=function(t){return!kt(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(i,t),r(a,t),r(m,t),r(g,t),r(A,t),r(x,t),r(O,t),r(j,t),r(k,t),r(f,t),r(P,t),r(z,t),r(s,t),r(F,t),r(J,t),r(_t,t),r(S,t),r(u,t),r(jt,t),r(Nt,t)}(r);class Bt{constructor(){this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}on(t,e){this.map.has(t)||this.map.set(t,new Set);return this.map.get(t).add(n),()=>{if(!this.map.has(t))return;const e=this.map.get(t);e.delete(n),0===e.size&&this.map.delete(t)};function n(...t){e(...t)}}once(t,e){const n=this.on(t,((...t)=>{e(...t),n()}));return n}emit(t,...e){this.map.has(t)&&this.map.get(t).forEach((t=>t(...e)))}}class Pt{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.set(this.hash(t),e),this}has(t){return this.map.has(this.hash(t))}get(t){return this.map.get(this.hash(t))}delete(t){return this.map.delete(this.hash(t))}clear(){this.map.clear()}}class qt{constructor(t){this.hash=t,this.map=new Map}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}[Symbol.iterator](){return this.map.values()}add(t){return this.map.set(this.hash(t),t),this}delete(t){return this.map.delete(this.hash(t))}has(t){return this.map.has(this.hash(t))}clear(){this.map.clear()}values(){return this.map.values()}}class Ct{constructor(){this.items=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.items.length}empty(){this.items.length=0}enqueue(...t){this.items.push(...t)}dequeue(){return this.items.shift()}remove(t){let e;for(;(e=this.items.indexOf(t))>=0;)this.items.splice(e,1)}}var Mt={},Rt={},zt={},Ft={},Ut={},Dt={},Jt={};Jt.go=void 0,Jt.go=function(t){return t()},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Jt,t)}(Dt);var Lt={},Vt={},Wt={},Kt={},Yt={},Ht={},$t={CustomError:void 0};class Qt extends Error{get name(){return this.constructor.name}}$t.CustomError=Qt;var Xt={ExpectedError:void 0};const Gt=$t;class Zt extends Gt.CustomError{}Xt.ExpectedError=Zt;var te={AssertionError:void 0};const ee=$t;class ne extends ee.CustomError{}te.AssertionError=ne;var re={};re.normalize=void 0,re.normalize=function(t){var e;return{name:t.name,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var ie={refute:void 0};const oe=Xt;ie.refute=function(t,e){if(t)throw new oe.ExpectedError(e)};var ae={assert:void 0};const se=te;ae.assert=function(t,e){if(!t)throw new se.AssertionError(e)},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r($t,t),r(Xt,t),r(te,t),r(re,t),r(ie,t),r(ae,t)}(Ht),Yt.chunkAsync=void 0;const ce=Dt,ue=Ht;Yt.chunkAsync=function(t,e){return(0,ue.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,ue.assert)(e>0,"The parameter size must be greater than 0"),(0,ce.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 le={},fe={},de={};function ye(t){return Array.isArray(t)}de.isntEmptyArray=de.isEmptyArray=de.isntArray=de.isArray=void 0,de.isArray=ye,de.isntArray=function(t){return!ye(t)},de.isEmptyArray=function(t){return 0===t.length},de.isntEmptyArray=function(t){return 0!==t.length};var he={},ve={};function pe(t){return null===t}ve.isntNull=ve.isNull=void 0,ve.isNull=pe,ve.isntNull=function(t){return!pe(t)};var me={};function be(t){return void 0===t}me.isntUndefined=me.isUndefined=void 0,me.isUndefined=be,me.isntUndefined=function(t){return!be(t)},he.isntAsyncIterable=he.isAsyncIterable=void 0;const ge=ve,we=me;function Ae(t){return(0,ge.isntNull)(t)&&(0,we.isntUndefined)(t)&&"function"==typeof t[Symbol.asyncIterator]}he.isAsyncIterable=Ae,he.isntAsyncIterable=function(t){return!Ae(t)};var Se={};function Ie(t){return"bigint"==typeof t}Se.isntBigInt=Se.isBigInt=void 0,Se.isBigInt=Ie,Se.isntBigInt=function(t){return!Ie(t)};var _e={};function Te(t){return"boolean"==typeof t}_e.isntBoolean=_e.isBoolean=void 0,_e.isBoolean=Te,_e.isntBoolean=function(t){return!Te(t)};var xe={},Ee={};function Oe(t){return"string"==typeof t}Ee.isntString=Ee.isString=void 0,Ee.isString=Oe,Ee.isntString=function(t){return!Oe(t)},xe.isntChar=xe.isChar=void 0;const je=Ee;function Ne(t){return(0,je.isString)(t)&&1===t.length}xe.isChar=Ne,xe.isntChar=function(t){return!Ne(t)};var ke={};function Be(t){return t instanceof Date}ke.isntDate=ke.isDate=void 0,ke.isDate=Be,ke.isntDate=function(t){return!Be(t)};var Pe={};Pe.inEnum=void 0,Pe.inEnum=function(t,e){return Object.values(e).includes(t)};var qe={};function Ce(t){return t instanceof Error}qe.isntError=qe.isError=void 0,qe.isError=Ce,qe.isntError=function(t){return!Ce(t)};var Me={};function Re(t){return!t}Me.isntFalsy=Me.isFalsy=void 0,Me.isFalsy=Re,Me.isntFalsy=function(t){return!Re(t)};var ze={};function Fe(t){return"function"==typeof t}ze.isntFunction=ze.isFunction=void 0,ze.isFunction=Fe,ze.isntFunction=function(t){return!Fe(t)};var Ue={};Ue.isntIterable=Ue.isIterable=void 0;const De=ve,Je=me;function Le(t){return(0,De.isntNull)(t)&&(0,Je.isntUndefined)(t)&&"function"==typeof t[Symbol.iterator]}Ue.isIterable=Le,Ue.isntIterable=function(t){return!Le(t)};var Ve={},We={};var Ke=Function.prototype,Ye=Object.prototype,He=Ke.toString,$e=Ye.hasOwnProperty,Qe=He.call(Object),Xe=Ye.toString,Ge=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object);var Ze=function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=Xe.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=Ge(t);if(null===e)return!0;var n=$e.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&He.call(n)==Qe},tn=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};We.isntEmptyObject=We.isEmptyObject=We.isntPlainObject=We.isPlainObject=We.isntObject=We.isObject=void 0;const en=tn(Ze);function nn(t){return null!==t&&"object"==typeof t}function rn(t){return(0,en.default)(t)}We.isObject=nn,We.isntObject=function(t){return!nn(t)},We.isPlainObject=rn,We.isntPlainObject=function(t){return!rn(t)},We.isEmptyObject=function(t){return 0===Object.keys(t).length},We.isntEmptyObject=function(t){return 0!==Object.keys(t).length};var on={};function an(t){return"number"==typeof t}on.isntNumber=on.isNumber=void 0,on.isNumber=an,on.isntNumber=function(t){return!an(t)},Ve.isntJsonRpcError=Ve.isJsonRpcError=Ve.isntJsonRpcSuccess=Ve.isJsonRpcSuccess=Ve.isntJsonRpcRequest=Ve.isJsonRpcRequest=Ve.isntJsonRpcNotification=Ve.isJsonRpcNotification=void 0;const sn=de,cn=We,un=Ee,ln=on,fn=me;function dn(t){return(0,un.isString)(t)||(0,ln.isNumber)(t)}function yn(t){return(0,sn.isArray)(t)||(0,cn.isObject)(t)}function hn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&(0,un.isString)(t.method)&&(0,fn.isUndefined)(t.id)&&yn(t.params)}function vn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&(0,un.isString)(t.method)&&dn(t.id)&&yn(t.params)}function pn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&(0,un.isString)(t.id)&&"result"in t}function mn(t){return(0,cn.isPlainObject)(t)&&(0,un.isString)(t.jsonrpc)&&dn(t.id)&&function(t){return(0,cn.isPlainObject)(t)&&(0,ln.isNumber)(t.code)&&(0,un.isString)(t.message)&&((0,fn.isUndefined)(t.data)||(0,cn.isObject)(t.data))}(t.error)}Ve.isJsonRpcNotification=hn,Ve.isntJsonRpcNotification=function(t){return!hn(t)},Ve.isJsonRpcRequest=vn,Ve.isntJsonRpcRequest=function(t){return!vn(t)},Ve.isJsonRpcSuccess=pn,Ve.isntJsonRpcSuccess=function(t){return!pn(t)},Ve.isJsonRpcError=mn,Ve.isntJsonRpcError=function(t){return!mn(t)};var bn={};bn.isntJson=bn.isJson=void 0,bn.isJson=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},bn.isntJson=function t(e){return!t()};var gn={};gn.isAbsoluteURL=void 0,gn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(de,t),r(he,t),r(Se,t),r(_e,t),r(xe,t),r(ke,t),r(Pe,t),r(qe,t),r(Me,t),r(ze,t),r(Ue,t),r(Ve,t),r(bn,t),r(ve,t),r(on,t),r(We,t),r(Ee,t),r(me,t),r(gn,t)}(fe),le.chunkByAsync=void 0;const wn=fe;le.chunkByAsync=function(t,e){return(0,wn.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 An={};An.chunkBy=void 0,An.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 Sn={chunk:void 0};const In=Dt,_n=Ht;Sn.chunk=function(t,e){return(0,_n.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,_n.assert)(e>0,"The parameter size must be greater than 0"),(0,In.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Tn={concatAsync:void 0};const xn=fe,En=Dt;Tn.concatAsync=function(t,...e){return(0,En.go)((async function*(){for(const n of[t,...e])if((0,xn.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var On={concat:void 0};const jn=Dt;On.concat=function(t,...e){return(0,jn.go)((function*(){for(const n of[t,...e])yield*n}))};var Nn={},kn={};kn.copyIterable=kn.copyAsyncIterable=void 0,kn.copyAsyncIterable=async function*(t){for await(const e of t)yield e},kn.copyIterable=function*(t){for(const e of t)yield e},Nn.dropAsync=void 0;const Bn=Dt,Pn=kn,qn=Ht;Nn.dropAsync=function(t,e){return(0,qn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Pn.copyAsyncIterable)(t):(0,Bn.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 Cn={dropRightAsync:void 0};const Mn=Dt,Rn=kn,zn=Ht;Cn.dropRightAsync=function(t,e){return(0,zn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,zn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Rn.copyAsyncIterable)(t):(0,Mn.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 Fn={dropRight:void 0};const Un=Dt,Dn=kn,Jn=Ht;Fn.dropRight=function(t,e){return(0,Jn.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Jn.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Dn.copyIterable)(t):(0,Un.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Ln={dropUntilAsync:void 0};const Vn=fe;Ln.dropUntilAsync=function(t,e){return(0,Vn.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 Wn={};Wn.dropUntil=void 0,Wn.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 Kn={drop:void 0};const Yn=Dt,Hn=kn,$n=Ht;Kn.drop=function(t,e){return(0,$n.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,$n.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Hn.copyIterable)(t):(0,Yn.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 Qn={filterAsync:void 0};const Xn=fe;Qn.filterAsync=function(t,e){return(0,Xn.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 Gn={};Gn.filter=void 0,Gn.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Zn={},tr={},er={flattenByAsync:void 0};const nr=fe;function rr(t){return(0,nr.isIterable)(t)&&(0,nr.isntChar)(t)}er.flattenByAsync=function(t,e){return(0,nr.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)rr(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)rr(i)&&await e(i,r)?yield*n(i,r+1):yield i}},tr.flattenDeepAsync=void 0;const ir=er,or=Ht;tr.flattenDeepAsync=function(t,e=1/0){return(0,or.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,or.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ir.flattenByAsync)(t,((t,n)=>n<=e))},Zn.flattenAsync=void 0;const ar=tr;Zn.flattenAsync=function(t){return(0,ar.flattenDeepAsync)(t,1)};var sr={flattenBy:void 0};const cr=fe;sr.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,cr.isIterable)(i=o)&&(0,cr.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var ur={flattenDeep:void 0};const lr=sr,fr=Ht;ur.flattenDeep=function(t,e=1/0){return(0,fr.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,fr.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,lr.flattenBy)(t,((t,n)=>n<=e))};var dr={flatten:void 0};const yr=ur;dr.flatten=function(t){return(0,yr.flattenDeep)(t,1)};var hr={mapAsync:void 0};const vr=fe;hr.mapAsync=function(t,e){return(0,vr.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 pr={};pr.map=void 0,pr.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var mr={repeatAsync:void 0};const br=Dt,gr=Ht;mr.repeatAsync=function(t,e){return(0,gr.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,gr.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,br.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 wr={repeat:void 0};const Ar=Dt,Sr=Ht;wr.repeat=function(t,e){return(0,Sr.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Sr.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,Ar.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 Ir={sliceAsync:void 0};const _r=Dt,Tr=Ht;Ir.sliceAsync=function(t,e,n=1/0){return(0,Tr.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Tr.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Tr.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Tr.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,_r.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var xr={slice:void 0};const Er=Dt,Or=Ht;xr.slice=function(t,e,n=1/0){return(0,Or.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Or.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Or.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Or.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Er.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var jr={};jr.splitAsync=void 0,jr.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Nr={splitByAsync:void 0};const kr=fe;Nr.splitByAsync=function(t,e){return(0,kr.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 Br={};Br.splitBy=void 0,Br.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 Pr={};Pr.split=void 0,Pr.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var qr={takeAsync:void 0};const Cr=Dt,Mr=Ht;qr.takeAsync=function(t,e){return(0,Mr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Cr.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Rr={takeRightAsync:void 0};const zr=Dt,Fr=Ht;Rr.takeRightAsync=function(t,e){return(0,Fr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Fr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,zr.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 Ur={takeRight:void 0};const Dr=Dt,Jr=Ht;Ur.takeRight=function(t,e){return(0,Jr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Jr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Dr.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 Lr={takeUntilAsync:void 0};const Vr=fe;Lr.takeUntilAsync=function(t,e){return(0,Vr.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 Wr={};Wr.takeUntil=void 0,Wr.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Kr={take:void 0};const Yr=Dt,Hr=Ht;Kr.take=function(t,e){return(0,Hr.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Hr.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Yr.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var $r={tapAsync:void 0};const Qr=fe;$r.tapAsync=function(t,e){return(0,Qr.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 Xr={};Xr.tap=void 0,Xr.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Gr={};Gr.toAsyncIterable=void 0,Gr.toAsyncIterable=async function*(t){for(const e of t)yield e};var Zr={};Zr.transformAsync=void 0,Zr.transformAsync=async function*(t,e){yield*e(t)};var ti={};ti.transform=void 0,ti.transform=function*(t,e){yield*e(t)};var ei={};ei.uniqAsync=void 0,ei.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var ni={uniqByAsync:void 0};const ri=fe;ni.uniqByAsync=function(t,e){return(0,ri.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 ii={};ii.uniqBy=void 0,ii.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 oi={};oi.uniq=void 0,oi.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var ai={zipAsync:void 0};const si=fe;var ci;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(ci||(ci={})),ai.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,si.isAsyncIterable)(t)?[ci.Async,t[Symbol.asyncIterator]()]:[ci.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===ci.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===ci.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var ui={};ui.zip=void 0,ui.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=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Yt,t),r(le,t),r(An,t),r(Sn,t),r(Tn,t),r(On,t),r(Nn,t),r(Cn,t),r(Fn,t),r(Ln,t),r(Wn,t),r(Kn,t),r(Qn,t),r(Gn,t),r(Zn,t),r(er,t),r(sr,t),r(tr,t),r(ur,t),r(dr,t),r(hr,t),r(pr,t),r(mr,t),r(wr,t),r(Ir,t),r(xr,t),r(jr,t),r(Nr,t),r(Br,t),r(Pr,t),r(qr,t),r(Rr,t),r(Ur,t),r(Lr,t),r(Wr,t),r(Kr,t),r($r,t),r(Xr,t),r(Gr,t),r(Zr,t),r(ti,t),r(ei,t),r(ni,t),r(ii,t),r(oi,t),r(ai,t),r(ui,t)}(Kt);var li={},fi={};fi.consume=void 0,fi.consume=function(t,e){return e(t)};var di={eachAsync:void 0};const yi=fe;di.eachAsync=function(t,e){return(0,yi.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 hi={};hi.each=void 0,hi.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var vi={everyAsync:void 0};const pi=fe;vi.everyAsync=function(t,e){return(0,pi.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 mi={};mi.every=void 0,mi.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var bi={findAsync:void 0};const gi=fe;bi.findAsync=function(t,e){return(0,gi.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 wi={};wi.find=void 0,wi.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Ai={};Ai.firstAsync=void 0,Ai.firstAsync=async function(t){for await(const e of t)return e};var Si={};Si.first=void 0,Si.first=function(t){for(const e of t)return e};var Ii={};Ii.includesAsync=void 0,Ii.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var _i={};_i.includes=void 0,_i.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Ti={};Ti.matchAsync=void 0,Ti.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 xi={};xi.match=void 0,xi.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 Ei={reduceAsync:void 0};const Oi=fe;Ei.reduceAsync=function(t,e,n){return(0,Oi.isUndefined)(n)?function(t,e){return(0,Oi.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}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,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}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,Oi.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 ji={reduce:void 0};const Ni=fe;ji.reduce=function(t,e,n){return(0,Ni.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}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 ki={someAsync:void 0};const Bi=fe;ki.someAsync=function(t,e){return(0,Bi.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 Pi={};Pi.some=void 0,Pi.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var qi={};qi.lastAsync=void 0,qi.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 Ci={};Ci.last=void 0,Ci.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 Mi={toArrayAsync:void 0};const Ri=fi;Mi.toArrayAsync=function(t){return(0,Ri.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var zi={toArray:void 0};const Fi=fi;zi.toArray=function(t){return(0,Fi.consume)(t,(t=>Array.from(t)))};var Ui={toSetAsync:void 0};const Di=fi;Ui.toSetAsync=function(t){return(0,Di.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Ji={toSet:void 0};const Li=fi;Ji.toSet=function(t){return(0,Li.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(fi,t),r(di,t),r(hi,t),r(vi,t),r(mi,t),r(bi,t),r(wi,t),r(Ai,t),r(Si,t),r(Ii,t),r(_i,t),r(Ti,t),r(xi,t),r(Ei,t),r(ji,t),r(ki,t),r(Pi,t),r(qi,t),r(Ci,t),r(Mi,t),r(zi,t),r(Ui,t),r(Ji,t)}(li),function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Kt,t),r(li,t)}(Wt);var Vi={},Wi={};Wi.traverseErrorPrototypeChain=void 0,Wi.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Vi.getErrorNames=void 0;const Ki=fe,Yi=Wi;Vi.getErrorNames=function*(t){var e;if((0,Ki.isError)(t))for(const n of(0,Yi.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Hi={isSerializableError:void 0};const $i=fe;Hi.isSerializableError=function(t){return(0,$i.isObject)(t)&&(0,$i.isString)(t.name)&&(0,$i.isString)(t.message)&&((0,$i.isString)(t.stack)||(0,$i.isNull)(t.stack))&&(0,$i.isArray)(t.ancestors)&&t.ancestors.every($i.isString)},Vt.CustomError=void 0;const Qi=Wt,Xi=Vi,Gi=fe,Zi=Hi;class to extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Qi.first)((0,Xi.getErrorNames)(this)))&&void 0!==t?t:to.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Gi.isError)(t)||(0,Zi.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,Xi.getErrorNames)(this.prototype)].reverse(),r=(0,Qi.toArray)((0,Xi.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Vt.CustomError=to;var eo={AssertionError:void 0};const no=Vt;class ro extends no.CustomError{}eo.AssertionError=ro;var io={normalize:void 0};const oo=Vi,ao=Wt;io.normalize=function(t){var e;const[n,...r]=(0,ao.toArray)((0,oo.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var so={},co={},uo={};uo.pass=void 0,uo.pass=function(){},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(uo,t)}(co),so.hydrate=void 0;const lo=co;function fo(t,e){const n=function(){(0,lo.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}so.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=fo(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var yo={assert:void 0};const ho=eo;yo.assert=function(t,e){if(!t)throw new ho.AssertionError(e)},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Vt,t),r(eo,t),r(Hi,t),r(io,t),r(so,t),r(yo,t),r(Vi,t),r(Wi,t)}(Lt),Ut.chunkAsync=void 0;const vo=Dt,po=Lt;Ut.chunkAsync=function(t,e){return(0,po.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,po.assert)(e>0,"The parameter size must be greater than 0"),(0,vo.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 mo={chunkByAsync:void 0};const bo=fe;mo.chunkByAsync=function(t,e){return(0,bo.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 go={};go.chunkBy=void 0,go.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 wo={chunk:void 0};const Ao=Dt,So=Lt;wo.chunk=function(t,e){return(0,So.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,So.assert)(e>0,"The parameter size must be greater than 0"),(0,Ao.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Io={concatAsync:void 0};const _o=fe,To=Dt;Io.concatAsync=function(t,...e){return(0,To.go)((async function*(){for(const n of[t,...e])if((0,_o.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var xo={concat:void 0};const Eo=Dt;xo.concat=function(t,...e){return(0,Eo.go)((function*(){for(const n of[t,...e])yield*n}))};var Oo={},jo={};jo.copyIterable=jo.copyAsyncIterable=void 0,jo.copyAsyncIterable=async function*(t){for await(const e of t)yield e},jo.copyIterable=function*(t){for(const e of t)yield e},Oo.dropAsync=void 0;const No=Dt,ko=jo,Bo=Lt;Oo.dropAsync=function(t,e){return(0,Bo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Bo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,ko.copyAsyncIterable)(t):(0,No.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 Po={dropRightAsync:void 0};const qo=Dt,Co=jo,Mo=Lt;Po.dropRightAsync=function(t,e){return(0,Mo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Mo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Co.copyAsyncIterable)(t):(0,qo.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 Ro={dropRight:void 0};const zo=Dt,Fo=jo,Uo=Lt;Ro.dropRight=function(t,e){return(0,Uo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Uo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Fo.copyIterable)(t):(0,zo.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Do={dropUntilAsync:void 0};const Jo=fe;Do.dropUntilAsync=function(t,e){return(0,Jo.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 Lo={};Lo.dropUntil=void 0,Lo.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 Vo={drop:void 0};const Wo=Dt,Ko=jo,Yo=Lt;Vo.drop=function(t,e){return(0,Yo.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Yo.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Ko.copyIterable)(t):(0,Wo.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 Ho={filterAsync:void 0};const $o=fe;Ho.filterAsync=function(t,e){return(0,$o.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 Qo={};Qo.filter=void 0,Qo.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var Xo={},Go={},Zo={flattenByAsync:void 0};const ta=fe;function ea(t){return(0,ta.isIterable)(t)&&(0,ta.isntChar)(t)}Zo.flattenByAsync=function(t,e){return(0,ta.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)ea(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)ea(i)&&await e(i,r)?yield*n(i,r+1):yield i}},Go.flattenDeepAsync=void 0;const na=Zo,ra=Lt;Go.flattenDeepAsync=function(t,e=1/0){return(0,ra.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ra.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,na.flattenByAsync)(t,((t,n)=>n<=e))},Xo.flattenAsync=void 0;const ia=Go;Xo.flattenAsync=function(t){return(0,ia.flattenDeepAsync)(t,1)};var oa={flattenBy:void 0};const aa=fe;oa.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,aa.isIterable)(i=o)&&(0,aa.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var sa={flattenDeep:void 0};const ca=oa,ua=Lt;sa.flattenDeep=function(t,e=1/0){return(0,ua.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,ua.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,ca.flattenBy)(t,((t,n)=>n<=e))};var la={flatten:void 0};const fa=sa;la.flatten=function(t){return(0,fa.flattenDeep)(t,1)};var da={mapAsync:void 0};const ya=fe;da.mapAsync=function(t,e){return(0,ya.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 ha={};ha.map=void 0,ha.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var va={repeatAsync:void 0};const pa=Dt,ma=Lt;va.repeatAsync=function(t,e){return(0,ma.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,ma.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,pa.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 ba={repeat:void 0};const ga=Dt,wa=Lt;ba.repeat=function(t,e){return(0,wa.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,wa.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,ga.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 Aa={sliceAsync:void 0};const Sa=Dt,Ia=Lt;Aa.sliceAsync=function(t,e,n=1/0){return(0,Ia.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Ia.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Ia.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Ia.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Sa.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var _a={slice:void 0};const Ta=Dt,xa=Lt;_a.slice=function(t,e,n=1/0){return(0,xa.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,xa.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,xa.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,xa.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Ta.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var Ea={};Ea.splitAsync=void 0,Ea.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Oa={splitByAsync:void 0};const ja=fe;Oa.splitByAsync=function(t,e){return(0,ja.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 Na={};Na.splitBy=void 0,Na.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 ka={};ka.split=void 0,ka.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Ba={takeAsync:void 0};const Pa=Dt,qa=Lt;Ba.takeAsync=function(t,e){return(0,qa.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,qa.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Pa.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Ca={takeRightAsync:void 0};const Ma=Dt,Ra=Lt;Ca.takeRightAsync=function(t,e){return(0,Ra.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ra.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ma.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 za={takeRight:void 0};const Fa=Dt,Ua=Lt;za.takeRight=function(t,e){return(0,Ua.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ua.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Fa.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 Da={takeUntilAsync:void 0};const Ja=fe;Da.takeUntilAsync=function(t,e){return(0,Ja.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 La={};La.takeUntil=void 0,La.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var Va={take:void 0};const Wa=Dt,Ka=Lt;Va.take=function(t,e){return(0,Ka.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ka.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Wa.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Ya={tapAsync:void 0};const Ha=fe;Ya.tapAsync=function(t,e){return(0,Ha.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 $a={};$a.tap=void 0,$a.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var Qa={};Qa.toAsyncIterable=void 0,Qa.toAsyncIterable=async function*(t){for(const e of t)yield e};var Xa={};Xa.transformAsync=void 0,Xa.transformAsync=async function*(t,e){yield*e(t)};var Ga={};Ga.transform=void 0,Ga.transform=function*(t,e){yield*e(t)};var Za={};Za.uniqAsync=void 0,Za.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var ts={uniqByAsync:void 0};const es=fe;ts.uniqByAsync=function(t,e){return(0,es.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 ns={};ns.uniqBy=void 0,ns.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 rs={};rs.uniq=void 0,rs.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var is={zipAsync:void 0};const os=fe;var as;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(as||(as={})),is.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,os.isAsyncIterable)(t)?[as.Async,t[Symbol.asyncIterator]()]:[as.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===as.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===as.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var ss={};ss.zip=void 0,ss.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=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ut,t),r(mo,t),r(go,t),r(wo,t),r(Io,t),r(xo,t),r(Oo,t),r(Po,t),r(Ro,t),r(Do,t),r(Lo,t),r(Vo,t),r(Ho,t),r(Qo,t),r(Xo,t),r(Zo,t),r(oa,t),r(Go,t),r(sa,t),r(la,t),r(da,t),r(ha,t),r(va,t),r(ba,t),r(Aa,t),r(_a,t),r(Ea,t),r(Oa,t),r(Na,t),r(ka,t),r(Ba,t),r(Ca,t),r(za,t),r(Da,t),r(La,t),r(Va,t),r(Ya,t),r($a,t),r(Qa,t),r(Xa,t),r(Ga,t),r(Za,t),r(ts,t),r(ns,t),r(rs,t),r(is,t),r(ss,t)}(Ft);var cs={},us={};us.consume=void 0,us.consume=function(t,e){return e(t)};var ls={eachAsync:void 0};const fs=fe;ls.eachAsync=function(t,e){return(0,fs.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 ds={};ds.each=void 0,ds.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var ys={everyAsync:void 0};const hs=fe;ys.everyAsync=function(t,e){return(0,hs.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 vs={};vs.every=void 0,vs.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var ps={findAsync:void 0};const ms=fe;ps.findAsync=function(t,e){return(0,ms.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 bs={};bs.find=void 0,bs.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var gs={};gs.firstAsync=void 0,gs.firstAsync=async function(t){for await(const e of t)return e};var ws={};ws.first=void 0,ws.first=function(t){for(const e of t)return e};var As={};As.includesAsync=void 0,As.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Ss={};Ss.includes=void 0,Ss.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var Is={};Is.matchAsync=void 0,Is.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 _s={};_s.match=void 0,_s.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 Ts={reduceAsync:void 0};const xs=fe;Ts.reduceAsync=function(t,e,n){return(0,xs.isUndefined)(n)?function(t,e){return(0,xs.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}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,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}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,xs.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 Es={reduce:void 0};const Os=fe;Es.reduce=function(t,e,n){return(0,Os.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}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 js={someAsync:void 0};const Ns=fe;js.someAsync=function(t,e){return(0,Ns.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 ks={};ks.some=void 0,ks.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var Bs={};Bs.lastAsync=void 0,Bs.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 Ps={};Ps.last=void 0,Ps.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 qs={toArrayAsync:void 0};const Cs=us;qs.toArrayAsync=function(t){return(0,Cs.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Ms={toArray:void 0};const Rs=us;Ms.toArray=function(t){return(0,Rs.consume)(t,(t=>Array.from(t)))};var zs={toSetAsync:void 0};const Fs=us;zs.toSetAsync=function(t){return(0,Fs.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Us={toSet:void 0};const Ds=us;Us.toSet=function(t){return(0,Ds.consume)(t,(t=>new Set(t)))},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(us,t),r(ls,t),r(ds,t),r(ys,t),r(vs,t),r(ps,t),r(bs,t),r(gs,t),r(ws,t),r(As,t),r(Ss,t),r(Is,t),r(_s,t),r(Ts,t),r(Es,t),r(js,t),r(ks,t),r(Bs,t),r(Ps,t),r(qs,t),r(Ms,t),r(zs,t),r(Us,t)}(cs),function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ft,t),r(cs,t)}(zt);var Js={},Ls={};Ls.traverseErrorPrototypeChain=void 0,Ls.traverseErrorPrototypeChain=function*(t){let e=t;for(;(e=Object.getPrototypeOf(e))&&(yield e,e!==Error.prototype););},Js.getErrorNames=void 0;const Vs=fe,Ws=Ls;Js.getErrorNames=function*(t){var e;if((0,Vs.isError)(t))for(const n of(0,Ws.traverseErrorPrototypeChain)(t))(null===(e=n.constructor)||void 0===e?void 0:e.name)&&(yield n.constructor.name);else yield t.name,yield*t.ancestors};var Ks={isSerializableError:void 0};const Ys=fe;Ks.isSerializableError=function(t){return(0,Ys.isObject)(t)&&(0,Ys.isString)(t.name)&&(0,Ys.isString)(t.message)&&((0,Ys.isString)(t.stack)||(0,Ys.isNull)(t.stack))&&(0,Ys.isArray)(t.ancestors)&&t.ancestors.every(Ys.isString)},Rt.CustomError=void 0;const Hs=zt,$s=Js,Qs=fe,Xs=Ks;class Gs extends Error{get name(){var t,e;return null!==(e=null!==(t=(0,Hs.first)((0,$s.getErrorNames)(this)))&&void 0!==t?t:Gs.name)&&void 0!==e?e:"CustomError"}static[Symbol.hasInstance](t){var e;if((0,Qs.isError)(t)||(0,Xs.isSerializableError)(t)){const n=[null!==(e=this.prototype.constructor.name)&&void 0!==e?e:this.name,...(0,$s.getErrorNames)(this.prototype)].reverse(),r=(0,Hs.toArray)((0,$s.getErrorNames)(t)).reverse();return n.every(((t,e)=>t===r[e]))}return!1}}Rt.CustomError=Gs;var Zs={AssertionError:void 0};const tc=Rt;class ec extends tc.CustomError{}Zs.AssertionError=ec;var nc={normalize:void 0};const rc=Js,ic=zt;nc.normalize=function(t){var e;const[n,...r]=(0,ic.toArray)((0,rc.getErrorNames)(t));return{name:n,ancestors:r,message:t.message,stack:null!==(e=t.stack)&&void 0!==e?e:null}};var oc={},ac={},sc={};sc.pass=void 0,sc.pass=function(){},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(sc,t)}(ac),oc.hydrate=void 0;const cc=ac;function uc(t,e){const n=function(){(0,cc.pass)()};return(n.prototype=Object.create(t.prototype)).constructor=n,Object.defineProperty(n,"name",{value:e}),n}oc.hydrate=function(t){var e;const n=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of n)r=uc(r,t);const i=new r;return i.name=t.name,i.message=t.message,i.stack=null!==(e=t.stack)&&void 0!==e?e:void 0,i};var lc={assert:void 0};const fc=Zs;lc.assert=function(t,e){if(!t)throw new fc.AssertionError(e)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Rt,t),r(Zs,t),r(Ks,t),r(nc,t),r(oc,t),r(lc,t),r(Js,t),r(Ls,t)}(Mt);var dc={},yc={},hc={},vc={},pc={};pc.go=void 0,pc.go=function(t){return t()},function(t){var e=n&&n.__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&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(pc,t)}(vc),hc.chunkAsync=void 0;const mc=vc,bc=Mt;hc.chunkAsync=function(t,e){return(0,bc.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,bc.assert)(e>0,"The parameter size must be greater than 0"),(0,mc.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 gc={},wc={},Ac={};function Sc(t){return Array.isArray(t)}Ac.isntEmptyArray=Ac.isEmptyArray=Ac.isntArray=Ac.isArray=void 0,Ac.isArray=Sc,Ac.isntArray=function(t){return!Sc(t)},Ac.isEmptyArray=function(t){return 0===t.length},Ac.isntEmptyArray=function(t){return 0!==t.length};var Ic={},_c={};function Tc(t){return null===t}_c.isntNull=_c.isNull=void 0,_c.isNull=Tc,_c.isntNull=function(t){return!Tc(t)};var xc={};function Ec(t){return void 0===t}xc.isntUndefined=xc.isUndefined=void 0,xc.isUndefined=Ec,xc.isntUndefined=function(t){return!Ec(t)};var Oc={};function jc(t){return"function"==typeof t}Oc.isntFunction=Oc.isFunction=void 0,Oc.isFunction=jc,Oc.isntFunction=function(t){return!jc(t)},Ic.isntAsyncIterable=Ic.isAsyncIterable=void 0;const Nc=_c,kc=xc,Bc=Oc;function Pc(t){return(0,Nc.isntNull)(t)&&(0,kc.isntUndefined)(t)&&(0,Bc.isFunction)(t[Symbol.asyncIterator])}Ic.isAsyncIterable=Pc,Ic.isntAsyncIterable=function(t){return!Pc(t)};var qc={};function Cc(t){return"bigint"==typeof t}qc.isntBigInt=qc.isBigInt=void 0,qc.isBigInt=Cc,qc.isntBigInt=function(t){return!Cc(t)};var Mc={};function Rc(t){return"boolean"==typeof t}Mc.isntBoolean=Mc.isBoolean=void 0,Mc.isBoolean=Rc,Mc.isntBoolean=function(t){return!Rc(t)};var zc={},Fc={};function Uc(t){return"string"==typeof t}Fc.isntString=Fc.isString=void 0,Fc.isString=Uc,Fc.isntString=function(t){return!Uc(t)},zc.isntChar=zc.isChar=void 0;const Dc=Fc;function Jc(t){return(0,Dc.isString)(t)&&1===t.length}zc.isChar=Jc,zc.isntChar=function(t){return!Jc(t)};var Lc={};function Vc(t){return t instanceof Date}Lc.isntDate=Lc.isDate=void 0,Lc.isDate=Vc,Lc.isntDate=function(t){return!Vc(t)};var Wc={};Wc.inEnum=void 0,Wc.inEnum=function(t,e){return Object.values(e).includes(t)};var Kc={};function Yc(t){return t instanceof Error}Kc.isntError=Kc.isError=void 0,Kc.isError=Yc,Kc.isntError=function(t){return!Yc(t)};var Hc={};function $c(t){return!t}Hc.isntFalsy=Hc.isFalsy=void 0,Hc.isFalsy=$c,Hc.isntFalsy=function(t){return!$c(t)};var Qc={};Qc.isntIterable=Qc.isIterable=void 0;const Xc=_c,Gc=xc,Zc=Oc;function tu(t){return(0,Xc.isntNull)(t)&&(0,Gc.isntUndefined)(t)&&(0,Zc.isFunction)(t[Symbol.iterator])}Qc.isIterable=tu,Qc.isntIterable=function(t){return!tu(t)};var eu={},nu={};function ru(t){return"number"==typeof t}function iu(t){return Number.isNaN(t)}nu.isntNaN=nu.isNaN=nu.isNegativeInfinity=nu.isPositiveInfinity=nu.isFinite=nu.isntNumber=nu.isNumber=void 0,nu.isNumber=ru,nu.isntNumber=function(t){return!ru(t)},nu.isFinite=function(t){return Number.isFinite(t)},nu.isPositiveInfinity=function(t){return t===1/0},nu.isNegativeInfinity=function(t){return t===-1/0},nu.isNaN=iu,nu.isntNaN=function(t){return!iu(t)};var ou={},au=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};ou.isntEmptyObject=ou.isEmptyObject=ou.isntPlainObject=ou.isPlainObject=ou.isntObject=ou.isObject=void 0;const su=au(dt);function cu(t){return null!==t&&"object"==typeof t}function uu(t){return(0,su.default)(t)}ou.isObject=cu,ou.isntObject=function(t){return!cu(t)},ou.isPlainObject=uu,ou.isntPlainObject=function(t){return!uu(t)},ou.isEmptyObject=function(t){return 0===Object.keys(t).length},ou.isntEmptyObject=function(t){return 0!==Object.keys(t).length},eu.isntJsonable=eu.isJsonable=eu.isntJson=eu.isJson=void 0;const lu=_c,fu=Mc,du=Fc,yu=nu,hu=Ac,vu=ou;function pu(t){return(0,lu.isNull)(t)||(0,fu.isBoolean)(t)||(0,du.isString)(t)||(0,yu.isNumber)(t)||(0,hu.isArray)(t)&&t.every(pu)||(0,vu.isPlainObject)(t)&&Object.values(t).every(pu)}eu.isJson=pu,eu.isntJson=function(t){return!pu(t)},eu.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},eu.isntJsonable=function t(e){return!t()};var mu={};mu.isPromiseLike=mu.isntPromiseLike=mu.isntPromise=mu.isPromise=void 0;const bu=ou,gu=Oc;function wu(t){return t instanceof Promise}function Au(t){return(0,bu.isObject)(t)&&(0,gu.isFunction)(t.then)}mu.isPromise=wu,mu.isntPromise=function(t){return!wu(t)},mu.isntPromiseLike=function(t){return!Au(t)},mu.isPromiseLike=Au;var Su={};Su.isAbsoluteURL=void 0,Su.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Ac,t),r(Ic,t),r(qc,t),r(Mc,t),r(zc,t),r(Lc,t),r(Wc,t),r(Kc,t),r(Hc,t),r(Oc,t),r(Qc,t),r(eu,t),r(_c,t),r(nu,t),r(ou,t),r(mu,t),r(Fc,t),r(xc,t),r(Su,t)}(wc),gc.chunkByAsync=void 0;const Iu=wc;gc.chunkByAsync=function(t,e){return(0,Iu.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 _u={};_u.chunkBy=void 0,_u.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 Tu={chunk:void 0};const xu=vc,Eu=Mt;Tu.chunk=function(t,e){return(0,Eu.assert)(Number.isInteger(e),"The parameter size must be an integer"),(0,Eu.assert)(e>0,"The parameter size must be greater than 0"),(0,xu.go)((function*(){let n=[];for(const r of t)n.push(r),n.length>=e&&(yield n,n=[]);n.length&&(yield n)}))};var Ou={concatAsync:void 0};const ju=wc,Nu=vc;Ou.concatAsync=function(t,...e){return(0,Nu.go)((async function*(){for(const n of[t,...e])if((0,ju.isAsyncIterable)(n))for await(const t of n)yield t;else for(const t of n)yield t}))};var ku={concat:void 0};const Bu=vc;ku.concat=function(t,...e){return(0,Bu.go)((function*(){for(const n of[t,...e])yield*n}))};var Pu={},qu={};qu.copyIterable=qu.copyAsyncIterable=void 0,qu.copyAsyncIterable=async function*(t){for await(const e of t)yield e},qu.copyIterable=function*(t){for(const e of t)yield e},Pu.dropAsync=void 0;const Cu=vc,Mu=qu,Ru=Mt;Pu.dropAsync=function(t,e){return(0,Ru.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Ru.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Mu.copyAsyncIterable)(t):(0,Cu.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 zu={dropRightAsync:void 0};const Fu=vc,Uu=qu,Du=Mt;zu.dropRightAsync=function(t,e){return(0,Du.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Du.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Uu.copyAsyncIterable)(t):(0,Fu.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 Ju={dropRight:void 0};const Lu=vc,Vu=qu,Wu=Mt;Ju.dropRight=function(t,e){return(0,Wu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Vu.copyIterable)(t):(0,Lu.go)((function*(){const n=Array.from(t);yield*n.slice(0,-e)}))};var Ku={dropUntilAsync:void 0};const Yu=wc;Ku.dropUntilAsync=function(t,e){return(0,Yu.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 Hu={};Hu.dropUntil=void 0,Hu.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 $u={drop:void 0};const Qu=vc,Xu=qu,Gu=Mt;$u.drop=function(t,e){return(0,Gu.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Gu.assert)(e>=0,"The parameter count must be greater than or equal to 0"),0===e?(0,Xu.copyIterable)(t):(0,Qu.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 Zu={filterAsync:void 0};const tl=wc;Zu.filterAsync=function(t,e){return(0,tl.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 el={};el.filter=void 0,el.filter=function*(t,e){let n=0;for(const r of t)e(r,n)&&(yield r),n++};var nl={},rl={},il={flattenByAsync:void 0};const ol=wc;function al(t){return(0,ol.isIterable)(t)&&(0,ol.isntChar)(t)}il.flattenByAsync=function(t,e){return(0,ol.isAsyncIterable)(t)?async function*(t){const r=1;for await(const i of t)al(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)al(i)&&await e(i,r)?yield*n(i,r+1):yield i}},rl.flattenDeepAsync=void 0;const sl=il,cl=Mt;rl.flattenDeepAsync=function(t,e=1/0){return(0,cl.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,cl.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,sl.flattenByAsync)(t,((t,n)=>n<=e))},nl.flattenAsync=void 0;const ul=rl;nl.flattenAsync=function(t){return(0,ul.flattenDeepAsync)(t,1)};var ll={flattenBy:void 0};const fl=wc;ll.flattenBy=function(t,e){return function*t(n,r){for(const o of n)(0,fl.isIterable)(i=o)&&(0,fl.isntChar)(i)&&e(o,r)?yield*t(o,r+1):yield o;var i}(t,1)};var dl={flattenDeep:void 0};const yl=ll,hl=Mt;dl.flattenDeep=function(t,e=1/0){return(0,hl.assert)(e===1/0||Number.isInteger(e),"The parameter depth must be an integer"),(0,hl.assert)(e>=0,"The parameter depth must be greater than or equal to 0"),(0,yl.flattenBy)(t,((t,n)=>n<=e))};var vl={flatten:void 0};const pl=dl;vl.flatten=function(t){return(0,pl.flattenDeep)(t,1)};var ml={mapAsync:void 0};const bl=wc;ml.mapAsync=function(t,e){return(0,bl.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 gl={};gl.map=void 0,gl.map=function*(t,e){let n=0;for(const r of t)yield e(r,n),n++};var wl={repeatAsync:void 0};const Al=vc,Sl=Mt;wl.repeatAsync=function(t,e){return(0,Sl.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Sl.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,Al.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 Il={repeat:void 0};const _l=vc,Tl=Mt;Il.repeat=function(t,e){return(0,Tl.assert)(e===1/0||Number.isInteger(e),"The parameter times must be an integer"),(0,Tl.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,_l.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 xl={sliceAsync:void 0};const El=vc,Ol=Mt;xl.sliceAsync=function(t,e,n=1/0){return(0,Ol.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,Ol.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,Ol.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,Ol.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,El.go)((async function*(){let r=0;for await(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var jl={slice:void 0};const Nl=vc,kl=Mt;jl.slice=function(t,e,n=1/0){return(0,kl.assert)(Number.isInteger(e),"The parameter start must be an integer"),(0,kl.assert)(e>=0,"The parameter start must be greater than or equal to 0"),(0,kl.assert)(Number.isInteger(n),"The parameter end must be an integer"),(0,kl.assert)(n>=e,"The parameter end must be greater than or equal to start"),(0,Nl.go)((function*(){let r=0;for(const i of t){if(r>=n)break;r>=e&&(yield i),r++}}))};var Bl={};Bl.splitAsync=void 0,Bl.splitAsync=async function*(t,e){let n=[];for await(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Pl={splitByAsync:void 0};const ql=wc;Pl.splitByAsync=function(t,e){return(0,ql.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 Cl={};Cl.splitBy=void 0,Cl.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 Ml={};Ml.split=void 0,Ml.split=function*(t,e){let n=[];for(const r of t)r===e?(yield n,n=[]):n.push(r);yield n};var Rl={takeAsync:void 0};const zl=vc,Fl=Mt;Rl.takeAsync=function(t,e){return(0,Fl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Fl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,zl.go)((async function*(){if(0!==e)for await(const n of t)if(yield n,0===--e)break}))};var Ul={takeRightAsync:void 0};const Dl=vc,Jl=Mt;Ul.takeRightAsync=function(t,e){return(0,Jl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Jl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Dl.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 Ll={takeRight:void 0};const Vl=vc,Wl=Mt;Ll.takeRight=function(t,e){return(0,Wl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Wl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Vl.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 Kl={takeUntilAsync:void 0};const Yl=wc;Kl.takeUntilAsync=function(t,e){return(0,Yl.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 Hl={};Hl.takeUntil=void 0,Hl.takeUntil=function*(t,e){let n=0;for(const r of t){if(e(r,n))break;yield r,n++}};var $l={take:void 0};const Ql=vc,Xl=Mt;$l.take=function(t,e){return(0,Xl.assert)(Number.isInteger(e),"The parameter count must be an integer"),(0,Xl.assert)(e>=0,"The parameter count must be greater than or equal to 0"),(0,Ql.go)((function*(){if(0!==e)for(const n of t)if(yield n,0===--e)break}))};var Gl={tapAsync:void 0};const Zl=wc;Gl.tapAsync=function(t,e){return(0,Zl.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 tf={};tf.tap=void 0,tf.tap=function*(t,e){let n=0;for(const r of t)e(r,n),yield r,n++};var ef={};ef.toAsyncIterable=void 0,ef.toAsyncIterable=async function*(t){for(const e of t)yield e};var nf={};nf.transformAsync=void 0,nf.transformAsync=async function*(t,e){yield*e(t)};var rf={};rf.transform=void 0,rf.transform=function*(t,e){yield*e(t)};var of={};of.uniqAsync=void 0,of.uniqAsync=async function*(t){const e=new Set;for await(const n of t)e.has(n)||(yield n,e.add(n))};var af={uniqByAsync:void 0};const sf=wc;af.uniqByAsync=function(t,e){return(0,sf.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 cf={};cf.uniqBy=void 0,cf.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 uf={};uf.uniq=void 0,uf.uniq=function*(t){const e=new Set;for(const n of t)e.has(n)||(yield n,e.add(n))};var lf={zipAsync:void 0};const ff=wc;var df;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(df||(df={})),lf.zipAsync=function(t,...e){return async function*(...t){var e,n,r,i;const o=t.length,a=t.map((t=>(0,ff.isAsyncIterable)(t)?[df.Async,t[Symbol.asyncIterator]()]:[df.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(o);for(let e=0;e<o;e++){const[n,r]=a[e];let i;if(i=n===df.Async?await r.next():r.next(),i.done)return void(s[e]=!0);t[e]=i.value}yield t}}finally{const t=a.filter(((t,e)=>!s[e]));for(const[o,a]of t)o===df.Async?await(null===(n=(e=a).return)||void 0===n?void 0:n.call(e)):null===(i=(r=a).return)||void 0===i||i.call(r)}}(t,...e)};var yf={};yf.zip=void 0,yf.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=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(hc,t),r(gc,t),r(_u,t),r(Tu,t),r(Ou,t),r(ku,t),r(Pu,t),r(zu,t),r(Ju,t),r(Ku,t),r(Hu,t),r($u,t),r(Zu,t),r(el,t),r(nl,t),r(il,t),r(ll,t),r(rl,t),r(dl,t),r(vl,t),r(ml,t),r(gl,t),r(wl,t),r(Il,t),r(xl,t),r(jl,t),r(Bl,t),r(Pl,t),r(Cl,t),r(Ml,t),r(Rl,t),r(Ul,t),r(Ll,t),r(Kl,t),r(Hl,t),r($l,t),r(Gl,t),r(tf,t),r(ef,t),r(nf,t),r(rf,t),r(of,t),r(af,t),r(cf,t),r(uf,t),r(lf,t),r(yf,t)}(yc);var hf={},vf={};vf.consume=void 0,vf.consume=function(t,e){return e(t)};var pf={eachAsync:void 0};const mf=wc;pf.eachAsync=function(t,e){return(0,mf.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 bf={};bf.each=void 0,bf.each=function(t,e){let n=0;for(const r of t)e(r,n),n++};var gf={everyAsync:void 0};const wf=wc;gf.everyAsync=function(t,e){return(0,wf.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 Af={};Af.every=void 0,Af.every=function(t,e){let n=0;for(const r of t){if(!e(r,n))return!1;n++}return!0};var Sf={findAsync:void 0};const If=wc;Sf.findAsync=function(t,e){return(0,If.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 _f={};_f.find=void 0,_f.find=function(t,e){let n=0;for(const r of t){if(e(r,n))return r;n++}};var Tf={};Tf.firstAsync=void 0,Tf.firstAsync=async function(t){for await(const e of t)return e};var xf={};xf.first=void 0,xf.first=function(t){for(const e of t)return e};var Ef={};Ef.includesAsync=void 0,Ef.includesAsync=async function(t,e){for await(const n of t)if(n===e)return!0;return!1};var Of={};Of.includes=void 0,Of.includes=function(t,e){for(const n of t)if(n===e)return!0;return!1};var jf={};jf.matchAsync=void 0,jf.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 Nf={};Nf.match=void 0,Nf.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 kf={reduceAsync:void 0};const Bf=wc;kf.reduceAsync=function(t,e,n){return(0,Bf.isUndefined)(n)?function(t,e){return(0,Bf.isAsyncIterable)(t)?n(t):r(t);async function n(t){var n;const r=t[Symbol.asyncIterator]();let i;try{let t,a=await o(r),s=1;for(;({value:t,done:i}=await r.next()),!i;)a=await e(a,t,s++);return a}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,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=await e(a,t,s++);return a}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,Bf.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 Pf={reduce:void 0};const qf=wc;Pf.reduce=function(t,e,n){return(0,qf.isUndefined)(n)?function(t,e){var n;const r=t[Symbol.iterator]();let i;try{let t,a=o(r),s=1;for(;({value:t,done:i}=r.next()),!i;)a=e(a,t,s++);return a}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 Cf={someAsync:void 0};const Mf=wc;Cf.someAsync=function(t,e){return(0,Mf.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 Rf={};Rf.some=void 0,Rf.some=function(t,e){let n=0;for(const r of t){if(e(r,n))return!0;n++}return!1};var zf={};zf.lastAsync=void 0,zf.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 Ff={};Ff.last=void 0,Ff.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 Uf={toArrayAsync:void 0};const Df=vf;Uf.toArrayAsync=function(t){return(0,Df.consume)(t,(async t=>{const e=[];for await(const n of t)e.push(n);return e}))};var Jf={toArray:void 0};const Lf=vf;Jf.toArray=function(t){return(0,Lf.consume)(t,(t=>Array.from(t)))};var Vf={toSetAsync:void 0};const Wf=vf;Vf.toSetAsync=function(t){return(0,Wf.consume)(t,(async t=>{const e=new Set;for await(const n of t)e.add(n);return e}))};var Kf={toSet:void 0};const Yf=vf;Kf.toSet=function(t){return(0,Yf.consume)(t,(t=>new Set(t)))};var Hf={};Hf.count=void 0,Hf.count=function(t){let e=0;for(const n of t)e++;return e};var $f={};$f.countAsync=void 0,$f.countAsync=async function(t){let e=0;for await(const n of t)e++;return e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(vf,t),r(pf,t),r(bf,t),r(gf,t),r(Af,t),r(Sf,t),r(_f,t),r(Tf,t),r(xf,t),r(Ef,t),r(Of,t),r(jf,t),r(Nf,t),r(kf,t),r(Pf,t),r(Cf,t),r(Rf,t),r(zf,t),r(Ff,t),r(Uf,t),r(Jf,t),r(Vf,t),r(Kf,t),r(Hf,t),r($f,t)}(hf),function(t){var e=n&&n.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(yc,t),r(hf,t)}(dc);class Qf{constructor(t){this.map=new Map,Mt.assert(Number.isInteger(t),"The parameter limit must be an integer"),Mt.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e){return this.map.has(t)?this.updateItem(t,e):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e)),this}has(t){return this.map.has(t)}get(t){if(!this.has(t))return;const e=this.map.get(t);return this.updateItem(t,e),e}delete(t){return this.map.delete(t)}clear(){this.map.clear()}updateItem(t,e){this.map.delete(t),this.map.set(t,e)}getColdestKey(){return dc.first(this.map.keys())}}var Xf={},Gf={},Zf={},td={};td.random=void 0,td.random=function(t,e){return Math.random()*(e-t)+t};var ed={};ed.randomInt=void 0,ed.randomInt=function(t,e){return t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t))+t};var nd={};nd.randomIntInclusive=void 0,nd.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=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(td,t),r(ed,t),r(nd,t)}(Zf),Gf.calculateExponentialBackoffTimeout=void 0;const rd=Zf;Gf.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,rd.randomIntInclusive)(0,o):o};var id={};id.setTimeout=void 0,id.setTimeout=function(t,e){const n=globalThis.setTimeout(e,t);return()=>clearTimeout(n)};var od={setSchedule:void 0};const ad=id;od.setSchedule=function(t,e){const n=t-Date.now();return(0,ad.setTimeout)(n,e)};var sd={};sd.setInterval=void 0,sd.setInterval=function(t,e){const n=globalThis.setInterval(e,t);return()=>clearInterval(n)};var cd={setImmediate:void 0};const ud=id;cd.setImmediate=function(t){if(globalThis.setImmediate){const e=globalThis.setImmediate(t);return()=>clearImmediate(e)}return(0,ud.setTimeout)(0,t)};var ld={setTimeoutLoop:void 0};const fd=id;ld.setTimeoutLoop=function(t,e){let n=!1,r=(0,fd.setTimeout)(t,(async function i(){await e(),n||(r=(0,fd.setTimeout)(t,i))}));return()=>{n=!0,r()}};var dd={setDynamicTimeoutLoop:void 0};const yd=id;dd.setDynamicTimeoutLoop=function(t,e){let n=!1,r=(0,yd.setTimeout)(t,(async function i(){const o=Date.now();await e();const a=Date.now()-o;n||(r=(0,yd.setTimeout)(Math.max(t-a,0),i))}));return()=>{n=!0,r()}},function(t){var e=n&&n.__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]}),r=n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)};r(Gf,t),r(id,t),r(od,t),r(sd,t),r(cd,t),r(ld,t),r(dd,t)}(Xf);class hd{constructor(){this.map=new Map,this.itemMetadataSortedByExpirationTime=[]}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.set(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n),this}has(t){return this.map.has(t)}get(t){return this.map.get(t)}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Xf.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}}class vd{constructor(t){this.map=new Map,this.itemMetadataSortedByExpirationTime=[],Mt.assert(Number.isInteger(t),"The parameter limit must be an integer"),Mt.assert(t>0,"The parameter limit must be a positive value"),this.limit=t}get[Symbol.toStringTag](){return this.constructor.name}get size(){return this.map.size}set(t,e,n){return this.map.has(t)?(this.updateItem(t,e),this.removeItemMetadata(t),this.addItemMetadata(t,Date.now()+n)):(this.map.size===this.limit&&this.map.delete(this.getColdestKey()),this.map.set(t,e),this.addItemMetadata(t,Date.now()+n)),this}has(t){return this.map.has(t)}get(t){if(this.has(t)){const e=this.map.get(t);return this.updateItem(t,e),e}}delete(t){const e=this.map.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;this.map.clear(),null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime=[]}updateItem(t,e){this.map.delete(t),this.map.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=>this.map.delete(t.key)))}rescheduleClearTimeout(){var t;if(null===(t=this.cancelClearTimeout)||void 0===t||t.call(this),this.itemMetadataSortedByExpirationTime.length>0){const t=this.itemMetadataSortedByExpirationTime[0];if(Number.isFinite(t.expirationTime)){const e=Xf.setSchedule(t.expirationTime,(()=>{this.clearExpiredItems(Date.now()),this.rescheduleClearTimeout()}));this.cancelClearTimeout=()=>{e(),this.cancelClearTimeout=void 0}}}}getColdestKey(){return dc.first(this.map.keys())}}class pd{constructor(t){this.value=t,this.children=new Map}}class md{constructor(){this.root=new pd}get[Symbol.toStringTag](){return this.constructor.name}*entries(){yield*function*t(e,n){for(const[i,o]of e.children){const e=[...n,i];r.isntUndefined(o.value)&&(yield[e,o.value]),yield*t(o,e)}}(this.root,[])}keys(){return dc.map(this.entries(),(([t])=>t))}values(){return dc.map(this.entries(),(([t,e])=>e))}set(t,e){let n=this.root;for(const e of t)n.children.has(e)||n.children.set(e,new pd),n=n.children.get(e);return n.value=e,this}has(t){let e=this.root;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=this.root;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=this.root;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 dc.toArray(dc.zip(t,e)).reverse())if(r.children.delete(n),0!==r.children.size)break;return!0}}class bd{constructor(t,e){this.schema=t,this._state=e}get[Symbol.toStringTag](){return this.constructor.name}get state(){return this._state}matches(t){return this._state===t}can(t){return t in this.schema[this.state]}send(t){if(!this.can(t))throw new gd(this.state,t);this._state=this.schema[this.state][t]}}class gd extends Mt.CustomError{constructor(t,e){super(`State ${t} cannot react to event ${e}`)}}
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */var vf=function(t,e){return(vf=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 pf(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}vf(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function mf(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 bf(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function gf(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function wf(t){return"function"==typeof t}function Af(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 Sf=Af((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 If(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var _f=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}var e;return t.prototype.unsubscribe=function(){var t,e,n,r,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var a=mf(i),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else i.remove(this);var c=this.initialTeardown;if(wf(c))try{c()}catch(t){o=t instanceof Sf?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var l=mf(u),f=l.next();!f.done;f=l.next()){var d=f.value;try{Ef(d)}catch(t){o=null!=o?o:[],t instanceof Sf?o=gf(gf([],bf(o)),bf(t.errors)):o.push(t)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(o)throw new Sf(o)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Ef(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&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)&&If(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&If(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Tf=_f.EMPTY;function xf(t){return t instanceof _f||t&&"closed"in t&&wf(t.remove)&&wf(t.add)&&wf(t.unsubscribe)}function Ef(t){wf(t)?t():t.unsubscribe()}var Of={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},jf=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,gf([t,e],bf(n)))};function kf(){}function Nf(t){t()}var Bf=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,xf(e)&&e.add(n)):n.destination=Rf,n}return pf(e,t),e.create=function(t,e,n){return new Mf(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}(_f),Pf=Function.prototype.bind;function qf(t,e){return Pf.call(t,e)}var Cf=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){zf(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){zf(t)}else zf(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){zf(t)}},t}(),Mf=function(t){function e(e,n,r){var o,i,a=t.call(this)||this;wf(e)||!e?o={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&Of.useDeprecatedNextContext?((i=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},o={next:e.next&&qf(e.next,i),error:e.error&&qf(e.error,i),complete:e.complete&&qf(e.complete,i)}):o=e;return a.destination=new Cf(o),a}return pf(e,t),e}(Bf);function zf(t){var e;e=t,jf((function(){throw e}))}var Rf={closed:!0,next:kf,error:function(t){throw t},complete:kf},Uf="function"==typeof Symbol&&Symbol.observable||"@@observable";function Df(t){return t}function Ff(t){return 0===t.length?Df:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Jf=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,o=this,i=(r=t)&&r instanceof Bf||function(t){return t&&wf(t.next)&&wf(t.error)&&wf(t.complete)}(r)&&xf(r)?t:new Mf(t,e,n);return Nf((function(){var t=o,e=t.operator,n=t.source;i.add(e?e.call(i,n):n?o._subscribe(i):o._trySubscribe(i))})),i},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=Vf(e))((function(e,r){var o=new Mf({next:function(e){try{t(e)}catch(t){r(t),o.unsubscribe()}},error:r,complete:e});n.subscribe(o)}))},t.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},t.prototype[Uf]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ff(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Vf(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 Vf(t){var e;return null!==(e=null!=t?t:Of.Promise)&&void 0!==e?e:Promise}function Lf(t){return wf(null==t?void 0:t.lift)}function Wf(t,e,n,r,o){return new Kf(t,e,n,r,o)}var Kf=function(t){function e(e,n,r,o,i,a){var s=t.call(this,e)||this;return s.onFinalize=i,s.shouldUnsubscribe=a,s._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,s._error=o?function(t){try{o(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,s}return pf(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(Bf);function Yf(){return t=function(t,e){var n=null;t._refCount++;var r=Wf(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,o=n;n=null,!r||o&&r!==o||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())},function(e){if(Lf(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")};var t}!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,Lf(e)&&(r.lift=e.lift),r}pf(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new _f;var n=this.getSubject();e.add(this.source.subscribe(Wf(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=_f.EMPTY)}return e},e.prototype.refCount=function(){return Yf()(this)}}(Jf);var Hf,$f,Qf={now:function(){return(Qf.delegate||performance).now()},delegate:void 0},Xf={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e((function(e){n=void 0,t(e)}));return new _f((function(){return null==n?void 0:n(r)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Xf.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,gf([],bf(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,gf([],bf(t)))},delegate:void 0};$f=Xf.schedule,new Jf((function(t){var e=new _f,n=Hf||Qf,r=n.now(),o=function(i){var a=n.now();t.next({timestamp:Hf?a:i,elapsed:a-r}),t.closed||e.add($f(o))};return e.add($f(o)),e}));var Gf=Af((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),Zf=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return pf(e,t),e.prototype.lift=function(t){var e=new td(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new Gf},e.prototype.next=function(t){var e=this;Nf((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var o=mf(e.currentObservers),i=o.next();!i.done;i=o.next()){i.value.next(t)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;Nf((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;Nf((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=this.currentObservers=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=this,r=n.hasError,o=n.isStopped,i=n.observers;return r||o?Tf:(this.currentObservers=null,i.push(t),new _f((function(){e.currentObservers=null,If(i,t)})))},e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e.thrownError,o=e.isStopped;n?t.error(r):o&&t.complete()},e.prototype.asObservable=function(){var t=new Jf;return t.source=this,t},e.create=function(t,e){return new td(t,e)},e}(Jf),td=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return pf(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:Tf},e}(Zf);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}pf(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(Zf);var ed={now:function(){return(ed.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ed);var o=t.call(this)||this;return o._bufferSize=e,o._windowTime=n,o._timestampProvider=r,o._buffer=[],o._infiniteTimeWindow=!0,o._infiniteTimeWindow=n===1/0,o._bufferSize=Math.max(1,e),o._windowTime=Math.max(1,n),o}pf(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,o=n._buffer,i=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(o.push(e),!i&&o.push(a.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),o=0;o<r.length&&!t.closed;o+=n?1:2)t.next(r[o]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,o=t._infiniteTimeWindow,i=(o?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!o){for(var a=n.now(),s=0,c=1;c<r.length&&r[c]<=a;c+=2)s=c;s&&r.splice(0,s+1)}}}(Zf),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}pf(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,o=e._value,i=e.thrownError,a=e.isStopped,s=e._isComplete;n?t.error(i):(a||s)&&(r&&t.next(o),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(Zf);var nd,rd=function(t){function e(e,n){return t.call(this)||this}return pf(e,t),e.prototype.schedule=function(t,e){return this},e}(_f),od=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,gf([t,e],bf(n)))},id=function(t){return clearInterval(t)},ad=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return pf(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),od(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;id(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,If(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(rd),sd=1,cd={};function ud(t){return t in cd&&(delete cd[t],!0)}var ld=function(t){var e=sd++;return cd[e]=!0,nd||(nd=Promise.resolve()),nd.then((function(){return ud(e)&&t()})),e},fd=function(t){ud(t)},dd={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=dd.delegate;return((null==n?void 0:n.setImmediate)||ld).apply(void 0,gf([],bf(t)))},clearImmediate:function(t){return fd(t)},delegate:void 0},yd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return pf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=dd.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(dd.clearImmediate(n),e._scheduled=void 0)},e}(ad),hd=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=ed.now,t}(),vd=function(t){function e(e,n){void 0===n&&(n=hd.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return pf(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(hd);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pf(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(vd))(yd),new vd(ad);var pd=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return pf(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(ad);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pf(e,t),e}(vd))(pd);var md=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return pf(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=Xf.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(Xf.cancelAnimationFrame(n),e._scheduled=void 0)},e}(ad);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pf(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(vd))(md),function(t){function e(e,n){void 0===e&&(e=gd),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}pf(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(vd);var bd,gd=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var o=t.call(this,e,n)||this;return o.scheduler=e,o.work=n,o.index=r,o.active=!0,o.index=e.index=r,o}return pf(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var o=new e(this.scheduler,this.work);return this.add(o),o.schedule(n,r)}return _f.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var o=t.actions;return o.push(this),o.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(ad);new Jf((function(t){return t.complete()})),function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(bd||(bd={})),Af((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),Af((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),Af((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),Af((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}})),Af((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}})),new Jf(kf);class wd extends yf{constructor(){super(...arguments),this.stateChanges=new Zf}get[Symbol.toStringTag](){return this.constructor.name}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}),r.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}}class Ad{constructor(){this.values=[],this.valueToValueIndex=[]}get[Symbol.toStringTag](){return this.constructor.name}*[Symbol.iterator](){for(const t of this.values)yield t}has(t){return r.isntUndefined(this.valueToValueIndex[t])}add(t){if(!this.has(t)){const e=this.values.length;this.values.push(t),this.valueToValueIndex[t]=e}}remove(t){if(this.has(t)){const e=this.values.pop();if(t!==e){const n=this.valueToValueIndex[t];this.values[n]=e,this.valueToValueIndex[e]=n,this.valueToValueIndex[t]=void 0}}}}t.BadEventError=hf,t.Box=e,t.Emitter=kt,t.ExpirableMap=uf,t.FiniteStateMachine=yf,t.HashMap=Nt,t.HashSet=Bt,t.LRUMap=Ll,t.ObservableFiniteStateMachine=wd,t.Queue=Pt,t.SparseSet=Ad,t.TLRUMap=lf,t.TrieMap=df,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return r.isNull(n)?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
15
|
+
***************************************************************************** */var wd=function(t,e){return(wd=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 Ad(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}wd(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function Sd(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 Id(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.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 a}function _d(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 Td(t){return"function"==typeof t}function xd(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 Ed=xd((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 Od(t,e){if(t){var n=t.indexOf(e);0<=n&&t.splice(n,1)}}var jd=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=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 a=Sd(o),s=a.next();!s.done;s=a.next()){s.value.remove(this)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var c=this.initialTeardown;if(Td(c))try{c()}catch(t){i=t instanceof Ed?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var l=Sd(u),f=l.next();!f.done;f=l.next()){var d=f.value;try{Bd(d)}catch(t){i=null!=i?i:[],t instanceof Ed?i=_d(_d([],Id(i)),Id(t.errors)):i.push(t)}}}catch(t){n={error:t}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new Ed(i)}},t.prototype.add=function(e){var n;if(e&&e!==this)if(this.closed)Bd(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&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)&&Od(e,t)},t.prototype.remove=function(e){var n=this._finalizers;n&&Od(n,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),Nd=jd.EMPTY;function kd(t){return t instanceof jd||t&&"closed"in t&&Td(t.remove)&&Td(t.add)&&Td(t.unsubscribe)}function Bd(t){Td(t)?t():t.unsubscribe()}var Pd={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},qd=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout.apply(void 0,_d([t,e],Id(n)))};function Cd(){}function Md(t){t()}var Rd=function(t){function e(e){var n=t.call(this)||this;return n.isStopped=!1,e?(n.destination=e,kd(e)&&e.add(n)):n.destination=Ld,n}return Ad(e,t),e.create=function(t,e,n){return new Dd(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}(jd),zd=Function.prototype.bind;function Fd(t,e){return zd.call(t,e)}var Ud=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){Jd(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){Jd(t)}else Jd(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){Jd(t)}},t}(),Dd=function(t){function e(e,n,r){var i,o,a=t.call(this)||this;Td(e)||!e?i={next:null!=e?e:void 0,error:null!=n?n:void 0,complete:null!=r?r:void 0}:a&&Pd.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return a.unsubscribe()},i={next:e.next&&Fd(e.next,o),error:e.error&&Fd(e.error,o),complete:e.complete&&Fd(e.complete,o)}):i=e;return a.destination=new Ud(i),a}return Ad(e,t),e}(Rd);function Jd(t){var e;e=t,qd((function(){throw e}))}var Ld={closed:!0,next:Cd,error:function(t){throw t},complete:Cd},Vd="function"==typeof Symbol&&Symbol.observable||"@@observable";function Wd(t){return t}function Kd(t){return 0===t.length?Wd:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}var Yd=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 Rd||function(t){return t&&Td(t.next)&&Td(t.error)&&Td(t.complete)}(r)&&kd(r)?t:new Dd(t,e,n);return Md((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=Hd(e))((function(e,r){var i=new Dd({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[Vd]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Kd(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Hd(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 Hd(t){var e;return null!==(e=null!=t?t:Pd.Promise)&&void 0!==e?e:Promise}function $d(t){return Td(null==t?void 0:t.lift)}function Qd(t,e,n,r,i){return new Xd(t,e,n,r,i)}var Xd=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e)||this;return s.onFinalize=o,s.shouldUnsubscribe=a,s._next=n?function(t){try{n(t)}catch(t){e.error(t)}}:t.prototype._next,s._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,s._complete=r?function(){try{r()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,s}return Ad(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}},e}(Rd);function Gd(){return t=function(t,e){var n=null;t._refCount++;var r=Qd(e,void 0,void 0,void 0,(function(){if(!t||t._refCount<=0||0<--t._refCount)n=null;else{var r=t._connection,i=n;n=null,!r||i&&r!==i||r.unsubscribe(),e.unsubscribe()}}));t.subscribe(r),r.closed||(n=t.connect())},function(e){if($d(e))return e.lift((function(e){try{return t(e,this)}catch(t){this.error(t)}}));throw new TypeError("Unable to lift unknown Observable type")};var t}!function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._subject=null,r._refCount=0,r._connection=null,$d(e)&&(r.lift=e.lift),r}Ad(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype._teardown=function(){this._refCount=0;var t=this._connection;this._subject=this._connection=null,null==t||t.unsubscribe()},e.prototype.connect=function(){var t=this,e=this._connection;if(!e){e=this._connection=new jd;var n=this.getSubject();e.add(this.source.subscribe(Qd(n,void 0,(function(){t._teardown(),n.complete()}),(function(e){t._teardown(),n.error(e)}),(function(){return t._teardown()})))),e.closed&&(this._connection=null,e=jd.EMPTY)}return e},e.prototype.refCount=function(){return Gd()(this)}}(Yd);var Zd,ty,ey={now:function(){return(ey.delegate||performance).now()},delegate:void 0},ny={schedule:function(t){var e=requestAnimationFrame,n=cancelAnimationFrame,r=e((function(e){n=void 0,t(e)}));return new jd((function(){return null==n?void 0:n(r)}))},requestAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=ny.delegate;return((null==n?void 0:n.requestAnimationFrame)||requestAnimationFrame).apply(void 0,_d([],Id(t)))},cancelAnimationFrame:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cancelAnimationFrame.apply(void 0,_d([],Id(t)))},delegate:void 0};ty=ny.schedule,new Yd((function(t){var e=new jd,n=Zd||ey,r=n.now(),i=function(o){var a=n.now();t.next({timestamp:Zd?a:o,elapsed:a-r}),t.closed||e.add(ty(i))};return e.add(ty(i)),e}));var ry=xd((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),iy=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Ad(e,t),e.prototype.lift=function(t){var e=new oy(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new ry},e.prototype.next=function(t){var e=this;Md((function(){var n,r;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=Sd(e.currentObservers),o=i.next();!o.done;o=i.next()){o.value.next(t)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}}))},e.prototype.error=function(t){var e=this;Md((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;Md((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=this.currentObservers=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=this,r=n.hasError,i=n.isStopped,o=n.observers;return r||i?Nd:(this.currentObservers=null,o.push(t),new jd((function(){e.currentObservers=null,Od(o,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 Yd;return t.source=this,t},e.create=function(t,e){return new oy(t,e)},e}(Yd),oy=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Ad(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:Nd},e}(iy);!function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}Ad(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){var t=this,e=t.hasError,n=t.thrownError,r=t._value;if(e)throw n;return this._throwIfClosed(),r},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)}}(iy);var ay={now:function(){return(ay.delegate||Date).now()},delegate:void 0};!function(t){function e(e,n,r){void 0===e&&(e=1/0),void 0===n&&(n=1/0),void 0===r&&(r=ay);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=n,i._timestampProvider=r,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,n),i}Ad(e,t),e.prototype.next=function(e){var n=this,r=n.isStopped,i=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,s=n._windowTime;r||(i.push(e),!o&&i.push(a.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!t.closed;i+=n?1:2)t.next(r[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this,e=t._bufferSize,n=t._timestampProvider,r=t._buffer,i=t._infiniteTimeWindow,o=(i?1:2)*e;if(e<1/0&&o<r.length&&r.splice(0,r.length-o),!i){for(var a=n.now(),s=0,c=1;c<r.length&&r[c]<=a;c+=2)s=c;s&&r.splice(0,s+1)}}}(iy),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._value=null,e._hasValue=!1,e._isComplete=!1,e}Ad(e,t),e.prototype._checkFinalizedStatuses=function(t){var e=this,n=e.hasError,r=e._hasValue,i=e._value,o=e.thrownError,a=e.isStopped,s=e._isComplete;n?t.error(o):(a||s)&&(r&&t.next(i),t.complete())},e.prototype.next=function(t){this.isStopped||(this._value=t,this._hasValue=!0)},e.prototype.complete=function(){var e=this,n=e._hasValue,r=e._value;e._isComplete||(this._isComplete=!0,n&&t.prototype.next.call(this,r),t.prototype.complete.call(this))}}(iy);var sy,cy=function(t){function e(e,n){return t.call(this)||this}return Ad(e,t),e.prototype.schedule=function(t,e){return this},e}(jd),uy=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setInterval.apply(void 0,_d([t,e],Id(n)))},ly=function(t){return clearInterval(t)},fy=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return Ad(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),uy(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!=n&&this.delay===n&&!1===this.pending)return e;ly(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n,r=!1;try{this.work(t)}catch(t){r=!0,n=t||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),n},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,n=this.scheduler,r=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Od(r,this),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(cy),dy=1,yy={};function hy(t){return t in yy&&(delete yy[t],!0)}var vy=function(t){var e=dy++;return yy[e]=!0,sy||(sy=Promise.resolve()),sy.then((function(){return hy(e)&&t()})),e},py=function(t){hy(t)},my={setImmediate:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=my.delegate;return((null==n?void 0:n.setImmediate)||vy).apply(void 0,_d([],Id(t)))},clearImmediate:function(t){return py(t)},delegate:void 0},by=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Ad(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=my.setImmediate(e.flush.bind(e,void 0))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(my.clearImmediate(n),e._scheduled=void 0)},e}(fy),gy=function(){function t(e,n){void 0===n&&(n=t.now),this.schedulerActionCtor=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(n,e)},t.now=ay.now,t}(),wy=function(t){function e(e,n){void 0===n&&(n=gy.now);var r=t.call(this,e,n)||this;return r.actions=[],r._active=!1,r._scheduled=void 0,r}return Ad(e,t),e.prototype.flush=function(t){var e=this.actions;if(this._active)e.push(t);else{var n;this._active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(gy);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ad(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(wy))(by),new wy(fy);var Ay=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Ad(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(fy);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ad(e,t),e}(wy))(Ay);var Sy=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return Ad(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e._scheduled||(e._scheduled=ny.requestAnimationFrame((function(){return e.flush(void 0)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!=r&&r>0||null==r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);e.actions.some((function(t){return t.id===n}))||(ny.cancelAnimationFrame(n),e._scheduled=void 0)},e}(fy);new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ad(e,t),e.prototype.flush=function(t){this._active=!0;var e=this._scheduled;this._scheduled=void 0;var n,r=this.actions;t=t||r.shift();do{if(n=t.execute(t.state,t.delay))break}while((t=r[0])&&t.id===e&&r.shift());if(this._active=!1,n){for(;(t=r[0])&&t.id===e&&r.shift();)t.unsubscribe();throw n}},e}(wy))(Sy),function(t){function e(e,n){void 0===e&&(e=_y),void 0===n&&(n=1/0);var r=t.call(this,e,(function(){return r.frame}))||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}Ad(e,t),e.prototype.flush=function(){for(var t,e,n=this.actions,r=this.maxFrames;(e=n[0])&&e.delay<=r&&(n.shift(),this.frame=e.delay,!(t=e.execute(e.state,e.delay))););if(t){for(;e=n.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10}(wy);var Iy,_y=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1);var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.index=r,i.active=!0,i.index=e.index=r,i}return Ad(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),Number.isFinite(r)){if(!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)}return jd.EMPTY},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(fy);new Yd((function(t){return t.complete()})),function(t){t.NEXT="N",t.ERROR="E",t.COMPLETE="C"}(Iy||(Iy={})),xd((function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}})),xd((function(t){return function(){t(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})),xd((function(t){return function(e){t(this),this.name="NotFoundError",this.message=e}})),xd((function(t){return function(e){t(this),this.name="SequenceError",this.message=e}})),xd((function(t){return function(e){void 0===e&&(e=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e}})),new Yd(Cd);class Ty extends bd{constructor(){super(...arguments),this.stateChanges=new iy}get[Symbol.toStringTag](){return this.constructor.name}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}),r.isEmptyObject(this.schema[n])&&this.stateChanges.complete()}}class xy{constructor(){this.values=[],this.valueToValueIndex=[]}get[Symbol.toStringTag](){return this.constructor.name}*[Symbol.iterator](){for(const t of this.values)yield t}has(t){return r.isntUndefined(this.valueToValueIndex[t])}add(t){if(!this.has(t)){const e=this.values.length;this.values.push(t),this.valueToValueIndex[t]=e}}remove(t){if(this.has(t)){const e=this.values.pop();if(t!==e){const n=this.valueToValueIndex[t];this.values[n]=e,this.valueToValueIndex[e]=n,this.valueToValueIndex[t]=void 0}}}}class Ey{constructor(t,{capacity:e=0,growthFactor:n=1.5}={}){this.typedArrayConstructor=t,this._length=0,Mt.assert(Number.isInteger(e),"capacity must be an integer"),Mt.assert(e>=0,"capacity must be greater than or equal to 0"),Mt.assert(n>1,"growthFactory must be greater than or equal to 1"),this.array=new t(e),this.growthFactor=n}get[Symbol.toStringTag](){return this.constructor.name}get capacity(){return this.array.length}get length(){return this._length}set(t,e){if(t>=this.capacity){const e=Oy(this.capacity,t+1,this.growthFactor);this.resize(e)}t>=this._length&&(this._length=t+1),this.array[t]=e}get(t){return t<this._length?this.array[t]:void 0}push(...t){const e=this._length+t.length;if(e>this.capacity){const t=Oy(this.capacity,e,this.growthFactor);this.resize(t)}for(const e of t)this.array[this._length++]=e}pop(){if(this._length>0){const t=this.array[this._length-1];this._length--;const e=Oy(this.capacity,this.length,this.growthFactor);return this.resize(e),t}}resize(t){if(this.array.length!==t)if(this.array.length<t){const e=new this.typedArrayConstructor(t);e.set(this.array),this.array=e}else if(this.array.length>t){const e=new this.typedArrayConstructor(t);for(let n=t;n--;)e[n]=this.array[n];this.array=e}}}function Oy(t,e,n){if(t===e)return e;if(t<e){let r=Math.max(t,1);for(;r<e;)r*=n;return Math.floor(r)}if(0===e)return 0;{let r=t;for(;;){const t=r/n;if(t<e)break;r=t}return Math.floor(r)}}t.BadEventError=gd,t.Box=e,t.DynamicTypedArray=Ey,t.Emitter=Bt,t.ExpirableMap=hd,t.FiniteStateMachine=bd,t.HashMap=Pt,t.HashSet=qt,t.LRUMap=Qf,t.ObservableFiniteStateMachine=Ty,t.Queue=Ct,t.SparseSet=xy,t.TLRUMap=vd,t.TrieMap=md,t.convertArrayToCons=function t([e,...n]){return[e,n.length?t(n):null]},t.convertConsToArray=function t([e,n]){return r.isNull(n)?[e]:[e,...t(n)]},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
16
16
|
//# sourceMappingURL=index.umd.min.js.map
|