extra-abort
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -1,2 +0,2 @@ | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraAbort={})}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};const{AbortController:r,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=r;var i=e.exports.AbortSignal=o;e.exports.default=r;var a,s=e.exports;const c=null!==(a=globalThis.AbortController)&&void 0!==a?a:s;var u={},f={},l={},y={},d={},v={},m={};m.go=void 0,m.go=function(t){return t()};var p={};p.goMicrotask=void 0,p.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var b={},h={},g={},w={},A={};A.random=void 0,A.random=function(t,n){return Math.random()*(n-t)+t};var I={};I.randomInt=void 0,I.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var S={};S.randomIntInclusive=void 0,S.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(A,t),r(I,t),r(S,t)}(w),g.calculateExponentialBackoffTimeout=void 0;const O=w;g.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,O.randomIntInclusive)(0,i):i};var T={};T.setTimeout=void 0,T.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var j={setSchedule:void 0};const N=T;j.setSchedule=function(t,n){const e=t-Date.now();return(0,N.setTimeout)(e,n)};var x={};x.setInterval=void 0,x.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var _={setImmediate:void 0};const k=T;_.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,k.setTimeout)(0,t)};var E={setTimeoutLoop:void 0};const B=T;E.setTimeoutLoop=function(t,n){let e=!1,r=(0,B.setTimeout)(t,(async function o(){await n(),e||(r=(0,B.setTimeout)(t,o))}));return()=>{e=!0,r()}};var P={setDynamicTimeoutLoop:void 0};const q=T;P.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,q.setTimeout)(t,(async function o(){const i=Date.now();await n();const a=Date.now()-i;e||(r=(0,q.setTimeout)(Math.max(t-a,0),o))}));return()=>{e=!0,r()}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(g,t),r(T,t),r(j,t),r(x,t),r(_,t),r(E,t),r(P,t)}(h),b.goMacrotask=void 0;const D=h;b.goMacrotask=function(t){return new Promise(((n,e)=>{(0,D.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(m,t),r(p,t),r(b,t)}(v),d.chunkAsync=void 0;const M=v,R=u;d.chunkAsync=function(t,n){return(0,R.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,R.assert)(n>0,"The parameter size must be greater than 0"),(0,M.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var U={},z={},C={};function F(t){return Array.isArray(t)}C.isntEmptyArray=C.isEmptyArray=C.isntArray=C.isArray=void 0,C.isArray=F,C.isntArray=function(t){return!F(t)},C.isEmptyArray=function(t){return 0===t.length},C.isntEmptyArray=function(t){return 0!==t.length};var L={},J={};function V(t){return null===t}J.isntNull=J.isNull=void 0,J.isNull=V,J.isntNull=function(t){return!V(t)};var W={};function G(t){return void 0===t}W.isntUndefined=W.isUndefined=void 0,W.isUndefined=G,W.isntUndefined=function(t){return!G(t)};var H={};function K(t){return"function"==typeof t}H.isntFunction=H.isFunction=void 0,H.isFunction=K,H.isntFunction=function(t){return!K(t)},L.isntAsyncIterable=L.isAsyncIterable=void 0;const Q=J,X=W,Y=H;function Z(t){return(0,Q.isntNull)(t)&&(0,X.isntUndefined)(t)&&(0,Y.isFunction)(t[Symbol.asyncIterator])}L.isAsyncIterable=Z,L.isntAsyncIterable=function(t){return!Z(t)};var $={};function tt(t){return"bigint"==typeof t}$.isntBigInt=$.isBigInt=void 0,$.isBigInt=tt,$.isntBigInt=function(t){return!tt(t)};var nt={};function et(t){return"boolean"==typeof t}nt.isntBoolean=nt.isBoolean=void 0,nt.isBoolean=et,nt.isntBoolean=function(t){return!et(t)};var rt={},ot={};function it(t){return"string"==typeof t}ot.isntString=ot.isString=void 0,ot.isString=it,ot.isntString=function(t){return!it(t)},rt.isntChar=rt.isChar=void 0;const at=ot;function st(t){return(0,at.isString)(t)&&1===t.length}rt.isChar=st,rt.isntChar=function(t){return!st(t)};var ct={};function ut(t){return t instanceof Date}ct.isntDate=ct.isDate=void 0,ct.isDate=ut,ct.isntDate=function(t){return!ut(t)};var ft={};ft.inEnum=void 0,ft.inEnum=function(t,n){return Object.values(n).includes(t)};var lt={};function yt(t){return t instanceof Error}lt.isntError=lt.isError=void 0,lt.isError=yt,lt.isntError=function(t){return!yt(t)};var dt={};function vt(t){return!t}dt.isntFalsy=dt.isFalsy=void 0,dt.isFalsy=vt,dt.isntFalsy=function(t){return!vt(t)};var mt={};mt.isntIterable=mt.isIterable=void 0;const pt=J,bt=W,ht=H;function gt(t){return(0,pt.isntNull)(t)&&(0,bt.isntUndefined)(t)&&(0,ht.isFunction)(t[Symbol.iterator])}mt.isIterable=gt,mt.isntIterable=function(t){return!gt(t)};var wt={},At={};function It(t){return"number"==typeof t}function St(t){return Number.isNaN(t)}At.isntNaN=At.isNaN=At.isNegativeInfinity=At.isPositiveInfinity=At.isFinite=At.isntNumber=At.isNumber=void 0,At.isNumber=It,At.isntNumber=function(t){return!It(t)},At.isFinite=function(t){return Number.isFinite(t)},At.isPositiveInfinity=function(t){return t===1/0},At.isNegativeInfinity=function(t){return t===-1/0},At.isNaN=St,At.isntNaN=function(t){return!St(t)};var Ot={},Tt="object"==typeof n&&n&&n.Object===Object&&n,jt="object"==typeof self&&self&&self.Object===Object&&self,Nt=(Tt||jt||Function("return this")()).Symbol,xt=Nt,_t=Object.prototype,kt=_t.hasOwnProperty,Et=_t.toString,Bt=xt?xt.toStringTag:void 0;var Pt=function(t){var n=kt.call(t,Bt),e=t[Bt];try{t[Bt]=void 0;var r=!0}catch(t){}var o=Et.call(t);return r&&(n?t[Bt]=e:delete t[Bt]),o},qt=Object.prototype.toString;var Dt=Pt,Mt=function(t){return qt.call(t)},Rt=Nt?Nt.toStringTag:void 0;var Ut=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Rt&&Rt in Object(t)?Dt(t):Mt(t)};var zt=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Ct=Ut,Ft=zt,Lt=function(t){return null!=t&&"object"==typeof t},Jt=Function.prototype,Vt=Object.prototype,Wt=Jt.toString,Gt=Vt.hasOwnProperty,Ht=Wt.call(Object);var Kt=function(t){if(!Lt(t)||"[object Object]"!=Ct(t))return!1;var n=Ft(t);if(null===n)return!0;var e=Gt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Wt.call(e)==Ht},Qt=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Ot.isntEmptyObject=Ot.isEmptyObject=Ot.isntPlainObject=Ot.isPlainObject=Ot.isntObject=Ot.isObject=void 0;const Xt=Qt(Kt);function Yt(t){return null!==t&&"object"==typeof t}function Zt(t){return(0,Xt.default)(t)}Ot.isObject=Yt,Ot.isntObject=function(t){return!Yt(t)},Ot.isPlainObject=Zt,Ot.isntPlainObject=function(t){return!Zt(t)},Ot.isEmptyObject=function(t){return 0===Object.keys(t).length},Ot.isntEmptyObject=function(t){return 0!==Object.keys(t).length},wt.isntJsonable=wt.isJsonable=wt.isntJson=wt.isJson=void 0;const $t=J,tn=nt,nn=ot,en=At,rn=C,on=Ot;function an(t){return(0,$t.isNull)(t)||(0,tn.isBoolean)(t)||(0,nn.isString)(t)||(0,en.isNumber)(t)||(0,rn.isArray)(t)&&t.every(an)||(0,on.isPlainObject)(t)&&Object.values(t).every(an)}wt.isJson=an,wt.isntJson=function(t){return!an(t)},wt.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},wt.isntJsonable=function t(n){return!t()};var sn={};sn.isPromiseLike=sn.isntPromiseLike=sn.isntPromise=sn.isPromise=void 0;const cn=Ot,un=H;function fn(t){return t instanceof Promise}function ln(t){return(0,cn.isObject)(t)&&(0,un.isFunction)(t.then)}sn.isPromise=fn,sn.isntPromise=function(t){return!fn(t)},sn.isntPromiseLike=function(t){return!ln(t)},sn.isPromiseLike=ln;var yn={};yn.isAbsoluteURL=void 0,yn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var dn={};function vn(t){return t instanceof RegExp}dn.isntRegExp=dn.isRegExp=void 0,dn.isRegExp=vn,dn.isntRegExp=function(t){return!vn(t)};var mn={};function pn(t){return"symbol"==typeof t}mn.isntSymbol=mn.isSymbol=void 0,mn.isSymbol=pn,mn.isntSymbol=function(t){return!pn(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(C,t),r(L,t),r($,t),r(nt,t),r(rt,t),r(ct,t),r(ft,t),r(lt,t),r(dt,t),r(H,t),r(mt,t),r(wt,t),r(J,t),r(At,t),r(Ot,t),r(sn,t),r(ot,t),r(W,t),r(yn,t),r(dn,t),r(mn,t)}(z),U.chunkByAsync=void 0;const bn=z;U.chunkByAsync=function(t,n){return(0,bn.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var hn={};hn.chunkBy=void 0,hn.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var gn={chunk:void 0};const wn=v,An=u;gn.chunk=function(t,n){return(0,An.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,An.assert)(n>0,"The parameter size must be greater than 0"),(0,wn.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var In={concatAsync:void 0};const Sn=z,On=v;In.concatAsync=function(t,...n){return(0,On.go)((async function*(){for(const e of[t,...n])if((0,Sn.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var Tn={concat:void 0};const jn=v;Tn.concat=function(t,...n){return(0,jn.go)((function*(){for(const e of[t,...n])yield*e}))};var Nn={},xn={};xn.copyIterable=xn.copyAsyncIterable=void 0,xn.copyAsyncIterable=async function*(t){for await(const n of t)yield n},xn.copyIterable=function*(t){for(const n of t)yield n},Nn.dropAsync=void 0;const _n=v,kn=xn,En=u;Nn.dropAsync=function(t,n){return(0,En.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,En.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,kn.copyAsyncIterable)(t):(0,_n.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Bn={dropRightAsync:void 0};const Pn=v,qn=xn,Dn=u;Bn.dropRightAsync=function(t,n){return(0,Dn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Dn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,qn.copyAsyncIterable)(t):(0,Pn.go)((async function*(){const e=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(t)).slice(0,-n);for(const t of e)yield t}))};var Mn={dropRight:void 0};const Rn=v,Un=xn,zn=u;Mn.dropRight=function(t,n){return(0,zn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,zn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Un.copyIterable)(t):(0,Rn.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var Cn={dropUntilAsync:void 0};const Fn=z;Cn.dropUntilAsync=function(t,n){return(0,Fn.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var Ln={};Ln.dropUntil=void 0,Ln.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var Jn={drop:void 0};const Vn=v,Wn=xn,Gn=u;Jn.drop=function(t,n){return(0,Gn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Gn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Wn.copyIterable)(t):(0,Vn.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Hn={filterAsync:void 0};const Kn=z;Hn.filterAsync=function(t,n){return(0,Kn.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var Qn={};Qn.filter=void 0,Qn.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Xn={},Yn={},Zn={flattenByAsync:void 0};const $n=z;async function*te(t,n,e){for(const r of t)ne(r)&&await n(r,e)?yield*te(r,n,e+1):yield r}function ne(t){return(0,$n.isIterable)(t)&&(0,$n.isntChar)(t)}Zn.flattenByAsync=function(t,n){return(0,$n.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)ne(r)&&await n(r,e)?yield*te(r,n,e+1):yield r}(t,n):function(t,n){return te(t,n,1)}(t,n)},Yn.flattenDeepAsync=void 0;const ee=Zn,re=u;Yn.flattenDeepAsync=function(t,n=1/0){return(0,re.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,re.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,ee.flattenByAsync)(t,((t,e)=>e<=n))},Xn.flattenAsync=void 0;const oe=Yn;Xn.flattenAsync=function(t){return(0,oe.flattenDeepAsync)(t,1)};var ie={flattenBy:void 0};const ae=z;function*se(t,n,e){for(const o of t)r=o,(0,ae.isIterable)(r)&&(0,ae.isntChar)(r)&&n(o,e)?yield*se(o,n,e+1):yield o;var r}ie.flattenBy=function(t,n){return se(t,n,1)};var ce={flattenDeep:void 0};const ue=ie,fe=u;ce.flattenDeep=function(t,n=1/0){return(0,fe.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,fe.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,ue.flattenBy)(t,((t,e)=>e<=n))};var le={flatten:void 0};const ye=ce;le.flatten=function(t){return(0,ye.flattenDeep)(t,1)};var de={mapAsync:void 0};const ve=z;de.mapAsync=function(t,n){return(0,ve.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var me={};me.map=void 0,me.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var pe={repeatAsync:void 0};const be=v,he=u;pe.repeatAsync=function(t,n){return(0,he.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,he.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,be.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var ge={repeat:void 0};const we=v,Ae=u;ge.repeat=function(t,n){return(0,Ae.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ae.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,we.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Ie={sliceAsync:void 0};const Se=v,Oe=u;Ie.sliceAsync=function(t,n,e=1/0){return(0,Oe.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Oe.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Oe.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Oe.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Se.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Te={slice:void 0};const je=v,Ne=u;Te.slice=function(t,n,e=1/0){return(0,Ne.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Ne.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Ne.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Ne.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,je.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var xe={};xe.splitAsync=void 0,xe.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var _e={splitByAsync:void 0};const ke=z;_e.splitByAsync=function(t,n){return(0,ke.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var Ee={};Ee.splitBy=void 0,Ee.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Be={};Be.split=void 0,Be.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Pe={takeAsync:void 0};const qe=v,De=u;Pe.takeAsync=function(t,n){return(0,De.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,De.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,qe.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var Me={takeRightAsync:void 0};const Re=v,Ue=u;Me.takeRightAsync=function(t,n){return(0,Ue.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Ue.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Re.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var ze={takeRight:void 0};const Ce=v,Fe=u;ze.takeRight=function(t,n){return(0,Fe.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Fe.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ce.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Le={takeUntilAsync:void 0};const Je=z;Le.takeUntilAsync=function(t,n){return(0,Je.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var Ve={};Ve.takeUntil=void 0,Ve.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var We={take:void 0};const Ge=v,He=u;We.take=function(t,n){return(0,He.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,He.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ge.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var Ke={tapAsync:void 0};const Qe=z;Ke.tapAsync=function(t,n){return(0,Qe.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Xe={};Xe.tap=void 0,Xe.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Ye={};Ye.toAsyncIterable=void 0,Ye.toAsyncIterable=async function*(t){for(const n of t)yield n};var Ze={};Ze.transformAsync=void 0,Ze.transformAsync=async function*(t,n){yield*n(t)};var $e={};$e.transform=void 0,$e.transform=function*(t,n){yield*n(t)};var tr={};tr.uniqAsync=void 0,tr.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var nr={uniqByAsync:void 0};const er=z;nr.uniqByAsync=function(t,n){return(0,er.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var rr={};rr.uniqBy=void 0,rr.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var or={};or.uniq=void 0,or.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ir={zipAsync:void 0};const ar=z;var sr;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(sr||(sr={})),ir.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,ar.isAsyncIterable)(t)?[sr.Async,t[Symbol.asyncIterator]()]:[sr.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===sr.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===sr.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var cr={};cr.zip=void 0,cr.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(d,t),r(U,t),r(hn,t),r(gn,t),r(In,t),r(Tn,t),r(Nn,t),r(Bn,t),r(Mn,t),r(Cn,t),r(Ln,t),r(Jn,t),r(Hn,t),r(Qn,t),r(Xn,t),r(Zn,t),r(ie,t),r(Yn,t),r(ce,t),r(le,t),r(de,t),r(me,t),r(pe,t),r(ge,t),r(Ie,t),r(Te,t),r(xe,t),r(_e,t),r(Ee,t),r(Be,t),r(Pe,t),r(Me,t),r(ze,t),r(Le,t),r(Ve,t),r(We,t),r(Ke,t),r(Xe,t),r(Ye,t),r(Ze,t),r($e,t),r(tr,t),r(nr,t),r(rr,t),r(or,t),r(ir,t),r(cr,t)}(y);var ur={},fr={};fr.consume=void 0,fr.consume=function(t,n){return n(t)};var lr={eachAsync:void 0};const yr=z;lr.eachAsync=function(t,n){return(0,yr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var dr={};dr.each=void 0,dr.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var vr={everyAsync:void 0};const mr=z;vr.everyAsync=function(t,n){return(0,mr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var pr={};pr.every=void 0,pr.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var br={findAsync:void 0};const hr=z;br.findAsync=function(t,n){return(0,hr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var gr={};gr.find=void 0,gr.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var wr={};wr.firstAsync=void 0,wr.firstAsync=async function(t){for await(const n of t)return n};var Ar={};Ar.first=void 0,Ar.first=function(t){for(const n of t)return n};var Ir={};Ir.includesAsync=void 0,Ir.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Sr={};Sr.includes=void 0,Sr.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Or={};Or.matchAsync=void 0,Or.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Tr={};Tr.match=void 0,Tr.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var jr={reduceAsync:void 0};const Nr=z;jr.reduceAsync=function(t,n,e){return(0,Nr.isUndefined)(e)?function(t,n){return(0,Nr.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Nr.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var xr={reduce:void 0};const _r=z;xr.reduce=function(t,n,e){return(0,_r.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var kr={someAsync:void 0};const Er=z;kr.someAsync=function(t,n){return(0,Er.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var Br={};Br.some=void 0,Br.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Pr={};Pr.lastAsync=void 0,Pr.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var qr={};qr.last=void 0,qr.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Dr={toArrayAsync:void 0};const Mr=fr;Dr.toArrayAsync=function(t){return(0,Mr.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var Rr={toArray:void 0};const Ur=fr;Rr.toArray=function(t){return(0,Ur.consume)(t,(t=>Array.from(t)))};var zr={toSetAsync:void 0};const Cr=fr;zr.toSetAsync=function(t){return(0,Cr.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var Fr={toSet:void 0};const Lr=fr;Fr.toSet=function(t){return(0,Lr.consume)(t,(t=>new Set(t)))};var Jr={};Jr.count=void 0,Jr.count=function(t){let n=0;for(const e of t)n++;return n};var Vr={};Vr.countAsync=void 0,Vr.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Wr={groupBy:void 0};const Gr=dr;Wr.groupBy=function(t,n){const e=new Map;return(0,Gr.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Hr={groupByAsync:void 0};const Kr=lr;Hr.groupByAsync=async function(t,n){const e=new Map;return await(0,Kr.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(fr,t),r(lr,t),r(dr,t),r(vr,t),r(pr,t),r(br,t),r(gr,t),r(wr,t),r(Ar,t),r(Ir,t),r(Sr,t),r(Or,t),r(Tr,t),r(jr,t),r(xr,t),r(kr,t),r(Br,t),r(Pr,t),r(qr,t),r(Dr,t),r(Rr,t),r(zr,t),r(Fr,t),r(Jr,t),r(Vr,t),r(Wr,t),r(Hr,t)}(ur),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(y,t),r(ur,t)}(l);var Qr={},Xr={};Xr.traverseErrorPrototypeChain=void 0,Xr.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},Qr.getErrorNames=void 0;const Yr=z,Zr=Xr;Qr.getErrorNames=function*(t){var n;if((0,Yr.isError)(t))for(const e of(0,Zr.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var $r={isSerializableError:void 0};const to=z;$r.isSerializableError=function(t){return(0,to.isObject)(t)&&(0,to.isString)(t.name)&&(0,to.isString)(t.message)&&((0,to.isString)(t.stack)||(0,to.isNull)(t.stack))&&(0,to.isArray)(t.ancestors)&&t.ancestors.every(to.isString)},f.CustomError=void 0;const no=l,eo=Qr,ro=z,oo=$r;class io extends Error{get name(){var t,n;return null!==(n=null!==(t=(0,no.first)((0,eo.getErrorNames)(this)))&&void 0!==t?t:io.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](t){var n;if((0,ro.isError)(t)||(0,oo.isSerializableError)(t)){const e=[null!==(n=this.prototype.constructor.name)&&void 0!==n?n:this.name,...(0,eo.getErrorNames)(this.prototype)].reverse(),r=(0,no.toArray)((0,eo.getErrorNames)(t)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}f.CustomError=io;var ao={AssertionError:void 0};const so=f;class co extends so.CustomError{}ao.AssertionError=co;var uo={normalize:void 0};const fo=Qr,lo=l;uo.normalize=function(t){var n;const[e,...r]=(0,lo.toArray)((0,fo.getErrorNames)(t));return{name:e,ancestors:r,message:t.message,stack:null!==(n=t.stack)&&void 0!==n?n:null}};var yo={},vo={},mo={};mo.pass=void 0,mo.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(mo,t)}(vo),yo.hydrate=void 0;const po=vo;function bo(t,n){const e=function(){(0,po.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}yo.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=bo(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var ho={assert:void 0};const go=ao;ho.assert=function(t,n){if(!t)throw new go.AssertionError(n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(f,t),r(ao,t),r($r,t),r(uo,t),r(yo,t),r(ho,t),r(Qr,t),r(Xr,t)}(u);var wo={},Ao={},Io={chunkAsync:void 0};const So=v,Oo=u;Io.chunkAsync=function(t,n){return(0,Oo.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,Oo.assert)(n>0,"The parameter size must be greater than 0"),(0,So.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var To={chunkByAsync:void 0};const jo=z;To.chunkByAsync=function(t,n){return(0,jo.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var No={};No.chunkBy=void 0,No.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var xo={chunk:void 0};const _o=v,ko=u;xo.chunk=function(t,n){return(0,ko.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,ko.assert)(n>0,"The parameter size must be greater than 0"),(0,_o.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var Eo={concatAsync:void 0};const Bo=z,Po=v;Eo.concatAsync=function(t,...n){return(0,Po.go)((async function*(){for(const e of[t,...n])if((0,Bo.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var qo={concat:void 0};const Do=v;qo.concat=function(t,...n){return(0,Do.go)((function*(){for(const e of[t,...n])yield*e}))};var Mo={},Ro={filterAsync:void 0};const Uo=z;Ro.filterAsync=function(t,n){return(0,Uo.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var zo={};zo.toSetAsync=void 0,zo.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},Mo.differenceAsync=void 0;const Co=Ro,Fo=zo;Mo.differenceAsync=async function*(t,n){const e=await(0,Fo.toSetAsync)(n);yield*(0,Co.filterAsync)(t,(async t=>!e.has(await t)))};var Lo={},Jo={};Jo.filter=void 0,Jo.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Vo={};Vo.toSet=void 0,Vo.toSet=function(t){return new Set(t)},Lo.difference=void 0;const Wo=Jo,Go=Vo;Lo.difference=function(t,n){const e=(0,Go.toSet)(n);return(0,Wo.filter)(t,(t=>!e.has(t)))};var Ho={},Ko={};Ko.copyIterable=Ko.copyAsyncIterable=void 0,Ko.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Ko.copyIterable=function*(t){for(const n of t)yield n},Ho.dropAsync=void 0;const Qo=v,Xo=Ko,Yo=u;Ho.dropAsync=function(t,n){return(0,Yo.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Yo.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Xo.copyAsyncIterable)(t):(0,Qo.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Zo={},$o={};$o.toArrayAsync=void 0,$o.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n},Zo.dropRightAsync=void 0;const ti=v,ni=Ko,ei=u,ri=$o;Zo.dropRightAsync=function(t,n){return(0,ei.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ei.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ni.copyAsyncIterable)(t):(0,ti.go)((async function*(){const e=(await(0,ri.toArrayAsync)(t)).slice(0,-n);for(const t of e)yield t}))};var oi={dropRight:void 0};const ii=v,ai=Ko,si=u;oi.dropRight=function(t,n){return(0,si.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,si.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ai.copyIterable)(t):(0,ii.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var ci={dropUntilAsync:void 0};const ui=z;ci.dropUntilAsync=function(t,n){return(0,ui.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var fi={};fi.dropUntil=void 0,fi.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var li={drop:void 0};const yi=v,di=Ko,vi=u;li.drop=function(t,n){return(0,vi.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,vi.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,di.copyIterable)(t):(0,yi.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var mi={},pi={},bi={flattenByAsync:void 0};const hi=z;async function*gi(t,n,e){for(const r of t)wi(r)&&await n(r,e)?yield*gi(r,n,e+1):yield r}function wi(t){return(0,hi.isIterable)(t)&&(0,hi.isntChar)(t)}bi.flattenByAsync=function(t,n){return(0,hi.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)wi(r)&&await n(r,e)?yield*gi(r,n,e+1):yield r}(t,n):function(t,n){return gi(t,n,1)}(t,n)},pi.flattenDeepAsync=void 0;const Ai=bi,Ii=u;pi.flattenDeepAsync=function(t,n=1/0){return(0,Ii.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Ii.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Ai.flattenByAsync)(t,((t,e)=>e<=n))},mi.flattenAsync=void 0;const Si=pi;mi.flattenAsync=function(t){return(0,Si.flattenDeepAsync)(t,1)};var Oi={flattenBy:void 0};const Ti=z;function*ji(t,n,e){for(const o of t)r=o,(0,Ti.isIterable)(r)&&(0,Ti.isntChar)(r)&&n(o,e)?yield*ji(o,n,e+1):yield o;var r}Oi.flattenBy=function(t,n){return ji(t,n,1)};var Ni={flattenDeep:void 0};const xi=Oi,_i=u;Ni.flattenDeep=function(t,n=1/0){return(0,_i.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,_i.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,xi.flattenBy)(t,((t,e)=>e<=n))};var ki={flatten:void 0};const Ei=Ni;ki.flatten=function(t){return(0,Ei.flattenDeep)(t,1)};var Bi={intersectionAsync:void 0};const Pi=Ro,qi=zo;Bi.intersectionAsync=async function*(t,n){const e=await(0,qi.toSetAsync)(n);yield*(0,Pi.filterAsync)(t,(async t=>e.has(await t)))};var Di={intersection:void 0};const Mi=Jo,Ri=Vo;Di.intersection=function(t,n){const e=(0,Ri.toSet)(n);return(0,Mi.filter)(t,(t=>e.has(t)))};var Ui={mapAsync:void 0};const zi=z;Ui.mapAsync=function(t,n){return(0,zi.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var Ci={};Ci.map=void 0,Ci.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Fi={repeatAsync:void 0};const Li=v,Ji=u;Fi.repeatAsync=function(t,n){return(0,Ji.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ji.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Li.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Vi={repeat:void 0};const Wi=v,Gi=u;Vi.repeat=function(t,n){return(0,Gi.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Gi.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Wi.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Hi={sliceAsync:void 0};const Ki=v,Qi=u;Hi.sliceAsync=function(t,n,e=1/0){return(0,Qi.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Qi.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Qi.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Qi.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Ki.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Xi={slice:void 0};const Yi=v,Zi=u;Xi.slice=function(t,n,e=1/0){return(0,Zi.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Zi.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Zi.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Zi.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Yi.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var $i={};$i.splitAsync=void 0,$i.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var ta={splitByAsync:void 0};const na=z;ta.splitByAsync=function(t,n){return(0,na.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var ea={};ea.splitBy=void 0,ea.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var ra={};ra.split=void 0,ra.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var oa={takeAsync:void 0};const ia=v,aa=u;oa.takeAsync=function(t,n){return(0,aa.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,aa.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ia.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var sa={takeRightAsync:void 0};const ca=v,ua=u;sa.takeRightAsync=function(t,n){return(0,ua.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ua.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ca.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var fa={takeRight:void 0};const la=v,ya=u;fa.takeRight=function(t,n){return(0,ya.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ya.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,la.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var da={takeUntilAsync:void 0};const va=z;da.takeUntilAsync=function(t,n){return(0,va.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var ma={};ma.takeUntil=void 0,ma.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var pa={take:void 0};const ba=v,ha=u;pa.take=function(t,n){return(0,ha.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ha.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ba.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var ga={tapAsync:void 0};const wa=z;ga.tapAsync=function(t,n){return(0,wa.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Aa={};Aa.tap=void 0,Aa.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Ia={};Ia.toAsyncIterable=void 0,Ia.toAsyncIterable=async function*(t){for(const n of t)yield await n};var Sa={};Sa.transformAsync=void 0,Sa.transformAsync=async function*(t,n){yield*n(t)};var Oa={};Oa.transform=void 0,Oa.transform=function*(t,n){yield*n(t)};var Ta={};Ta.uniqAsync=void 0,Ta.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var ja={uniqByAsync:void 0};const Na=z;ja.uniqByAsync=function(t,n){return(0,Na.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var xa={};xa.uniqBy=void 0,xa.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var _a={};_a.uniq=void 0,_a.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ka={zipAsync:void 0};const Ea=z;var Ba;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(Ba||(Ba={})),ka.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,Ea.isAsyncIterable)(t)?[Ba.Async,t[Symbol.asyncIterator]()]:[Ba.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===Ba.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=await o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===Ba.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var Pa={};Pa.zip=void 0,Pa.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(Io,t),r(To,t),r(No,t),r(xo,t),r(Eo,t),r(qo,t),r(Mo,t),r(Lo,t),r(Ho,t),r(Zo,t),r(oi,t),r(ci,t),r(fi,t),r(li,t),r(Ro,t),r(Jo,t),r(mi,t),r(bi,t),r(Oi,t),r(pi,t),r(Ni,t),r(ki,t),r(Bi,t),r(Di,t),r(Ui,t),r(Ci,t),r(Fi,t),r(Vi,t),r(Hi,t),r(Xi,t),r($i,t),r(ta,t),r(ea,t),r(ra,t),r(oa,t),r(sa,t),r(fa,t),r(da,t),r(ma,t),r(pa,t),r(ga,t),r(Aa,t),r(Ia,t),r(Sa,t),r(Oa,t),r(Ta,t),r(ja,t),r(xa,t),r(_a,t),r(ka,t),r(Pa,t)}(Ao);var qa={},Da={};Da.consume=void 0,Da.consume=function(t,n){return n(t)};var Ma={};Ma.consumeAsync=void 0,Ma.consumeAsync=async function(t,n){return await n(t)};var Ra={eachAsync:void 0};const Ua=z;Ra.eachAsync=function(t,n){return(0,Ua.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var za={};za.each=void 0,za.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var Ca={everyAsync:void 0};const Fa=z;Ca.everyAsync=function(t,n){return(0,Fa.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var La={};La.every=void 0,La.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ja={findAsync:void 0};const Va=z;Ja.findAsync=function(t,n){return(0,Va.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Wa={};Wa.find=void 0,Wa.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var Ga={};Ga.firstAsync=void 0,Ga.firstAsync=async function(t){for await(const n of t)return n};var Ha={};Ha.first=void 0,Ha.first=function(t){for(const n of t)return n};var Ka={};Ka.includesAsync=void 0,Ka.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Qa={};Qa.includes=void 0,Qa.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Xa={reduceAsync:void 0};const Ya=z;Xa.reduceAsync=function(t,n,e){return(0,Ya.isUndefined)(e)?function(t,n){return(0,Ya.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,Ya.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var Za={reduce:void 0};const $a=z;Za.reduce=function(t,n,e){return(0,$a.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var ts={someAsync:void 0};const ns=z;ts.someAsync=function(t,n){return(0,ns.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var es={};es.some=void 0,es.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var rs={};rs.lastAsync=void 0,rs.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var os={};os.last=void 0,os.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var is={};is.toArray=void 0,is.toArray=function(t){return Array.from(t)};var as={};as.count=void 0,as.count=function(t){let n=0;for(const e of t)n++;return n};var ss={};ss.countAsync=void 0,ss.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var cs={groupBy:void 0};const us=za;cs.groupBy=function(t,n){const e=new Map;return(0,us.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var fs={groupByAsync:void 0};const ls=Ra;fs.groupByAsync=async function(t,n){const e=new Map;return await(0,ls.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(Da,t),r(Ma,t),r(Ra,t),r(za,t),r(Ca,t),r(La,t),r(Ja,t),r(Wa,t),r(Ga,t),r(Ha,t),r(Ka,t),r(Qa,t),r(Xa,t),r(Za,t),r(ts,t),r(es,t),r(rs,t),r(os,t),r($o,t),r(is,t),r(zo,t),r(Vo,t),r(as,t),r(ss,t),r(cs,t),r(fs,t)}(qa),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(Ao,t),r(qa,t)}(wo);class ys extends u.CustomError{static[Symbol.hasInstance](t){return z.isError(t)?wo.some(u.getErrorNames(t),(t=>"AbortError"===t)):super[Symbol.hasInstance](t)}}var ds;const vs=null!==(ds=globalThis.AbortSignal)&&void 0!==ds?ds:i;t.AbortController=c,t.AbortError=ys,t.AbortSignal=vs,t.raceAbortSignals=function(t){const n=new c,e=[];for(const o of t)if(o){if(o.aborted){n.abort();break}o.addEventListener("abort",r),e.push(o)}return n.signal;function r(){n.abort(),e.forEach((t=>t.removeEventListener("abort",r)))}},t.timeoutSignal=function(t){const n=new c;return setTimeout((()=>n.abort()),t),n.signal},t.withAbortSignal=async function(t,n){return new Promise((async(e,r)=>{if(t.aborted)return o();t.addEventListener("abort",o);try{e(await n())}catch(t){r(t)}finally{t.removeEventListener("abort",o)}function o(){r(new ys)}}))},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).ExtraAbort={})}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};const{AbortController:r,AbortSignal:o}="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0;e.exports=r;var i=e.exports.AbortSignal=o;e.exports.default=r;var a,s=e.exports;const c=null!==(a=globalThis.AbortController)&&void 0!==a?a:s;var u={},f={},l={},y={},d={},v={},b={};b.go=void 0,b.go=function(t){return t()};var m={};m.goMicrotask=void 0,m.goMicrotask=function(t){return new Promise(((n,e)=>{queueMicrotask((async()=>{try{n(await t())}catch(t){e(t)}}))}))};var p={},g={},h={},A={},w={};w.random=void 0,w.random=function(t,n){return Math.random()*(n-t)+t};var I={};I.randomInt=void 0,I.randomInt=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t))+t};var O={};O.randomIntInclusive=void 0,O.randomIntInclusive=function(t,n){return t=Math.ceil(t),n=Math.floor(n),Math.floor(Math.random()*(n-t+1))+t},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(w,t),r(I,t),r(O,t)}(A),h.calculateExponentialBackoffTimeout=void 0;const S=A;h.calculateExponentialBackoffTimeout=function({baseTimeout:t,retries:n,maxTimeout:e=1/0,factor:r=2,jitter:o=!0}){const i=Math.min(r**n*t,e);return o?(0,S.randomIntInclusive)(0,i):i};var j={};j.setTimeout=void 0,j.setTimeout=function(t,n){const e=globalThis.setTimeout(n,t);return()=>clearTimeout(e)};var N={setSchedule:void 0};const E=j;N.setSchedule=function(t,n){const e=t-Date.now();return(0,E.setTimeout)(e,n)};var T={};T.setInterval=void 0,T.setInterval=function(t,n){const e=globalThis.setInterval(n,t);return()=>clearInterval(e)};var _={setImmediate:void 0};const x=j;_.setImmediate=function(t){if(globalThis.setImmediate){const n=globalThis.setImmediate(t);return()=>clearImmediate(n)}return(0,x.setTimeout)(0,t)};var P={setTimeoutLoop:void 0};const k=j;P.setTimeoutLoop=function(t,n){let e=!1,r=(0,k.setTimeout)(t,(async function o(){await n(),e||(r=(0,k.setTimeout)(t,o))}));return()=>{e=!0,r()}};var B={setDynamicTimeoutLoop:void 0};const q=j;B.setDynamicTimeoutLoop=function(t,n){let e=!1,r=(0,q.setTimeout)(t,(async function o(){const i=Date.now();await n();const a=Date.now()-i;e||(r=(0,q.setTimeout)(Math.max(t-a,0),o))}));return()=>{e=!0,r()}},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(h,t),r(j,t),r(N,t),r(T,t),r(_,t),r(P,t),r(B,t)}(g),p.goMacrotask=void 0;const D=g;p.goMacrotask=function(t){return new Promise(((n,e)=>{(0,D.setImmediate)((async()=>{try{n(await t())}catch(t){e(t)}}))}))},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(b,t),r(m,t),r(p,t)}(v);var U={},R={},M={},C={},F={chunkAsync:void 0};const z=v,L=U;F.chunkAsync=function(t,n){return(0,L.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,L.assert)(n>0,"The parameter size must be greater than 0"),(0,z.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var J={},V={},W={};function G(t){return Array.isArray(t)}W.isntEmptyArray=W.isEmptyArray=W.isntArray=W.isArray=void 0,W.isArray=G,W.isntArray=function(t){return!G(t)},W.isEmptyArray=function(t){return 0===t.length},W.isntEmptyArray=function(t){return 0!==t.length};var H={},K={};function Q(t){return null===t}K.isntNull=K.isNull=void 0,K.isNull=Q,K.isntNull=function(t){return!Q(t)};var X={};function Y(t){return void 0===t}X.isntUndefined=X.isUndefined=void 0,X.isUndefined=Y,X.isntUndefined=function(t){return!Y(t)};var Z={};function $(t){return"function"==typeof t}Z.isntFunction=Z.isFunction=void 0,Z.isFunction=$,Z.isntFunction=function(t){return!$(t)},H.isntAsyncIterable=H.isAsyncIterable=void 0;const tt=K,nt=X,et=Z;function rt(t){return(0,tt.isntNull)(t)&&(0,nt.isntUndefined)(t)&&(0,et.isFunction)(t[Symbol.asyncIterator])}H.isAsyncIterable=rt,H.isntAsyncIterable=function(t){return!rt(t)};var ot={};function it(t){return"bigint"==typeof t}ot.isntBigInt=ot.isBigInt=void 0,ot.isBigInt=it,ot.isntBigInt=function(t){return!it(t)};var at={};function st(t){return"boolean"==typeof t}at.isntBoolean=at.isBoolean=void 0,at.isBoolean=st,at.isntBoolean=function(t){return!st(t)};var ct={},ut={};function ft(t){return"string"==typeof t}ut.isntString=ut.isString=void 0,ut.isString=ft,ut.isntString=function(t){return!ft(t)},ct.isntChar=ct.isChar=void 0;const lt=ut;function yt(t){return(0,lt.isString)(t)&&1===t.length}ct.isChar=yt,ct.isntChar=function(t){return!yt(t)};var dt={};function vt(t){return t instanceof Date}dt.isntDate=dt.isDate=void 0,dt.isDate=vt,dt.isntDate=function(t){return!vt(t)};var bt={};bt.inEnum=void 0,bt.inEnum=function(t,n){return Object.values(n).includes(t)};var mt={};function pt(t){return t instanceof Error}mt.isntError=mt.isError=void 0,mt.isError=pt,mt.isntError=function(t){return!pt(t)};var gt={};function ht(t){return!t}gt.isntFalsy=gt.isFalsy=void 0,gt.isFalsy=ht,gt.isntFalsy=function(t){return!ht(t)};var At={};At.isntIterable=At.isIterable=void 0;const wt=K,It=X,Ot=Z;function St(t){return(0,wt.isntNull)(t)&&(0,It.isntUndefined)(t)&&(0,Ot.isFunction)(t[Symbol.iterator])}At.isIterable=St,At.isntIterable=function(t){return!St(t)};var jt={},Nt={};function Et(t){return"number"==typeof t}function Tt(t){return Number.isNaN(t)}Nt.isntNaN=Nt.isNaN=Nt.isNegativeInfinity=Nt.isPositiveInfinity=Nt.isFinite=Nt.isntNumber=Nt.isNumber=void 0,Nt.isNumber=Et,Nt.isntNumber=function(t){return!Et(t)},Nt.isFinite=function(t){return Number.isFinite(t)},Nt.isPositiveInfinity=function(t){return t===1/0},Nt.isNegativeInfinity=function(t){return t===-1/0},Nt.isNaN=Tt,Nt.isntNaN=function(t){return!Tt(t)};var _t={},xt="object"==typeof n&&n&&n.Object===Object&&n,Pt="object"==typeof self&&self&&self.Object===Object&&self,kt=(xt||Pt||Function("return this")()).Symbol,Bt=kt,qt=Object.prototype,Dt=qt.hasOwnProperty,Ut=qt.toString,Rt=Bt?Bt.toStringTag:void 0;var Mt=function(t){var n=Dt.call(t,Rt),e=t[Rt];try{t[Rt]=void 0;var r=!0}catch(t){}var o=Ut.call(t);return r&&(n?t[Rt]=e:delete t[Rt]),o},Ct=Object.prototype.toString;var Ft=Mt,zt=function(t){return Ct.call(t)},Lt=kt?kt.toStringTag:void 0;var Jt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Lt&&Lt in Object(t)?Ft(t):zt(t)};var Vt=function(t,n){return function(e){return t(n(e))}}(Object.getPrototypeOf,Object);var Wt=Jt,Gt=Vt,Ht=function(t){return null!=t&&"object"==typeof t},Kt=Function.prototype,Qt=Object.prototype,Xt=Kt.toString,Yt=Qt.hasOwnProperty,Zt=Xt.call(Object);var $t=function(t){if(!Ht(t)||"[object Object]"!=Wt(t))return!1;var n=Gt(t);if(null===n)return!0;var e=Yt.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&Xt.call(e)==Zt},tn=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};_t.isntEmptyObject=_t.isEmptyObject=_t.isntPlainObject=_t.isPlainObject=_t.isntObject=_t.isObject=void 0;const nn=tn($t);function en(t){return null!==t&&"object"==typeof t}function rn(t){return(0,nn.default)(t)}_t.isObject=en,_t.isntObject=function(t){return!en(t)},_t.isPlainObject=rn,_t.isntPlainObject=function(t){return!rn(t)},_t.isEmptyObject=function(t){return 0===Object.keys(t).length},_t.isntEmptyObject=function(t){return 0!==Object.keys(t).length},jt.isntJsonable=jt.isJsonable=jt.isntJson=jt.isJson=void 0;const on=K,an=at,sn=ut,cn=Nt,un=W,fn=_t;function ln(t){return(0,on.isNull)(t)||(0,an.isBoolean)(t)||(0,sn.isString)(t)||(0,cn.isNumber)(t)||(0,un.isArray)(t)&&t.every(ln)||(0,fn.isPlainObject)(t)&&Object.values(t).every(ln)}jt.isJson=ln,jt.isntJson=function(t){return!ln(t)},jt.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},jt.isntJsonable=function t(n){return!t()};var yn={};yn.isPromiseLike=yn.isntPromiseLike=yn.isntPromise=yn.isPromise=void 0;const dn=_t,vn=Z;function bn(t){return t instanceof Promise}function mn(t){return(0,dn.isObject)(t)&&(0,vn.isFunction)(t.then)}yn.isPromise=bn,yn.isntPromise=function(t){return!bn(t)},yn.isntPromiseLike=function(t){return!mn(t)},yn.isPromiseLike=mn;var pn={};pn.isAbsoluteURL=void 0,pn.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var gn={};function hn(t){return t instanceof RegExp}gn.isntRegExp=gn.isRegExp=void 0,gn.isRegExp=hn,gn.isntRegExp=function(t){return!hn(t)};var An={};function wn(t){return"symbol"==typeof t}An.isntSymbol=An.isSymbol=void 0,An.isSymbol=wn,An.isntSymbol=function(t){return!wn(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(W,t),r(H,t),r(ot,t),r(at,t),r(ct,t),r(dt,t),r(bt,t),r(mt,t),r(gt,t),r(Z,t),r(At,t),r(jt,t),r(K,t),r(Nt,t),r(_t,t),r(yn,t),r(ut,t),r(X,t),r(pn,t),r(gn,t),r(An,t)}(V),J.chunkByAsync=void 0;const In=V;J.chunkByAsync=function(t,n){return(0,In.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var On={};On.chunkBy=void 0,On.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var Sn={chunk:void 0};const jn=v,Nn=U;Sn.chunk=function(t,n){return(0,Nn.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,Nn.assert)(n>0,"The parameter size must be greater than 0"),(0,jn.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var En={concatAsync:void 0};const Tn=V,_n=v;En.concatAsync=function(t,...n){return(0,_n.go)((async function*(){for(const e of[t,...n])if((0,Tn.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var xn={concat:void 0};const Pn=v;xn.concat=function(t,...n){return(0,Pn.go)((function*(){for(const e of[t,...n])yield*e}))};var kn={},Bn={};Bn.copyIterable=Bn.copyAsyncIterable=void 0,Bn.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Bn.copyIterable=function*(t){for(const n of t)yield n},kn.dropAsync=void 0;const qn=v,Dn=Bn,Un=U;kn.dropAsync=function(t,n){return(0,Un.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Un.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Dn.copyAsyncIterable)(t):(0,qn.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Rn={dropRightAsync:void 0};const Mn=v,Cn=Bn,Fn=U;Rn.dropRightAsync=function(t,n){return(0,Fn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Fn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Cn.copyAsyncIterable)(t):(0,Mn.go)((async function*(){const e=(await async function(t){const n=[];for await(const e of t)n.push(e);return n}(t)).slice(0,-n);for(const t of e)yield t}))};var zn={dropRight:void 0};const Ln=v,Jn=Bn,Vn=U;zn.dropRight=function(t,n){return(0,Vn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Vn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Jn.copyIterable)(t):(0,Ln.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var Wn={dropUntilAsync:void 0};const Gn=V;Wn.dropUntilAsync=function(t,n){return(0,Gn.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var Hn={};Hn.dropUntil=void 0,Hn.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var Kn={drop:void 0};const Qn=v,Xn=Bn,Yn=U;Kn.drop=function(t,n){return(0,Yn.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Yn.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Xn.copyIterable)(t):(0,Qn.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var Zn={filterAsync:void 0};const $n=V;Zn.filterAsync=function(t,n){return(0,$n.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var te={};te.filter=void 0,te.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var ne={},ee={},re={flattenByAsync:void 0};const oe=V;async function*ie(t,n,e){for(const r of t)ae(r)&&await n(r,e)?yield*ie(r,n,e+1):yield r}function ae(t){return(0,oe.isIterable)(t)&&(0,oe.isntChar)(t)}re.flattenByAsync=function(t,n){return(0,oe.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)ae(r)&&await n(r,e)?yield*ie(r,n,e+1):yield r}(t,n):function(t,n){return ie(t,n,1)}(t,n)},ee.flattenDeepAsync=void 0;const se=re,ce=U;ee.flattenDeepAsync=function(t,n=1/0){return(0,ce.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,ce.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,se.flattenByAsync)(t,((t,e)=>e<=n))},ne.flattenAsync=void 0;const ue=ee;ne.flattenAsync=function(t){return(0,ue.flattenDeepAsync)(t,1)};var fe={flattenBy:void 0};const le=V;function*ye(t,n,e){for(const o of t)(0,le.isIterable)(r=o)&&(0,le.isntChar)(r)&&n(o,e)?yield*ye(o,n,e+1):yield o;var r}fe.flattenBy=function(t,n){return ye(t,n,1)};var de={flattenDeep:void 0};const ve=fe,be=U;de.flattenDeep=function(t,n=1/0){return(0,be.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,be.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,ve.flattenBy)(t,((t,e)=>e<=n))};var me={flatten:void 0};const pe=de;me.flatten=function(t){return(0,pe.flattenDeep)(t,1)};var ge={mapAsync:void 0};const he=V;ge.mapAsync=function(t,n){return(0,he.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var Ae={};Ae.map=void 0,Ae.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var we={repeatAsync:void 0};const Ie=v,Oe=U;we.repeatAsync=function(t,n){return(0,Oe.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Oe.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Ie.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Se={repeat:void 0};const je=v,Ne=U;Se.repeat=function(t,n){return(0,Ne.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ne.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,je.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Ee={sliceAsync:void 0};const Te=v,_e=U;Ee.sliceAsync=function(t,n,e=1/0){return(0,_e.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,_e.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,_e.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,_e.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Te.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var xe={slice:void 0};const Pe=v,ke=U;xe.slice=function(t,n,e=1/0){return(0,ke.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,ke.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,ke.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,ke.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Pe.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Be={};Be.splitAsync=void 0,Be.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var qe={splitByAsync:void 0};const De=V;qe.splitByAsync=function(t,n){return(0,De.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var Ue={};Ue.splitBy=void 0,Ue.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var Re={};Re.split=void 0,Re.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var Me={takeAsync:void 0};const Ce=v,Fe=U;Me.takeAsync=function(t,n){return(0,Fe.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Fe.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ce.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var ze={takeRightAsync:void 0};const Le=v,Je=U;ze.takeRightAsync=function(t,n){return(0,Je.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Je.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Le.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var Ve={takeRight:void 0};const We=v,Ge=U;Ve.takeRight=function(t,n){return(0,Ge.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Ge.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,We.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var He={takeUntilAsync:void 0};const Ke=V;He.takeUntilAsync=function(t,n){return(0,Ke.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var Qe={};Qe.takeUntil=void 0,Qe.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var Xe={take:void 0};const Ye=v,Ze=U;Xe.take=function(t,n){return(0,Ze.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Ze.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,Ye.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var $e={tapAsync:void 0};const tr=V;$e.tapAsync=function(t,n){return(0,tr.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var nr={};nr.tap=void 0,nr.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var er={};er.toAsyncIterable=void 0,er.toAsyncIterable=async function*(t){for(const n of t)yield n};var rr={};rr.transformAsync=void 0,rr.transformAsync=async function*(t,n){yield*n(t)};var or={};or.transform=void 0,or.transform=function*(t,n){yield*n(t)};var ir={};ir.uniqAsync=void 0,ir.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var ar={uniqByAsync:void 0};const sr=V;ar.uniqByAsync=function(t,n){return(0,sr.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var cr={};cr.uniqBy=void 0,cr.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var ur={};ur.uniq=void 0,ur.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var fr={zipAsync:void 0};const lr=V;var yr;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(yr||(yr={})),fr.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,lr.isAsyncIterable)(t)?[yr.Async,t[Symbol.asyncIterator]()]:[yr.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===yr.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===yr.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var dr={};dr.zip=void 0,dr.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(F,t),r(J,t),r(On,t),r(Sn,t),r(En,t),r(xn,t),r(kn,t),r(Rn,t),r(zn,t),r(Wn,t),r(Hn,t),r(Kn,t),r(Zn,t),r(te,t),r(ne,t),r(re,t),r(fe,t),r(ee,t),r(de,t),r(me,t),r(ge,t),r(Ae,t),r(we,t),r(Se,t),r(Ee,t),r(xe,t),r(Be,t),r(qe,t),r(Ue,t),r(Re,t),r(Me,t),r(ze,t),r(Ve,t),r(He,t),r(Qe,t),r(Xe,t),r($e,t),r(nr,t),r(er,t),r(rr,t),r(or,t),r(ir,t),r(ar,t),r(cr,t),r(ur,t),r(fr,t),r(dr,t)}(C);var vr={},br={};br.consume=void 0,br.consume=function(t,n){return n(t)};var mr={eachAsync:void 0};const pr=V;mr.eachAsync=function(t,n){return(0,pr.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var gr={};gr.each=void 0,gr.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var hr={everyAsync:void 0};const Ar=V;hr.everyAsync=function(t,n){return(0,Ar.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var wr={};wr.every=void 0,wr.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Ir={findAsync:void 0};const Or=V;Ir.findAsync=function(t,n){return(0,Or.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Sr={};Sr.find=void 0,Sr.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var jr={};jr.firstAsync=void 0,jr.firstAsync=async function(t){for await(const n of t)return n};var Nr={};Nr.first=void 0,Nr.first=function(t){for(const n of t)return n};var Er={};Er.includesAsync=void 0,Er.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Tr={};Tr.includes=void 0,Tr.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var _r={};_r.matchAsync=void 0,_r.matchAsync=async function(t,n){const e=n.length;let r=0;for await(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var xr={};xr.match=void 0,xr.match=function(t,n){const e=n.length;let r=0;for(const o of t)if(o===n[r]&&r++,r===e)return!0;return!1};var Pr={reduceAsync:void 0};const kr=V;Pr.reduceAsync=function(t,n,e){return(0,kr.isUndefined)(e)?function(t,n){return(0,kr.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,kr.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var Br={reduce:void 0};const qr=V;Br.reduce=function(t,n,e){return(0,qr.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var Dr={someAsync:void 0};const Ur=V;Dr.someAsync=function(t,n){return(0,Ur.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var Rr={};Rr.some=void 0,Rr.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var Mr={};Mr.lastAsync=void 0,Mr.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var Cr={};Cr.last=void 0,Cr.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var Fr={toArrayAsync:void 0};const zr=br;Fr.toArrayAsync=function(t){return(0,zr.consume)(t,(async t=>{const n=[];for await(const e of t)n.push(e);return n}))};var Lr={toArray:void 0};const Jr=br;Lr.toArray=function(t){return(0,Jr.consume)(t,(t=>Array.from(t)))};var Vr={toSetAsync:void 0};const Wr=br;Vr.toSetAsync=function(t){return(0,Wr.consume)(t,(async t=>{const n=new Set;for await(const e of t)n.add(e);return n}))};var Gr={toSet:void 0};const Hr=br;Gr.toSet=function(t){return(0,Hr.consume)(t,(t=>new Set(t)))};var Kr={};Kr.count=void 0,Kr.count=function(t){let n=0;for(const e of t)n++;return n};var Qr={};Qr.countAsync=void 0,Qr.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var Xr={groupBy:void 0};const Yr=gr;Xr.groupBy=function(t,n){const e=new Map;return(0,Yr.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var Zr={groupByAsync:void 0};const $r=mr;Zr.groupByAsync=async function(t,n){const e=new Map;return await(0,$r.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(br,t),r(mr,t),r(gr,t),r(hr,t),r(wr,t),r(Ir,t),r(Sr,t),r(jr,t),r(Nr,t),r(Er,t),r(Tr,t),r(_r,t),r(xr,t),r(Pr,t),r(Br,t),r(Dr,t),r(Rr,t),r(Mr,t),r(Cr,t),r(Fr,t),r(Lr,t),r(Vr,t),r(Gr,t),r(Kr,t),r(Qr,t),r(Xr,t),r(Zr,t)}(vr),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(C,t),r(vr,t)}(M);var to={},no={};no.traverseErrorPrototypeChain=void 0,no.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},to.getErrorNames=void 0;const eo=V,ro=no;to.getErrorNames=function*(t){var n;if((0,eo.isError)(t))for(const e of(0,ro.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var oo={isSerializableError:void 0};const io=V;oo.isSerializableError=function(t){return(0,io.isObject)(t)&&(0,io.isString)(t.name)&&(0,io.isString)(t.message)&&((0,io.isString)(t.stack)||(0,io.isNull)(t.stack))&&(0,io.isArray)(t.ancestors)&&t.ancestors.every(io.isString)},R.CustomError=void 0;const ao=M,so=to,co=V,uo=oo;class fo extends Error{get name(){var t,n;return null!==(n=null!==(t=(0,ao.first)((0,so.getErrorNames)(this)))&&void 0!==t?t:fo.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](t){var n;if((0,co.isError)(t)||(0,uo.isSerializableError)(t)){const e=[null!==(n=this.prototype.constructor.name)&&void 0!==n?n:this.name,...(0,so.getErrorNames)(this.prototype)].reverse(),r=(0,ao.toArray)((0,so.getErrorNames)(t)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}R.CustomError=fo;var lo={AssertionError:void 0};const yo=R;class vo extends yo.CustomError{}lo.AssertionError=vo;var bo={normalize:void 0};const mo=to,po=M;bo.normalize=function(t){var n;const[e,...r]=(0,po.toArray)((0,mo.getErrorNames)(t));return{name:e,ancestors:r,message:t.message,stack:null!==(n=t.stack)&&void 0!==n?n:null}};var go={},ho={},Ao={};Ao.pass=void 0,Ao.pass=function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]});(n&&n.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)})(Ao,t)}(ho),go.hydrate=void 0;const wo=ho;function Io(t,n){const e=function(){(0,wo.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}go.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=Io(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var Oo={assert:void 0};const So=lo;Oo.assert=function(t,n){if(!t)throw new So.AssertionError(n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(R,t),r(lo,t),r(oo,t),r(bo,t),r(go,t),r(Oo,t),r(to,t),r(no,t)}(U),d.chunkAsync=void 0;const jo=v,No=U;d.chunkAsync=function(t,n){return(0,No.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,No.assert)(n>0,"The parameter size must be greater than 0"),(0,jo.go)((async function*(){let e=[];for await(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var Eo={chunkByAsync:void 0};const To=V;Eo.chunkByAsync=function(t,n){return(0,To.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)e.push(o),await n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)}(t,n)};var _o={};_o.chunkBy=void 0,_o.chunkBy=function*(t,n){let e=[],r=0;for(const o of t)e.push(o),n(o,r)&&(yield e,e=[]),r++;e.length&&(yield e)};var xo={chunk:void 0};const Po=v,ko=U;xo.chunk=function(t,n){return(0,ko.assert)(Number.isInteger(n),"The parameter size must be an integer"),(0,ko.assert)(n>0,"The parameter size must be greater than 0"),(0,Po.go)((function*(){let e=[];for(const r of t)e.push(r),e.length>=n&&(yield e,e=[]);e.length&&(yield e)}))};var Bo={concatAsync:void 0};const qo=V,Do=v;Bo.concatAsync=function(t,...n){return(0,Do.go)((async function*(){for(const e of[t,...n])if((0,qo.isAsyncIterable)(e))for await(const t of e)yield t;else for(const t of e)yield t}))};var Uo={concat:void 0};const Ro=v;Uo.concat=function(t,...n){return(0,Ro.go)((function*(){for(const e of[t,...n])yield*e}))};var Mo={},Co={filterAsync:void 0};const Fo=V;Co.filterAsync=function(t,n){return(0,Fo.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e)&&(yield r),e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e)&&(yield r),e++}(t,n)};var zo={};zo.toSetAsync=void 0,zo.toSetAsync=async function(t){const n=new Set;for await(const e of t)n.add(await e);return n},Mo.differenceAsync=void 0;const Lo=Co,Jo=zo;Mo.differenceAsync=async function*(t,n){const e=await(0,Jo.toSetAsync)(n);yield*(0,Lo.filterAsync)(t,(async t=>!e.has(await t)))};var Vo={},Wo={};Wo.filter=void 0,Wo.filter=function*(t,n){let e=0;for(const r of t)n(r,e)&&(yield r),e++};var Go={};Go.toSet=void 0,Go.toSet=function(t){return new Set(t)},Vo.difference=void 0;const Ho=Wo,Ko=Go;Vo.difference=function(t,n){const e=(0,Ko.toSet)(n);return(0,Ho.filter)(t,(t=>!e.has(t)))};var Qo={},Xo={};Xo.copyIterable=Xo.copyAsyncIterable=void 0,Xo.copyAsyncIterable=async function*(t){for await(const n of t)yield n},Xo.copyIterable=function*(t){for(const n of t)yield n},Qo.dropAsync=void 0;const Yo=v,Zo=Xo,$o=U;Qo.dropAsync=function(t,n){return(0,$o.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,$o.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,Zo.copyAsyncIterable)(t):(0,Yo.go)((async function*(){var e;const r=t[Symbol.asyncIterator]();let o;try{let t;for(;!(({value:t,done:o}=await r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var ti={},ni={};ni.toArrayAsync=void 0,ni.toArrayAsync=async function(t){const n=[];for await(const e of t)n.push(e);return n},ti.dropRightAsync=void 0;const ei=v,ri=Xo,oi=U,ii=ni;ti.dropRightAsync=function(t,n){return(0,oi.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,oi.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ri.copyAsyncIterable)(t):(0,ei.go)((async function*(){const e=(await(0,ii.toArrayAsync)(t)).slice(0,-n);for(const t of e)yield t}))};var ai={dropRight:void 0};const si=v,ci=Xo,ui=U;ai.dropRight=function(t,n){return(0,ui.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ui.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,ci.copyIterable)(t):(0,si.go)((function*(){const e=Array.from(t);yield*e.slice(0,-n)}))};var fi={dropUntilAsync:void 0};const li=V;fi.dropUntilAsync=function(t,n){return(0,li.isAsyncIterable)(t)?async function*(t,n){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=await r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=await r.next())}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}(t,n):async function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||await n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}(t,n)};var yi={};yi.dropUntil=void 0,yi.dropUntil=function*(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,i=0;for(;!(({value:t,done:o}=r.next()),o||n(t,i++)););for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}};var di={drop:void 0};const vi=v,bi=Xo,mi=U;di.drop=function(t,n){return(0,mi.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,mi.assert)(n>=0,"The parameter count must be greater than or equal to 0"),0===n?(0,bi.copyIterable)(t):(0,vi.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{let t;for(;!(({value:t,done:o}=r.next()),o||n<=0);)n--;for(;!o;)yield t,({value:t,done:o}=r.next())}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var pi={},gi={},hi={flattenByAsync:void 0};const Ai=V;async function*wi(t,n,e){for(const r of t)Ii(r)&&await n(r,e)?yield*wi(r,n,e+1):yield r}function Ii(t){return(0,Ai.isIterable)(t)&&(0,Ai.isntChar)(t)}hi.flattenByAsync=function(t,n){return(0,Ai.isAsyncIterable)(t)?async function*(t,n){const e=1;for await(const r of t)Ii(r)&&await n(r,e)?yield*wi(r,n,e+1):yield r}(t,n):function(t,n){return wi(t,n,1)}(t,n)},gi.flattenDeepAsync=void 0;const Oi=hi,Si=U;gi.flattenDeepAsync=function(t,n=1/0){return(0,Si.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Si.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,Oi.flattenByAsync)(t,((t,e)=>e<=n))},pi.flattenAsync=void 0;const ji=gi;pi.flattenAsync=function(t){return(0,ji.flattenDeepAsync)(t,1)};var Ni={flattenBy:void 0};const Ei=V;function*Ti(t,n,e){for(const o of t)(0,Ei.isIterable)(r=o)&&(0,Ei.isntChar)(r)&&n(o,e)?yield*Ti(o,n,e+1):yield o;var r}Ni.flattenBy=function(t,n){return Ti(t,n,1)};var _i={flattenDeep:void 0};const xi=Ni,Pi=U;_i.flattenDeep=function(t,n=1/0){return(0,Pi.assert)(n===1/0||Number.isInteger(n),"The parameter depth must be an integer"),(0,Pi.assert)(n>=0,"The parameter depth must be greater than or equal to 0"),(0,xi.flattenBy)(t,((t,e)=>e<=n))};var ki={flatten:void 0};const Bi=_i;ki.flatten=function(t){return(0,Bi.flattenDeep)(t,1)};var qi={intersectionAsync:void 0};const Di=Co,Ui=zo;qi.intersectionAsync=async function*(t,n){const e=await(0,Ui.toSetAsync)(n);yield*(0,Di.filterAsync)(t,(async t=>e.has(await t)))};var Ri={intersection:void 0};const Mi=Wo,Ci=Go;Ri.intersection=function(t,n){const e=(0,Ci.toSet)(n);return(0,Mi.filter)(t,(t=>e.has(t)))};var Fi={mapAsync:void 0};const zi=V;Fi.mapAsync=function(t,n){return(0,zi.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)yield await n(r,e),e++}(t,n):async function*(t,n){let e=0;for(const r of t)yield await n(r,e),e++}(t,n)};var Li={};Li.map=void 0,Li.map=function*(t,n){let e=0;for(const r of t)yield n(r,e),e++};var Ji={repeatAsync:void 0};const Vi=v,Wi=U;Ji.repeatAsync=function(t,n){return(0,Wi.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Wi.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Vi.go)((async function*(){const e=[];if(n>0){for await(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Gi={repeat:void 0};const Hi=v,Ki=U;Gi.repeat=function(t,n){return(0,Ki.assert)(n===1/0||Number.isInteger(n),"The parameter times must be an integer"),(0,Ki.assert)(n>=0,"The parameter times must be greater than or equal to 0"),n===1/0&&function(){if("production"===process.env.NODE_ENV)return;console.warn("When iterable has no elements and times is Infinity, repeat() will be in dead loop")}(),(0,Hi.go)((function*(){const e=[];if(n>0){for(const n of t)yield n,e.push(n);n--}for(;n>0;)yield*e,n--}))};var Qi={sliceAsync:void 0};const Xi=v,Yi=U;Qi.sliceAsync=function(t,n,e=1/0){return(0,Yi.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,Yi.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,Yi.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,Yi.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,Xi.go)((async function*(){let r=0;for await(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var Zi={slice:void 0};const $i=v,ta=U;Zi.slice=function(t,n,e=1/0){return(0,ta.assert)(Number.isInteger(n),"The parameter start must be an integer"),(0,ta.assert)(n>=0,"The parameter start must be greater than or equal to 0"),(0,ta.assert)(Number.isInteger(e),"The parameter end must be an integer"),(0,ta.assert)(e>=n,"The parameter end must be greater than or equal to start"),(0,$i.go)((function*(){let r=0;for(const o of t){if(r>=e)break;r>=n&&(yield o),r++}}))};var na={};na.splitAsync=void 0,na.splitAsync=async function*(t,n){let e=[];for await(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var ea={splitByAsync:void 0};const ra=V;ea.splitByAsync=function(t,n){return(0,ra.isAsyncIterable)(t)?async function*(t,n){let e=[],r=0;for await(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n):async function*(t,n){let e=[],r=0;for(const o of t)await n(o,r)?(yield e,e=[]):e.push(o),r++;yield e}(t,n)};var oa={};oa.splitBy=void 0,oa.splitBy=function*(t,n){let e=[],r=0;for(const o of t)n(o,r)?(yield e,e=[]):e.push(o),r++;yield e};var ia={};ia.split=void 0,ia.split=function*(t,n){let e=[];for(const r of t)r===n?(yield e,e=[]):e.push(r);yield e};var aa={takeAsync:void 0};const sa=v,ca=U;aa.takeAsync=function(t,n){return(0,ca.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,ca.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,sa.go)((async function*(){if(0!==n)for await(const e of t)if(yield e,0===--n)break}))};var ua={takeRightAsync:void 0};const fa=v,la=U;ua.takeRightAsync=function(t,n){return(0,la.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,la.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,fa.go)((async function*(){var e;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>n&&t.shift();yield*t}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}}))};var ya={takeRight:void 0};const da=v,va=U;ya.takeRight=function(t,n){return(0,va.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,va.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,da.go)((function*(){var e;const r=t[Symbol.iterator]();let o;try{const t=[];let i;for(;({value:i,done:o}=r.next()),!o;)t.push(i),t.length>n&&t.shift();yield*t}finally{o||null===(e=r.return)||void 0===e||e.call(r)}}))};var ba={takeUntilAsync:void 0};const ma=V;ba.takeUntilAsync=function(t,n){return(0,ma.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t){if(await n(r,e))break;yield r,e++}}(t,n):async function*(t,n){let e=0;for(const r of t){if(await n(r,e))break;yield r,e++}}(t,n)};var pa={};pa.takeUntil=void 0,pa.takeUntil=function*(t,n){let e=0;for(const r of t){if(n(r,e))break;yield r,e++}};var ga={take:void 0};const ha=v,Aa=U;ga.take=function(t,n){return(0,Aa.assert)(Number.isInteger(n),"The parameter count must be an integer"),(0,Aa.assert)(n>=0,"The parameter count must be greater than or equal to 0"),(0,ha.go)((function*(){if(0!==n)for(const e of t)if(yield e,0===--n)break}))};var wa={tapAsync:void 0};const Ia=V;wa.tapAsync=function(t,n){return(0,Ia.isAsyncIterable)(t)?async function*(t,n){let e=0;for await(const r of t)await n(r,e),yield r,e++}(t,n):async function*(t,n){let e=0;for(const r of t)await n(r,e),yield r,e++}(t,n)};var Oa={};Oa.tap=void 0,Oa.tap=function*(t,n){let e=0;for(const r of t)n(r,e),yield r,e++};var Sa={};Sa.toAsyncIterable=void 0,Sa.toAsyncIterable=async function*(t){for(const n of t)yield await n};var ja={};ja.transformAsync=void 0,ja.transformAsync=async function*(t,n){yield*n(t)};var Na={};Na.transform=void 0,Na.transform=function*(t,n){yield*n(t)};var Ea={};Ea.uniqAsync=void 0,Ea.uniqAsync=async function*(t){const n=new Set;for await(const e of t)n.has(e)||(yield e,n.add(e))};var Ta={uniqByAsync:void 0};const _a=V;Ta.uniqByAsync=function(t,n){return(0,_a.isAsyncIterable)(t)?async function*(t,n){const e=new Set;let r=0;for await(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n):async function*(t,n){const e=new Set;let r=0;for(const o of t){const t=await n(o,r);e.has(t)||(yield o,e.add(t)),r++}}(t,n)};var xa={};xa.uniqBy=void 0,xa.uniqBy=function*(t,n){const e=new Set;let r=0;for(const o of t){const t=n(o,r);e.has(t)||(yield o,e.add(t)),r++}};var Pa={};Pa.uniq=void 0,Pa.uniq=function*(t){const n=new Set;for(const e of t)n.has(e)||(yield e,n.add(e))};var ka={zipAsync:void 0};const Ba=V;var qa;!function(t){t[t.Sync=0]="Sync",t[t.Async=1]="Async"}(qa||(qa={})),ka.zipAsync=function(t,...n){return async function*(...t){var n,e,r,o;const i=t.length,a=t.map((t=>(0,Ba.isAsyncIterable)(t)?[qa.Async,t[Symbol.asyncIterator]()]:[qa.Sync,t[Symbol.iterator]()])),s=a.map((()=>!1));try{for(;;){const t=new Array(i);for(let n=0;n<i;n++){const[e,r]=a[n];let o;if(o=e===qa.Async?await r.next():r.next(),o.done)return void(s[n]=!0);t[n]=await o.value}yield t}}finally{const t=a.filter(((t,n)=>!s[n]));for(const[i,a]of t)i===qa.Async?await(null===(e=(n=a).return)||void 0===e?void 0:e.call(n)):null===(o=(r=a).return)||void 0===o||o.call(r)}}(t,...n)};var Da={};Da.zip=void 0,Da.zip=function(t,...n){return function*(...t){const n=t.length,e=t.map((t=>t[Symbol.iterator]())),r=e.map((()=>!1));try{for(;;){const t=new Array(n);for(let o=0;o<n;o++){const{value:n,done:i}=e[o].next();if(i)return void(r[o]=!0);t[o]=n}yield t}}finally{e.filter(((t,n)=>!r[n])).forEach((t=>{var n;return null===(n=t.return)||void 0===n?void 0:n.call(t)}))}}(t,...n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(d,t),r(Eo,t),r(_o,t),r(xo,t),r(Bo,t),r(Uo,t),r(Mo,t),r(Vo,t),r(Qo,t),r(ti,t),r(ai,t),r(fi,t),r(yi,t),r(di,t),r(Co,t),r(Wo,t),r(pi,t),r(hi,t),r(Ni,t),r(gi,t),r(_i,t),r(ki,t),r(qi,t),r(Ri,t),r(Fi,t),r(Li,t),r(Ji,t),r(Gi,t),r(Qi,t),r(Zi,t),r(na,t),r(ea,t),r(oa,t),r(ia,t),r(aa,t),r(ua,t),r(ya,t),r(ba,t),r(pa,t),r(ga,t),r(wa,t),r(Oa,t),r(Sa,t),r(ja,t),r(Na,t),r(Ea,t),r(Ta,t),r(xa,t),r(Pa,t),r(ka,t),r(Da,t)}(y);var Ua={},Ra={};Ra.consume=void 0,Ra.consume=function(t,n){return n(t)};var Ma={};Ma.consumeAsync=void 0,Ma.consumeAsync=async function(t,n){return await n(t)};var Ca={eachAsync:void 0};const Fa=V;Ca.eachAsync=function(t,n){return(0,Fa.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t)await n(r,e),e++}(t,n):async function(t,n){let e=0;for(const r of t)await n(r,e),e++}(t,n)};var za={};za.each=void 0,za.each=function(t,n){let e=0;for(const r of t)n(r,e),e++};var La={everyAsync:void 0};const Ja=V;La.everyAsync=function(t,n){return(0,Ja.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n):async function(t,n){let e=0;for(const r of t){if(!await n(r,e))return!1;e++}return!0}(t,n)};var Va={};Va.every=void 0,Va.every=function(t,n){let e=0;for(const r of t){if(!n(r,e))return!1;e++}return!0};var Wa={findAsync:void 0};const Ga=V;Wa.findAsync=function(t,n){return(0,Ga.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return r;e++}return}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return r;e++}return}(t,n)};var Ha={};Ha.find=void 0,Ha.find=function(t,n){let e=0;for(const r of t){if(n(r,e))return r;e++}};var Ka={};Ka.firstAsync=void 0,Ka.firstAsync=async function(t){for await(const n of t)return n};var Qa={};Qa.first=void 0,Qa.first=function(t){for(const n of t)return n};var Xa={};Xa.includesAsync=void 0,Xa.includesAsync=async function(t,n){for await(const e of t)if(e===n)return!0;return!1};var Ya={};Ya.includes=void 0,Ya.includes=function(t,n){for(const e of t)if(e===n)return!0;return!1};var Za={reduceAsync:void 0};const $a=V;Za.reduceAsync=function(t,n,e){return(0,$a.isUndefined)(e)?function(t,n){return(0,$a.isAsyncIterable)(t)?e(t):r(t);async function e(t){var e;const r=t[Symbol.asyncIterator]();let o;try{let t,a=await i(r),s=1;for(;({value:t,done:o}=await r.next()),!o;)a=await n(a,t,s++);return a}finally{o||await(null===(e=r.return)||void 0===e?void 0:e.call(r))}async function i(t){const n=await t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}async function r(t){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=await n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}}(t,n):function(t,n,e){return(0,$a.isAsyncIterable)(t)?o(t):r(t);async function r(t){let r=e,o=0;for(const e of t)r=await n(r,e,o++);return r}async function o(t){let r=e,o=0;for await(const e of t)r=await n(r,e,o++);return r}}(t,n,e)};var ts={reduce:void 0};const ns=V;ts.reduce=function(t,n,e){return(0,ns.isUndefined)(e)?function(t,n){var e;const r=t[Symbol.iterator]();let o;try{let t,a=i(r),s=1;for(;({value:t,done:o}=r.next()),!o;)a=n(a,t,s++);return a}finally{o||null===(e=r.return)||void 0===e||e.call(r)}function i(t){const n=t.next();if(n.done)throw o=!0,new Error("Reduce of empty iterable with no initial value");return n.value}}(t,n):function(t,n,e){let r=e,o=0;for(const e of t)r=n(r,e,o++);return r}(t,n,e)};var es={someAsync:void 0};const rs=V;es.someAsync=function(t,n){return(0,rs.isAsyncIterable)(t)?async function(t,n){let e=0;for await(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n):async function(t,n){let e=0;for(const r of t){if(await n(r,e))return!0;e++}return!1}(t,n)};var os={};os.some=void 0,os.some=function(t,n){let e=0;for(const r of t){if(n(r,e))return!0;e++}return!1};var is={};is.lastAsync=void 0,is.lastAsync=async function(t){var n;const e=t[Symbol.asyncIterator]();let r;try{let t,o;for(;({value:t,done:r}=await e.next()),!r;)o=t;return o}finally{r||await(null===(n=e.return)||void 0===n?void 0:n.call(e))}};var as={};as.last=void 0,as.last=function(t){var n;const e=t[Symbol.iterator]();let r;try{let t,o;for(;({value:t,done:r}=e.next()),!r;)o=t;return o}finally{r||null===(n=e.return)||void 0===n||n.call(e)}};var ss={};ss.toArray=void 0,ss.toArray=function(t){return Array.from(t)};var cs={};cs.count=void 0,cs.count=function(t){let n=0;for(const e of t)n++;return n};var us={};us.countAsync=void 0,us.countAsync=async function(t){let n=0;for await(const e of t)n++;return n};var fs={groupBy:void 0};const ls=za;fs.groupBy=function(t,n){const e=new Map;return(0,ls.each)(t,((t,r)=>{const o=n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e};var ys={groupByAsync:void 0};const ds=Ca;ys.groupByAsync=async function(t,n){const e=new Map;return await(0,ds.eachAsync)(t,(async(t,r)=>{const o=await n(t,r);e.has(o)||e.set(o,[]),e.get(o).push(t)})),e},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(Ra,t),r(Ma,t),r(Ca,t),r(za,t),r(La,t),r(Va,t),r(Wa,t),r(Ha,t),r(Ka,t),r(Qa,t),r(Xa,t),r(Ya,t),r(Za,t),r(ts,t),r(es,t),r(os,t),r(is,t),r(as,t),r(ni,t),r(ss,t),r(zo,t),r(Go,t),r(cs,t),r(us,t),r(fs,t),r(ys,t)}(Ua),function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(y,t),r(Ua,t)}(l);var vs={},bs={},ms={};function ps(t){return Array.isArray(t)}ms.isntEmptyArray=ms.isEmptyArray=ms.isntArray=ms.isArray=void 0,ms.isArray=ps,ms.isntArray=function(t){return!ps(t)},ms.isEmptyArray=function(t){return 0===t.length},ms.isntEmptyArray=function(t){return 0!==t.length};var gs={},hs={};function As(t){return null===t}hs.isntNull=hs.isNull=void 0,hs.isNull=As,hs.isntNull=function(t){return!As(t)};var ws={};function Is(t){return void 0===t}ws.isntUndefined=ws.isUndefined=void 0,ws.isUndefined=Is,ws.isntUndefined=function(t){return!Is(t)};var Os={};function Ss(t){return"function"==typeof t}Os.isntFunction=Os.isFunction=void 0,Os.isFunction=Ss,Os.isntFunction=function(t){return!Ss(t)},gs.isntAsyncIterable=gs.isAsyncIterable=void 0;const js=hs,Ns=ws,Es=Os;function Ts(t){return(0,js.isntNull)(t)&&(0,Ns.isntUndefined)(t)&&(0,Es.isFunction)(t[Symbol.asyncIterator])}gs.isAsyncIterable=Ts,gs.isntAsyncIterable=function(t){return!Ts(t)};var _s={};function xs(t){return"bigint"==typeof t}_s.isntBigInt=_s.isBigInt=void 0,_s.isBigInt=xs,_s.isntBigInt=function(t){return!xs(t)};var Ps={};function ks(t){return"boolean"==typeof t}Ps.isntBoolean=Ps.isBoolean=void 0,Ps.isBoolean=ks,Ps.isntBoolean=function(t){return!ks(t)};var Bs={},qs={};function Ds(t){return"string"==typeof t}qs.isntString=qs.isString=void 0,qs.isString=Ds,qs.isntString=function(t){return!Ds(t)},Bs.isntChar=Bs.isChar=void 0;const Us=qs;function Rs(t){return(0,Us.isString)(t)&&1===t.length}Bs.isChar=Rs,Bs.isntChar=function(t){return!Rs(t)};var Ms={};function Cs(t){return t instanceof Date}Ms.isntDate=Ms.isDate=void 0,Ms.isDate=Cs,Ms.isntDate=function(t){return!Cs(t)};var Fs={};Fs.inEnum=void 0,Fs.inEnum=function(t,n){return Object.values(n).includes(t)};var zs={};function Ls(t){return t instanceof Error}zs.isntError=zs.isError=void 0,zs.isError=Ls,zs.isntError=function(t){return!Ls(t)};var Js={};function Vs(t){return!t}Js.isntFalsy=Js.isFalsy=void 0,Js.isFalsy=Vs,Js.isntFalsy=function(t){return!Vs(t)};var Ws={};Ws.isntIterable=Ws.isIterable=void 0;const Gs=hs,Hs=ws,Ks=Os;function Qs(t){return(0,Gs.isntNull)(t)&&(0,Hs.isntUndefined)(t)&&(0,Ks.isFunction)(t[Symbol.iterator])}Ws.isIterable=Qs,Ws.isntIterable=function(t){return!Qs(t)};var Xs={},Ys={};function Zs(t){return"number"==typeof t}function $s(t){return Number.isNaN(t)}Ys.isntNaN=Ys.isNaN=Ys.isNegativeInfinity=Ys.isPositiveInfinity=Ys.isFinite=Ys.isntNumber=Ys.isNumber=void 0,Ys.isNumber=Zs,Ys.isntNumber=function(t){return!Zs(t)},Ys.isFinite=function(t){return Number.isFinite(t)},Ys.isPositiveInfinity=function(t){return t===1/0},Ys.isNegativeInfinity=function(t){return t===-1/0},Ys.isNaN=$s,Ys.isntNaN=function(t){return!$s(t)};var tc={},nc=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};tc.isntEmptyObject=tc.isEmptyObject=tc.isntPlainObject=tc.isPlainObject=tc.isntObject=tc.isObject=void 0;const ec=nc($t);function rc(t){return null!==t&&"object"==typeof t}function oc(t){return(0,ec.default)(t)}tc.isObject=rc,tc.isntObject=function(t){return!rc(t)},tc.isPlainObject=oc,tc.isntPlainObject=function(t){return!oc(t)},tc.isEmptyObject=function(t){return 0===Object.keys(t).length},tc.isntEmptyObject=function(t){return 0!==Object.keys(t).length},Xs.isntJsonable=Xs.isJsonable=Xs.isntJson=Xs.isJson=void 0;const ic=hs,ac=Ps,sc=qs,cc=Ys,uc=ms,fc=tc;function lc(t){return(0,ic.isNull)(t)||(0,ac.isBoolean)(t)||(0,sc.isString)(t)||(0,cc.isNumber)(t)||(0,uc.isArray)(t)&&t.every(lc)||(0,fc.isPlainObject)(t)&&Object.values(t).every(lc)}Xs.isJson=lc,Xs.isntJson=function(t){return!lc(t)},Xs.isJsonable=function(t){try{return JSON.stringify(t),!0}catch(t){return!1}},Xs.isntJsonable=function t(n){return!t()};var yc={};yc.isntNullish=yc.isNullish=void 0;const dc=hs,vc=ws;function bc(t){return(0,dc.isNull)(t)||(0,vc.isUndefined)(t)}yc.isNullish=bc,yc.isntNullish=function(t){return!bc(t)};var mc={};mc.isPromiseLike=mc.isntPromiseLike=mc.isntPromise=mc.isPromise=void 0;const pc=tc,gc=Os;function hc(t){return t instanceof Promise}function Ac(t){return(0,pc.isObject)(t)&&(0,gc.isFunction)(t.then)}mc.isPromise=hc,mc.isntPromise=function(t){return!hc(t)},mc.isntPromiseLike=function(t){return!Ac(t)},mc.isPromiseLike=Ac;var wc={};wc.isAbsoluteURL=void 0,wc.isAbsoluteURL=function(t){try{return new URL(t),!0}catch(t){return!1}};var Ic={};function Oc(t){return t instanceof RegExp}Ic.isntRegExp=Ic.isRegExp=void 0,Ic.isRegExp=Oc,Ic.isntRegExp=function(t){return!Oc(t)};var Sc={};function jc(t){return"symbol"==typeof t}Sc.isntSymbol=Sc.isSymbol=void 0,Sc.isSymbol=jc,Sc.isntSymbol=function(t){return!jc(t)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(ms,t),r(gs,t),r(_s,t),r(Ps,t),r(Bs,t),r(Ms,t),r(Fs,t),r(zs,t),r(Js,t),r(Os,t),r(Ws,t),r(Xs,t),r(hs,t),r(yc,t),r(Ys,t),r(tc,t),r(mc,t),r(qs,t),r(ws,t),r(wc,t),r(Ic,t),r(Sc,t)}(bs);var Nc={};Nc.traverseErrorPrototypeChain=void 0,Nc.traverseErrorPrototypeChain=function*(t){let n=t;for(;(n=Object.getPrototypeOf(n))&&(yield n,n!==Error.prototype););},vs.getErrorNames=void 0;const Ec=bs,Tc=Nc;vs.getErrorNames=function*(t){var n;if((0,Ec.isError)(t))for(const e of(0,Tc.traverseErrorPrototypeChain)(t))(null===(n=e.constructor)||void 0===n?void 0:n.name)&&(yield e.constructor.name);else yield t.name,yield*t.ancestors};var _c={isSerializableError:void 0};const xc=bs;_c.isSerializableError=function(t){return(0,xc.isObject)(t)&&(0,xc.isString)(t.name)&&(0,xc.isString)(t.message)&&((0,xc.isString)(t.stack)||(0,xc.isNull)(t.stack))&&(0,xc.isArray)(t.ancestors)&&t.ancestors.every(xc.isString)},f.CustomError=void 0;const Pc=l,kc=vs,Bc=bs,qc=_c;class Dc extends Error{get name(){var t,n;return null!==(n=null!==(t=(0,Pc.first)((0,kc.getErrorNames)(this)))&&void 0!==t?t:Dc.name)&&void 0!==n?n:"CustomError"}static[Symbol.hasInstance](t){var n;if((0,Bc.isError)(t)||(0,qc.isSerializableError)(t)){const e=[null!==(n=this.prototype.constructor.name)&&void 0!==n?n:this.name,...(0,kc.getErrorNames)(this.prototype)].reverse(),r=(0,Pc.toArray)((0,kc.getErrorNames)(t)).reverse();return e.every(((t,n)=>t===r[n]))}return!1}}f.CustomError=Dc;var Uc={AssertionError:void 0};const Rc=f;class Mc extends Rc.CustomError{}Uc.AssertionError=Mc;var Cc={normalize:void 0};const Fc=vs,zc=l;Cc.normalize=function(t){var n;const[e,...r]=(0,zc.toArray)((0,Fc.getErrorNames)(t));return{name:e,ancestors:r,message:t.message,stack:null!==(n=t.stack)&&void 0!==n?n:null}};var Lc={},Jc={},Vc={};Vc.pass=void 0,Vc.pass=function(){};var Wc={};Wc.passAsync=void 0,Wc.passAsync=async function(){},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e),Object.defineProperty(t,r,{enumerable:!0,get:function(){return n[e]}})}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(Vc,t),r(Wc,t)}(Jc),Lc.hydrate=void 0;const Gc=Jc;function Hc(t,n){const e=function(){(0,Gc.pass)()};return(e.prototype=Object.create(t.prototype)).constructor=e,Object.defineProperty(e,"name",{value:n}),e}Lc.hydrate=function(t){var n;const e=[t.name,...t.ancestors].slice(0,-1).reverse();let r=Error;for(const t of e)r=Hc(r,t);const o=new r;return o.name=t.name,o.message=t.message,o.stack=null!==(n=t.stack)&&void 0!==n?n:void 0,o};var Kc={assert:void 0};const Qc=Uc;Kc.assert=function(t,n){if(!t)throw new Qc.AssertionError(n)},function(t){var e=n&&n.__createBinding||(Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]}),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(f,t),r(Uc,t),r(_c,t),r(Cc,t),r(Lc,t),r(Kc,t),r(vs,t),r(Nc,t)}(u);class Xc extends u.CustomError{static[Symbol.hasInstance](t){if(bs.isError(t)){const n=l.toArray(u.getErrorNames(t));return n.includes("AbortError")||n.includes("DOMException")&&"This operation was aborted"===t.message}return super[Symbol.hasInstance](t)}}var Yc;const Zc=null!==(Yc=globalThis.AbortSignal)&&void 0!==Yc?Yc:i;t.AbortController=c,t.AbortError=Xc,t.AbortSignal=Zc,t.raceAbortSignals=function(t){const n=new c,e=[];for(const o of t)if(o){if(o.aborted){n.abort();break}o.addEventListener("abort",r),e.push(o)}return n.signal;function r(){n.abort(),e.forEach((t=>t.removeEventListener("abort",r)))}},t.timeoutSignal=function(t){const n=new c;return setTimeout((()=>n.abort()),t),n.signal},t.withAbortSignal=async function(t,n){return new Promise((async(e,r)=>{if(t.aborted)return o();t.addEventListener("abort",o);try{e(await n())}catch(t){r(t)}finally{t.removeEventListener("abort",o)}function o(){r(new Xc)}}))},Object.defineProperty(t,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=index.umd.min.js.map |
@@ -10,3 +10,6 @@ "use strict"; | ||
if ((0, types_1.isError)(instance)) { | ||
return (0, iterable_operator_1.some)((0, errors_1.getErrorNames)(instance), name => name === 'AbortError'); | ||
const names = (0, iterable_operator_1.toArray)((0, errors_1.getErrorNames)(instance)); | ||
return names.includes('AbortError') | ||
|| (names.includes('DOMException') && | ||
instance.message === 'This operation was aborted'); | ||
} | ||
@@ -13,0 +16,0 @@ return super[Symbol.hasInstance](instance); |
@@ -10,3 +10,6 @@ "use strict"; | ||
if ((0, types_1.isError)(instance)) { | ||
return (0, iterable_operator_1.some)((0, errors_1.getErrorNames)(instance), name => name === 'AbortError'); | ||
const names = (0, iterable_operator_1.toArray)((0, errors_1.getErrorNames)(instance)); | ||
return names.includes('AbortError') | ||
|| (names.includes('DOMException') && | ||
instance.message === 'This operation was aborted'); | ||
} | ||
@@ -13,0 +16,0 @@ return super[Symbol.hasInstance](instance); |
{ | ||
"name": "extra-abort", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "", | ||
@@ -43,4 +43,4 @@ "keywords": [], | ||
"@blackglory/wait-for": "^0.5.1", | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"@commitlint/cli": "^17.2.0", | ||
"@commitlint/config-conventional": "^17.2.0", | ||
"@rollup/plugin-commonjs": "^21.0.2", | ||
@@ -52,5 +52,5 @@ "@rollup/plugin-json": "^4.1.0", | ||
"@types/jest": "^27.4.1", | ||
"@typescript-eslint/eslint-plugin": "^5.40.1", | ||
"@typescript-eslint/parser": "^5.40.1", | ||
"eslint": "^8.25.0", | ||
"@typescript-eslint/eslint-plugin": "^5.42.0", | ||
"@typescript-eslint/parser": "^5.42.0", | ||
"eslint": "^8.26.0", | ||
"extra-fetch": "^1.8.5", | ||
@@ -72,4 +72,4 @@ "husky": "^4.3.8", | ||
"dependencies": { | ||
"@blackglory/errors": "^2.2.2", | ||
"@blackglory/types": "^1.3.0", | ||
"@blackglory/errors": "^2.2.3", | ||
"@blackglory/types": "^1.4.0", | ||
"abort-controller": "^3.0.0", | ||
@@ -76,0 +76,0 @@ "iterable-operator": "^2.1.0", |
@@ -11,3 +11,3 @@ # extra-abort | ||
### AbortController, AbortSignal | ||
Ponyfills of WHATWG AbortController and AbortSignal. | ||
The ponyfills of WHATWG `AbortController` and `AbortSignal`. | ||
@@ -14,0 +14,0 @@ ### AbortError |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3625069
20818
Updated@blackglory/errors@^2.2.3
Updated@blackglory/types@^1.4.0