!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).F={})}(this,(function(t){"use strict";const e=32;class n{constructor(t){const n=new ArrayBuffer(t.BYTES_PER_ELEMENT*e);this._data=new t(n),this._ctor=t,this._length=0}_grow(t){const e=this._ctor.BYTES_PER_ELEMENT,n=new ArrayBuffer(t*e),a=new this._ctor(n),r=this._data;a.set(r),this._data=a}add(t){const e=this._length;e===this._data.length&&this._grow(2*e),this._data[e]=t,this._length+=1}get(t){return this._data[t]}set(t,e){this._data[t]=e}get length(){return this._length}clear(){this._length=0}*[Symbol.iterator](){for(let t=0;t(...e)=>t.length<=e.length?t(...e):(...n)=>i(t)(...e,...n),s=i((t,e)=>t+e),c=(t,e)=>t>e?1:tObject.assign(t,e,...n)),f=i((t,e,n,...a)=>Object.assign(t,e,n,...a)),u=i((t,e,...n)=>Object.assign.call(null,[t,e,...n].reverse())),y="undefined"!=typeof BigInt?BigInt:{},w=t=>t&&t.constructor===Function,d=t=>ArrayBuffer.isView(t)&&!(t instanceof DataView),h=t=>!(w(t)||!Number.isSafeInteger(t.length))&&(t=>0===t.length||Object.prototype.hasOwnProperty.call(t,t.length-1))(t),p=t=>t.constructor===String,m=t=>Array.isArray(t)||d(t)||h(t),g=t=>t&&(p(t)||m(t)),b=t=>g(t)&&2===t.length,v=t=>t[Symbol.iterator]||t[Symbol.asyncIterator],x=t=>{if(1&t.length)throw new Error("requires an even arguments")},E=i(async(t,e)=>{const n=new Map;for await(const a of e){const e=await t(a);g(e)?n.set(e[0],e[1]):n.set(e,e)}return n}),_=t=>{const e=t[Symbol.asyncIterator];return e?e.call(t):async function*(t){for await(const e of t)yield e}(t)},A=t=>{if(t){const e=t[Symbol.iterator];if(e)return e.call(t);const n=t[Symbol.asyncIterator];if(n)return n.call(t)}},O=t=>{if(t){const e=A(t);return e||function*(t){const e=Object.keys(t);for(const n of e)yield[n,t[n]]}(t)}},k=(t,e)=>(async function*(n){n=O(n);for await(const a of n)m(a)?yield a[t]:e(a)}),S=async function*(t){(t=await t)&&v(t)?yield*t:yield t},P=async(t,e,n)=>{t=Math.max(t,0);const a=_(e);for(let e=t;e>0;--e){const t=await a.next();if(t.done)break;n(t.value)}return a};let j=100;const I=()=>j,B=async t=>(t=await t,w(t)&&(t=await t()),t),N=async(t,e=1/0)=>{if(!t)return;const n=[];for(let a=0;at.next()));for(let t=0;tt.value))}},U=t=>{if(!t)throw new Error("error iter result");if(t.done)throw new Error("empty iter")},z=i((async function*(t,e){if((t=await t)<=0)throw new Error("arg supply > 0 required");let n=[];for await(const a of e){n.push(a)>=t&&(yield n,n=[])}0!==n.length&&(yield n)})),F=async t=>{const e=[];for await(const n of t)e.push(n);return e},R=t=>Array.isArray(t)?Promise.all(t):d(t)?t:p(t)?Array.from(t):h(t)?Promise.all(Array.from(t)):F(t),q=async t=>new Map(await R(t)),T=t=>async e=>{const a=new n(t);for await(const t of e)a.add(t);return a.toArray()},C=T(Int8Array),J=T(Int16Array),L=T(Int32Array),W=T(Uint8Array),D=T(Uint16Array),V=T(Uint32Array),Y=T(Uint8ClampedArray),$=T(Float32Array),G=T(Float64Array),Q=async t=>{const e=await R(t),n={};for(const t of e){if(!b(t))throw new TypeError("collectObject value is not pair require [k,v] ");n[t[0]]=t[1]}return n},H=t=>t?-1:0,K=(t,e,n)=>a=>a?1:((t,e,n)=>{const a=t(e,n);return a instanceof Promise?a.then(H):H(a)})(t,e,n),X=(t,e,n)=>{const a=t(n,e);return a instanceof Promise?a.then(K(t,e,n)):K(t,e,n)(a)},Z=i((t,e,n)=>e instanceof Promise||n instanceof Promise?(async(t,e,n)=>X(t,await e,await n))(t,e,n):X(t,e,n)),tt=i((async function*(t,e){yield*S(t),yield*S(e)})),et=tt,nt=(t,e)=>te?-1:0,at=async function*(...t){for await(const e of t){if(e){if(p(e)){yield*e;continue}if(v(e)){for await(const t of e)yield*at(t);continue}}yield e}},rt=i((async function*(t,e){const n=new Set;for await(const a of e){const e=await t(a);n.has(e)||(n.add(e),yield a)}})),ot=t=>t,it=t=>Array.isArray(t)||d(t)||p(t)?(async t=>{if(0!==t.length)return[await t[0],t.slice(1)];throw new Error("empty array")})(t):(async t=>{const e=_(t),n=await e.next();return U(n),[n.value,e]})(t);let st;const ct=(t,e)=>{const n=t.length;if(n!==e.length)return!1;for(let a=n-1;a>=0;--a)if(!st(t[a],e[a]))return!1;return!0},lt=(t,e,n)=>{try{const a=e.call(t,n);if(null!=a)return a}catch(t){}},ft=["number","string","default"],ut=t=>{const e=t[Symbol.toPrimitive];if(e)for(const n of ft){const a=lt(t,e,n);if(void 0!==a)return a}},yt=t=>Object.prototype.toString(t);st=i((t,e)=>{if(t===e)return!0;if(t===r||e===r)return!0;if(t&&e){if(t.constructor!==e.constructor)return!1;if((t=>{switch(t.constructor){case Number:case y:case Boolean:case Symbol:case String:return!0}return!1})(t))return t.valueOf()===e.valueOf();const n=ut(t);return n?n===ut(e):t.valueOf()===e.valueOf()||(t instanceof Array?ct(t,e):d(t)?((t,e)=>{const n=t.length;if(n!==e.length)return!1;for(let a=n-1;a>=0;--a)if(t[a]!==e[a])return!1;return!0})(t,e):h(t)?ct(t,e):t instanceof Map?((t,e)=>{if(t.size!==e.size)return!1;for(const n of t){if(!e.has(n[0]))return!1;if(!st(e.get(n[0]),n[1]))return!1}return!0})(t,e):t instanceof Set?((t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0})(t,e):t instanceof RegExp?((t,e)=>t.sticky===e.sticky&&(t.unicode===e.unicode&&(t.ignoreCase===e.ignoreCase&&(t.global===e.global&&(t.multiline===e.multiline&&t.source===e.source)))))(t,e):!(t instanceof Promise||w(t))&&(yt(t)===yt(e)&&((t,e)=>{const n=Object.entries(t);if(n.length!==Object.keys(e).length)return!1;for(const[t,a]of n){if(!e.hasOwnProperty(t))return!1;if(!st(a,e[t]))return!1}return!0})(t,e)))}return!(!Number.isNaN(t)||!Number.isNaN(e))});const wt=st,dt=i((async function*(t,e){let[n,a]=await it(e);yield n,n=await t(n);for await(const e of a){const a=await t(e);wt(n,a)||(n=a,yield e)}})),ht=dt(ot),pt=i(async(t,e,...n)=>{await e.call(t,t);for await(const e of n)await e.call(t,t);return t}),mt=i((async function*(t,e){const n=_(e);await N(n,t),yield*n})),gt=i((async function*(t,e){const n=new a,r=await P(t,e,n.add.bind(n));for(;;){const t=await r.next();if(t.done)break;n.add(t.value),yield n.poll()}})),bt=i((async function*(t,e){const n=_(e);for(;;){const e=await n.next();if(e.done)return;if(!await t(e.value)){yield e.value;break}}yield*n})),vt=i((async function*(t,e){for await(const t of e)return yield t,void(yield*e);yield*S(B(t))})),xt=i(async(t,e)=>{for await(const n of e)if(!await t(n))return!1;return!0}),Et=i((async function*(t,e){for await(const n of e)await t(n)&&(yield n)})),_t=i((async function*(t,e){let n=0;for await(const a of e)await t(n++,a)&&(yield a)})),At=i((async function*(t,e){for await(const n of e)await t(n)||(yield n)})),Ot=i(async(t,e)=>{for await(const n of e)if(await t(n))return n}),kt=i(async(t,e)=>{for(let n=(e=await R(e)).length-1;n>=0;--n)if(await t(e[n]))return e[n]}),St=i(async(t,e)=>{for await(const t of e)return t;return B(t)}),Pt=async function*(t){for await(const e of t)yield*S(e)},jt=i((async function*(t,e){for await(const n of e)yield*await t(n)})),It=jt,Bt=()=>{},Nt=i(async(t,e,n)=>{e=await e;for await(const a of n)e=await t(e,a);return e}),Mt=i(async(t,e)=>{const[n,a]=await it(e);return Nt(t,n,a)}),Ut=Mt,zt=async function*(t){const e=await R(t);for(let t=e.length-1;t>=0;t-=1)yield e[t]},Ft=async(t,e,n)=>{e=await e;for await(const a of n)e=await t(a,e);return e},Rt=i((t,e,n)=>Ft(t,e,zt(n))),qt=i(async(t,e)=>{const n=zt(e),[a,r]=await it(n);return Ft(t,a,r)}),Tt=i(async(t,e)=>{const n=[];for await(const a of e)n.push(t(a));return Promise.all(n)}),Ct=i(async(t,e)=>{const n=[];let a=0;for await(const r of e)n.push(t(a++,r));return Promise.all(n)}),Jt=i(async(t,e)=>{const n=new Map;for await(const a of e){const e=await t(a),r=(n.get(e)||0)+1;n.set(e,r)}return n}),Lt=Jt(ot),Wt=i((t,e)=>{if(null!=e)return e[t]}),Dt=i((t,e)=>{if(e&&w(e.get)){const n=e.get(t);if(void 0!==n)return n}return Wt(t,e)}),Vt=i((t,e,n)=>{const a=Dt(t,n);return void 0===a?e:a}),Yt=i(async(t,e)=>{const n=new Map;for await(const a of e){const e=await t(a),r=n.get(e);r?r.push(a):n.set(e,[a])}return n}),$t=i((t,e)=>!!e&&(!(!w(e.has)||!e.has(t))||void 0!==e[t])),Gt=i((async function*(t,e,n){e=_(e);const{value:a,done:r}=await e.next();if(r)return;const o=[];for await(const e of n)await t(a,e)&&(yield[a,e]),o.push(e);for await(const n of e)for(let e=0;enew Promise(e=>{setTimeout(e,t)}),Kt=t=>null==t||Object(t)!==t,Xt=i((async function*(t,e){for(e=await e,yield e;;)e=await t(e),yield e})),Zt=i(async(t,e)=>{const n=(t=await R(t)).length,a=_(e),r=[];r.length=n;const o=await a.next();return o.done?r:(r.fill(o.value),Nt((e,n)=>Ct((e,a)=>t[e](a,n),e),r,a))}),te=i(async(t,e)=>{const n=[];for await(const a of t)n.push(Dt(a,e));return n}),ee=k(0,t=>{throw new Error(`keys / ${t} is not array`)}),ne=i((async function*(t,e){for await(const n of e)yield t(n)})),ae=i((async function*(t,e){let n=0;for await(const a of e)yield t(n++,a)})),re=i(async(t,e)=>{let[n,a]=await it(e),r=await t(n);for await(const e of a){const a=await t(e);a>r&&(n=e,r=a)}return n}),oe=re(ot),ie=i((t,e)=>{const n={};return async(...a)=>{let r;const o=await t(...a);return o in n?r=n[o]:(r=await e(...a),n[o]=r),r}}),se=ie((...t)=>t),ce=i((t,e)=>((t,e,n)=>{const a={};return async(...r)=>{const o=Date.now(),i=await e(...r),s=a[i];if(!s||o-s.time>t){const t=await n(...r);return a[r]={value:t,time:o},t}return s.value}})(t,(...t)=>t,e)),le=(t,...e)=>Nt((t,e)=>e(t),t,e),fe=i(async(t,e,...n)=>await le([t,e,...n],ne(O),Pt,q)),ue=i((t,e,...n)=>fe.apply(null,[t,e,...n].reverse())),ye=i(async(t,e,...n)=>await le([t,e,...n],ne(O),Pt,Q)),we=i((t,e,...n)=>ye.apply(null,[t,e,...n].reverse())),de=i(async(t,e)=>{let[n,a]=await it(e),r=await t(n);for await(const e of a){const a=await t(e);a{const a=r.get(t),o=r.get(n);return e(a,o)})})),me=pe(ot),ge=async function*(t){const e=new a,n=await((t,e)=>{const n=I()-1;return P(n,e,e=>t.add(e()))})(e,t);for await(const t of n)e.add(t()),yield e.poll();yield*e.removeIterator()},be=i((async function*(...t){1===t.length&&v(t[0])?yield*ge(t[0]):yield*ge(t)})),ve=i((async function*(t,e){for await(const n of e)await t(n),yield n})),xe=i((async function*(t,e){const n=new a,r=new a,o=await((t,e,n,a)=>{const r=I()-1;return P(r,a,a=>{t.add(n(a)),e.add(a)})})(n,r,t,e);for await(const e of o){n.add(t(e)),r.add(e);const a=r.poll();await n.poll()&&(yield a)}for(;!r.isEmpty();){const t=r.poll();await n.poll()&&(yield t)}})),Ee=(t,e,n)=>{const a=I()-1;return P(a,n,n=>t.add(e(n)))},_e=i((async function*(t,e){const n=new a,r=await Ee(n,t,e);for await(const e of r)n.add(t(e)),yield n.poll();yield*n.removeIterator()})),Ae=i((async function*(t,e){const n=new a,r=await Ee(n,t,e);for await(const e of r)n.add(t(e)),yield*await n.poll();for(;!n.isEmpty();)yield*await n.poll()})),Oe=Ae,ke=i((t,e,n)=>{const a=Wt(t,n);return void 0===a?e:a});let Se;if("object"==typeof t&&"undefined"!=typeof module&&"undefined"==typeof crypto){const t=require("crypto");Se=e=>{return t.randomBytes(e).readUIntBE(0,e)}}else Se=t=>{const e=new ArrayBuffer(4),n=new Uint8Array(e),a=new DataView(e);switch(crypto.getRandomValues(n),t){case 1:return a.getUint8(0);case 2:return a.getUint16(0);case 3:return 16777215&a.getUint32(0);default:return a.getUint32(0)}};const Pe=(t,e)=>{const n=e-t-1;let a=0,r=1;for(;n>=r;++a)r<<=1;const o=r-1,i=Math.floor(a/8)+1,s=(Se(i)&o)/r;return Math.ceil(s*n)+t},je=(...t)=>{switch(t.length){case 0:return Se(4);case 1:return Pe(0,t[0]);case 2:return Pe(t[0],t[1]);default:throw new Error("function random: argument must <= 2")}},Ie=function*(...t){let e=0,n=1/0,a=1;switch(t.length){case 1:n=t[0];break;case 2:e=t[0],n=t[1];break;case 3:e=t[0],n=t[1],a=t[2]}if(e>n)for(let t=e;t>n;t+=a)yield t;else for(let t=e;t{if((t=await B(t))<=0)throw new Error("duration > 0 required");return t},Ne=t=>new Promise((e,n)=>{setTimeout(()=>{n(new Error("timeout error"))},t)}),Me=i((t,e)=>{return t.constructor!==RegExp&&(t=new RegExp(t)),t.exec(e)||[]}),Ue=i((t,e)=>{return Me(t,e)[0]||""}),ze=(t,e,n)=>{for(t=(t=>t.constructor===RegExp?(t.global||(t=new RegExp(t,t.flags+"g")),t.lastIndex=0,t):new RegExp(t,"g"))(t);;){const a=t.exec(e);if(!a)break;n(a)}},Fe=i((t,e)=>{const n=[];return ze(t,e,t=>n.push(t[0])),n}),Re=i((t,e)=>{const n=[];return ze(t,e,t=>n.push(t)),n}),qe=async function*(t,e){const n=_(e);for await(const e of n){if(await t(e))return void(yield*n);yield e}},Te=i((async function*(t,e){if(t=await t,w(t))yield*qe(t,e);else{const n=wt(t);yield*qe(n,e)}})),Ce=t=>t[je(t.length)],Je=i((async function*(t,e,n){e=await e,yield e;for await(const a of n)e=await t(e,a),yield e})),Le=i((async function*(t,e){const n=_(e),a=await n.next();a.done||(yield*Je(t,a.value,n))})),We=t=>{const e=t.length;for(let n=e-1;n>=0;--n){const a=je(e);if(n!==a){const e=t[n];t[n]=t[a],t[a]=e}}return t},De=i(async(t,e)=>{for await(const n of e)if(await t(n))return!0;return!1}),Ve=async(t,e,n,a,r)=>{for(;;){if(r<=a)return await t(n,e[a])>0?a+1:a;const o=Math.floor((a+r)/2),i=await t(n,e[o]);if(0===i)return o;i>0?a=o+1:r=o-1}},Ye=async(t,e,n,a)=>{for(let r=n+1;r<=a;++r){const a=e[r],o=await Ve(t,e,a,n,r);for(let t=r-1;t>=o;--t)e[t+1]=e[t];e[o]=a}},$e=async(t,e,n,a,r)=>{if(a{let i=a,s=r+1,c=a;for(;i<=r&&s<=o;++c)await t(e[i],e[s])<=0?(n[c]=e[i],++i):(n[c]=e[s],++s);if(i>r)for(;s<=o;++s,++c)n[c]=e[s];else for(;i<=r;++i,++c)n[c]=e[i];for(c=a;c<=o;++c)e[c]=n[c]})(t,e,n,a,o,r)}},Ge=i(async(t,e)=>{const n=await R(e),a=[];return a.length=n.length,await $e(t,n,a,0,n.length-1),n}),Qe=Ge(c),He=i((async function*(t,e){yield*await t(e)})),Ke=(t,e)=>{if(t.constructor!==e.constructor)throw new Error("join/combine object: object is not same");if(t instanceof Map)return((t,e)=>new Map([...e,...t]))(t,e);if(t[Symbol.iterator]&&t.set&&"function"==typeof t.set)return((t,e)=>{const n=new t.constructor;for(const t of e)n.set(...t);for(const e of t)n.set(...e);return n})(t,e);if(t instanceof Object)return((t,e)=>Object.assign({},e,t))(t,e);throw new Error("join/combine object: not support type")},Xe=async function*(t,e,n){const a=[],r=[],o=_(n);t:for await(const n of e){a.push(n);for(const e of r)if(await t(n,e)){yield Ke(n,e);continue t}for(;;){const{value:e,done:a}=await o.next();if(a)break;if(r.push(e),await t(n,e)){yield Ke(n,e);continue t}}yield n}for await(const e of o)for(const n of a)await t(n,e)&&(yield Ke(n,e))},Ze=async function*(t,e,n){const a=[],r=[],o=_(n);t:for await(const n of e){a.push(n);for(const e of r)if(await t(n,e)){yield Ke(n,e);continue t}for(;;){const{value:e,done:a}=await o.next();if(a)break;if(r.push(e),await t(n,e)){yield Ke(n,e);continue t}}}for await(const e of o)for(const n of a)await t(n,e)&&(yield Ke(n,e))},tn=i(Ze),en=i(Ze),nn=i((t,e,n)=>Ze(t,n,e)),an=i(Xe),rn=i(Xe),on=i((t,e,n)=>Xe(t,n,e)),sn=i((t,e)=>t-e),cn=Mt(s),ln=i((async function*(t,e){let n=0;for await(const a of e){if(++n,n>t)break;yield a}})),fn=i((async function*(t,e){const n=new a,r=await P(t,e,t=>n.add(t));for await(const t of r)n.add(t),n.poll();yield*n.removeIterator()})),un=i((async function*(t,e){for await(const n of e){if(!await t(n))break;yield n}})),yn=i(async(t,e)=>(await t(e),e)),wn=i((t,e)=>t(e)),dn=i(async(t,e)=>{t=await Be(t);const n=Ne(t);e instanceof Function&&(e=e());const a=Promise.race([n,e]),r=await a;return n.catch(Bt),r}),hn=i((async function*(t,e,n){let a=0;const r=_(n);for await(const n of r){if(a++===e)return yield t,void(yield*r);yield n}})),pn=async function*(t,e,n){const a=_(n);for await(const n of a){if(await e(n))return yield t,void(yield*a);yield n}},mn=i((async function*(t,e,n){if(e=await e,w(e))yield*pn(t,e,n);else{const a=wt(e);yield*pn(t,a,n)}})),gn=k(1,t=>{throw new Error(`values / ${t} is not array`)}),bn=i((async function*(t,e){t=await Be(t);const n=_(e),a=Ne(t);for(;;){const t=n.next(),e=await Promise.race([a,t]);if(e.done)break;yield e.value}a.catch(Bt)})),vn=i((async function*(t,e,n){yield*M(t,[_(e),_(n)])})),xn=i((t,e)=>vn((t,e)=>[t,e],t,e)),En=i((async function*(t,e,n,a){yield*M(t,[_(e),_(n),_(a)])})),_n=i((t,e,n)=>En((t,e,n)=>[t,e,n],t,e,n));t._=o,t._ArrayList=n,t._Queue=a,t._Stack=class{constructor(){this.top=null}push(t){const e=this.top;this.top={value:t,next:e}}_unsafePop(){const t=this.top.value;return this.top=this.top.next,t}pop(){if(null===this.top)throw new Error("no such element");return this._unsafePop()}poll(){return null===this.top?null:this._unsafePop()}peek(){const t=this.top;return null===t?null:t.value}isEmpty(){return null===this.top}clear(){let t=this.top;for(;t;){t.value=null;const e=t.next;t.next=null,t=e}this.top=null}*[Symbol.iterator](){let t=this.top;for(;t;)yield t.value,t=t.next}*removeIterator(){let t=this.top;for(;t;){const e=t;yield e.value,t=e.next,e.value=null,e.next=null}}},t._binarySearchIndex=Ve,t._insertionSort=Ye,t.add=s,t.asc=c,t.assign=l,t.assign3=f,t.assignRight=u,t.associateBy=E,t.average=async t=>{let e=0,n=0;for await(const a of t)++e,n+=a;return n/e},t.block=async(...t)=>{t=await Promise.all(t);for(const e of t){const t=A(e);await N(t)}},t.buffer=z,t.collect=F,t.collectFloat32=$,t.collectFloat64=G,t.collectInt16=J,t.collectInt32=L,t.collectInt8=C,t.collectMap=q,t.collectObject=Q,t.collectSet=async t=>new Set(await R(t)),t.collectUint16=D,t.collectUint32=V,t.collectUint8=W,t.collectUint8Clamped=Y,t.comparator=Z,t.compose=(...t)=>async(...e)=>{const n=t.length;let a=await t[n-1](...e);for(let e=n-2;e>=0;--e)a=await t[e](a);return a},t.concat=tt,t.cond=async(...t)=>{x(t);for(let e=0;e{if(Number.isSafeInteger(t.length))return t.length;if(Number.isSafeInteger(t.size))return t.size;if(v(t)){let e=0;for await(const n of t)++e;return e}return Object.keys(t).length},t.curry=i,t.dec=t=>t-1,t.desc=nt,t.dflat=at,t.distinct=t=>rt(ot,t),t.distinctBy=rt,t.distinctUntilChanged=ht,t.distinctUntilChangedBy=dt,t.doto=pt,t.drop=mt,t.dropLast=gt,t.dropWhile=bt,t.emptyThen=vt,t.enumerate=async function*(t){let e=0;for await(const n of t)yield[e++,n]},t.equals=wt,t.every=xt,t.filter=Et,t.filterIndexed=_t,t.filterNot=At,t.find=Ot,t.findLast=kt,t.first=t=>t[0],t.firstOrGet=St,t.flat=Pt,t.flatMap=It,t.fmap=jt,t.fnil=(t,...e)=>(...n)=>t(...Object.assign([],e,n)),t.fnothing=Bt,t.foldl=Nt,t.foldl1=Mt,t.foldr=Rt,t.foldr1=qt,t.forEach=Tt,t.forEachIndexed=Ct,t.frequencies=Lt,t.frequenciesBy=Jt,t.get=Dt,t.getOrElse=Vt,t.groupBy=Yt,t.has=$t,t.head=async t=>{const e=_(t),n=await e.next();return U(n),n.value},t.identity=ot,t.inc=t=>t+1,t.innerJoin=en,t.innerJoin2=Gt,t.insertAt=Qt,t.interval=(t,e,...n)=>{t=Number(t),Number.isNaN(t)&&t<1&&(t=1);const a={run:!0},r=async()=>{const o=Ht(t);try{await e(...n)}catch(t){}a.run&&o.then(r)};return r(),a},t.isNil=t=>{if(t)return!1;switch(t){case null:case void 0:return!0;default:return Number.isNaN(t)}},t.isPrimitive=Kt,t.iterate=Xt,t.juxtA=Zt,t.juxtO=te,t.keys=ee,t.leftInnerJoin=tn,t.leftOuterJoin=an,t.map=ne,t.mapIndexed=ae,t.match=(t,...e)=>{x(e);for(let n=0;n!0,t.outerJoin=rn,t.parallel_set_fetch_count=t=>(t=>{if((t=Number(t))<=0)throw new Error("parallel_fetch_count > 0 required");j=t||100})(t),t.pcalls=be,t.peek=ve,t.pfilter=xe,t.pflatMap=Oe,t.pfmap=Ae,t.pipe=(t,...e)=>(...n)=>Nt((t,e)=>e(t),t(...n),e),t.pmap=_e,t.prop=Wt,t.propOrElse=ke,t.random=je,t.range=Ie,t.rangeInterval=async function*(t,...e){t=await Be(t),await Ht(t);for(const n of Ie(...e))yield n,await Ht(t)},t.reFind=Ue,t.reFindAll=Fe,t.reFindAllSubmatch=Re,t.reFindSubmatch=Me,t.reduce=Ut,t.removeFirst=Te,t.repeat=async function*(t,...e){const[n,a]=await(async(t,e)=>(t=await t,e.length>0?[t,await e[0]]:[1/0,t]))(t,e);if(a instanceof Function)for(let t=n;t>0;--t)yield a();else for(let t=n;t>0;--t)yield a},t.reverse=zt,t.rightInnerJoin=nn,t.rightOuterJoin=on,t.run=le,t.sample=t=>g(t)?Ce(t):(async t=>{const e=await R(t);return Ce(e)})(t),t.scanl=Je,t.scanl1=Le,t.second=t=>t[1],t.seq=_,t.shuffle=t=>g(t)?We(Array.from(t)):(async t=>(t=await F(t),We(t)))(t),t.sleep=Ht,t.some=De,t.sort=Qe,t.sortBy=Ge,t.splitBy=He,t.sub=sn,t.sum=cn,t.tail=async function*(t){const e=_(t),n=await e.next();U(n),yield*e},t.take=ln,t.takeLast=fn,t.takeWhile=un,t.tap=yn,t.then=wn,t.timeout=dn,t.underBar=r,t.union=et,t.updateAt=hn,t.updateFirst=mn,t.values=gn,t.withTimeout=bn,t.zip=xn,t.zip3=_n,t.zipWith=vn,t.zipWith3=En,Object.defineProperty(t,"__esModule",{value:!0})}));