@jrc03c/make-key 0.0.26 → 0.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/make-key.js +4 -4
  2. package/package.json +2 -2
package/dist/make-key.js CHANGED
@@ -11,10 +11,10 @@
11
11
  `),ht=class extends Error{constructor(e){Rc()?super(e):super(`
12
12
 
13
13
  \x1B[31m`+e+`
14
- \x1B[0m`)}};Tr.exports=ht});var d=c((mb,_r)=>{var Yc=Z();_r.exports=function(t,e){if(!t)throw new Yc(e)}});var q=c((db,Dr)=>{function Kc(t){return t===null||typeof t>"u"}Dr.exports=Kc});var xr=c((pb,Ir)=>{Ir.exports=[Array,ArrayBuffer,BigInt64Array,BigUint64Array,Float32Array,Float64Array,Int16Array,Int32Array,Int8Array,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray]});var p=c((gb,Er)=>{var $c=q(),Ar=xr(),Lc=Ar.map(t=>t.name);function Gc(t){try{return t instanceof Array?!0:$c(t.constructor)?!1:Ar.indexOf(t.constructor)>-1||Lc.indexOf(t.constructor.name)>-1}catch{return!1}}Er.exports=Gc});var b=c((yb,jr)=>{function Vc(t){try{return!!t._symbol&&t._symbol===Symbol.for("@jrc03c/js-math-tools/dataframe")}catch{return!1}}jr.exports=Vc});var D=c((qb,Fr)=>{function Wc(t){return typeof t=="function"}Fr.exports=Wc});var g=c((bb,Mr)=>{function Hc(t){return typeof t=="number"&&!isNaN(t)||typeof t=="bigint"}Mr.exports=Hc});var J=c((Nb,Br)=>{var Xc=p(),Qc=q();function Zc(t){return typeof t=="object"&&!Qc(t)&&!Xc(t)}Br.exports=Zc});var y=c((vb,Ur)=>{function el(t){try{return!!t._symbol&&t._symbol===Symbol.for("@jrc03c/js-math-tools/series")}catch{return!1}}Ur.exports=el});var fe=c((wb,Cr)=>{var tl=d(),Pr=p(),rl=b(),nl=D(),mt=g(),zr=J(),sl=y();function dt(t,e){if(rl(t)){let i=dt(t.values,e);return i.length>0&&mt(i[0])&&i[0]>=0&&i[0]<t.index.length&&(i[0]=t.index[i[0]]),i.length>1&&mt(i[1])&&i[1]>=0&&i[1]<t.columns.length&&(i[1]=t.columns[i[1]]),i}if(sl(t)){let i=dt(t.values,e);return i.length>0&&mt(i[0])&&i[0]>=0&&i[0]<t.index.length&&(i[0]=t.index[i[0]]),i}if(tl(zr(t)||Pr(t),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `indexOf` function!"),!nl(e)){let i=e;e=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(zr(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i));for(let l=0;l<a.length;l++){let f=a[l],h=i[f];if(o(h))return[f];let m=r(h,o,u);if(m&&m.length>0)return[f].concat(m)}}else if(Pr(i)){u.push(i);for(let a=0;a<i.length;a++){let l=i[a];if(o(l))return[a];let f=r(l,o,u);if(f&&f.length>0)return[a].concat(f)}}else if(o(i))return[];return null}function n(i){try{return e(i)}catch{return!1}}let s=r(t,n);return s&&s.length>0?s:null}Cr.exports=dt});var U=c((Sb,Yr)=>{var il=fe(),kr=p(),Jr=b(),Rr=y();function he(t){function e(r){if(typeof r=="object"){if(r===null)return null;if(kr(r))return r instanceof Array?r.map(s=>he(s)):r.slice();if(Rr(r)){let s=r.copy();return s.values=he(s.values),s}if(Jr(r)){let s=r.copy();return s.values=he(r.values),s}if(r instanceof Date)return new Date(r.getTime());r=pt(r);let n={};return Object.keys(r).concat(Object.getOwnPropertySymbols(r)).forEach(s=>{n[s]=he(r[s])}),n}else return r}return e(pt(t))}function pt(t){function e(s,i,o){if(i=i||[],o=o||"",i.indexOf(s)>-1){let u=o.split("/").slice(o.startsWith("/")?1:0);if(u.some((l,f)=>{let h=u.slice(0,u.length-f-1),m=r;return h.forEach(N=>{m=m[N]}),m===s}))return`<reference to "${r===s?"/":"/"+il(r,s).join("/")}">`}return typeof s=="object"?s===null?null:(i.push(s),kr(s)?typeof s.constructor<"u"&&s.constructor.name!=="Array"?s.slice():s.map((u,a)=>e(u,i,o+"/"+a)):(Object.keys(s).concat(Object.getOwnPropertySymbols(s)).forEach(u=>{s[u]=e(s[u],i,o+"/"+u.toString())}),s)):s}let r=t,n=e(r);if(Jr(t)){let s=t.copy();s._values=n.values,s._columns=n.columns,s._index=n.index,n=s}if(Rr(t)){let s=t.copy();s.name=n.name,s._values=n.values,s._index=n.index,n=s}return n}Yr.exports={copy:he,decycle:pt}});var De=c((Ob,Lr)=>{var ol=d(),Kr=p(),ul=b(),al=y();function $r(t){if(ul(t)||al(t))return $r(t.values);ol(Kr(t),"The `isNested` function only works on arrays, Series, and DataFrames!");for(let e=0;e<t.length;e++)if(Kr(t[e]))return!0;return!1}Lr.exports=$r});var R=c((Tb,Vr)=>{var W=d(),cl=p(),ll=De(),fl=g(),hl=q(),ee="You must pass a natural number or a one-dimensional array of natural numbers into the `ndarray` function!";function Gr(t){W(!hl(t),ee),cl(t)||(t=[t]),W(!ll(t),ee),W(t.length>0,ee);let e=t[0];if(typeof e=="bigint"&&(e=Number(e)),W(fl(e),ee),W(e>=0,ee),W(Math.floor(e)===e,ee),W(e!==1/0,"We can't create an array containing an infinite number of values!"),t.length===1){let r=[];for(let n=0;n<e;n++)r.push(void 0);return r}else{let r=[];for(let n=0;n<e;n++)r.push(Gr(t.slice(1)));return r}}Vr.exports=Gr});var P=c((_b,Xr)=>{var ml=d(),Wr=p(),dl=b(),pl=y();function Hr(t){if(dl(t)||pl(t))return Hr(t.values);ml(Wr(t),"The `flatten` function only works on arrays, Series, and DataFrames!");function e(r){let n=[];return r.forEach(s=>{Wr(s)?n=n.concat(e(s)):n.push(s)}),n}return e(t)}Xr.exports=Hr});var me=c((Db,Zr)=>{var gl=d(),yl=P(),ql=p(),bl=b(),Nl=g(),vl=y();function Qr(t,e){if(bl(t)||vl(t))return Qr(t.values);gl(ql(t),"The `product` function only works on arrays, Series, and DataFrames!");try{if(t.length===0)return NaN;let r=yl(t),n=!1,s=1;for(let i of r){if(!Nl(i))if(e)i=1;else return NaN;typeof i=="bigint"&&(n=!0,i=Number(i)),s*=i}if(n)try{return BigInt(s)}catch{}return s}catch{return NaN}}Zr.exports=Qr});var gt=c((Ib,en)=>{var wl=g();function Sl(t){return wl(t)&&(t>=0?Math.floor(t)===t:Math.ceil(t)===t)}en.exports=Sl});var rn=c((xb,tn)=>{var Ol=gt();function Tl(t){return Ol(t)&&t>0}tn.exports=Tl});var w=c((Ab,un)=>{var _l=d(),nn=p(),Dl=b(),Il=y();function sn(t){if(nn(t)){let e=sn(t[0]);return[t.length].concat(e||[])}else return}function on(t){return Dl(t)||Il(t)?on(t.values):(_l(nn(t),"The `shape` function only works on arrays, Series, and DataFrames!"),sn(t))}un.exports=on});var Ie=c((Eb,ln)=>{var de=d(),an=P(),cn=p(),xl=b(),Al=rn(),El=g(),jl=y(),Fl=me(),Ml=w();function yt(t,e){if(xl(t)||jl(t))return yt(t.values,e);if(de(cn(t),"The first argument passed into the `reshape` function must be an array!"),El(e)&&(e=[e]),de(cn(e),"The second argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),de(Ml(e).length===1,"The first argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),e=e.map(i=>(typeof i=="bigint"&&(i=Number(i)),de(Al(i),"The first argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),Number(i))),e.length===0)return an(t);let r=an(t);if(e.length===1&&e[0]===r.length)return r;de(Fl(e)===r.length,"The new shape doesn't match the number of values available in `x` (the first argument passed into the `reshape` function)!");let n=[],s=Math.floor(r.length/e[0]);for(let i=0;i<e[0];i++){let o=r.slice(i*s,(i+1)*s);n.push(yt(o,e.slice(1)))}return n}ln.exports=yt});var H=c((jb,yn)=>{var{copy:mn}=U(),Bl=d(),Ul=p(),Pl=g(),dn=q(),zl=R(),Cl=me(),kl=Ie(),pn=Math.pow(2,64),S=[];gn(Math.floor(Math.random()*pn));function Jl(t,e){t=I(t);function r(){t+=I("0x9e3779b97f4a7c15");let s=mn(t);return s=(s^s>>BigInt(30))*I("0xbf58476d1ce4e5b9"),s=(s^s>>BigInt(27))*I("0x94d049bb133111eb"),s^s>>BigInt(31)}let n=[];for(let s=0;s<e;s++)n.push(r());return n}function I(t){return BigInt.asUintN(64,BigInt(t))}function fn(t,e){return t=I(t),e=BigInt(e),I(I(t<<e)|I(t>>I(BigInt(64)-e)))}function gn(t){if(typeof t=="bigint"&&(t=Number(t)),dn(t))return mn(S);{Bl(Pl(t),"If passing a value into the `seed` function, then that value must be an integer!");let e=Jl(Math.floor(t),4);S[0]=e[0],S[1]=e[1],S[2]=e[2],S[3]=e[3]}}function hn(){let t=I(fn(S[0]+S[3],23)+S[0]),e=I(S[1]<<BigInt(17));return S[2]=I(S[2]^S[0]),S[3]=I(S[3]^S[1]),S[1]=I(S[1]^S[2]),S[0]=I(S[0]^S[3]),S[2]=I(S[2]^e),S[3]=fn(S[3],45),Math.floor(Number(t))/pn}function Rl(t){return dn(t)?hn():(Ul(t)||(t=[t]),kl(zl(Cl(t)).map(hn),t))}yn.exports={random:Rl,seed:gn}});var pe=c((Fb,qn)=>{function Yl(t){return t instanceof Date&&t.toString()!=="Invalid Date"}qn.exports=Yl});var z=c((Mb,wn)=>{var{decycle:bn}=U(),Nn=p(),qt=pe(),vn=["number","int","float","bigint"];function Kl(t,e){function r(n,s){let i=typeof n,o=typeof s;if(i!==o&&!vn.includes(i)&&!vn.includes(o))return!1;if(i==="undefined")return!0;if(i==="boolean"||i==="symbol")return n===s;if(i==="number"||i==="bigint")try{let u=n.toString(),a=s.toString();return u===a}catch{return!1}if(i==="string"||i==="function")return n===s;if(i==="object"){if(n===null||s===null)return n===null&&s===null;{if(qt(n))return qt(s)?n.getTime()===s.getTime():!1;if(qt(s))return!1;if(n instanceof RegExp&&s instanceof RegExp)return n.toString()===s.toString();if(Nn(n)!==Nn(s))return!1;let u=Object.keys(n).concat(Object.getOwnPropertySymbols(n)),a=Object.keys(s).concat(Object.getOwnPropertySymbols(s));if(u.length!==a.length)return!1;for(let l=0;l<u.length;l++){let f=u[l];if(!r(n[f],s[f]))return!1}return!0}}}try{return r(t,e)}catch{return r(bn(t),bn(e))}}wn.exports=Kl});var Tn=c((Bb,On)=>{var $l=p(),Ll=b(),Gl=D(),Vl=y(),Sn=q();function ge(t){let e="abcdefg1234567890",r="";for(;r.length<t;)r+=e[Math.floor(Math.random()*e.length)];return r}var Wl=ge(16),Hl=ge(16),Xl=ge(16),Ql=ge(16),Zl=ge(16),bt=class{constructor(){this.clear()}get counts(){return this.values.map(e=>this.countsDict[e])}get values(){return Object.values(this.valuesDict)}clear(){return this.countsDict={},this.valuesDict={},this}count(e){for(let r of e)$l(r)?this.count(r):this.increment(r);return this}delete(e){let r=this.getStandardizedKey(e);return delete this.countsDict[r],delete this.valuesDict[r],this}get(e){return this.countsDict[this.getStandardizedKey(e)]||0}getStandardizedKey(e){return typeof e=="object"&&e===null?Wl:Sn(e)?Hl:Gl(e)?e.toString():typeof e=="symbol"?e.toString()+" - "+Zl:e===1/0?Xl:e===-1/0?Ql:typeof e=="bigint"?e.toString():Ll(e)?e.toJSONString():Vl(e)?JSON.stringify(e.toObject()):JSON.stringify(e)}has(e){return!Sn(this.countsDict[this.getStandardizedKey(e)])}increment(e){return this.set(e,this.get(e)+1)}set(e,r){let n=this.getStandardizedKey(e);return this.countsDict[n]=r,this.valuesDict[n]=e,this}toArray(){return this.values.map(e=>({value:e,count:this.countsDict[e]}))}toObject(){let e={};return this.values.forEach(r=>{e[r]=this.countsDict[r]}),e}};On.exports=bt});var A=c((Ub,_n)=>{var ef=Tn(),tf=P(),rf=g();function nf(t,e){e=e||{};let r=new ef,n={},s=tf(t),i=[],o=-1/0,u=1/0,a=!1,l=0;for(let h of s){if(typeof h=="bigint"&&(a=!0),!e.shouldDropNaNs||rf(h))try{h>o&&(o=h),h<u&&(u=h),l+=Number(h),i.push(h)}catch{o=NaN,u=NaN,l=NaN}r.increment(h)}let f=l/i.length;if(n.counts=r,n.max=o,n.mean=f,n.min=u,n.n=s.length,n.sum=l,isNaN(n.mean)&&(n.max=NaN,n.min=NaN),e.shouldDropNaNs&&(n.nWithoutNaNs=i.length),e.mode){let h=Array.from(r.values.map(O=>[O,r.get(O)])).toSorted((O,_)=>_[1]-O[1]),m=h[0][1],N=[];for(let O of h)if(O[1]==m)N.push(O[0]);else break;n.mode=N.toSorted()}if(e.median)if(isNaN(f))n.median=NaN;else{let h=i.toSorted((N,O)=>Number(N)-Number(O)),m=Math.floor(h.length/2);if(h.length%2===0){let N=h[m-1],O=h[m];if(n.median=(Number(N)+Number(O))/2,a&&typeof N=="bigint"&&typeof O=="bigint")try{n.median=BigInt(n.median)}catch{}}else n.median=h[m]}if(e.stdev||e.variance){let h=0;for(let N of i)h+=Math.pow(Number(N)-f,2);h/=i.length;let m=Math.sqrt(h);n.stdev=m,n.variance=h}if(a){try{n.sum=BigInt(n.sum)}catch{}try{n.mean=BigInt(n.mean)}catch{}e.mode&&(n.mode=n.mode.map(h=>{try{return BigInt(h)}catch{return h}}))}return n}_n.exports=nf});var xe=c((Pb,Dn)=>{var sf=z(),of=D(),uf=q(),af=A();function cf(t,e){let{counts:r}=af(t);return uf(e)||(of(e)?r.values.forEach(n=>{e(n)||r.delete(n)}):r.values.forEach(n=>{sf(n,e)||r.delete(n)})),r}Dn.exports=cf});var te=c((zb,xn)=>{var{decycle:lf}=U(),In=p(),ff=b(),hf=y();function Nt(t){if(ff(t)||hf(t))return Nt(t.values);if(In(t)){let e=!1,r=!1,n=null;for(let s of t){if(Nt(s))return!0;if(In(s)){if(n===null)n=s.length;else if(s.length!==n)return!0;e=!0}else r=!0;if(e&&r)return!0}}return!1}function mf(t){return Nt(lf(t))}xn.exports=mf});var ye=c((Cb,An)=>{var df=d(),pf=p(),gf=b(),yf=y();function vt(t){if(gf(t)||yf(t)){let r=t.copy();return r.values=vt(r.values),r.index=vt(r.index),r}df(pf(t),"The `reverse` function only works on arrays, Series, and DataFrames!");let e=[];for(let r=t.length-1;r>=0;r--)e.push(t[r]);return e}An.exports=vt});var E=c((kb,En)=>{var wt=d(),St=g(),Ot=q(),qf=ye();function bf(t,e,r=1){wt(!Ot(t)&&!Ot(e)&&!Ot(r),"You must pass two numbers and optionally a step value to the `range` function!"),wt(St(t)&&St(e)&&St(r),"You must pass two numbers and optionally a step value to the `range` function!"),wt(r>0,"The step value must be greater than 0! (NOTE: The step value is a magnitude; it does not indicate direction.)");let n=!1,s=typeof t=="bigint"||typeof e=="bigint"||typeof r=="bigint";if(t=Number(t),e=Number(e),r=Number(r),t>e){n=!0;let o=t;t=e+r,e=o+r}let i=[];for(let o=t;o<e;o+=r)if(s)try{i.push(BigInt(o))}catch{i.push(o)}else i.push(o);return n&&(i=qf(i)),i}En.exports=bf});var C=c((Jb,Bn)=>{var Nf=d(),vf=P(),wf=p(),jn=b(),Sf=D(),Fn=y(),Of=q();function qe(t){let e="abcdefg1234567890",r="";for(;r.length<t;)r+=e[Math.floor(Math.random()*e.length)];return r}var Tf=qe(256),_f=qe(256),Df=qe(256),If=qe(256),xf=qe(256);function Mn(t){if(jn(t)||Fn(t))return Mn(t.values);Nf(wf(t),"The `set` function only works on arrays, Series, and DataFrames!");let e=[],r={};return vf(t).forEach(n=>{let s=typeof n=="object"&&n===null?Tf:Of(n)?_f:Sf(n)?n.toString():typeof n=="symbol"?n.toString()+" - "+xf:n===1/0?Df:n===-1/0?If:typeof n=="bigint"?n.toString():jn(n)?n.toJSONString():Fn(n)?JSON.stringify(n.toObject()):JSON.stringify(n);r[s]||e.push(n),r[s]=!0}),e}Bn.exports=Mn});var Jn=c((Rb,kn)=>{var Un=d(),Af=p(),Ef=b(),jf=te(),Ff=y(),Mf=q(),Pn=Z(),Ae=R(),zn=E(),Bf=C(),Uf=w();function Cn(t,e,r){if(Mf(r)&&(r=0),Un(r===0||r===1||r==="vertical"||r==="horizontal",'The only valid axis values for use when appending data to a DataFrame are 0, 1, "vertical", and "horizontal". Note that 0 == "horizontal" and 1 == "vertical".'),Af(e)){Un(!jf(e),"The array of data you're trying to append to this DataFrame is jagged!");let n=Uf(e);if(n.length===1)if(r===0){let s=t.copy();s._values.push(e);let i=Math.max(t.shape[1],n[0]);for(s._values.forEach(o=>{for(;o.length<i;)o.push(void 0)});s._index.length<s._values.length;)s._index.push("row"+s._index.length);for(;s._columns.length<i;)s._columns.push("col"+s._columns.length);return s}else{let s=Math.max(t.shape[0],n[0]),i=t.copy();for(zn(0,s).forEach(o=>{o>=i._values.length&&i._values.push(Ae(t.shape[1])),i._values[o].push(e[o])});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<i._values[0].length;)i._columns.push("col"+i._columns.length);return i}else if(n.length===2)if(r===0){let s=Math.max(...e.map(o=>o.length).concat([t.shape[1]])),i=t.copy();for(i._values=i._values.concat(e).map(o=>{for(;o.length<s;)o.push(void 0);return o});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<s;)i._columns.push("col"+i._columns.length);return i}else{let s=Math.max(...e.map(u=>u.length))+t.shape[1],i=Math.max(t.shape[0],n[0]),o=t.copy();for(zn(0,i).forEach(u=>{for(u>=o._values.length&&o._values.push(Ae(t.shape[1])),o._values[u]=o._values[u].concat(e[u]);o._values[u].length<s;)o._values[u].push(void 0)});o._index.length<o._values.length;)o._index.push("row"+o._index.length);for(;o._columns.length<s;)o._columns.push("col"+o._columns.length);return o}else throw new Pn("Only 1- and 2-dimensional arrays can be appended to a DataFrame!")}else if(Ff(e)){let n=Cn(t,e.values,r);return r===0?n.index[n.index.length-1]=n.index.indexOf(e.name)>-1?e.name+" (2)":e.name:n.columns[n.columns.length-1]=n.columns.indexOf(e.name)>-1?e.name+" (2)":e.name,n}else if(Ef(e))if(r===0){let n=t.copy(),s=Bf(n._columns.concat(e._columns)).length;for(n._values.forEach(i=>{for(;i.length<s;)i.push(void 0)}),e.apply(i=>{let o=i.copy(),u=[];n._columns.forEach(a=>{let l=o._index.indexOf(a);l>-1?(u.push(o._values[l]),o._values.splice(l,1),o._index.splice(l,1)):u.push(void 0)}),n._values.push(u.concat(o._values))},1),n._columns=n._columns.concat(e._columns.filter(i=>n._columns.indexOf(i)<0));n._index.length<n._values.length;){let i="row"+n._index.length;n._index.push(i+(t._index.indexOf(i)>-1?" (2)":""))}return n}else{let n=t.copy();return n._index.forEach((s,i)=>{let o=e._index.indexOf(s);o>-1?n._values[i]=n._values[i].concat(e._values[o]):n._values[i]=n._values[i].concat(Ae(e.shape[1]))}),e._index.forEach((s,i)=>{n._index.indexOf(s)<0&&(n._index.push(s),n._values.push(Ae(n._columns.length).concat(e._values[i])))}),n._columns=n._columns.concat(e._columns.map(s=>s+(n._columns.indexOf(s)>-1?" (2)":""))),n}else throw new Pn("Only 1- or 2-dimensional arrays, Series, and DataFrames can be appended to a DataFrame!")}kn.exports=Cn});var Ln=c((Yb,$n)=>{var Rn=d(),Yn=p(),Pf=D(),Kn=q();function zf(t,e,r,n,s){if(s=s||0,Rn(Pf(n),"The first parameter to the `apply` method must be a function."),Rn(s===0||s===1,"The second parameter to the `apply` method (the `axis`) must be 0 or 1."),s===0){let i={},o;if(r.columns.forEach((u,a)=>{let l=new e(r.values.map(h=>h[a]));l.name=u,l.index=r.index;let f=n(l,a,r);f instanceof e?i[u]=f.values:i[u]=f,Kn(o)&&(o=f instanceof e||Yn(f))}),o){let u=new t(i);return u.index=r.index,u}else{let u=new e(r.columns.map(a=>i[a]));return u.index=r.columns,u}}else if(s===1){let i,o=r.values.map((u,a)=>{let l=new e(u);l.name=r.index[a],l.index=r.columns;let f=n(l,a,r);return Kn(i)&&(i=f instanceof e||Yn(f)),f instanceof e?f.values:f});if(i){let u=new t(o);return u.index=r.index,u.columns=r.columns,u}else{let u=new e(o);return u.index=r.index,u}}}$n.exports=zf});var x=c((Kb,Gn)=>{function Cf(t){return typeof t=="string"}Gn.exports=Cf});var Hn=c(($b,Wn)=>{var Vn=d(),kf=p(),Jf=te(),Rf=J(),Yf=x(),Kf=q(),$f=Z(),Lf=w();function Gf(t,e,r,n,s){let i=u=>u instanceof t,o=u=>u instanceof e;if(Kf(s)){if(i(n))return r.append(n,1);if(o(n))return r.append(n,1);if(Rf(n)){let u=Math.max(...Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(a=>n[a].length));return Object.keys(n).concat(Object.getOwnPropertySymbols(n)).forEach(a=>{for(;n[a].length<u;)n[a].push(void 0)}),r.append(new t(n),1)}else throw new $f("You must pass a DataFrame, Series, or object into the `assign` method!")}else{Vn(Yf(n),"If passing two arguments into the `assign` method, then the first argument must be a string name!"),Vn(kf(s)&&!Jf(s)&&Lf(s).length===1,"If passing two arguments into the `assign` method, then the second argument must be a 1-dimensional array!");let u=r.append(s,1);return u.columns[u.columns.length-1]=n,u}}Wn.exports=Gf});var Qn=c((Lb,Xn)=>{var{copy:Vf}=U();function Wf(t,e){if(e.isEmpty)return new t;let r=new t(Vf(e.values));return r.columns=e.columns.slice(),r.index=e.index.slice(),r}Xn.exports=Wf});var is=c((Gb,ss)=>{var Ee=d(),Zn=p(),es=g(),ts=x(),rs=q(),ns=w();function Hf(t,e,r,n,s){rs(n)&&(n=[]),rs(s)&&(s=[]),(ts(n)||es(n))&&(n=[n]),(ts(s)||es(s))&&(s=[s]),Ee(Zn(n),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),Ee(Zn(s),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),Ee(ns(n).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),Ee(ns(s).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings.");let i,o;r.index.forEach((a,l)=>{n.indexOf(a)<0&&n.indexOf(l)<0&&(i||(i=[]),i.push(a))}),r.columns.forEach((a,l)=>{s.indexOf(a)<0&&s.indexOf(l)<0&&(o||(o=[]),o.push(a))});let u=r.get(i,o);if(u instanceof e){let a=new t;a=a.assign(u),r.index.indexOf(u.name)>-1&&(a=a.transpose()),u=a}return u}ss.exports=Hf});var re=c((Vb,os)=>{var Xf=gt();function Qf(t){return Xf(t)&&t>=0}os.exports=Qf});var as=c((Wb,us)=>{var Tt=d(),Zf=x(),je=q(),eh=re(),th=w();function rh(t,e,r,n,s,i){n=n||0,Tt(n===0||n===1,"The first parameter of the `dropMissing` method (the `axis`) must be 0 or 1."),i=i||0,Tt(eh(i),"The third parameter of the `dropMissing` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` null values)."),s=i>0?"none":s||"any",Tt(s==="any"||s==="all"||s==="none","The second parameter of the `dropMissing` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains null values, then it should be dropped; or that if 'all' of the data contains null values, then it should be dropped).");function o(l){if(i>0){let f=0;for(let h=0;h<l.length;h++){let m=l[h];if(je(m)&&f++,f>=i)return[]}}else if(s==="any")for(let f=0;f<l.length;f++){let h=l[f];if(je(h))return[]}else if(s==="all"){for(let f=0;f<l.length;f++){let h=l[f];if(!je(h))return l}return[]}return l}let u=r.copy(),a=Math.random().toString();if(n===0){u=u.assign(a,u.index);let l=u.values.map(o).filter(h=>h.length>0);if(th(l).length<2)return new t;u.values=l;let f=u.get(null,a);if(je(f))return new t;Zf(f)&&(f=[f]),f instanceof e&&(f=f.values),u.index=f,u=u.drop(null,a)}else if(n===1){let l={};if(u.columns.forEach((h,m)=>{let N=u.values.map(_=>_[m]),O=o(N);O.length>0&&(l[h]=O)}),Object.keys(l).length+Object.getOwnPropertySymbols(l).length===0)return new t;let f=new t(l);return f.index=u.index,f}return u}us.exports=rh});var _t=c((Hb,ls)=>{var nh=d(),sh=p(),ih=b(),oh=g(),uh=y();function cs(t){if(ih(t)||uh(t))return t.dropNaN(...Object.values(arguments).slice(1));nh(sh(t),"The `dropNaN` function only works on arrays, Series, and DataFrames!");let e=[];return t.forEach(r=>{try{return e.push(cs(r))}catch{if(oh(r))return e.push(r)}}),e}ls.exports=cs});var hs=c((Xb,fs)=>{var Dt=d(),ah=_t(),ch=re();function lh(t,e,r,n,s){r=r||0,Dt(r===0||r===1,"The first parameter of the `dropNaN` method (the `axis`) must be 0 or 1."),s=s||0,Dt(ch(s),"The third parameter of the `dropNaN` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` NaN values)."),n=s>0?"none":n||"any",Dt(n==="any"||n==="all"||n==="none","The second parameter of the `dropNaN` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains NaN values, then it should be dropped; or that if 'all' of the data contains NaN values, then it should be dropped).");function i(u){let a=ah(u);return s>0?u.length-a.length<s:n==="any"?a.length===u.length:n==="all"?a.length>0:!0}let o=e.copy();if(r===0){let u=o.index.filter(a=>{let l=o.get(a,null).values;return i(l)});return u.length>0?o.get(u,null):new t}else if(r===1){let u=o.columns.filter(a=>{let l=o.get(null,a).values;return i(l)});return u.length>0?o.get(null,u):new t}return o}fs.exports=lh});var gs=c((Qb,ps)=>{var ms=d(),fh=P(),hh=D(),mh=q();function ds(t){let e={};return fh(t).forEach((r,n)=>{e[r]=n}),e}function ne(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t)).sort((e,r)=>t[e]-t[r])}function dh(t,e,r,n,s){ms(hh(n),"The `filter` method takes a single parameter: a function that is used to filter the values."),mh(s)&&(s=0),ms(s===0||s===1,"The `axis` parameter to the `filter` method must be 0 or 1.");let i=r.copy();if(i.isEmpty)return i;let o=ds(i.index),u=ds(i.columns);if(s===0){let a=0,l=i.values.filter((f,h)=>{let m=new e(f);m.name=r.index[h],m.index=r.columns;let N=n(m,h,r);return N?a++:delete o[i.index[h]],N});if(a===0)return new t;if(a===1){let f=new e(l[0]);return f.name=ne(o)[0],f.index=ne(u),f}i.values=l,i.index=ne(o)}else if(s===1){i=i.transpose();let a=0,l=i.values.filter((f,h)=>{let m=new e(f);m.name=r.columns[h],m.index=r.index;let N=n(m,h,r);return N?a++:delete u[i.index[h]],N});if(a===0)return new t;if(a===1){let f=new e(l[0]);return f.name=ne(u)[0],f.index=ne(o),f}i.values=l,i.index=ne(u),i=i.transpose()}return i}ps.exports=dh});var bs=c((Zb,qs)=>{var F=d(),Fe=g(),Me=x(),ys=q(),ph=C();function gh(t,e,r){(Me(e)||Fe(e))&&(e=[e]),(Me(r)||Fe(r))&&(r=[r]);for(let s in e)typeof e[s]=="bigint"&&(e[s]=Number(e[s]));for(let s in r)typeof r[s]=="bigint"&&(r[s]=Number(r[s]));let n=ph((e||[]).concat(r||[]).map(s=>typeof s));return F(n.length<=2,"Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===1&&F(n[0]==="string"||n[0]==="number","Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===2&&(F(n.indexOf("string")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!"),F(n.indexOf("number")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!")),ys(e)||(e=e.map(s=>{if(Me(s))return F(t.index.indexOf(s)>-1,`Row "${s}" does not exist!`),s;if(Fe(s))return F(s>=0,`Index ${s} is out of bounds!`),F(Math.floor(s)===s,"Row numbers must be integers!"),F(s<t.index.length,`Index ${s} is out of bounds!`),t.index[s]})),ys(r)||(r=r.map(s=>{if(Me(s))return F(t.columns.indexOf(s)>-1,`Column "${s}" does not exist!`),s;if(Fe(s))return F(s>=0,`Column ${s} is out of bounds!`),F(Math.floor(s)===s,"Column numbers must be integers!"),F(s<t.columns.length,`Column ${s} is out of bounds!`),t.columns[s]})),t.getSubsetByNames(e,r)}qs.exports=gh});var se=c((eN,vs)=>{var Ns=d(),yh=p(),qh=b(),bh=D(),Nh=y(),vh=q();function wh(t,e){try{return t<e?-1:t>e?1:0}catch{return t=typeof t=="object"&&t!==null?JSON.stringify(t):t.toString(),e=typeof e=="object"&&e!==null?JSON.stringify(e):e.toString(),t<e?-1:t>e?1:0}}function Sh(t,e){if(vh(e)&&(e=wh),qh(t)||Nh(t))return t.sort(...Object.values(arguments).slice(1));Ns(yh(t),"The `sort` function only works on arrays, Series, and DataFrames!"),Ns(bh(e),"The second parameter of the `sort` function must be a comparison function!");let r=t.slice();return r.sort(e),r}vs.exports=Sh});var Ts=c((tN,Os)=>{var ws=d(),Ss=x(),Oh=q(),Th=C(),_h=se();function Dh(t){let e=t.toLowerCase(),r="";for(let s=0;s<e.length;s++){let i=e[s];i.match(/[a-z0-9]/g)?r+=i:r+=" "}let n=r.split(" ").filter(s=>s.length>0);return n[0]+n.slice(1).map(s=>s[0].toUpperCase()+s.substring(1)).join("")}function Ih(t,e,r){Oh(r)?r=e.columns:Ss(r)&&(r=[r]);let n={};r.forEach(i=>{ws(Ss(i),"You must pass either a string or a one-dimensional array of strings into the `getDummies` (AKA `oneHotEncode`) method!");let o=e.columns.indexOf(i);ws(o>-1,`The given DataFrame does not have a column called "${i}"!`);let u=e.values.map(l=>l[o]),a=_h(Th(u));u.forEach(l=>{a.forEach(f=>{let h=i+"_"+Dh(f.toString());n[h]||(n[h]=[]),l===f?n[h].push(1):n[h].push(0)})})});let s=new t(n);return s.index=e.index,s}Os.exports=Ih});var Fs=c((rN,js)=>{var Y=d(),_s=p(),Ds=g(),Is=q(),xs=re(),As=E(),Es=w();function xh(t,e,r){let n=t.shape;Is(e)&&(e=As(0,n[0])),Is(r)&&(r=As(0,n[1])),Ds(e)&&(e=[e]),Ds(r)&&(r=[r]),Y(_s(e)&&_s(r),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(Es(e).length===1&&Es(r).length===1,"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(e.length>0,"The `rowIndices` array must contain at least one index."),Y(r.length>0,"The `colIndices` array must contain at least one index."),e.forEach(o=>{Y(xs(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(o<t.index.length,`The row index ${o} is out of bounds.`)}),r.forEach(o=>{Y(xs(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(o<t.columns.length,`The column index ${o} is out of bounds.`)});let s=e.map(o=>t.index[o]),i=r.map(o=>t.columns[o]);return t.getSubsetByNames(s,i)}js.exports=xh});var zs=c((nN,Ps)=>{var K=d(),Ms=p(),Be=x(),Bs=q(),Us=w();function Ah(t,e,r,n,s){Bs(n)&&(n=r.index),Bs(s)&&(s=r.columns),Be(n)&&(n=[n]),Be(s)&&(s=[s]),K(Ms(n)&&Ms(s),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(Us(n).length===1&&Us(s).length===1,"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(n.length>0,"The `rows` array must contain at least one row name."),K(s.length>0,"The `cols` array must contain at least one column name."),n.forEach(u=>{K(Be(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(r.index.indexOf(u)>-1,`The row name "${u}" does not exist in the list of rows.`)}),s.forEach(u=>{K(Be(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(r.columns.indexOf(u)>-1,`The column name "${u}" does not exist in the list of columns.`)});let i=n.map(u=>s.map(a=>r.values[r.index.indexOf(u)][r.columns.indexOf(a)]));if(n.length===1&&s.length===1)return i[0][0];if(n.length===1){let u=new e(i[0]);return u.name=n[0],u.index=s,u}if(s.length===1){let u=new e(i.map(a=>a[0]));return u.name=s[0],u.index=n,u}let o=new t(i);return o.columns=s,o.index=n,o}Ps.exports=Ah});var ks=c((sN,Cs)=>{var Eh=x(),be=E();function jh(t,e,r){function n(m,N){return Eh(m)&&m.length>N?m.substring(0,N-3)+"...":m}if(r.isEmpty)return console.table({}),console.log("Shape:",[0,0],`
14
+ \x1B[0m`)}};Tr.exports=ht});var d=c((mb,_r)=>{var Yc=Z();_r.exports=function(t,e){if(!t)throw new Yc(e)}});var q=c((db,Dr)=>{function Kc(t){return t===null||typeof t>"u"}Dr.exports=Kc});var xr=c((pb,Ir)=>{Ir.exports=[Array,ArrayBuffer,BigInt64Array,BigUint64Array,Float32Array,Float64Array,Int16Array,Int32Array,Int8Array,Uint16Array,Uint32Array,Uint8Array,Uint8ClampedArray]});var p=c((gb,Er)=>{var $c=q(),Ar=xr(),Lc=Ar.map(t=>t.name);function Gc(t){try{return t instanceof Array?!0:$c(t.constructor)?!1:Ar.indexOf(t.constructor)>-1||Lc.indexOf(t.constructor.name)>-1}catch{return!1}}Er.exports=Gc});var b=c((yb,Fr)=>{function Vc(t){try{return!!t._symbol&&t._symbol===Symbol.for("@jrc03c/js-math-tools/dataframe")}catch{return!1}}Fr.exports=Vc});var D=c((qb,jr)=>{function Wc(t){return typeof t=="function"}jr.exports=Wc});var g=c((bb,Mr)=>{function Hc(t){return typeof t=="number"&&!isNaN(t)||typeof t=="bigint"}Mr.exports=Hc});var J=c((Nb,Br)=>{var Xc=p(),Qc=q();function Zc(t){return typeof t=="object"&&!Qc(t)&&!Xc(t)}Br.exports=Zc});var y=c((vb,Ur)=>{function el(t){try{return!!t._symbol&&t._symbol===Symbol.for("@jrc03c/js-math-tools/series")}catch{return!1}}Ur.exports=el});var fe=c((wb,Cr)=>{var tl=d(),Pr=p(),rl=b(),nl=D(),mt=g(),zr=J(),sl=y();function dt(t,e){if(rl(t)){let i=dt(t.values,e);return i.length>0&&mt(i[0])&&i[0]>=0&&i[0]<t.index.length&&(i[0]=t.index[i[0]]),i.length>1&&mt(i[1])&&i[1]>=0&&i[1]<t.columns.length&&(i[1]=t.columns[i[1]]),i}if(sl(t)){let i=dt(t.values,e);return i.length>0&&mt(i[0])&&i[0]>=0&&i[0]<t.index.length&&(i[0]=t.index[i[0]]),i}if(tl(zr(t)||Pr(t),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `indexOf` function!"),!nl(e)){let i=e;e=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(zr(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i));for(let l=0;l<a.length;l++){let f=a[l],h=i[f];if(o(h))return[f];let m=r(h,o,u);if(m&&m.length>0)return[f].concat(m)}}else if(Pr(i)){u.push(i);for(let a=0;a<i.length;a++){let l=i[a];if(o(l))return[a];let f=r(l,o,u);if(f&&f.length>0)return[a].concat(f)}}else if(o(i))return[];return null}function n(i){try{return e(i)}catch{return!1}}let s=r(t,n);return s&&s.length>0?s:null}Cr.exports=dt});var U=c((Sb,Yr)=>{var il=fe(),kr=p(),Jr=b(),Rr=y();function he(t){function e(r){if(typeof r=="object"){if(r===null)return null;if(kr(r))return r instanceof Array?r.map(s=>he(s)):r.slice();if(Rr(r)){let s=r.copy();return s.values=he(s.values),s}if(Jr(r)){let s=r.copy();return s.values=he(r.values),s}if(r instanceof Date)return new Date(r.getTime());r=pt(r);let n={};return Object.keys(r).concat(Object.getOwnPropertySymbols(r)).forEach(s=>{n[s]=he(r[s])}),n}else return r}return e(pt(t))}function pt(t){function e(s,i,o){if(i=i||[],o=o||"",i.indexOf(s)>-1){let u=o.split("/").slice(o.startsWith("/")?1:0);if(u.some((l,f)=>{let h=u.slice(0,u.length-f-1),m=r;return h.forEach(N=>{m=m[N]}),m===s}))return`<reference to "${r===s?"/":"/"+il(r,s).join("/")}">`}return typeof s=="object"?s===null?null:(i.push(s),kr(s)?typeof s.constructor<"u"&&s.constructor.name!=="Array"?s.slice():s.map((u,a)=>e(u,i,o+"/"+a)):(Object.keys(s).concat(Object.getOwnPropertySymbols(s)).forEach(u=>{s[u]=e(s[u],i,o+"/"+u.toString())}),s)):s}let r=t,n=e(r);if(Jr(t)){let s=t.copy();s._values=n.values,s._columns=n.columns,s._index=n.index,n=s}if(Rr(t)){let s=t.copy();s.name=n.name,s._values=n.values,s._index=n.index,n=s}return n}Yr.exports={copy:he,decycle:pt}});var De=c((Ob,Lr)=>{var ol=d(),Kr=p(),ul=b(),al=y();function $r(t){if(ul(t)||al(t))return $r(t.values);ol(Kr(t),"The `isNested` function only works on arrays, Series, and DataFrames!");for(let e=0;e<t.length;e++)if(Kr(t[e]))return!0;return!1}Lr.exports=$r});var R=c((Tb,Vr)=>{var W=d(),cl=p(),ll=De(),fl=g(),hl=q(),ee="You must pass a natural number or a one-dimensional array of natural numbers into the `ndarray` function!";function Gr(t){W(!hl(t),ee),cl(t)||(t=[t]),W(!ll(t),ee),W(t.length>0,ee);let e=t[0];if(typeof e=="bigint"&&(e=Number(e)),W(fl(e),ee),W(e>=0,ee),W(Math.floor(e)===e,ee),W(e!==1/0,"We can't create an array containing an infinite number of values!"),t.length===1){let r=[];for(let n=0;n<e;n++)r.push(void 0);return r}else{let r=[];for(let n=0;n<e;n++)r.push(Gr(t.slice(1)));return r}}Vr.exports=Gr});var P=c((_b,Xr)=>{var ml=d(),Wr=p(),dl=b(),pl=y();function Hr(t){if(dl(t)||pl(t))return Hr(t.values);ml(Wr(t),"The `flatten` function only works on arrays, Series, and DataFrames!");function e(r){let n=[];return r.forEach(s=>{Wr(s)?n=n.concat(e(s)):n.push(s)}),n}return e(t)}Xr.exports=Hr});var me=c((Db,Zr)=>{var gl=d(),yl=P(),ql=p(),bl=b(),Nl=g(),vl=y();function Qr(t,e){if(bl(t)||vl(t))return Qr(t.values,e);gl(ql(t),"The `product` function only works on arrays, Series, and DataFrames!");try{if(t.length===0)return NaN;let r=yl(t),n=!1,s=1;for(let i of r){if(!Nl(i))if(e)i=1;else return NaN;typeof i=="bigint"&&(n=!0,i=Number(i)),s*=i}if(n)try{return BigInt(s)}catch{}return s}catch{return NaN}}Zr.exports=Qr});var gt=c((Ib,en)=>{var wl=g();function Sl(t){return wl(t)&&(t>=0?Math.floor(t)===t:Math.ceil(t)===t)}en.exports=Sl});var rn=c((xb,tn)=>{var Ol=gt();function Tl(t){return Ol(t)&&t>0}tn.exports=Tl});var w=c((Ab,un)=>{var _l=d(),nn=p(),Dl=b(),Il=y();function sn(t){if(nn(t)){let e=sn(t[0]);return[t.length].concat(e||[])}else return}function on(t){return Dl(t)||Il(t)?on(t.values):(_l(nn(t),"The `shape` function only works on arrays, Series, and DataFrames!"),sn(t))}un.exports=on});var Ie=c((Eb,ln)=>{var de=d(),an=P(),cn=p(),xl=b(),Al=rn(),El=g(),Fl=y(),jl=me(),Ml=w();function yt(t,e){if(xl(t)||Fl(t))return yt(t.values,e);if(de(cn(t),"The first argument passed into the `reshape` function must be an array!"),El(e)&&(e=[e]),de(cn(e),"The second argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),de(Ml(e).length===1,"The first argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),e=e.map(i=>(typeof i=="bigint"&&(i=Number(i)),de(Al(i),"The first argument passed into the `reshape` function must be a whole number or a one-dimensional array of whole numbers!"),Number(i))),e.length===0)return an(t);let r=an(t);if(e.length===1&&e[0]===r.length)return r;de(jl(e)===r.length,"The new shape doesn't match the number of values available in `x` (the first argument passed into the `reshape` function)!");let n=[],s=Math.floor(r.length/e[0]);for(let i=0;i<e[0];i++){let o=r.slice(i*s,(i+1)*s);n.push(yt(o,e.slice(1)))}return n}ln.exports=yt});var H=c((Fb,yn)=>{var{copy:mn}=U(),Bl=d(),Ul=p(),Pl=g(),dn=q(),zl=R(),Cl=me(),kl=Ie(),pn=Math.pow(2,64),S=[];gn(Math.floor(Math.random()*pn));function Jl(t,e){t=I(t);function r(){t+=I("0x9e3779b97f4a7c15");let s=mn(t);return s=(s^s>>BigInt(30))*I("0xbf58476d1ce4e5b9"),s=(s^s>>BigInt(27))*I("0x94d049bb133111eb"),s^s>>BigInt(31)}let n=[];for(let s=0;s<e;s++)n.push(r());return n}function I(t){return BigInt.asUintN(64,BigInt(t))}function fn(t,e){return t=I(t),e=BigInt(e),I(I(t<<e)|I(t>>I(BigInt(64)-e)))}function gn(t){if(typeof t=="bigint"&&(t=Number(t)),dn(t))return mn(S);{Bl(Pl(t),"If passing a value into the `seed` function, then that value must be an integer!");let e=Jl(Math.floor(t),4);S[0]=e[0],S[1]=e[1],S[2]=e[2],S[3]=e[3]}}function hn(){let t=I(fn(S[0]+S[3],23)+S[0]),e=I(S[1]<<BigInt(17));return S[2]=I(S[2]^S[0]),S[3]=I(S[3]^S[1]),S[1]=I(S[1]^S[2]),S[0]=I(S[0]^S[3]),S[2]=I(S[2]^e),S[3]=fn(S[3],45),Math.floor(Number(t))/pn}function Rl(t){return dn(t)?hn():(Ul(t)||(t=[t]),kl(zl(Cl(t)).map(hn),t))}yn.exports={random:Rl,seed:gn}});var pe=c((jb,qn)=>{function Yl(t){return t instanceof Date&&t.toString()!=="Invalid Date"}qn.exports=Yl});var z=c((Mb,wn)=>{var{decycle:bn}=U(),Nn=p(),qt=pe(),vn=["number","int","float","bigint"];function Kl(t,e){function r(n,s){let i=typeof n,o=typeof s;if(i!==o&&!vn.includes(i)&&!vn.includes(o))return!1;if(i==="undefined"&&o==="undefined")return!0;if(i==="boolean"||i==="symbol")return n===s;if(i==="number"||i==="bigint")try{let u=n.toString(),a=s.toString();return u===a}catch{return!1}if(i==="string"||i==="function")return n===s;if(i==="object"){if(n===null||s===null)return n===null&&s===null;{if(qt(n))return qt(s)?n.getTime()===s.getTime():!1;if(qt(s))return!1;if(n instanceof RegExp&&s instanceof RegExp)return n.toString()===s.toString();if(Nn(n)!==Nn(s))return!1;let u=Object.keys(n).concat(Object.getOwnPropertySymbols(n)),a=Object.keys(s).concat(Object.getOwnPropertySymbols(s));if(u.length!==a.length)return!1;for(let l=0;l<u.length;l++){let f=u[l];if(!r(n[f],s[f]))return!1}return!0}}}try{return r(t,e)}catch{return r(bn(t),bn(e))}}wn.exports=Kl});var Tn=c((Bb,On)=>{var $l=p(),Ll=b(),Gl=D(),Vl=y(),Sn=q();function ge(t){let e="abcdefg1234567890",r="";for(;r.length<t;)r+=e[Math.floor(Math.random()*e.length)];return r}var Wl=ge(16),Hl=ge(16),Xl=ge(16),Ql=ge(16),Zl=ge(16),bt=class{constructor(){this.clear()}get counts(){return this.values.map(e=>this.get(e))}get values(){return Object.values(this.valuesDict)}clear(){return this.countsDict={},this.valuesDict={},this}count(e){for(let r of e)$l(r)?this.count(r):this.increment(r);return this}delete(e){let r=this.getStandardizedKey(e);return delete this.countsDict[r],delete this.valuesDict[r],this}get(e){return this.countsDict[this.getStandardizedKey(e)]||0}getStandardizedKey(e){return typeof e=="object"&&e===null?Wl:Sn(e)?Hl:Gl(e)?e.toString():typeof e=="symbol"?e.toString()+" - "+Zl:e===1/0?Xl:e===-1/0?Ql:typeof e=="bigint"?e.toString():Ll(e)?e.toJSONString():Vl(e)?JSON.stringify(e.toObject()):JSON.stringify(e)}has(e){return!Sn(this.countsDict[this.getStandardizedKey(e)])}increment(e){return this.set(e,this.get(e)+1)}set(e,r){let n=this.getStandardizedKey(e);return this.countsDict[n]=r,this.valuesDict[n]=e,this}toArray(){return this.values.map(e=>({value:e,count:this.get(e)}))}toObject(){let e={};return this.values.forEach(r=>{e[r]=this.get(r)}),e}};On.exports=bt});var A=c((Ub,_n)=>{var ef=Tn(),tf=P(),rf=g();function nf(t,e){e=e||{};let r=new ef,n={},s=tf(t),i=[],o=-1/0,u=1/0,a=!1,l=0;for(let h of s){if(typeof h=="bigint"&&(a=!0),!e.shouldDropNaNs||rf(h))try{h>o&&(o=h),h<u&&(u=h),l+=Number(h),i.push(h)}catch{o=NaN,u=NaN,l=NaN}r.increment(h)}let f=l/i.length;if(n.counts=r,n.max=o,n.mean=f,n.min=u,n.n=s.length,n.sum=l,isNaN(n.mean)&&(n.max=NaN,n.min=NaN),e.shouldDropNaNs&&(n.nWithoutNaNs=i.length),e.mode){let h=Array.from(r.values.map(O=>[O,r.get(O)])).toSorted((O,_)=>_[1]-O[1]),m=h[0][1],N=[];for(let O of h)if(O[1]==m)N.push(O[0]);else break;n.mode=N.toSorted()}if(e.median)if(isNaN(f))n.median=NaN;else{let h=i.toSorted((N,O)=>Number(N)-Number(O)),m=Math.floor(h.length/2);if(h.length%2===0){let N=h[m-1],O=h[m];if(n.median=(Number(N)+Number(O))/2,a&&typeof N=="bigint"&&typeof O=="bigint")try{n.median=BigInt(n.median)}catch{}}else n.median=h[m]}if(e.stdev||e.variance){let h=0;for(let N of i)h+=Math.pow(Number(N)-f,2);h/=i.length;let m=Math.sqrt(h);n.stdev=m,n.variance=h}if(a){try{n.sum=BigInt(n.sum)}catch{}try{n.mean=BigInt(n.mean)}catch{}e.mode&&(n.mode=n.mode.map(h=>{try{return BigInt(h)}catch{return h}}))}return n}_n.exports=nf});var xe=c((Pb,Dn)=>{var sf=z(),of=D(),uf=q(),af=A();function cf(t,e){let{counts:r}=af(t);return uf(e)||(of(e)?r.values.forEach(n=>{e(n)||r.delete(n)}):r.values.forEach(n=>{sf(n,e)||r.delete(n)})),r}Dn.exports=cf});var te=c((zb,xn)=>{var{decycle:lf}=U(),In=p(),ff=b(),hf=y();function Nt(t){if(ff(t)||hf(t))return Nt(t.values);if(In(t)){let e=!1,r=!1,n=null;for(let s of t){if(Nt(s))return!0;if(In(s)){if(n===null)n=s.length;else if(s.length!==n)return!0;e=!0}else r=!0;if(e&&r)return!0}}return!1}function mf(t){return Nt(lf(t))}xn.exports=mf});var ye=c((Cb,An)=>{var df=d(),pf=p(),gf=b(),yf=y();function vt(t){if(gf(t)||yf(t)){let r=t.copy();return r.values=vt(r.values),r.index=vt(r.index),r}df(pf(t),"The `reverse` function only works on arrays, Series, and DataFrames!");let e=[];for(let r=t.length-1;r>=0;r--)e.push(t[r]);return e}An.exports=vt});var E=c((kb,En)=>{var wt=d(),St=g(),Ot=q(),qf=ye();function bf(t,e,r=1){wt(!Ot(t)&&!Ot(e)&&!Ot(r),"You must pass two numbers and optionally a step value to the `range` function!"),wt(St(t)&&St(e)&&St(r),"You must pass two numbers and optionally a step value to the `range` function!"),wt(r>0,"The step value must be greater than 0! (NOTE: The step value is a magnitude; it does not indicate direction.)");let n=!1,s=typeof t=="bigint"||typeof e=="bigint"||typeof r=="bigint";if(t=Number(t),e=Number(e),r=Number(r),t>e){n=!0;let o=t;t=e+r,e=o+r}let i=[];for(let o=t;o<e;o+=r)if(s)try{i.push(BigInt(o))}catch{i.push(o)}else i.push(o);return n&&(i=qf(i)),i}En.exports=bf});var C=c((Jb,Bn)=>{var Nf=d(),vf=P(),wf=p(),Fn=b(),Sf=D(),jn=y(),Of=q();function qe(t){let e="abcdefg1234567890",r="";for(;r.length<t;)r+=e[Math.floor(Math.random()*e.length)];return r}var Tf=qe(256),_f=qe(256),Df=qe(256),If=qe(256),xf=qe(256);function Mn(t){if(Fn(t)||jn(t))return Mn(t.values);Nf(wf(t),"The `set` function only works on arrays, Series, and DataFrames!");let e=[],r={};return vf(t).forEach(n=>{let s=typeof n=="object"&&n===null?Tf:Of(n)?_f:Sf(n)?n.toString():typeof n=="symbol"?n.toString()+" - "+xf:n===1/0?Df:n===-1/0?If:typeof n=="bigint"?n.toString():Fn(n)?n.toJSONString():jn(n)?JSON.stringify(n.toObject()):JSON.stringify(n);r[s]||e.push(n),r[s]=!0}),e}Bn.exports=Mn});var Jn=c((Rb,kn)=>{var Un=d(),Af=p(),Ef=b(),Ff=te(),jf=y(),Mf=q(),Pn=Z(),Ae=R(),zn=E(),Bf=C(),Uf=w();function Cn(t,e,r){if(Mf(r)&&(r=0),Un(r===0||r===1||r==="vertical"||r==="horizontal",'The only valid axis values for use when appending data to a DataFrame are 0, 1, "vertical", and "horizontal". Note that 0 == "horizontal" and 1 == "vertical".'),Af(e)){Un(!Ff(e),"The array of data you're trying to append to this DataFrame is jagged!");let n=Uf(e);if(n.length===1)if(r===0){let s=t.copy();s._values.push(e);let i=Math.max(t.shape[1],n[0]);for(s._values.forEach(o=>{for(;o.length<i;)o.push(void 0)});s._index.length<s._values.length;)s._index.push("row"+s._index.length);for(;s._columns.length<i;)s._columns.push("col"+s._columns.length);return s}else{let s=Math.max(t.shape[0],n[0]),i=t.copy();for(zn(0,s).forEach(o=>{o>=i._values.length&&i._values.push(Ae(t.shape[1])),i._values[o].push(e[o])});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<i._values[0].length;)i._columns.push("col"+i._columns.length);return i}else if(n.length===2)if(r===0){let s=Math.max(...e.map(o=>o.length).concat([t.shape[1]])),i=t.copy();for(i._values=i._values.concat(e).map(o=>{for(;o.length<s;)o.push(void 0);return o});i._index.length<i._values.length;)i._index.push("row"+i._index.length);for(;i._columns.length<s;)i._columns.push("col"+i._columns.length);return i}else{let s=Math.max(...e.map(u=>u.length))+t.shape[1],i=Math.max(t.shape[0],n[0]),o=t.copy();for(zn(0,i).forEach(u=>{for(u>=o._values.length&&o._values.push(Ae(t.shape[1])),o._values[u]=o._values[u].concat(e[u]);o._values[u].length<s;)o._values[u].push(void 0)});o._index.length<o._values.length;)o._index.push("row"+o._index.length);for(;o._columns.length<s;)o._columns.push("col"+o._columns.length);return o}else throw new Pn("Only 1- and 2-dimensional arrays can be appended to a DataFrame!")}else if(jf(e)){let n=Cn(t,e.values,r);return r===0?n.index[n.index.length-1]=n.index.indexOf(e.name)>-1?e.name+" (2)":e.name:n.columns[n.columns.length-1]=n.columns.indexOf(e.name)>-1?e.name+" (2)":e.name,n}else if(Ef(e))if(r===0){let n=t.copy(),s=Bf(n._columns.concat(e._columns)).length;for(n._values.forEach(i=>{for(;i.length<s;)i.push(void 0)}),e.apply(i=>{let o=i.copy(),u=[];n._columns.forEach(a=>{let l=o._index.indexOf(a);l>-1?(u.push(o._values[l]),o._values.splice(l,1),o._index.splice(l,1)):u.push(void 0)}),n._values.push(u.concat(o._values))},1),n._columns=n._columns.concat(e._columns.filter(i=>n._columns.indexOf(i)<0));n._index.length<n._values.length;){let i="row"+n._index.length;n._index.push(i+(t._index.indexOf(i)>-1?" (2)":""))}return n}else{let n=t.copy();return n._index.forEach((s,i)=>{let o=e._index.indexOf(s);o>-1?n._values[i]=n._values[i].concat(e._values[o]):n._values[i]=n._values[i].concat(Ae(e.shape[1]))}),e._index.forEach((s,i)=>{n._index.indexOf(s)<0&&(n._index.push(s),n._values.push(Ae(n._columns.length).concat(e._values[i])))}),n._columns=n._columns.concat(e._columns.map(s=>s+(n._columns.indexOf(s)>-1?" (2)":""))),n}else throw new Pn("Only 1- or 2-dimensional arrays, Series, and DataFrames can be appended to a DataFrame!")}kn.exports=Cn});var Ln=c((Yb,$n)=>{var Rn=d(),Yn=p(),Pf=D(),Kn=q();function zf(t,e,r,n,s){if(s=s||0,Rn(Pf(n),"The first parameter to the `apply` method must be a function."),Rn(s===0||s===1,"The second parameter to the `apply` method (the `axis`) must be 0 or 1."),s===0){let i={},o;if(r.columns.forEach((u,a)=>{let l=new e(r.values.map(h=>h[a]));l.name=u,l.index=r.index;let f=n(l,a,r);f instanceof e?i[u]=f.values:i[u]=f,Kn(o)&&(o=f instanceof e||Yn(f))}),o){let u=new t(i);return u.index=r.index,u}else{let u=new e(r.columns.map(a=>i[a]));return u.index=r.columns,u}}else if(s===1){let i,o=r.values.map((u,a)=>{let l=new e(u);l.name=r.index[a],l.index=r.columns;let f=n(l,a,r);return Kn(i)&&(i=f instanceof e||Yn(f)),f instanceof e?f.values:f});if(i){let u=new t(o);return u.index=r.index,u.columns=r.columns,u}else{let u=new e(o);return u.index=r.index,u}}}$n.exports=zf});var x=c((Kb,Gn)=>{function Cf(t){return typeof t=="string"}Gn.exports=Cf});var Hn=c(($b,Wn)=>{var Vn=d(),kf=p(),Jf=te(),Rf=J(),Yf=x(),Kf=q(),$f=Z(),Lf=w();function Gf(t,e,r,n,s){let i=u=>u instanceof t,o=u=>u instanceof e;if(Kf(s)){if(i(n))return r.append(n,1);if(o(n))return r.append(n,1);if(Rf(n)){let u=Math.max(...Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(a=>n[a].length));return Object.keys(n).concat(Object.getOwnPropertySymbols(n)).forEach(a=>{for(;n[a].length<u;)n[a].push(void 0)}),r.append(new t(n),1)}else throw new $f("You must pass a DataFrame, Series, or object into the `assign` method!")}else{Vn(Yf(n),"If passing two arguments into the `assign` method, then the first argument must be a string name!"),Vn(kf(s)&&!Jf(s)&&Lf(s).length===1,"If passing two arguments into the `assign` method, then the second argument must be a 1-dimensional array!");let u=r.append(s,1);return u.columns[u.columns.length-1]=n,u}}Wn.exports=Gf});var Qn=c((Lb,Xn)=>{var{copy:Vf}=U();function Wf(t,e){if(e.isEmpty)return new t;let r=new t(Vf(e.values));return r.columns=e.columns.slice(),r.index=e.index.slice(),r}Xn.exports=Wf});var is=c((Gb,ss)=>{var Ee=d(),Zn=p(),es=g(),ts=x(),rs=q(),ns=w();function Hf(t,e,r,n,s){rs(n)&&(n=[]),rs(s)&&(s=[]),(ts(n)||es(n))&&(n=[n]),(ts(s)||es(s))&&(s=[s]),Ee(Zn(n),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),Ee(Zn(s),"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),Ee(ns(n).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings."),Ee(ns(s).length===1,"The `drop` method only works on 1-dimensional arrays of numerical indices and/or strings.");let i,o;r.index.forEach((a,l)=>{n.indexOf(a)<0&&n.indexOf(l)<0&&(i||(i=[]),i.push(a))}),r.columns.forEach((a,l)=>{s.indexOf(a)<0&&s.indexOf(l)<0&&(o||(o=[]),o.push(a))});let u=r.get(i,o);if(u instanceof e){let a=new t;a=a.assign(u),r.index.indexOf(u.name)>-1&&(a=a.transpose()),u=a}return u}ss.exports=Hf});var re=c((Vb,os)=>{var Xf=gt();function Qf(t){return Xf(t)&&t>=0}os.exports=Qf});var as=c((Wb,us)=>{var Tt=d(),Zf=x(),Fe=q(),eh=re(),th=w();function rh(t,e,r,n,s,i){n=n||0,Tt(n===0||n===1,"The first parameter of the `dropMissing` method (the `axis`) must be 0 or 1."),i=i||0,Tt(eh(i),"The third parameter of the `dropMissing` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` null values)."),s=i>0?"none":s||"any",Tt(s==="any"||s==="all"||s==="none","The second parameter of the `dropMissing` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains null values, then it should be dropped; or that if 'all' of the data contains null values, then it should be dropped).");function o(l){if(i>0){let f=0;for(let h=0;h<l.length;h++){let m=l[h];if(Fe(m)&&f++,f>=i)return[]}}else if(s==="any")for(let f=0;f<l.length;f++){let h=l[f];if(Fe(h))return[]}else if(s==="all"){for(let f=0;f<l.length;f++){let h=l[f];if(!Fe(h))return l}return[]}return l}let u=r.copy(),a=Math.random().toString();if(n===0){u=u.assign(a,u.index);let l=u.values.map(o).filter(h=>h.length>0);if(th(l).length<2)return new t;u.values=l;let f=u.get(null,a);if(Fe(f))return new t;Zf(f)&&(f=[f]),f instanceof e&&(f=f.values),u.index=f,u=u.drop(null,a)}else if(n===1){let l={};if(u.columns.forEach((h,m)=>{let N=u.values.map(_=>_[m]),O=o(N);O.length>0&&(l[h]=O)}),Object.keys(l).length+Object.getOwnPropertySymbols(l).length===0)return new t;let f=new t(l);return f.index=u.index,f}return u}us.exports=rh});var _t=c((Hb,ls)=>{var nh=d(),sh=p(),ih=b(),oh=g(),uh=y();function cs(t){if(ih(t)||uh(t))return t.dropNaN(...Object.values(arguments).slice(1));nh(sh(t),"The `dropNaN` function only works on arrays, Series, and DataFrames!");let e=[];return t.forEach(r=>{try{return e.push(cs(r))}catch{if(oh(r))return e.push(r)}}),e}ls.exports=cs});var hs=c((Xb,fs)=>{var Dt=d(),ah=_t(),ch=re();function lh(t,e,r,n,s){r=r||0,Dt(r===0||r===1,"The first parameter of the `dropNaN` method (the `axis`) must be 0 or 1."),s=s||0,Dt(ch(s),"The third parameter of the `dropNaN` method (the `threshold`) should be a whole number (meaning that data should be dropped if it contains more than `threshold` NaN values)."),n=s>0?"none":n||"any",Dt(n==="any"||n==="all"||n==="none","The second parameter of the `dropNaN` method (the `condition` parameter, which indicates the condition under which data should be dropped) should be 'any' or 'all' (meaning that if 'any' of the data contains NaN values, then it should be dropped; or that if 'all' of the data contains NaN values, then it should be dropped).");function i(u){let a=ah(u);return s>0?u.length-a.length<s:n==="any"?a.length===u.length:n==="all"?a.length>0:!0}let o=e.copy();if(r===0){let u=o.index.filter(a=>{let l=o.get(a,null).values;return i(l)});return u.length>0?o.get(u,null):new t}else if(r===1){let u=o.columns.filter(a=>{let l=o.get(null,a).values;return i(l)});return u.length>0?o.get(null,u):new t}return o}fs.exports=lh});var gs=c((Qb,ps)=>{var ms=d(),fh=P(),hh=D(),mh=q();function ds(t){let e={};return fh(t).forEach((r,n)=>{e[r]=n}),e}function ne(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t)).sort((e,r)=>t[e]-t[r])}function dh(t,e,r,n,s){ms(hh(n),"The `filter` method takes a single parameter: a function that is used to filter the values."),mh(s)&&(s=0),ms(s===0||s===1,"The `axis` parameter to the `filter` method must be 0 or 1.");let i=r.copy();if(i.isEmpty)return i;let o=ds(i.index),u=ds(i.columns);if(s===0){let a=0,l=i.values.filter((f,h)=>{let m=new e(f);m.name=r.index[h],m.index=r.columns;let N=n(m,h,r);return N?a++:delete o[i.index[h]],N});if(a===0)return new t;if(a===1){let f=new e(l[0]);return f.name=ne(o)[0],f.index=ne(u),f}i.values=l,i.index=ne(o)}else if(s===1){i=i.transpose();let a=0,l=i.values.filter((f,h)=>{let m=new e(f);m.name=r.columns[h],m.index=r.index;let N=n(m,h,r);return N?a++:delete u[i.index[h]],N});if(a===0)return new t;if(a===1){let f=new e(l[0]);return f.name=ne(u)[0],f.index=ne(o),f}i.values=l,i.index=ne(u),i=i.transpose()}return i}ps.exports=dh});var bs=c((Zb,qs)=>{var j=d(),je=g(),Me=x(),ys=q(),ph=C();function gh(t,e,r){(Me(e)||je(e))&&(e=[e]),(Me(r)||je(r))&&(r=[r]);for(let s in e)typeof e[s]=="bigint"&&(e[s]=Number(e[s]));for(let s in r)typeof r[s]=="bigint"&&(r[s]=Number(r[s]));let n=ph((e||[]).concat(r||[]).map(s=>typeof s));return j(n.length<=2,"Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===1&&j(n[0]==="string"||n[0]==="number","Only whole numbers and/or strings are allowed in `get` arrays!"),n.length===2&&(j(n.indexOf("string")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!"),j(n.indexOf("number")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!")),ys(e)||(e=e.map(s=>{if(Me(s))return j(t.index.indexOf(s)>-1,`Row "${s}" does not exist!`),s;if(je(s))return j(s>=0,`Index ${s} is out of bounds!`),j(Math.floor(s)===s,"Row numbers must be integers!"),j(s<t.index.length,`Index ${s} is out of bounds!`),t.index[s]})),ys(r)||(r=r.map(s=>{if(Me(s))return j(t.columns.indexOf(s)>-1,`Column "${s}" does not exist!`),s;if(je(s))return j(s>=0,`Column ${s} is out of bounds!`),j(Math.floor(s)===s,"Column numbers must be integers!"),j(s<t.columns.length,`Column ${s} is out of bounds!`),t.columns[s]})),t.getSubsetByNames(e,r)}qs.exports=gh});var se=c((eN,vs)=>{var Ns=d(),yh=p(),qh=b(),bh=D(),Nh=y(),vh=q();function wh(t,e){try{return t<e?-1:t>e?1:0}catch{return t=typeof t=="object"&&t!==null?JSON.stringify(t):t.toString(),e=typeof e=="object"&&e!==null?JSON.stringify(e):e.toString(),t<e?-1:t>e?1:0}}function Sh(t,e){if(vh(e)&&(e=wh),qh(t)||Nh(t))return t.sort(...Object.values(arguments).slice(1));Ns(yh(t),"The `sort` function only works on arrays, Series, and DataFrames!"),Ns(bh(e),"The second parameter of the `sort` function must be a comparison function!");let r=t.slice();return r.sort(e),r}vs.exports=Sh});var Ts=c((tN,Os)=>{var ws=d(),Ss=x(),Oh=q(),Th=C(),_h=se();function Dh(t){let e=t.toLowerCase(),r="";for(let s=0;s<e.length;s++){let i=e[s];i.match(/[a-z0-9]/g)?r+=i:r+=" "}let n=r.split(" ").filter(s=>s.length>0);return n[0]+n.slice(1).map(s=>s[0].toUpperCase()+s.substring(1)).join("")}function Ih(t,e,r){Oh(r)?r=e.columns:Ss(r)&&(r=[r]);let n={};r.forEach(i=>{ws(Ss(i),"You must pass either a string or a one-dimensional array of strings into the `getDummies` (AKA `oneHotEncode`) method!");let o=e.columns.indexOf(i);ws(o>-1,`The given DataFrame does not have a column called "${i}"!`);let u=e.values.map(l=>l[o]),a=_h(Th(u));u.forEach(l=>{a.forEach(f=>{let h=i+"_"+Dh(f.toString());n[h]||(n[h]=[]),l===f?n[h].push(1):n[h].push(0)})})});let s=new t(n);return s.index=e.index,s}Os.exports=Ih});var js=c((rN,Fs)=>{var Y=d(),_s=p(),Ds=g(),Is=q(),xs=re(),As=E(),Es=w();function xh(t,e,r){let n=t.shape;Is(e)&&(e=As(0,n[0])),Is(r)&&(r=As(0,n[1])),Ds(e)&&(e=[e]),Ds(r)&&(r=[r]),Y(_s(e)&&_s(r),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(Es(e).length===1&&Es(r).length===1,"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(e.length>0,"The `rowIndices` array must contain at least one index."),Y(r.length>0,"The `colIndices` array must contain at least one index."),e.forEach(o=>{Y(xs(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(o<t.index.length,`The row index ${o} is out of bounds.`)}),r.forEach(o=>{Y(xs(o),"The `rowIndices` and `colIndices` parameters must be 1-dimensional arrays of whole numbers."),Y(o<t.columns.length,`The column index ${o} is out of bounds.`)});let s=e.map(o=>t.index[o]),i=r.map(o=>t.columns[o]);return t.getSubsetByNames(s,i)}Fs.exports=xh});var zs=c((nN,Ps)=>{var K=d(),Ms=p(),Be=x(),Bs=q(),Us=w();function Ah(t,e,r,n,s){Bs(n)&&(n=r.index),Bs(s)&&(s=r.columns),Be(n)&&(n=[n]),Be(s)&&(s=[s]),K(Ms(n)&&Ms(s),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(Us(n).length===1&&Us(s).length===1,"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(n.length>0,"The `rows` array must contain at least one row name."),K(s.length>0,"The `cols` array must contain at least one column name."),n.forEach(u=>{K(Be(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(r.index.indexOf(u)>-1,`The row name "${u}" does not exist in the list of rows.`)}),s.forEach(u=>{K(Be(u),"The `rows` and `cols` parameters must be 1-dimensional arrays of strings."),K(r.columns.indexOf(u)>-1,`The column name "${u}" does not exist in the list of columns.`)});let i=n.map(u=>s.map(a=>r.values[r.index.indexOf(u)][r.columns.indexOf(a)]));if(n.length===1&&s.length===1)return i[0][0];if(n.length===1){let u=new e(i[0]);return u.name=n[0],u.index=s,u}if(s.length===1){let u=new e(i.map(a=>a[0]));return u.name=s[0],u.index=n,u}let o=new t(i);return o.columns=s,o.index=n,o}Ps.exports=Ah});var ks=c((sN,Cs)=>{var Eh=x(),be=E();function Fh(t,e,r){function n(m,N){return Eh(m)&&m.length>N?m.substring(0,N-3)+"...":m}if(r.isEmpty)return console.table({}),console.log("Shape:",[0,0],`
15
15
  `),r;let s=typeof window>"u"?20:10,i=Math.floor(s/2),o=typeof process>"u"?10:Math.floor(process.stdout.columns/24)-1,u=Math.floor(o/2),a=s>r.index.length?null:be(0,i).concat(be(r.index.length-i,r.index.length)),l=o>r.columns.length?null:be(0,u).concat(be(r.columns.length-u,r.columns.length)),f=r.get(a,l);f instanceof e&&(r.shape[0]===1?(f=new t([f.values]),f.index=r.index,f.columns=new e(r.columns).get(l).values):r.shape[1]===1&&(f=new t([f.values]).transpose(),f.index=new e(r.index).get(a).values,f.columns=r.columns)),s<=r.index.length&&(f._index.splice(i,0,"..."),f._values.splice(i,0,be(0,f.columns.length).map(()=>"..."))),o<=r.columns.length&&(f._columns.splice(u,0,"..."),f._values=f._values.map(m=>(m.splice(u,0,"..."),m)));let h=28;return f instanceof e?(f.values=f.values.map(m=>n(m,h)),f.name=n(f.name,h),f.index=f.index.map(m=>n(m,h))):(f.values=f.values.map(m=>m.map(N=>n(N,h))),f.columns=f.columns.map(m=>n(m,h)),f.index=f.index.map(m=>n(m,h))),console.table(f.toDetailedObject()),console.log("Shape:",r.shape,`
16
- `),r}Cs.exports=jh});var Ue=c((iN,Js)=>{var Fh=d(),Mh=g();function Bh(t,e){Fh(Mh(t),"The `leftPad` function only works on numbers!");let r=t.toString();for(;r.length<e;)r="0"+r;return r}Js.exports=Bh});var Ys=c((oN,Rs)=>{var Uh=Ue(),Ph=E();function zh(t,e){let r=e?t:t.copy();return r.index=Ph(0,t.shape[0]).map(n=>"row"+Uh(n,(r.index.length-1).toString().length)),r}Rs.exports=zh});var Pe=c((uN,Ks)=>{var{random:Ch}=H(),kh=d(),Jh=p(),Rh=b(),Yh=y();function Kh(t){if(Rh(t)||Yh(t))return t.shuffle(...Object.values(arguments).slice(1));kh(Jh(t),"The `shuffle` function only works on arrays, Series, and DataFrames!");let e=[],r=t.slice();for(let n=0;n<t.length;n++){let s=Math.floor(Ch()*r.length);e.push(r.splice(s,1)[0])}return e}Ks.exports=Kh});var Gs=c((aN,Ls)=>{var $h=d(),Lh=q(),$s=Pe();function Gh(t,e){return Lh(e)&&(e=0),$h(e===0||e===1,"The `axis` parameter to the `shuffle` must be 0, 1, or undefined."),t.get(e===0?$s(t.index):null,e===1?$s(t.columns):null)}Ls.exports=Gh});var ze=c((cN,Vs)=>{function Vh(t){return typeof t=="boolean"}Vs.exports=Vh});var Zs=c((lN,Qs)=>{var{random:Wh}=H(),j=d(),Ws=p(),It=ze(),Xs=D(),Ce=g(),ie=x(),xt=q(),Hh=re(),Xh=E(),Hs=w(),At=se();function Qh(t,e,r){return Xs(e)?Zh(t,e,r):em(t,e,r)}function Zh(t,e,r){if(r=xt(r)?0:r,j(Xs(e),"When sorting a DataFrame using a function, the first argument to the `sort` method must be a function!"),j(Ce(r),"When sorting a DataFrame using a function, the second argument to the `sort` method must be null, undefined, 0, or 1 to indicate the axis along which the data should be sorted! An axis of 0 means that the rows will be sorted relative to each other, whereas an axis of 1 means that the columns will be sorted relative to each other."),r===0){let n=At(t.index,(s,i)=>e(t.get(s,null),t.get(i,null)));return t.get(n,null)}else{let n=At(t.columns,(s,i)=>e(t.get(null,s),t.get(null,i)));return t.get(null,n)}}function em(t,e,r){let n=t.copy(),s=Wh().toString();n=n.assign(s,n.index),xt(e)&&(e=[s],r=[!0]),(Ce(e)||ie(e))&&(e=[e],(It(r)||ie(r))&&(r=[r])),j(Ws(e),"The first parameter of the `sort` method must be (1) a string or index representing a column name or index, respectively; (2) a 1-dimensional array of strings and/or indices; or (3) null."),j(Hs(e).length===1,"The first parameter of the `sort` method must be (1) a string or index representing a column name or index, respectively; (2) a 1-dimensional array of strings and/or indices; or (3) null."),xt(r)&&(r=Xh(0,e.length).map(()=>!0)),j(Ws(r),"The second parameter of the `sort` method must be (1) a string or boolean representing the sort direction ('ascending' / 'descending', or true / false); (2) a 1-dimensional array of strings and/or booleans; or (3) null."),j(Hs(r).length===1,"The second parameter of the `sort` method must be (1) a string or boolean representing the sort direction ('ascending' / 'descending', or true / false); (2) a 1-dimensional array of strings and/or booleans; or (3) null."),j(e.length===r.length,"The arrays passed into the `sort` method must be equal in length."),e=e.map(o=>{if(j(ie(o)||Ce(o),"Column references can either be column names (as strings) or column indices (as whole numbers)."),ie(o)){let u=n.columns.indexOf(o);return j(u>-1,`The column "${o}" does not exist!`),u}if(Ce(o))return j(Hh(o),"Column indices must be whole numbers!"),j(o<n.columns.length,`The index ${o} is out of bounds!`),o}),r=r.map(o=>{if(j(ie(o)||It(o),"Direction references can either be strings ('ascending' or 'descending') or booleans (true or false)."),ie(o)){let u=o.trim().toLowerCase();return j(u==="ascending"||u==="descending","Direction references can either be strings ('ascending' or 'descending') or booleans (true or false)."),u==="ascending"}if(It(o))return o}),n.values=At(n.values,(o,u)=>{let a=0;for(;o[e[a]]===u[e[a]]&&a<e.length;)a++;let l=r[a];if(o[e[a]]===u[e[a]])return 0;if(o[e[a]]<u[e[a]])return l?-1:1;if(o[e[a]]>u[e[a]])return l?1:-1});let i=n.columns.indexOf(s);return n.index=n.values.map(o=>o[i]),n=n.dropColumns(s),n}Qs.exports=Qh});var ti=c((fN,ei)=>{var tm=d(),rm=q();function nm(t,e){rm(e)?e=0:tm(e===0||e===1,"The axis parameter of the `toDetailedObject` method must be undefined, 0, or 1. An axis of 0 indicates that the returned object should be organized first by rows and then by columns. An axis of 1 indicates that the returned object should be organized first by columns and then by rows.");let r={};return e===0?t.index.forEach((n,s)=>{let i={};t.columns.forEach((o,u)=>{i[o]=t.values[s][u]}),r[n]=i}):t.columns.forEach((n,s)=>{let i={};t.index.forEach((o,u)=>{i[o]=t.values[u][s]}),r[n]=i}),r}ei.exports=nm});var Et=c((hN,ri)=>{function sm(t,e){return JSON.stringify(t.toObject(e))}ri.exports=sm});var ni=c((mN,Ft)=>{var jt=Z(),im=Et();function om(t,e,r){let n=im(t,r),s=!1,i=!1,o,u;try{let a=e;if(e.includes("/")){let f=e.split("/");a=f[f.length-1]}let l=document.createElement("a");l.href=`data:application/json;charset=utf-8,${encodeURIComponent(n)}`,l.download=a,l.dispatchEvent(new MouseEvent("click")),s=!0}catch(a){o=a}try{let a=Or("fs"),l=Or("path");a.writeFileSync(l.resolve(e),n,"utf8"),i=!0}catch(a){u=a}if(!s&&!i)throw typeof window<"u"?new jt(o):typeof Ft<"u"?new jt(u):new jt("I don't know what's going wrong, but it doesn't seem like you're in Node or the browser, and we couldn't download and/or write the file to disk!");return t}Ft.exports=om});var ii=c((dN,si)=>{function um(t){let e={};return t.columns.forEach(r=>{e[r]=t.get(r).values}),e}si.exports=um});var X=c((pN,ai)=>{var oi=d(),am=p(),cm=b(),lm=y(),fm=R(),ui=ye(),hm=w();function mm(t){if(cm(t)||lm(t))return t.transpose();oi(am(t),"The `transpose` function only works on arrays, Series, and DataFrames!");let e=hm(t);if(oi(e.length<=2,"I'm not smart enough to know how to transpose arrays that have more than 2 dimensions. Sorry for the inconvenience! Please only pass 1- or 2-dimensional arrays into the `transpose` function!"),e.length===1)return ui(t);if(e.length===2){let r=fm(ui(e));for(let n=0;n<e[0];n++)for(let s=0;s<e[1];s++)r[s][n]=t[n][s];return r}}ai.exports=mm});var fi=c((gN,li)=>{var dm=d(),pm=p(),gm=De(),ym=y(),qm=w();function ci(t,e,r){if(ym(r))return new t(e.values.concat(r.values));if(pm(r)){let n=qm(r);dm(n.length===1&&!gm(n),"Only vectors can be appended to Series!");let s=e.copy();return r.forEach((i,o)=>{s._values.push(i),s._index.push("item"+(e.values.length+o))}),s}return ci(e,[r])}li.exports=ci});var mi=c((yN,hi)=>{var bm=d(),Nm=D();function vm(t,e){bm(Nm(e),"The parameter to the `apply` method must be a function.");let r=t.copy();return r._values=r._values.map((n,s)=>e(n,s)),r}hi.exports=vm});var pi=c((qN,di)=>{var wm=q();function Sm(t){let e=t.copy(),r=[];return e._values=e.values.filter((n,s)=>wm(n)?!1:(r.push(e.index[s]),!0)),e._index=r,e}di.exports=Sm});var yi=c((bN,gi)=>{var Om=g();function Tm(t,e){let r=[],n=[];e.values.forEach((i,o)=>{Om(i)&&(n.push(i),r.push(e.index[o]))});let s=new t(n);return s.name=e.name,s.index=r,s}gi.exports=Tm});var bi=c((NN,qi)=>{var{copy:_m}=U();function Dm(t,e,r){let n=e.copy(),s=_m(n.index),i=[],o=n.values.filter((u,a)=>{let l=r(u,a,n.values);return l||i.push(n.index[a]),l});return i.forEach(u=>{s.splice(s.indexOf(u),1)}),o.length===0?(n=new t,n.name=e.name,n):(n.values=o,n.index=s,n)}qi.exports=Dm});var vi=c((vN,Ni)=>{var $=d(),Im=g(),xm=x(),Am=q(),Em=C();function jm(t,e){(xm(e)||Im(e))&&(e=[e]);for(let n in e)typeof e[n]=="bigint"&&(e[n]=Number(e[n]));let r=Em((e||[]).map(n=>typeof n));return $(r.length<=2,"Only whole numbers and/or strings are allowed in `get` arrays!"),r.length===1&&$(r[0]==="string"||r[0]==="number","Only whole numbers and/or strings are allowed in `get` arrays!"),r.length===2&&($(r.indexOf("string")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!"),$(r.indexOf("number")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!")),Am(e)||(e=e.map(n=>{if(typeof n=="string")return $(t.index.indexOf(n)>-1,`Index "${n}" does not exist!`),n;if(typeof n=="number")return $(n>=0,`Index ${n} is out of bounds!`),$(Math.floor(n)===n,"Indices must be integers!"),$(n<t.index.length,`Index ${n} is out of bounds!`),t.index[n]})),t.getSubsetByNames(e)}Ni.exports=jm});var Si=c((wN,wi)=>{var Ne=d(),Fm=p(),Mm=q(),Bm=re(),Um=E(),Pm=w();function zm(t,e){let r=t.shape;Mm(e)&&(e=Um(0,r[0])),Ne(Fm(e),"The `indices` array must be 1-dimensional array of whole numbers."),Ne(Pm(e).length===1,"The `indices` array must be a 1-dimensional array of whole numbers."),Ne(e.length>0,"The `indices` array must contain at least one index."),e.forEach(s=>{Ne(Bm(s),"The `indices` array must be a 1-dimensional array of whole numbers."),Ne(s<t.index.length,`The row index ${s} is out of bounds.`)});let n=e.map(s=>t.index[s]);return t.getSubsetByNames(n)}wi.exports=zm});var Ti=c((SN,Oi)=>{var ve=d(),Cm=p(),km=x(),Jm=q(),Rm=w();function Ym(t,e,r){Jm(r)&&(r=e.index),ve(Cm(r),"The `indices` array must be a 1-dimensional array of strings."),ve(Rm(r).length===1,"The `indices` array must be a 1-dimensional array of strings."),ve(r.length>0,"The `indices` array must contain at least one index name."),r.forEach(i=>{ve(km(i),"The `indices` array must contain only strings."),ve(e.index.indexOf(i)>-1,`The name "${i}" does not exist in the index.`)});let n=r.map(i=>e.values[e.index.indexOf(i)]);if(n.length===1)return n[0];let s=new t(n);return s.index=r,s.name=e.name,s}Oi.exports=Ym});var Ii=c((ON,Di)=>{var{copy:Km}=U(),_i=E();function $m(t){let e=t.copy(),r=typeof window>"u"?20:10;if(e.index.length>r){e=e.get(_i(0,r/2).concat(_i(e.index.length-r/2,e.index.length)));let s=Km(e.index);s.splice(Math.floor(s.length/2),0,"..."),e.values.push("..."),e.index.push("..."),e=e.get(s)}let n={};return e.values.forEach((s,i)=>{let o={};o[e.name]=s,n[e.index[i]]=o}),console.table(n),console.log("Shape:",t.shape,`
17
- `),t}Di.exports=$m});var Ai=c((TN,xi)=>{var Lm=Pe();function Gm(t){let e=t.copy();return e.get(Lm(e.index))}xi.exports=Gm});var ji=c((_N,Ei)=>{var Vm=d(),Wm=D(),Hm=q(),Xm=se(),Qm=X();function Zm(t,e,r){r=r||((a,l)=>a<l?-1:1),Vm(Hm(r)||Wm(r),"You must pass undefined, null, or a comparison function as the second argument to the `sort` method!");let n=Qm([e.values,e.index]),s=Xm(n,(a,l)=>r(a[0],l[0])),i=[],o=[];s.forEach(a=>{i.push(a[0]),o.push(a[1])});let u=new t;return u._values=i,u._index=o,u.name=e.name,u}Ei.exports=Zm});var Bi=c((DN,Mi)=>{var ed=se(),Fi=X();function td(t,e){let r=Fi([e.values,e.index]);r=Fi(ed(r,(s,i)=>{if(s[1]===i[1])return 0;if(s[1]<i[1])return-1;if(s[1]>i[1])return 1}));let n=new t(r[0]);return n.index=r[1],n.name=e.name,n}Mi.exports=td});var Pi=c((IN,Ui)=>{function rd(t){let e={};return e[t.name]={},t.index.forEach((r,n)=>{e[t.name][r]=t.values[n]}),e}Ui.exports=rd});var Ri=c((xN,Ji)=>{var{copy:ke}=U(),k=d(),Mt=p(),nd=x(),sd=q(),zi=Ue(),Ci=E(),Je=ye(),id=fi(),od=mi(),ud=pi(),ad=yi(),cd=bi(),ld=vi(),fd=Si(),hd=Ti(),md=Ii(),dd=Ai(),pd=ji(),gd=Bi(),yd=Pi(),we=w(),qd=X(),ki=Symbol.for("@jrc03c/js-math-tools/series");Ji.exports=function(t){class e{static[Symbol.hasInstance](n){try{return!!n._symbol&&n._symbol===ki}catch{return!1}}constructor(n){if(this.name="data",Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:ki}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values},set(s){k(Mt(s),"The new values must be a 1-dimensional array!");let i=we(s);k(i.length===1,"The new array of values must be 1-dimensional!"),i[0]<this._index.length?this._index=this._index.slice(0,i[0]):i[0]>this._index.length&&(this._index=this._index.concat(Ci(this._index.length,i[0]).map(o=>"item"+zi(o,(s.length-1).toString().length)))),this._values=s}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(s){k(Mt(s),"The new index must be a 1-dimensional array of strings!"),k(s.length===this.shape[0],"The new index must be the same length as the old index!"),k(we(s).length===1,"The new index must be a 1-dimensional array of strings!"),s.forEach(i=>{k(nd(i),"All of the row names must be strings!")}),this._index=s}}),n){if(n instanceof e)this.name=n.name,this.values=ke(n.values),this.index=ke(n.index);else if(Mt(n)){let s=we(n);k(s.length===1,"When passing an array into the constructor of a Series, the array must be 1-dimensional!"),this.values=n}else if(n instanceof Object){let s=Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(u=>u.toString());k(s.length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!");let i=s[0],o=n[i];k(we(o).length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!"),this.name=i,this.values=o.slice()}}}get shape(){return we(this.values)}get length(){return this.shape[0]}get isEmpty(){return this.values.filter(n=>!sd(n)).length===0}clear(){let n=this.copy();return n.values.forEach((s,i)=>{n.values[i]=void 0}),n}get(n){return ld(this,n)}getSubsetByNames(n){return hd(e,this,n)}getSubsetByIndices(n){return fd(this,n)}loc(n){return this.getSubsetByNames(n)}iloc(n){return this.getSubsetByIndices(n)}reverse(){let n=new e(Je(this.values));return n.index=Je(this.index),n.name=this.name,n}resetIndex(){let n=this.copy();return n.index=Ci(0,this.shape[0]).map(s=>"item"+zi(s,(n.index.length-1).toString().length)),n}copy(){let n=new e;return n._values=ke(this.values),n._index=ke(this.index),n.name=this.name,n}append(n){return id(e,this,n)}apply(n){return od(this,n)}concat(n){return this.append(n)}dropMissing(n,s){return ud(this,n,s)}dropNaN(){return ad(e,this)}toObject(){return yd(this)}print(){return md(this)}shuffle(){return dd(this)}sort(n){return pd(e,this,n)}sortByIndex(){return gd(e,this)}filter(n){return cd(e,this,n)}toDataFrame(){let n=new t(qd([this.values]));return n.columns=[this.name],n.index=this.index,n}transpose(){let n=this.copy();return n.values=Je(n.values),n.index=Je(n.index),n}getDummies(){return this.toDataFrame().getDummies()}oneHotEncode(){return this.getDummies()}}return e}});var ue=c((AN,Gi)=>{var{copy:Bt}=U(),{random:bd}=H(),M=d(),Yi=xe(),Nd=Jn(),vd=Ln(),wd=Hn(),Sd=Qn(),Od=is(),Td=as(),_d=hs(),Dd=gs(),Id=bs(),Ki=Ts(),xd=Fs(),Ad=zs(),Ed=ks(),jd=Ys(),Fd=Gs(),Md=Zs(),Bd=ti(),Ud=ni(),Pd=Et(),zd=ii(),Se=p(),Cd=te(),kd=J(),Ut=q(),Pt=Ue(),Jd=R(),zt=E(),oe=w(),$i=X(),Li=Symbol.for("@jrc03c/js-math-tools/dataframe");function Re(t){let e="abcdefghijklmnopqrstuvwxyz1234567890",r="";for(let n=0;n<t;n++)r+=e[Math.floor(bd()*e.length)];return r}var T=class{static[Symbol.hasInstance](e){try{return!!e._symbol&&e._symbol===Li}catch{return!1}}constructor(e){if(Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:Li}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values.length===0||!Ut(this._values[0])&&this._values[0].length===0?[[]]:this._values},set(r){M(Se(r),"The new values must be a 2-dimensional array!");let n=oe(r);M(n.length===2,"The new array of values must be 2-dimensional!"),n[0]<this._index.length?this._index=this._index.slice(0,n[0]):n[0]>this._index.length&&(this._index=this._index.concat(zt(this._index.length,n[0]).map(s=>"row"+Pt(s,(n[0]-1).toString().length)))),n[1]<this._columns.length?this._columns=this._columns.slice(0,n[1]):n[1]>this._columns.length&&(this._columns=this._columns.concat(zt(this._columns.length,n[1]).map(s=>"col"+Pt(s,(n[1]-1).toString().length)))),this._values=r}}),Object.defineProperty(this,"_columns",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"columns",{configurable:!0,enumerable:!0,get(){return this._columns},set(r){M(Se(r),"The new columns list must be a 1-dimensional array of strings!"),M(this.isEmpty||r.length===this.shape[1],"The new columns list must be the same length as the old columns list!"),M(oe(r).length===1,"The new columns list must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Re(8):s.trim()));let n=(()=>{let s=Yi(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Re(8):s),this._columns=r}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(r){M(Se(r),"The new index must be a 1-dimensional array of strings!"),M(this.isEmpty||r.length===this.shape[0],"The new index must be the same length as the old index!"),M(oe(r).length===1,"The new index must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Re(8):s.trim()));let n=(()=>{let s=Yi(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Re(8):s),this._index=r}}),M(Ut(e)||kd(e)||Se(e),"The `data` passed into the constructor of a DataFrame must be either (1) an object where the key-value pairs are (respectively) column names and 1-dimensional arrays of values, or (2) a 2-dimensional array of values."),e)if(e instanceof T)this.values=Bt(e.values),this.columns=Bt(e.columns),this.index=Bt(e.index);else if(Se(e)){let r=oe(e);M(r.length===2,"The `data` array passed into the constructor of a DataFrame must be 2-dimensional!"),M(!Cd(e),"The 2-dimensional array passed into the constructor of a DataFrame must not contain sub-arrays (i.e., rows) of different lengths!"),this.values=e}else{this._columns=Object.keys(e).concat(Object.getOwnPropertySymbols(e)).map(o=>o.toString());let r=[],n=null,s=null;this._columns.forEach(o=>{Ut(s)&&(n=o,s=e[o].length),M(e[o].length===s,`The object passed into the DataFrame constructor contains arrays of different lengths! The key "${n}" points to an array containing ${s} items, and the key "${o}" points to an array containing ${e[o].length} items.`),s=e[o].length;let u=e[o];r.push(u)}),this._values=$i(r);let i=oe(this.values);this._index=zt(0,i[0]).map(o=>"row"+Pt(o,(i[0]-1).toString().length))}}get shape(){return oe(this.values)}get length(){return this.shape[0]}get width(){return this.shape[1]}get rows(){return this.index}set rows(e){this.index=e}get isEmpty(){return this.values.length===0||this.values.every(e=>e.length===0)}clear(){let e=new T(Jd(this.shape));return e.columns=this.columns.slice(),e.index=this.index.slice(),e}get(e,r){if(arguments.length===0)return this;if(arguments.length===1)try{return this.get(null,e)}catch{return this.get(e,null)}return Id(this,e,r)}getSubsetByNames(e,r){return Ad(T,L,this,e,r)}getSubsetByIndices(e,r){return xd(this,e,r)}getDummies(e){return Ki(T,this,e)}oneHotEncode(e){return Ki(T,this,e)}transpose(){let e=new T($i(this.values));return e.columns=this.index.slice(),e.index=this.columns.slice(),e}get T(){return this.transpose()}resetIndex(e){return jd(this,e)}copy(){return Sd(T,this)}assign(e,r){return wd(T,L,this,e,r)}apply(e,r){return vd(T,L,this,e,r)}dropMissing(e,r,n){return Td(T,L,this,e,r,n)}dropNaN(e,r,n){return _d(T,this,e,r,n)}drop(e,r){return Od(T,L,this,e,r)}dropColumns(e){return this.drop(null,e)}dropRows(e){return this.drop(e,null)}toDetailedObject(e){return Bd(this,e)}toObject(){return zd(this)}toJSONString(e){return Pd(this,e)}saveAsJSON(e,r){return Ud(this,e,r)}print(){return Ed(T,L,this)}sort(e,r){return Md(this,e,r)}sortByIndex(){return this.sort()}filter(e,r){return Dd(T,L,this,e,r)}shuffle(e){return Fd(this,e)}append(e,r){return Nd(this,e,r)}concat(e,r){return this.append(e,r)}join(e,r){return this.append(e,r)}toString(){return JSON.stringify(this)}},L=Ri()(T);Gi.exports={DataFrame:T,Series:L}});var Oe=c((EN,Vi)=>{var Rd=A();function Yd(t,e){return Rd(t,{shouldDropNaNs:e}).max}Vi.exports=Yd});var v=c((jN,to)=>{var{DataFrame:Wi,Series:Hi}=ue(),Xi=d(),Ye=p(),Qi=b(),Zi=z(),Kd=D(),eo=y(),$d=Oe(),Ld=E(),Ke=w();function Gd(t){return Xi(Kd(t),"You must pass a function into the `vectorize` function!"),function e(){let r,n,s=[],i=[],o=Object.keys(arguments).filter(u=>{let a=arguments[u];return Ye(a)?!0:eo(a)?(r=!0,s.push(a),!0):Qi(a)?(n=!0,i.push(a),!0):!1}).map(u=>arguments[u]);if(o.slice(0,-1).forEach((u,a)=>{Xi(Zi(Ye(u)?Ke(u):u.shape,Ye(o[a+1])?Ke(o[a+1]):o[a+1].shape),`When passing multiple arrays into the \`${t.name}\` function, all of the arrays must have the same shape!`)}),o.length>0){let u=$d(o.map(l=>l.length?l.length:l.values.length)),a=Ld(0,u).map(l=>{let f=Object.keys(arguments).map(h=>Ye(arguments[h])?arguments[h][l]:eo(arguments[h])||Qi(arguments[h])?arguments[h].values[l]:arguments[h]);return e(...f)});if(n)try{if(i.length===1&&Zi(Ke(i[0]),Ke(a))){let l=new Wi(a);return l.index=i[0].index.slice(),l.columns=i[0].columns.slice(),l}else return new Wi(a)}catch{return a}if(r)try{if(s.length===1&&s[0].length===a.length){let l=new Hi(a);return l.name=s[0].name,l.index=s[0].index.slice(),l}else return new Hi(a)}catch{return a}return a}else return t(...arguments)}}to.exports=Gd});var $e=c((FN,ro)=>{var Vd=g(),Wd=v();function Hd(t){try{return Vd(t)?typeof t=="bigint"?t<0?-t:t:Math.abs(t):NaN}catch{return NaN}}ro.exports=Wd(Hd)});var Le=c((MN,no)=>{var Xd=g(),Qd=v();function Zd(){try{let t=0,e=!1,r=Object.values(arguments);for(let n of r){if(!Xd(n))return NaN;typeof n=="bigint"&&(e=!0,n=Number(n)),t+=n}if(e)try{return BigInt(t)}catch{}return t}catch{return NaN}}no.exports=Qd(Zd)});var Te=c((BN,so)=>{var ep=v();function tp(t,e){try{return e(t)}catch{return NaN}}so.exports=ep(tp)});var oo=c((UN,io)=>{var rp=g(),np=v();function sp(t){try{return rp(t)?(typeof t=="bigint"&&(t=Number(t)),Math.acos(t)):NaN}catch{return NaN}}io.exports=np(sp)});var ao=c((PN,uo)=>{var ip=g(),op=v();function up(t){try{return ip(t)?(typeof t=="bigint"&&(t=Number(t)),Math.asin(t)):NaN}catch{return NaN}}uo.exports=op(up)});var lo=c((zN,co)=>{var ap=g(),cp=v();function lp(t){try{return ap(t)?(typeof t=="bigint"&&(t=Number(t)),Math.atan(t)):NaN}catch{return NaN}}co.exports=cp(lp)});var ho=c((CN,fo)=>{var fp=d(),hp=fe(),mp=p(),dp=b(),pp=y(),gp=Oe();function Ct(t,e){if(dp(t)){let r=Ct(t.values,e);return[t.index[r[0]],t.columns[r[1]]]}if(pp(t)){let r=Ct(t.values,e);return t.index[r]}fp(mp(t),"The `argmax` function only works on arrays, Series, and DataFrames!");try{let r=hp(t,gp(t,e));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch(r){console.log(r);return}}fo.exports=Ct});var kt=c((kN,mo)=>{var yp=A();function qp(t,e){return yp(t,{shouldDropNaNs:e}).min}mo.exports=qp});var go=c((JN,po)=>{var bp=d(),Np=fe(),vp=p(),wp=b(),Sp=y(),Op=kt();function Jt(t,e){if(wp(t)){let r=Jt(t.values,e);return[t.index[r[0]],t.columns[r[1]]]}if(Sp(t)){let r=Jt(t.values,e);return t.index[r]}bp(vp(t),"The `argmin` function only works on arrays, Series, and DataFrames!");try{let r=Np(t,Op(t,e));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch{return}}po.exports=Jt});var $t=c((RN,bo)=>{var yo=p(),Rt=ze(),Tp=b(),Yt=pe(),_p=z(),qo=g(),Dp=J(),Ip=y(),Kt=q();function B(t,e){if(Tp(t)||Ip(t))return t.apply(r=>B(r,e));if(yo(t))return t.map(r=>B(r,e));if(e==="null")return null;if(e==="number"){if(Kt(t))return NaN;let r=B(t,"boolean");if(Rt(r))return r?1:0;try{JSON.parse(t)}catch{let i=B(t,"date");if(Yt(i))return i.getTime()}let n=parseFloat(t);return isNaN(n)?NaN:n}if(e==="int"){let r=B(t,"number");return r>=0?Math.floor(r):Math.ceil(r)}if(e==="float")return B(t,"number");if(e==="bigint")return typeof t=="bigint"?t:BigInt(B(t,"int"));if(e==="boolean"){if(Rt(t))return t;if(qo(t))return t===0?!1:t===1?!0:null;try{let r=(typeof t=="object"?t.toString()==="null"?"false":JSON.stringify(t):t.toString()).trim().toLowerCase();return r==="true"||r==="yes"||r==="y"?!0:r==="false"||r==="no"||r==="n"?!1:null}catch{return null}}if(e==="date"){if(Yt(t))return t;if(Kt(t))return null;let r=parseFloat(t);if(!isNaN(r)){let s=new Date(t);return Yt(s)?s:null}let n=Date.parse(t);return isNaN(n)?null:new Date(n)}if(e==="object"){if(Dp(t))return t;let r=B(t,"boolean");if(Rt(r))return null;try{let s=B(t,"number");if(qo(s))return JSON.parse(t),null}catch{}let n=B(t,"date");if(n)return n;try{let s=JSON.parse(t);return yo(s)?s.map(i=>B(i,e)):s}catch{return null}}if(e==="string")return Kt(t)?_p(t,void 0)?"undefined":"null":t instanceof Date?t.toJSON():(()=>typeof t=="object"?t===null?"null":JSON.stringify(t):t.toString())()}bo.exports=B});var vo=c((YN,No)=>{var xp=g(),Ap=v();function Ep(t){try{return xp(t)?typeof t=="bigint"?t:Math.ceil(t):NaN}catch{return NaN}}No.exports=Ap(Ep)});var Oo=c((KN,So)=>{var jp=$e(),wo=g(),Fp=q(),Mp=v();function Bp(t,e){try{if(!wo(t))return NaN;if(typeof t=="bigint")return t;if(Fp(e))e=1e-10;else if(!wo(e))return NaN;return jp(t)<e?0:t}catch{return NaN}}So.exports=Mp(Bp)});var G=c(($N,To)=>{var Up=p(),Pp=b(),zp=g(),Cp=y(),kp=v();function Lt(t){if(Pp(t)||Cp(t)){let e=t.copy();return e.values=Lt(e.values),e}if(Up(t))return t.map(e=>Lt(e));try{let e=JSON.parse(t);return zp(e)?typeof e=="bigint"?Number(e):e>=0?Math.floor(e):Math.ceil(e):NaN}catch{return NaN}}To.exports=kp(Lt)});var Io=c((LN,Do)=>{var Jp=G(),Gt=g(),Rp=v();function _o(t,e,r){try{return Gt(t)?Gt(e)?Gt(r)?typeof t=="bigint"?BigInt(_o(Jp(t),e,r)):t<e?e:t>r?r:t:NaN:NaN:NaN}catch{return NaN}}Do.exports=Rp(_o)});var Ve=c((GN,Ao)=>{var xo=d(),Yp=P(),Kp=G(),$p=p(),Lp=b(),Gp=g(),Vp=y();function Ge(t,e){function*r(n,s){if(s>n.length)yield n;else if(s<=0)yield[];else if(n.length<2)yield n;else for(let i=0;i<n.length;i++){let o=n[i],u=n.slice(i+1);if(!(u.length<s-1)&&s-1>=0)for(let a of Ge(u,s-1))yield[o].concat(a)}}return Lp(t)||Vp(t)?Ge(t.values,e):(xo($p(t),"The `combinations` function only works on arrays, Series, and DataFrames!"),xo(Gp(e)&&Kp(e)===e&&e>=0,"`r` must be a non-negative integer!"),r(Yp(t),e))}function Wp(t,e){let r=[];for(let n of Ge(t,e))r.push(n.slice());return r}Ao.exports={combinations:Wp,combinationsIterator:Ge}});var Wt=c((VN,Eo)=>{var Hp=d(),Xp=p(),Qp=b(),Zp=z(),eg=y(),Vt=C();function tg(){let t=Object.values(arguments).map(r=>Qp(r)||eg(r)?Vt(r.values):(Hp(Xp(r),"The `intersect` function only works on arrays, Series, and DataFrames!"),Vt(r)));return Vt(t).filter(r=>t.every(n=>n.findIndex(s=>Zp(s,r))>-1))}Eo.exports=tg});var Ht=c((WN,Co)=>{var{DataFrame:jo,Series:Fo}=ue(),We=d(),rg=Wt(),Mo=p(),Bo=b(),Uo=y(),Po=q(),zo=w(),ae=class{constructor(e){We(Po(e)||e===ae.DROP_NAN_MODE||e===ae.DROP_MISSING_MODE,"The `mode` value passed into the `IndexMatcher` constructor must be undefined or one of [IndexMatcher.DROP_NAN_MODE, IndexMatcher.DROP_MISSING_MODE]! (By default, the mode is `Indexer.DROP_MISSING_MODE`.)"),this.mode=Po(e)?ae.DROP_NAN_MODE:e,this.index=null}fit(){let e=[];return Object.values(arguments).forEach(r=>{if(Mo(r)){let n=zo(r);if(n.length===1)r=new Fo(r);else if(n.length===2)r=new jo(r);else throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}We(Bo(r)||Uo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),this.mode===ae.DROP_MISSING_MODE?e.push(r.dropMissing().index):e.push(r.dropNaN().index)}),this.index=rg(...e),this}transform(){We(!!this.index,"The IndexMatcher hasn't been fitted yet! Please call the `fit` method before calling the `transform` method.");let e=Object.values(arguments).map(r=>{if(Mo(r)){let n=zo(r);if(n.length===1)return new Fo(r).get(this.index).values;if(n.length===2)return new jo(r).get(this.index,null).values;throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}return We(Bo(r)||Uo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),r.get(this.index,null)});return e.length===1?e[0]:e}fitAndTransform(){return this.fit(...arguments).transform(...arguments)}},_e=ae;ft(_e,"DROP_NAN_MODE","DROP_NAN_MODE"),ft(_e,"DROP_MISSING_MODE","DROP_MISSING_MODE");Co.exports=_e});var Xt=c((XN,$o)=>{var ko=d(),ng=Ht(),Jo=p(),He=g(),Ro=y(),Yo=w(),Ko=A();function Xe(t,e,r,n){if(Ro(t))return Xe(t.values,e);if(Ro(e))return Xe(t,e.values);if(ko(Jo(t)&&Jo(e)&&Yo(t).length===1&&Yo(e).length===1,"The `covariance` function only works on 1-dimensional arrays and Series!"),ko(t.length===e.length,"The two arrays or Series passed into the `covariance` function must have the same length!"),r)return Xe(...new ng().fitAndTransform(t,e),!1,n);try{let s=Ko(t,{stdev:n}),i=Ko(e,{stdev:n}),o=Number(s.mean),u=Number(i.mean);if(!He(o)||!He(u))return NaN;let a=Math.max(t.length,e.length),l=0;for(let f=0;f<a;f++){let h=t[f],m=e[f];if(!He(h))return NaN;if(!He(m))return NaN;typeof h=="bigint"&&(h=Number(h)),typeof m=="bigint"&&(m=Number(m)),l+=(h-o)*(m-u)}return n?[l/t.length,s,i]:l/t.length}catch{return NaN}}$o.exports=Xe});var Xo=c((QN,Ho)=>{var Lo=d(),sg=Xt(),Go=p(),Vo=y(),Wo=w();function Qt(t,e,r){if(Vo(t))return Qt(t.values,e);if(Vo(e))return Qt(t,e.values);Lo(Go(t)&&Go(e)&&Wo(t).length===1&&Wo(e).length===1,"The `correl` function only works on 1-dimensional arrays and Series!"),Lo(t.length===e.length,"The two arrays or Series passed into the `correl` function must have the same length!");try{let[s,i,o]=sg(t,e,r,!0),u=i.stdev*o.stdev;return s/u}catch{return NaN}}Ho.exports=Qt});var Zo=c((ZN,Qo)=>{var ig=g(),og=v();function ug(t){try{return ig(t)?(typeof t=="bigint"&&(t=Number(t)),Math.cos(t)):NaN}catch{return NaN}}Qo.exports=og(ug)});var tu=c((e0,eu)=>{eu.exports=Object.freeze({boolean:"boolean",date:"date",null:"null",number:"number",object:"object",string:"string"})});var uu=c((t0,ou)=>{var ag=d(),ru=p(),nu=b(),cg=z(),su=y(),iu=C();function Zt(t,e){if(nu(t)||su(t))return Zt(t.values,e);if(nu(e)||su(e))return Zt(t,e.values);ag(ru(t)&&ru(e),"The `diff` function only works on arrays, Series, and DataFrames!");let r=iu(t),n=iu(e),s=[];return r.forEach(i=>{n.findIndex(o=>cg(o,i))<0&&s.push(i)}),s}ou.exports=Zt});var Qe=c((r0,lu)=>{var au=g(),lg=v();function cu(t,e){try{if(!au(t))return NaN;if(!au(e))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let r=cu(Number(t),Number(e));try{return BigInt(r)}catch{return r}}return Math.pow(t,e)}catch{return NaN}}lu.exports=lg(cu)});var er=c((n0,hu)=>{var fg=g(),hg=v();function fu(t){try{if(!fg(t))return NaN;if(typeof t=="bigint"){let e=fu(Number(t));try{return BigInt(e)}catch{return e}}return Math.sqrt(t)}catch{return NaN}}hu.exports=hg(fu)});var tr=c((s0,mu)=>{var mg=g(),dg=v();function pg(){try{let t=Object.values(arguments);if(t.length===0)return NaN;let e=!1,r=1;for(let n of t){if(!mg(n))return NaN;typeof n=="bigint"&&(e=!0,n=Number(n)),r*=n}if(e)try{return BigInt(r)}catch{}return r}catch{return NaN}}mu.exports=dg(pg)});var ce=c((i0,du)=>{var gg=tr();function yg(){return gg(...arguments)}du.exports=yg});var rr=c((o0,pu)=>{var qg=Le(),bg=ce();function Ng(t,e){return qg(t,bg(e,-1))}pu.exports=Ng});var Ze=c((u0,gu)=>{var vg=A();function wg(t,e){return vg(t,{shouldDropNaNs:e}).sum}gu.exports=wg});var Su=c((a0,wu)=>{var Sg=$e(),Og=d(),yu=p(),qu=b(),Tg=z(),bu=g(),Nu=y(),_g=Qe(),vu=w(),Dg=er(),Ig=rr(),xg=Ze();function nr(t,e){if(bu(t)&&bu(e))return Sg(t-e);if(qu(t)||Nu(t))return nr(t.values,e);if(qu(e)||Nu(e))return nr(t,e.values);yu(t)&&yu(e)&&Og(Tg(vu(t),vu(e)),"If passing two arrays, Series, or DataFrames into the `distance` function, then those objects must have the same shape!");try{return Dg(xg(_g(Ig(t,e),2)))}catch{return NaN}}wu.exports=nr});var Tu=c((c0,Ou)=>{var Ag=Qe(),Eg=ce();function jg(t,e){return Eg(t,Ag(e,-1))}Ou.exports=jg});var or=c((l0,Au)=>{var{DataFrame:_u,Series:Du}=ue(),sr=d(),Iu=p(),ir=b(),et=y(),Fg=ce(),tt=w(),Mg=Ze(),xu=X();function V(t,e){if(ir(t)){let s=V(t.values,e);if(tt(s).length===1){let i=new Du(s);return i.name=et(e)?e.name:i.name,i.index=t.index.slice(),i}else{let i=new _u(s);return i.index=t.index.slice(),ir(e)&&(i.columns=e.columns.slice()),i}}if(ir(e)){let s=V(t,e.values);if(tt(s).length===1){let i=new Du(s);return i.name=et(t)?t.name:i.name,i.index=e.columns.slice(),i}else{let i=new _u(s);return i.columns=e.columns.slice(),i}}if(et(t))return V(t.values,e);if(et(e))return V(t,e.values);sr(Iu(t)&&Iu(e),"The `dot` function only works on arrays, Series, and DataFrames!");let r=tt(t),n=tt(e);if(sr(r.length<=2&&n.length<=2,"I'm not smart enough to know how to get the dot-product of arrays that have more than 2 dimensions. Sorry for the inconvenience! Please only pass 1- or 2-dimensional arrays into the `dot` function!"),sr(r[r.length-1]===n[0],`There's a dimension misalignment in the two arrays you passed into the \`dot\` function. (${r[r.length-1]} !== ${n[0]})`),r.length===1&&n.length===1)return Mg(Fg(t,e));if(r.length===1&&n.length===2)return xu(e).map(s=>V(t,s));if(r.length===2&&n.length===1)return t.map(s=>V(s,e));if(r.length===2&&n.length===2){let s=xu(e),i=[];for(let o=0;o<t.length;o++){let u=[];for(let a=0;a<s.length;a++)u.push(V(t[o],s[a]));i.push(u)}return i}}Au.exports=V});var ur=c((f0,ju)=>{var Bg=d(),Ug=p(),Pg=b(),zg=y(),Cg=q();function Eu(t){if(Pg(t)||zg(t))return t.dropMissing(...Object.values(arguments).slice(1));Bg(Ug(t),"The `dropMissing` function only works on arrays, Series, and DataFrames!");let e=[];return t.forEach(r=>{try{return e.push(Eu(r))}catch{Cg(r)||e.push(r)}}),e}ju.exports=Eu});var ku=c((h0,Cu)=>{var Fu=d(),Mu=p(),Bu=b(),kg=z(),Uu=y(),Pu=q(),zu=w();function rt(t,e){if(Bu(t)||Uu(t))return rt(t.values,e);if(Bu(e)||Uu(e))return rt(t,e.values);Fu(Mu(t)&&Mu(e),"The `dropMissingPairwise` function only works on arrays, Series, and DataFrames!"),Fu(kg(zu(t),zu(e)),"The two arrays, Series, and/or DataFrames passed into the `dropMissingPairwise` function must have the same shape!");let r=[],n=[];for(let s=0;s<t.length;s++)try{let[i,o]=rt(t[s],e[s]);r.push(i),n.push(o)}catch{!Pu(t[s])&&!Pu(e[s])&&(r.push(t[s]),n.push(e[s]))}return[r,n]}Cu.exports=rt});var Vu=c((m0,Gu)=>{var Ju=d(),Ru=p(),Yu=b(),Jg=z(),Ku=g(),$u=y(),Lu=w();function nt(t,e){if(Yu(t)||$u(t))return nt(t.values,e);if(Yu(e)||$u(e))return nt(t,e.values);Ju(Ru(t)&&Ru(e),"The `dropNaNPairwise` only works on arrays, Series, and DataFrames!"),Ju(Jg(Lu(t),Lu(e)),"The two arrays, Series, and/or DataFrames passed into the `dropNaNPairwise` must have the same shape!");let r=[],n=[];for(let s=0;s<t.length;s++)try{let[i,o]=nt(t[s],e[s]);r.push(i),n.push(o)}catch{Ku(t[s])&&Ku(e[s])&&(r.push(t[s]),n.push(e[s]))}return[r,n]}Gu.exports=nt});var Hu=c((d0,Wu)=>{var Rg=ur();function Yg(t){return Rg(t)}Wu.exports=Yg});var cr=c((p0,Zu)=>{var Xu=d(),Qu=p(),Kg=b(),$g=D(),Lg=y();function ar(t,e){if(Kg(t)||Lg(t))return ar(t.values,e);Xu(Qu(t),"The first argument passed into the `every` function must be an array, Series, or DataFrame!"),Xu($g(e),"The second argument passed into the `every` function must be a function!");for(let r of t)if(Qu(r)){if(!ar(r,e))return!1}else if(!e(r))return!1;return!0}Zu.exports=ar});var ta=c((g0,ea)=>{var Gg=g(),Vg=v();function Wg(t){try{if(!Gg(t))return NaN;if(typeof t=="bigint"){if(t===0n)return 1n;t=Number(t)}return Math.exp(t)}catch{return NaN}}ea.exports=Vg(Wg)});var sa=c((y0,na)=>{var ra=G(),Hg=v();function lr(t){try{return typeof t=="bigint"?BigInt(lr(ra(t))):t!==ra(t)?NaN:t<=1?1:t*lr(t-1)}catch{return NaN}}na.exports=Hg(lr)});var aa=c((q0,ua)=>{var Xg=d(),ia=p(),Qg=b(),Zg=D(),oa=J(),ey=y();function fr(t,e){if(Qg(t)||ey(t))return fr(t.values,e);if(Xg(oa(t)||ia(t),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `find` function!"),!Zg(e)){let s=e;e=i=>i===s}function r(s,i,o){if(o=o||[],o.indexOf(s)>-1)return null;if(oa(s)){o.push(s);let u=Object.keys(s).concat(Object.getOwnPropertySymbols(s));for(let a=0;a<u.length;a++){let l=u[a],f=s[l];if(i(f))return f;let h=r(f,i,o);if(h)return h}}else if(ia(s)){o.push(s);for(let u=0;u<s.length;u++){let a=s[u];if(i(a))return a;let l=r(a,i,o);if(l)return l}}else if(i(s))return s;return null}function n(s){try{return e(s)}catch{return!1}}return r(t,n)}ua.exports=fr});var ha=c((b0,fa)=>{var ty=d(),ca=p(),ry=b(),ny=D(),la=J(),sy=y();function hr(t,e){if(ry(t)||sy(t))return hr(t.values,e);if(ty(la(t)||ca(t),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `findAll` function!"),!ny(e)){let i=e;e=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(la(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i)),l=[];for(let f=0;f<a.length;f++){let h=a[f],m=i[h],N=!1;o(m)&&(l.push(m),N=!0);let O=r(m,o,u);O&&O.length>0&&O.slice(N?1:0).forEach(_=>l.push(_))}return l}else if(ca(i)){u.push(i);let a=[];for(let l=0;l<i.length;l++){let f=i[l],h=!1;o(f)&&(a.push(f),h=!0);let m=r(f,o,u);m&&m.length>0&&m.slice(h?1:0).forEach(N=>a.push(N))}return a}else if(o(i))return[i];return null}function n(i){try{return e(i)}catch{return!1}}let s=r(t,n);return s&&s.length>0?s:null}fa.exports=hr});var da=c((N0,ma)=>{var iy=g(),oy=v();function uy(t){try{if(t==="Infinity")return 1/0;if(t==="-Infinity")return-1/0;let e=JSON.parse(t);return iy(e)?e:NaN}catch{return NaN}}ma.exports=oy(uy)});var ga=c((v0,pa)=>{var ay=g(),cy=v();function ly(t){try{return ay(t)?typeof t=="bigint"?t:Math.floor(t):NaN}catch{return NaN}}pa.exports=cy(ly)});var st=c((w0,ya)=>{var fy=g(),hy=me(),my=Ie();function dy(t){fy(t)&&(t=[t]);let e=[],r=hy(t);for(let n=0;n<r;n++)e.push(0);return my(e,t)}ya.exports=dy});var Na=c((S0,ba)=>{var it=d(),qa=G(),py=g(),gy=q(),yy=st();function qy(t){typeof t=="bigint"&&(t=qa(t)),it(!gy(t),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),it(py(t),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),it(qa(t)===t,"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),it(t>0,"You must pass an integer greater than 0 (representing the size) into the `identity` function!");let e=yy([t,t]);for(let r=0;r<t;r++)e[r][r]=1;return e}ba.exports=qy});var wa=c((O0,va)=>{va.exports=["true","false","yes","no"]});var Oa=c((T0,Sa)=>{Sa.exports=["null","none","nan","na","n/a","","undefined"]});var xa=c((_0,Ia)=>{var by=Te(),Ny=d(),vy=wa(),wy=$t(),Sy=xe(),Oy=cr(),Ty=P(),Ta=G(),mr=p(),_y=b(),_a=pe(),Da=g(),Dy=y(),Iy=x(),xy=Oa();function ot(t){return t.type==="number"&&(typeof t.value<"u"?t.isInteger=Ta(t.value)===t.value:t.isInteger=Oy(t.values,e=>Da(e)?Ta(e)===e:!0)),t}function ut(t){if(_y(t)){let i=t.copy(),o=ut(t.values);return i.values=o.values,ot({type:o.type,values:i})}if(Dy(t)){let i=t.copy(),o=ut(t.values);return i.values=o.values,ot({type:o.type,values:i})}if(!mr(t)){let i=ut([t]);return i.value=i.values[0],delete i.values,ot(i)}Ny(mr(t),"The `inferType` function only works on arrays, Series, and DataFrames!");let e=Ty(t).map(i=>{if(i===void 0)return"null";try{if(typeof i=="object"){let a=new Date(i.getTime());if(_a(a))return"date"}}catch{}Iy(i)||(typeof i=="bigint"?i=i.toString()+"n":i=JSON.stringify(i));let u=i.toLowerCase().trim();if(xy.indexOf(u)>-1)return"null";if(vy.indexOf(u)>-1)return"boolean";try{if(i.match(/^-?\d+n$/g))return"bigint";let a=JSON.parse(i);return Da(a)?"number":typeof a=="object"?mr(a)?"string":"object":"string"}catch{let l=new Date(i);return _a(l)?"date":"string"}}),r=Sy(e),s=r.values.toSorted((i,o)=>r.get(o)-r.get(i))[0];return ot({type:s,values:by(t,i=>wy(i,s))})}Ia.exports=ut});var Ma=c((D0,Fa)=>{var Aa=Le(),Q=d(),Ay=or(),Ey=p(),jy=b(),Ea=g(),ja=ce(),Fy=w();function at(t){if(jy(t)){let r=t.copy();return r.values=at(r.values),r}Q(Ey(t),"The `inverse` function only works on square 2-dimensional arrays or DataFrames!");let e=Fy(t);if(Q(e.length===2,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),Q(e[0]===e[1],"The array passed into the `inverse` function must be exactly two-dimensional and square!"),Q(e[0]>=0,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),e[0]===0)return t;if(e[0]===1){Q(t[0][0]!==0,"This matrix cannot be inverted!");let r=t[0][0];return typeof r=="bigint"&&(r=Number(r)),1/r}else if(e[0]===2){let r=t[0][0],n=t[0][1],s=t[1][0],i=t[1][1];typeof r=="bigint"&&(r=Number(r)),typeof n=="bigint"&&(n=Number(n)),typeof s=="bigint"&&(s=Number(s)),typeof i=="bigint"&&(i=Number(i));let o=r*i-n*s;Q(o!==0,"This matrix cannot be inverted!");let u=[[i,-n],[-s,r]];return ja(u,1/o)}else if(e[0]>1){let r=(n,s)=>Ea(n)||Ea(s)?ja(n,s):Ay(n,s);for(let n=1;n<e[0]-1;n++)try{let s=t.slice(0,n).map(_=>_.slice(0,n)),i=t.slice(0,n).map(_=>_.slice(n,e[0])),o=t.slice(n,e[0]).map(_=>_.slice(0,n)),u=t.slice(n,e[0]).map(_=>_.slice(n,e[0])),a=at(s),l=at(Aa(u,r(-1,r(r(o,a),i)))),f=Aa(a,r(r(r(r(a,i),l),o),a)),h=r(-1,r(r(a,i),l)),m=r(-1,r(r(l,o),a)),N=l;return f.map((_,lt)=>_.concat(h[lt])).concat(m.map((_,lt)=>_.concat(N[lt])))}catch{}Q(!1,"This matrix cannot be inverted!")}}Fa.exports=at});var Ua=c((I0,Ba)=>{var My=new Function(`
16
+ `),r}Cs.exports=Fh});var Ue=c((iN,Js)=>{var jh=d(),Mh=g();function Bh(t,e){jh(Mh(t),"The `leftPad` function only works on numbers!");let r=t.toString();for(;r.length<e;)r="0"+r;return r}Js.exports=Bh});var Ys=c((oN,Rs)=>{var Uh=Ue(),Ph=E();function zh(t,e){let r=e?t:t.copy();return r.index=Ph(0,t.shape[0]).map(n=>"row"+Uh(n,(r.index.length-1).toString().length)),r}Rs.exports=zh});var Pe=c((uN,Ks)=>{var{random:Ch}=H(),kh=d(),Jh=p(),Rh=b(),Yh=y();function Kh(t){if(Rh(t)||Yh(t))return t.shuffle(...Object.values(arguments).slice(1));kh(Jh(t),"The `shuffle` function only works on arrays, Series, and DataFrames!");let e=[],r=t.slice();for(let n=0;n<t.length;n++){let s=Math.floor(Ch()*r.length);e.push(r.splice(s,1)[0])}return e}Ks.exports=Kh});var Gs=c((aN,Ls)=>{var $h=d(),Lh=q(),$s=Pe();function Gh(t,e){return Lh(e)&&(e=0),$h(e===0||e===1,"The `axis` parameter to the `shuffle` must be 0, 1, or undefined."),t.get(e===0?$s(t.index):null,e===1?$s(t.columns):null)}Ls.exports=Gh});var ze=c((cN,Vs)=>{function Vh(t){return typeof t=="boolean"}Vs.exports=Vh});var Zs=c((lN,Qs)=>{var{random:Wh}=H(),F=d(),Ws=p(),It=ze(),Xs=D(),Ce=g(),ie=x(),xt=q(),Hh=re(),Xh=E(),Hs=w(),At=se();function Qh(t,e,r){return Xs(e)?Zh(t,e,r):em(t,e,r)}function Zh(t,e,r){if(r=xt(r)?0:r,F(Xs(e),"When sorting a DataFrame using a function, the first argument to the `sort` method must be a function!"),F(Ce(r),"When sorting a DataFrame using a function, the second argument to the `sort` method must be null, undefined, 0, or 1 to indicate the axis along which the data should be sorted! An axis of 0 means that the rows will be sorted relative to each other, whereas an axis of 1 means that the columns will be sorted relative to each other."),r===0){let n=At(t.index,(s,i)=>e(t.get(s,null),t.get(i,null)));return t.get(n,null)}else{let n=At(t.columns,(s,i)=>e(t.get(null,s),t.get(null,i)));return t.get(null,n)}}function em(t,e,r){let n=t.copy(),s=Wh().toString();n=n.assign(s,n.index),xt(e)&&(e=[s],r=[!0]),(Ce(e)||ie(e))&&(e=[e],(It(r)||ie(r))&&(r=[r])),F(Ws(e),"The first parameter of the `sort` method must be (1) a string or index representing a column name or index, respectively; (2) a 1-dimensional array of strings and/or indices; or (3) null."),F(Hs(e).length===1,"The first parameter of the `sort` method must be (1) a string or index representing a column name or index, respectively; (2) a 1-dimensional array of strings and/or indices; or (3) null."),xt(r)&&(r=Xh(0,e.length).map(()=>!0)),F(Ws(r),"The second parameter of the `sort` method must be (1) a string or boolean representing the sort direction ('ascending' / 'descending', or true / false); (2) a 1-dimensional array of strings and/or booleans; or (3) null."),F(Hs(r).length===1,"The second parameter of the `sort` method must be (1) a string or boolean representing the sort direction ('ascending' / 'descending', or true / false); (2) a 1-dimensional array of strings and/or booleans; or (3) null."),F(e.length===r.length,"The arrays passed into the `sort` method must be equal in length."),e=e.map(o=>{if(F(ie(o)||Ce(o),"Column references can either be column names (as strings) or column indices (as whole numbers)."),ie(o)){let u=n.columns.indexOf(o);return F(u>-1,`The column "${o}" does not exist!`),u}if(Ce(o))return F(Hh(o),"Column indices must be whole numbers!"),F(o<n.columns.length,`The index ${o} is out of bounds!`),o}),r=r.map(o=>{if(F(ie(o)||It(o),"Direction references can either be strings ('ascending' or 'descending') or booleans (true or false)."),ie(o)){let u=o.trim().toLowerCase();return F(u==="ascending"||u==="descending","Direction references can either be strings ('ascending' or 'descending') or booleans (true or false)."),u==="ascending"}if(It(o))return o}),n.values=At(n.values,(o,u)=>{let a=0;for(;o[e[a]]===u[e[a]]&&a<e.length;)a++;let l=r[a];if(o[e[a]]===u[e[a]])return 0;if(o[e[a]]<u[e[a]])return l?-1:1;if(o[e[a]]>u[e[a]])return l?1:-1});let i=n.columns.indexOf(s);return n.index=n.values.map(o=>o[i]),n=n.dropColumns(s),n}Qs.exports=Qh});var ti=c((fN,ei)=>{var tm=d(),rm=q();function nm(t,e){rm(e)?e=0:tm(e===0||e===1,"The axis parameter of the `toDetailedObject` method must be undefined, 0, or 1. An axis of 0 indicates that the returned object should be organized first by rows and then by columns. An axis of 1 indicates that the returned object should be organized first by columns and then by rows.");let r={};return e===0?t.index.forEach((n,s)=>{let i={};t.columns.forEach((o,u)=>{i[o]=t.values[s][u]}),r[n]=i}):t.columns.forEach((n,s)=>{let i={};t.index.forEach((o,u)=>{i[o]=t.values[u][s]}),r[n]=i}),r}ei.exports=nm});var Et=c((hN,ri)=>{function sm(t,e){return JSON.stringify(t.toObject(e))}ri.exports=sm});var ni=c((mN,jt)=>{var Ft=Z(),im=Et();function om(t,e,r){let n=im(t,r),s=!1,i=!1,o,u;try{let a=e;if(e.includes("/")){let f=e.split("/");a=f[f.length-1]}let l=document.createElement("a");l.href=`data:application/json;charset=utf-8,${encodeURIComponent(n)}`,l.download=a,l.dispatchEvent(new MouseEvent("click")),s=!0}catch(a){o=a}try{let a=Or("fs"),l=Or("path");a.writeFileSync(l.resolve(e),n,"utf8"),i=!0}catch(a){u=a}if(!s&&!i)throw typeof window<"u"?new Ft(o):typeof jt<"u"?new Ft(u):new Ft("I don't know what's going wrong, but it doesn't seem like you're in Node or the browser, and we couldn't download and/or write the file to disk!");return t}jt.exports=om});var ii=c((dN,si)=>{function um(t){let e={};return t.columns.forEach(r=>{e[r]=t.get(r).values}),e}si.exports=um});var X=c((pN,ai)=>{var oi=d(),am=p(),cm=b(),lm=y(),fm=R(),ui=ye(),hm=w();function mm(t){if(cm(t)||lm(t))return t.transpose();oi(am(t),"The `transpose` function only works on arrays, Series, and DataFrames!");let e=hm(t);if(oi(e.length<=2,"I'm not smart enough to know how to transpose arrays that have more than 2 dimensions. Sorry for the inconvenience! Please only pass 1- or 2-dimensional arrays into the `transpose` function!"),e.length===1)return ui(t);if(e.length===2){let r=fm(ui(e));for(let n=0;n<e[0];n++)for(let s=0;s<e[1];s++)r[s][n]=t[n][s];return r}}ai.exports=mm});var fi=c((gN,li)=>{var dm=d(),pm=p(),gm=De(),ym=y(),qm=w();function ci(t,e,r){if(ym(r))return new t(e.values.concat(r.values));if(pm(r)){let n=qm(r);dm(n.length===1&&!gm(n),"Only vectors can be appended to Series!");let s=e.copy();return r.forEach((i,o)=>{s._values.push(i),s._index.push("item"+(e.values.length+o))}),s}return ci(e,[r])}li.exports=ci});var mi=c((yN,hi)=>{var bm=d(),Nm=D();function vm(t,e){bm(Nm(e),"The parameter to the `apply` method must be a function.");let r=t.copy();return r._values=r._values.map((n,s)=>e(n,s)),r}hi.exports=vm});var pi=c((qN,di)=>{var wm=q();function Sm(t){let e=t.copy(),r=[];return e._values=e.values.filter((n,s)=>wm(n)?!1:(r.push(e.index[s]),!0)),e._index=r,e}di.exports=Sm});var yi=c((bN,gi)=>{var Om=g();function Tm(t,e){let r=[],n=[];e.values.forEach((i,o)=>{Om(i)&&(n.push(i),r.push(e.index[o]))});let s=new t(n);return s.name=e.name,s.index=r,s}gi.exports=Tm});var bi=c((NN,qi)=>{var{copy:_m}=U();function Dm(t,e,r){let n=e.copy(),s=_m(n.index),i=[],o=n.values.filter((u,a)=>{let l=r(u,a,n.values);return l||i.push(n.index[a]),l});return i.forEach(u=>{s.splice(s.indexOf(u),1)}),o.length===0?(n=new t,n.name=e.name,n):(n.values=o,n.index=s,n)}qi.exports=Dm});var vi=c((vN,Ni)=>{var $=d(),Im=g(),xm=x(),Am=q(),Em=C();function Fm(t,e){(xm(e)||Im(e))&&(e=[e]);for(let n in e)typeof e[n]=="bigint"&&(e[n]=Number(e[n]));let r=Em((e||[]).map(n=>typeof n));return $(r.length<=2,"Only whole numbers and/or strings are allowed in `get` arrays!"),r.length===1&&$(r[0]==="string"||r[0]==="number","Only whole numbers and/or strings are allowed in `get` arrays!"),r.length===2&&($(r.indexOf("string")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!"),$(r.indexOf("number")>-1,"Only whole numbers and/or strings are allowed in `get` arrays!")),Am(e)||(e=e.map(n=>{if(typeof n=="string")return $(t.index.indexOf(n)>-1,`Index "${n}" does not exist!`),n;if(typeof n=="number")return $(n>=0,`Index ${n} is out of bounds!`),$(Math.floor(n)===n,"Indices must be integers!"),$(n<t.index.length,`Index ${n} is out of bounds!`),t.index[n]})),t.getSubsetByNames(e)}Ni.exports=Fm});var Si=c((wN,wi)=>{var Ne=d(),jm=p(),Mm=q(),Bm=re(),Um=E(),Pm=w();function zm(t,e){let r=t.shape;Mm(e)&&(e=Um(0,r[0])),Ne(jm(e),"The `indices` array must be 1-dimensional array of whole numbers."),Ne(Pm(e).length===1,"The `indices` array must be a 1-dimensional array of whole numbers."),Ne(e.length>0,"The `indices` array must contain at least one index."),e.forEach(s=>{Ne(Bm(s),"The `indices` array must be a 1-dimensional array of whole numbers."),Ne(s<t.index.length,`The row index ${s} is out of bounds.`)});let n=e.map(s=>t.index[s]);return t.getSubsetByNames(n)}wi.exports=zm});var Ti=c((SN,Oi)=>{var ve=d(),Cm=p(),km=x(),Jm=q(),Rm=w();function Ym(t,e,r){Jm(r)&&(r=e.index),ve(Cm(r),"The `indices` array must be a 1-dimensional array of strings."),ve(Rm(r).length===1,"The `indices` array must be a 1-dimensional array of strings."),ve(r.length>0,"The `indices` array must contain at least one index name."),r.forEach(i=>{ve(km(i),"The `indices` array must contain only strings."),ve(e.index.indexOf(i)>-1,`The name "${i}" does not exist in the index.`)});let n=r.map(i=>e.values[e.index.indexOf(i)]);if(n.length===1)return n[0];let s=new t(n);return s.index=r,s.name=e.name,s}Oi.exports=Ym});var Ii=c((ON,Di)=>{var{copy:Km}=U(),_i=E();function $m(t){let e=t.copy(),r=typeof window>"u"?20:10;if(e.index.length>r){e=e.get(_i(0,r/2).concat(_i(e.index.length-r/2,e.index.length)));let s=Km(e.index);s.splice(Math.floor(s.length/2),0,"..."),e.values.push("..."),e.index.push("..."),e=e.get(s)}let n={};return e.values.forEach((s,i)=>{let o={};o[e.name]=s,n[e.index[i]]=o}),console.table(n),console.log("Shape:",t.shape,`
17
+ `),t}Di.exports=$m});var Ai=c((TN,xi)=>{var Lm=Pe();function Gm(t){let e=t.copy();return e.get(Lm(e.index))}xi.exports=Gm});var Fi=c((_N,Ei)=>{var Vm=d(),Wm=D(),Hm=q(),Xm=se(),Qm=X();function Zm(t,e,r){r=r||((a,l)=>a<l?-1:1),Vm(Hm(r)||Wm(r),"You must pass undefined, null, or a comparison function as the second argument to the `sort` method!");let n=Qm([e.values,e.index]),s=Xm(n,(a,l)=>r(a[0],l[0])),i=[],o=[];s.forEach(a=>{i.push(a[0]),o.push(a[1])});let u=new t;return u._values=i,u._index=o,u.name=e.name,u}Ei.exports=Zm});var Bi=c((DN,Mi)=>{var ed=se(),ji=X();function td(t,e){let r=ji([e.values,e.index]);r=ji(ed(r,(s,i)=>{if(s[1]===i[1])return 0;if(s[1]<i[1])return-1;if(s[1]>i[1])return 1}));let n=new t(r[0]);return n.index=r[1],n.name=e.name,n}Mi.exports=td});var Pi=c((IN,Ui)=>{function rd(t){let e={};return e[t.name]={},t.index.forEach((r,n)=>{e[t.name][r]=t.values[n]}),e}Ui.exports=rd});var Ri=c((xN,Ji)=>{var{copy:ke}=U(),k=d(),Mt=p(),nd=x(),sd=q(),zi=Ue(),Ci=E(),Je=ye(),id=fi(),od=mi(),ud=pi(),ad=yi(),cd=bi(),ld=vi(),fd=Si(),hd=Ti(),md=Ii(),dd=Ai(),pd=Fi(),gd=Bi(),yd=Pi(),we=w(),qd=X(),ki=Symbol.for("@jrc03c/js-math-tools/series");Ji.exports=function(t){class e{static[Symbol.hasInstance](n){try{return!!n._symbol&&n._symbol===ki}catch{return!1}}constructor(n){if(this.name="data",Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:ki}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values},set(s){k(Mt(s),"The new values must be a 1-dimensional array!");let i=we(s);k(i.length===1,"The new array of values must be 1-dimensional!"),i[0]<this._index.length?this._index=this._index.slice(0,i[0]):i[0]>this._index.length&&(this._index=this._index.concat(Ci(this._index.length,i[0]).map(o=>"item"+zi(o,(s.length-1).toString().length)))),this._values=s}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(s){k(Mt(s),"The new index must be a 1-dimensional array of strings!"),k(s.length===this.shape[0],"The new index must be the same length as the old index!"),k(we(s).length===1,"The new index must be a 1-dimensional array of strings!"),s.forEach(i=>{k(nd(i),"All of the row names must be strings!")}),this._index=s}}),n){if(n instanceof e)this.name=n.name,this.values=ke(n.values),this.index=ke(n.index);else if(Mt(n)){let s=we(n);k(s.length===1,"When passing an array into the constructor of a Series, the array must be 1-dimensional!"),this.values=n}else if(n instanceof Object){let s=Object.keys(n).concat(Object.getOwnPropertySymbols(n)).map(u=>u.toString());k(s.length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!");let i=s[0],o=n[i];k(we(o).length===1,"When passing an object into the constructor of a Series, the object must have only 1 key-value pair, where the key is the name of the data and the value is the 1-dimensional array of values!"),this.name=i,this.values=o.slice()}}}get shape(){return we(this.values)}get length(){return this.shape[0]}get isEmpty(){return this.values.filter(n=>!sd(n)).length===0}clear(){let n=this.copy();return n.values.forEach((s,i)=>{n.values[i]=void 0}),n}get(n){return ld(this,n)}getSubsetByNames(n){return hd(e,this,n)}getSubsetByIndices(n){return fd(this,n)}loc(n){return this.getSubsetByNames(n)}iloc(n){return this.getSubsetByIndices(n)}reverse(){let n=new e(Je(this.values));return n.index=Je(this.index),n.name=this.name,n}resetIndex(){let n=this.copy();return n.index=Ci(0,this.shape[0]).map(s=>"item"+zi(s,(n.index.length-1).toString().length)),n}copy(){let n=new e;return n._values=ke(this.values),n._index=ke(this.index),n.name=this.name,n}append(n){return id(e,this,n)}apply(n){return od(this,n)}concat(n){return this.append(n)}dropMissing(n,s){return ud(this,n,s)}dropNaN(){return ad(e,this)}toObject(){return yd(this)}print(){return md(this)}shuffle(){return dd(this)}sort(n){return pd(e,this,n)}sortByIndex(){return gd(e,this)}filter(n){return cd(e,this,n)}toDataFrame(){let n=new t(qd([this.values]));return n.columns=[this.name],n.index=this.index,n}transpose(){let n=this.copy();return n.values=Je(n.values),n.index=Je(n.index),n}getDummies(){return this.toDataFrame().getDummies()}oneHotEncode(){return this.getDummies()}}return e}});var ue=c((AN,Gi)=>{var{copy:Bt}=U(),{random:bd}=H(),M=d(),Yi=xe(),Nd=Jn(),vd=Ln(),wd=Hn(),Sd=Qn(),Od=is(),Td=as(),_d=hs(),Dd=gs(),Id=bs(),Ki=Ts(),xd=js(),Ad=zs(),Ed=ks(),Fd=Ys(),jd=Gs(),Md=Zs(),Bd=ti(),Ud=ni(),Pd=Et(),zd=ii(),Se=p(),Cd=te(),kd=J(),Ut=q(),Pt=Ue(),Jd=R(),zt=E(),oe=w(),$i=X(),Li=Symbol.for("@jrc03c/js-math-tools/dataframe");function Re(t){let e="abcdefghijklmnopqrstuvwxyz1234567890",r="";for(let n=0;n<t;n++)r+=e[Math.floor(bd()*e.length)];return r}var T=class{static[Symbol.hasInstance](e){try{return!!e._symbol&&e._symbol===Li}catch{return!1}}constructor(e){if(Object.defineProperty(this,"_symbol",{configurable:!1,enumerable:!1,writable:!1,value:Li}),Object.defineProperty(this,"_values",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"values",{configurable:!0,enumerable:!0,get(){return this._values.length===0||!Ut(this._values[0])&&this._values[0].length===0?[[]]:this._values},set(r){M(Se(r),"The new values must be a 2-dimensional array!");let n=oe(r);M(n.length===2,"The new array of values must be 2-dimensional!"),n[0]<this._index.length?this._index=this._index.slice(0,n[0]):n[0]>this._index.length&&(this._index=this._index.concat(zt(this._index.length,n[0]).map(s=>"row"+Pt(s,(n[0]-1).toString().length)))),n[1]<this._columns.length?this._columns=this._columns.slice(0,n[1]):n[1]>this._columns.length&&(this._columns=this._columns.concat(zt(this._columns.length,n[1]).map(s=>"col"+Pt(s,(n[1]-1).toString().length)))),this._values=r}}),Object.defineProperty(this,"_columns",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"columns",{configurable:!0,enumerable:!0,get(){return this._columns},set(r){M(Se(r),"The new columns list must be a 1-dimensional array of strings!"),M(this.isEmpty||r.length===this.shape[1],"The new columns list must be the same length as the old columns list!"),M(oe(r).length===1,"The new columns list must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Re(8):s.trim()));let n=(()=>{let s=Yi(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Re(8):s),this._columns=r}}),Object.defineProperty(this,"_index",{value:[],configurable:!0,enumerable:!1,writable:!0}),Object.defineProperty(this,"index",{configurable:!0,enumerable:!0,get(){return this._index},set(r){M(Se(r),"The new index must be a 1-dimensional array of strings!"),M(this.isEmpty||r.length===this.shape[0],"The new index must be the same length as the old index!"),M(oe(r).length===1,"The new index must be a 1-dimensional array of strings!"),r=r.map(s=>(typeof s!="string"&&(s=JSON.stringify(s)||s.toString()),s.trim().length===0?"untitled_"+Re(8):s.trim()));let n=(()=>{let s=Yi(r),i={};return s.values.forEach(o=>{i[o]=s.get(o)}),i})();r=r.map(s=>n[s]>1?s+"_"+Re(8):s),this._index=r}}),M(Ut(e)||kd(e)||Se(e),"The `data` passed into the constructor of a DataFrame must be either (1) an object where the key-value pairs are (respectively) column names and 1-dimensional arrays of values, or (2) a 2-dimensional array of values."),e)if(e instanceof T)this.values=Bt(e.values),this.columns=Bt(e.columns),this.index=Bt(e.index);else if(Se(e)){let r=oe(e);M(r.length===2,"The `data` array passed into the constructor of a DataFrame must be 2-dimensional!"),M(!Cd(e),"The 2-dimensional array passed into the constructor of a DataFrame must not contain sub-arrays (i.e., rows) of different lengths!"),this.values=e}else{this._columns=Object.keys(e).concat(Object.getOwnPropertySymbols(e)).map(o=>o.toString());let r=[],n=null,s=null;this._columns.forEach(o=>{Ut(s)&&(n=o,s=e[o].length),M(e[o].length===s,`The object passed into the DataFrame constructor contains arrays of different lengths! The key "${n}" points to an array containing ${s} items, and the key "${o}" points to an array containing ${e[o].length} items.`),s=e[o].length;let u=e[o];r.push(u)}),this._values=$i(r);let i=oe(this.values);this._index=zt(0,i[0]).map(o=>"row"+Pt(o,(i[0]-1).toString().length))}}get shape(){return oe(this.values)}get length(){return this.shape[0]}get width(){return this.shape[1]}get rows(){return this.index}set rows(e){this.index=e}get isEmpty(){return this.values.length===0||this.values.every(e=>e.length===0)}clear(){let e=new T(Jd(this.shape));return e.columns=this.columns.slice(),e.index=this.index.slice(),e}get(e,r){if(arguments.length===0)return this;if(arguments.length===1)try{return this.get(null,e)}catch{return this.get(e,null)}return Id(this,e,r)}getSubsetByNames(e,r){return Ad(T,L,this,e,r)}getSubsetByIndices(e,r){return xd(this,e,r)}getDummies(e){return Ki(T,this,e)}oneHotEncode(e){return Ki(T,this,e)}transpose(){let e=new T($i(this.values));return e.columns=this.index.slice(),e.index=this.columns.slice(),e}get T(){return this.transpose()}resetIndex(e){return Fd(this,e)}copy(){return Sd(T,this)}assign(e,r){return wd(T,L,this,e,r)}apply(e,r){return vd(T,L,this,e,r)}dropMissing(e,r,n){return Td(T,L,this,e,r,n)}dropNaN(e,r,n){return _d(T,this,e,r,n)}drop(e,r){return Od(T,L,this,e,r)}dropColumns(e){return this.drop(null,e)}dropRows(e){return this.drop(e,null)}toDetailedObject(e){return Bd(this,e)}toObject(){return zd(this)}toJSONString(e){return Pd(this,e)}saveAsJSON(e,r){return Ud(this,e,r)}print(){return Ed(T,L,this)}sort(e,r){return Md(this,e,r)}sortByIndex(){return this.sort()}filter(e,r){return Dd(T,L,this,e,r)}shuffle(e){return jd(this,e)}append(e,r){return Nd(this,e,r)}concat(e,r){return this.append(e,r)}join(e,r){return this.append(e,r)}toString(){return JSON.stringify(this)}},L=Ri()(T);Gi.exports={DataFrame:T,Series:L}});var Oe=c((EN,Vi)=>{var Rd=A();function Yd(t,e){return Rd(t,{shouldDropNaNs:e}).max}Vi.exports=Yd});var v=c((FN,to)=>{var{DataFrame:Wi,Series:Hi}=ue(),Xi=d(),Ye=p(),Qi=b(),Zi=z(),Kd=D(),eo=y(),$d=Oe(),Ld=E(),Ke=w();function Gd(t){return Xi(Kd(t),"You must pass a function into the `vectorize` function!"),function e(){let r,n,s=[],i=[],o=Object.keys(arguments).filter(u=>{let a=arguments[u];return Ye(a)?!0:eo(a)?(r=!0,s.push(a),!0):Qi(a)?(n=!0,i.push(a),!0):!1}).map(u=>arguments[u]);if(o.slice(0,-1).forEach((u,a)=>{Xi(Zi(Ye(u)?Ke(u):u.shape,Ye(o[a+1])?Ke(o[a+1]):o[a+1].shape),`When passing multiple arrays into the \`${t.name}\` function, all of the arrays must have the same shape!`)}),o.length>0){let u=$d(o.map(l=>l.length?l.length:l.values.length)),a=Ld(0,u).map(l=>{let f=Object.keys(arguments).map(h=>Ye(arguments[h])?arguments[h][l]:eo(arguments[h])||Qi(arguments[h])?arguments[h].values[l]:arguments[h]);return e(...f)});if(n)try{if(i.length===1&&Zi(Ke(i[0]),Ke(a))){let l=new Wi(a);return l.index=i[0].index.slice(),l.columns=i[0].columns.slice(),l}else return new Wi(a)}catch{return a}if(r)try{if(s.length===1&&s[0].length===a.length){let l=new Hi(a);return l.name=s[0].name,l.index=s[0].index.slice(),l}else return new Hi(a)}catch{return a}return a}else return t(...arguments)}}to.exports=Gd});var $e=c((jN,ro)=>{var Vd=g(),Wd=v();function Hd(t){try{return Vd(t)?typeof t=="bigint"?t<0?-t:t:Math.abs(t):NaN}catch{return NaN}}ro.exports=Wd(Hd)});var Le=c((MN,no)=>{var Xd=g(),Qd=v();function Zd(){try{let t=0,e=!1,r=Object.values(arguments);for(let n of r){if(!Xd(n))return NaN;typeof n=="bigint"&&(e=!0,n=Number(n)),t+=n}if(e)try{return BigInt(t)}catch{}return t}catch{return NaN}}no.exports=Qd(Zd)});var Te=c((BN,so)=>{var ep=v();function tp(t,e){try{return e(t)}catch{return NaN}}so.exports=ep(tp)});var oo=c((UN,io)=>{var rp=g(),np=v();function sp(t){try{return rp(t)?(typeof t=="bigint"&&(t=Number(t)),Math.acos(t)):NaN}catch{return NaN}}io.exports=np(sp)});var ao=c((PN,uo)=>{var ip=g(),op=v();function up(t){try{return ip(t)?(typeof t=="bigint"&&(t=Number(t)),Math.asin(t)):NaN}catch{return NaN}}uo.exports=op(up)});var lo=c((zN,co)=>{var ap=g(),cp=v();function lp(t){try{return ap(t)?(typeof t=="bigint"&&(t=Number(t)),Math.atan(t)):NaN}catch{return NaN}}co.exports=cp(lp)});var ho=c((CN,fo)=>{var fp=d(),hp=fe(),mp=p(),dp=b(),pp=y(),gp=Oe();function Ct(t,e){if(dp(t)){let r=Ct(t.values,e);return[t.index[r[0]],t.columns[r[1]]]}if(pp(t)){let r=Ct(t.values,e);return t.index[r]}fp(mp(t),"The `argmax` function only works on arrays, Series, and DataFrames!");try{let r=hp(t,gp(t,e));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch(r){console.log(r);return}}fo.exports=Ct});var kt=c((kN,mo)=>{var yp=A();function qp(t,e){return yp(t,{shouldDropNaNs:e}).min}mo.exports=qp});var go=c((JN,po)=>{var bp=d(),Np=fe(),vp=p(),wp=b(),Sp=y(),Op=kt();function Jt(t,e){if(wp(t)){let r=Jt(t.values,e);return[t.index[r[0]],t.columns[r[1]]]}if(Sp(t)){let r=Jt(t.values,e);return t.index[r]}bp(vp(t),"The `argmin` function only works on arrays, Series, and DataFrames!");try{let r=Np(t,Op(t,e));return r?r.length===0?void 0:r.length===1?r[0]:r:void 0}catch{return}}po.exports=Jt});var $t=c((RN,bo)=>{var yo=p(),Rt=ze(),Tp=b(),Yt=pe(),_p=z(),qo=g(),Dp=J(),Ip=y(),Kt=q();function B(t,e){if(Tp(t)||Ip(t))return t.apply(r=>B(r,e));if(yo(t))return t.map(r=>B(r,e));if(e==="null")return null;if(e==="number"){if(Kt(t))return NaN;let r=B(t,"boolean");if(Rt(r))return r?1:0;try{JSON.parse(t)}catch{let i=B(t,"date");if(Yt(i))return i.getTime()}let n=parseFloat(t);return isNaN(n)?NaN:n}if(e==="int"){let r=B(t,"number");return r>=0?Math.floor(r):Math.ceil(r)}if(e==="float")return B(t,"number");if(e==="bigint")return typeof t=="bigint"?t:BigInt(B(t,"int"));if(e==="boolean"){if(Rt(t))return t;if(qo(t))return t===0?!1:t===1?!0:null;try{let r=(typeof t=="object"?t.toString()==="null"?"false":JSON.stringify(t):t.toString()).trim().toLowerCase();return r==="true"||r==="yes"||r==="y"?!0:r==="false"||r==="no"||r==="n"?!1:null}catch{return null}}if(e==="date"){if(Yt(t))return t;if(Kt(t))return null;let r=parseFloat(t);if(!isNaN(r)){let s=new Date(t);return Yt(s)?s:null}let n=Date.parse(t);return isNaN(n)?null:new Date(n)}if(e==="object"){if(Dp(t))return t;let r=B(t,"boolean");if(Rt(r))return null;try{let s=B(t,"number");if(qo(s))return JSON.parse(t),null}catch{}let n=B(t,"date");if(n)return n;try{let s=JSON.parse(t);return yo(s)?s.map(i=>B(i,e)):s}catch{return null}}if(e==="string")return Kt(t)?_p(t,void 0)?"undefined":"null":t instanceof Date?t.toJSON():(()=>typeof t=="object"?t===null?"null":JSON.stringify(t):t.toString())()}bo.exports=B});var vo=c((YN,No)=>{var xp=g(),Ap=v();function Ep(t){try{return xp(t)?typeof t=="bigint"?t:Math.ceil(t):NaN}catch{return NaN}}No.exports=Ap(Ep)});var Oo=c((KN,So)=>{var Fp=$e(),wo=g(),jp=q(),Mp=v();function Bp(t,e){try{if(!wo(t))return NaN;if(typeof t=="bigint")return t;if(jp(e))e=1e-10;else if(!wo(e))return NaN;return Fp(t)<e?0:t}catch{return NaN}}So.exports=Mp(Bp)});var G=c(($N,To)=>{var Up=p(),Pp=b(),zp=g(),Cp=y(),kp=v();function Lt(t){if(Pp(t)||Cp(t)){let e=t.copy();return e.values=Lt(e.values),e}if(Up(t))return t.map(e=>Lt(e));try{let e=JSON.parse(t);return zp(e)?typeof e=="bigint"?Number(e):e>=0?Math.floor(e):Math.ceil(e):NaN}catch{return NaN}}To.exports=kp(Lt)});var Io=c((LN,Do)=>{var Jp=G(),Gt=g(),Rp=v();function _o(t,e,r){try{return Gt(t)?Gt(e)?Gt(r)?typeof t=="bigint"?BigInt(_o(Jp(t),e,r)):t<e?e:t>r?r:t:NaN:NaN:NaN}catch{return NaN}}Do.exports=Rp(_o)});var Ve=c((GN,Ao)=>{var xo=d(),Yp=P(),Kp=G(),$p=p(),Lp=b(),Gp=g(),Vp=y();function Ge(t,e){function*r(n,s){if(s>n.length)yield n;else if(s<=0)yield[];else if(n.length<2)yield n;else for(let i=0;i<n.length;i++){let o=n[i],u=n.slice(i+1);if(!(u.length<s-1)&&s-1>=0)for(let a of Ge(u,s-1))yield[o].concat(a)}}return Lp(t)||Vp(t)?Ge(t.values,e):(xo($p(t),"The `combinations` function only works on arrays, Series, and DataFrames!"),xo(Gp(e)&&Kp(e)===e&&e>=0,"`r` must be a non-negative integer!"),r(Yp(t),e))}function Wp(t,e){let r=[];for(let n of Ge(t,e))r.push(n.slice());return r}Ao.exports={combinations:Wp,combinationsIterator:Ge}});var Wt=c((VN,Eo)=>{var Hp=d(),Xp=p(),Qp=b(),Zp=z(),eg=y(),Vt=C();function tg(){let t=Object.values(arguments).map(r=>Qp(r)||eg(r)?Vt(r.values):(Hp(Xp(r),"The `intersect` function only works on arrays, Series, and DataFrames!"),Vt(r)));return Vt(t).filter(r=>t.every(n=>n.findIndex(s=>Zp(s,r))>-1))}Eo.exports=tg});var Ht=c((WN,Co)=>{var{DataFrame:Fo,Series:jo}=ue(),We=d(),rg=Wt(),Mo=p(),Bo=b(),Uo=y(),Po=q(),zo=w(),ae=class{constructor(e){We(Po(e)||e===ae.DROP_NAN_MODE||e===ae.DROP_MISSING_MODE,"The `mode` value passed into the `IndexMatcher` constructor must be undefined or one of [IndexMatcher.DROP_NAN_MODE, IndexMatcher.DROP_MISSING_MODE]! (By default, the mode is `Indexer.DROP_MISSING_MODE`.)"),this.mode=Po(e)?ae.DROP_NAN_MODE:e,this.index=null}fit(){let e=[];return Object.values(arguments).forEach(r=>{if(Mo(r)){let n=zo(r);if(n.length===1)r=new jo(r);else if(n.length===2)r=new Fo(r);else throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}We(Bo(r)||Uo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),this.mode===ae.DROP_MISSING_MODE?e.push(r.dropMissing().index):e.push(r.dropNaN().index)}),this.index=rg(...e),this}transform(){We(!!this.index,"The IndexMatcher hasn't been fitted yet! Please call the `fit` method before calling the `transform` method.");let e=Object.values(arguments).map(r=>{if(Mo(r)){let n=zo(r);if(n.length===1)return new jo(r).get(this.index).values;if(n.length===2)return new Fo(r).get(this.index,null).values;throw new Error("The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!")}return We(Bo(r)||Uo(r),"The `IndexMatcher.fit` method only works on arrays, Series, and DataFrames!"),r.get(this.index,null)});return e.length===1?e[0]:e}fitAndTransform(){return this.fit(...arguments).transform(...arguments)}},_e=ae;ft(_e,"DROP_NAN_MODE","DROP_NAN_MODE"),ft(_e,"DROP_MISSING_MODE","DROP_MISSING_MODE");Co.exports=_e});var Xt=c((XN,$o)=>{var ko=d(),ng=Ht(),Jo=p(),He=g(),Ro=y(),Yo=w(),Ko=A();function Xe(t,e,r,n){if(Ro(t))return Xe(t.values,e,r,n);if(Ro(e))return Xe(t,e.values,r,n);if(ko(Jo(t)&&Jo(e)&&Yo(t).length===1&&Yo(e).length===1,"The `covariance` function only works on 1-dimensional arrays and Series!"),ko(t.length===e.length,"The two arrays or Series passed into the `covariance` function must have the same length!"),r)return Xe(...new ng().fitAndTransform(t,e),!1,n);try{let s=Ko(t,{stdev:n}),i=Ko(e,{stdev:n}),o=Number(s.mean),u=Number(i.mean);if(!He(o)||!He(u))return NaN;let a=Math.max(t.length,e.length),l=0;for(let f=0;f<a;f++){let h=t[f],m=e[f];if(!He(h))return NaN;if(!He(m))return NaN;typeof h=="bigint"&&(h=Number(h)),typeof m=="bigint"&&(m=Number(m)),l+=(h-o)*(m-u)}return n?[l/t.length,s,i]:l/t.length}catch{return NaN}}$o.exports=Xe});var Xo=c((QN,Ho)=>{var Lo=d(),sg=Xt(),Go=p(),Vo=y(),Wo=w();function Qt(t,e,r){if(Vo(t))return Qt(t.values,e,r);if(Vo(e))return Qt(t,e.values,r);Lo(Go(t)&&Go(e)&&Wo(t).length===1&&Wo(e).length===1,"The `correl` function only works on 1-dimensional arrays and Series!"),Lo(t.length===e.length,"The two arrays or Series passed into the `correl` function must have the same length!");try{let[s,i,o]=sg(t,e,r,!0),u=i.stdev*o.stdev;return s/u}catch{return NaN}}Ho.exports=Qt});var Zo=c((ZN,Qo)=>{var ig=g(),og=v();function ug(t){try{return ig(t)?(typeof t=="bigint"&&(t=Number(t)),Math.cos(t)):NaN}catch{return NaN}}Qo.exports=og(ug)});var tu=c((e0,eu)=>{eu.exports=Object.freeze({boolean:"boolean",date:"date",null:"null",number:"number",object:"object",string:"string"})});var uu=c((t0,ou)=>{var ag=d(),ru=p(),nu=b(),cg=z(),su=y(),iu=C();function Zt(t,e){if(nu(t)||su(t))return Zt(t.values,e);if(nu(e)||su(e))return Zt(t,e.values);ag(ru(t)&&ru(e),"The `diff` function only works on arrays, Series, and DataFrames!");let r=iu(t),n=iu(e),s=[];return r.forEach(i=>{n.findIndex(o=>cg(o,i))<0&&s.push(i)}),s}ou.exports=Zt});var Qe=c((r0,lu)=>{var au=g(),lg=v();function cu(t,e){try{if(!au(t))return NaN;if(!au(e))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let r=cu(Number(t),Number(e));try{return BigInt(r)}catch{return r}}return Math.pow(t,e)}catch{return NaN}}lu.exports=lg(cu)});var er=c((n0,hu)=>{var fg=g(),hg=v();function fu(t){try{if(!fg(t))return NaN;if(typeof t=="bigint"){let e=fu(Number(t));try{return BigInt(e)}catch{return e}}return Math.sqrt(t)}catch{return NaN}}hu.exports=hg(fu)});var tr=c((s0,mu)=>{var mg=g(),dg=v();function pg(){try{let t=Object.values(arguments);if(t.length===0)return NaN;let e=!1,r=1;for(let n of t){if(!mg(n))return NaN;typeof n=="bigint"&&(e=!0,n=Number(n)),r*=n}if(e)try{return BigInt(r)}catch{}return r}catch{return NaN}}mu.exports=dg(pg)});var ce=c((i0,du)=>{var gg=tr();function yg(){return gg(...arguments)}du.exports=yg});var rr=c((o0,pu)=>{var qg=Le(),bg=ce();function Ng(t,e){return qg(t,bg(e,-1))}pu.exports=Ng});var Ze=c((u0,gu)=>{var vg=A();function wg(t,e){return vg(t,{shouldDropNaNs:e}).sum}gu.exports=wg});var Su=c((a0,wu)=>{var Sg=$e(),Og=d(),yu=p(),qu=b(),Tg=z(),bu=g(),Nu=y(),_g=Qe(),vu=w(),Dg=er(),Ig=rr(),xg=Ze();function nr(t,e){if(bu(t)&&bu(e))return Sg(t-e);if(qu(t)||Nu(t))return nr(t.values,e);if(qu(e)||Nu(e))return nr(t,e.values);yu(t)&&yu(e)&&Og(Tg(vu(t),vu(e)),"If passing two arrays, Series, or DataFrames into the `distance` function, then those objects must have the same shape!");try{return Dg(xg(_g(Ig(t,e),2)))}catch{return NaN}}wu.exports=nr});var Tu=c((c0,Ou)=>{var Ag=Qe(),Eg=ce();function Fg(t,e){return Eg(t,Ag(e,-1))}Ou.exports=Fg});var or=c((l0,Au)=>{var{DataFrame:_u,Series:Du}=ue(),sr=d(),Iu=p(),ir=b(),et=y(),jg=ce(),tt=w(),Mg=Ze(),xu=X();function V(t,e){if(ir(t)){let s=V(t.values,e);if(tt(s).length===1){let i=new Du(s);return i.name=et(e)?e.name:i.name,i.index=t.index.slice(),i}else{let i=new _u(s);return i.index=t.index.slice(),ir(e)&&(i.columns=e.columns.slice()),i}}if(ir(e)){let s=V(t,e.values);if(tt(s).length===1){let i=new Du(s);return i.name=et(t)?t.name:i.name,i.index=e.columns.slice(),i}else{let i=new _u(s);return i.columns=e.columns.slice(),i}}if(et(t))return V(t.values,e);if(et(e))return V(t,e.values);sr(Iu(t)&&Iu(e),"The `dot` function only works on arrays, Series, and DataFrames!");let r=tt(t),n=tt(e);if(sr(r.length<=2&&n.length<=2,"I'm not smart enough to know how to get the dot-product of arrays that have more than 2 dimensions. Sorry for the inconvenience! Please only pass 1- or 2-dimensional arrays into the `dot` function!"),sr(r[r.length-1]===n[0],`There's a dimension misalignment in the two arrays you passed into the \`dot\` function. (${r[r.length-1]} !== ${n[0]})`),r.length===1&&n.length===1)return Mg(jg(t,e));if(r.length===1&&n.length===2)return xu(e).map(s=>V(t,s));if(r.length===2&&n.length===1)return t.map(s=>V(s,e));if(r.length===2&&n.length===2){let s=xu(e),i=[];for(let o=0;o<t.length;o++){let u=[];for(let a=0;a<s.length;a++)u.push(V(t[o],s[a]));i.push(u)}return i}}Au.exports=V});var ur=c((f0,Fu)=>{var Bg=d(),Ug=p(),Pg=b(),zg=y(),Cg=q();function Eu(t){if(Pg(t)||zg(t))return t.dropMissing(...Object.values(arguments).slice(1));Bg(Ug(t),"The `dropMissing` function only works on arrays, Series, and DataFrames!");let e=[];return t.forEach(r=>{try{return e.push(Eu(r))}catch{Cg(r)||e.push(r)}}),e}Fu.exports=Eu});var ku=c((h0,Cu)=>{var ju=d(),Mu=p(),Bu=b(),kg=z(),Uu=y(),Pu=q(),zu=w();function rt(t,e){if(Bu(t)||Uu(t))return rt(t.values,e);if(Bu(e)||Uu(e))return rt(t,e.values);ju(Mu(t)&&Mu(e),"The `dropMissingPairwise` function only works on arrays, Series, and DataFrames!"),ju(kg(zu(t),zu(e)),"The two arrays, Series, and/or DataFrames passed into the `dropMissingPairwise` function must have the same shape!");let r=[],n=[];for(let s=0;s<t.length;s++)try{let[i,o]=rt(t[s],e[s]);r.push(i),n.push(o)}catch{!Pu(t[s])&&!Pu(e[s])&&(r.push(t[s]),n.push(e[s]))}return[r,n]}Cu.exports=rt});var Vu=c((m0,Gu)=>{var Ju=d(),Ru=p(),Yu=b(),Jg=z(),Ku=g(),$u=y(),Lu=w();function nt(t,e){if(Yu(t)||$u(t))return nt(t.values,e);if(Yu(e)||$u(e))return nt(t,e.values);Ju(Ru(t)&&Ru(e),"The `dropNaNPairwise` only works on arrays, Series, and DataFrames!"),Ju(Jg(Lu(t),Lu(e)),"The two arrays, Series, and/or DataFrames passed into the `dropNaNPairwise` must have the same shape!");let r=[],n=[];for(let s=0;s<t.length;s++)try{let[i,o]=nt(t[s],e[s]);r.push(i),n.push(o)}catch{Ku(t[s])&&Ku(e[s])&&(r.push(t[s]),n.push(e[s]))}return[r,n]}Gu.exports=nt});var Hu=c((d0,Wu)=>{var Rg=ur();function Yg(t){return Rg(t)}Wu.exports=Yg});var cr=c((p0,Zu)=>{var Xu=d(),Qu=p(),Kg=b(),$g=D(),Lg=y();function ar(t,e){if(Kg(t)||Lg(t))return ar(t.values,e);Xu(Qu(t),"The first argument passed into the `every` function must be an array, Series, or DataFrame!"),Xu($g(e),"The second argument passed into the `every` function must be a function!");for(let r of t)if(Qu(r)){if(!ar(r,e))return!1}else if(!e(r))return!1;return!0}Zu.exports=ar});var ta=c((g0,ea)=>{var Gg=g(),Vg=v();function Wg(t){try{if(!Gg(t))return NaN;if(typeof t=="bigint"){if(t===0n)return 1n;t=Number(t)}return Math.exp(t)}catch{return NaN}}ea.exports=Vg(Wg)});var sa=c((y0,na)=>{var ra=G(),Hg=v();function lr(t){try{return typeof t=="bigint"?BigInt(lr(ra(t))):t!==ra(t)?NaN:t<=1?1:t*lr(t-1)}catch{return NaN}}na.exports=Hg(lr)});var aa=c((q0,ua)=>{var Xg=d(),ia=p(),Qg=b(),Zg=D(),oa=J(),ey=y();function fr(t,e){if(Qg(t)||ey(t))return fr(t.values,e);if(Xg(oa(t)||ia(t),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `find` function!"),!Zg(e)){let s=e;e=i=>i===s}function r(s,i,o){if(o=o||[],o.indexOf(s)>-1)return null;if(oa(s)){o.push(s);let u=Object.keys(s).concat(Object.getOwnPropertySymbols(s));for(let a=0;a<u.length;a++){let l=u[a],f=s[l];if(i(f))return f;let h=r(f,i,o);if(h)return h}}else if(ia(s)){o.push(s);for(let u=0;u<s.length;u++){let a=s[u];if(i(a))return a;let l=r(a,i,o);if(l)return l}}else if(i(s))return s;return null}function n(s){try{return e(s)}catch{return!1}}return r(t,n)}ua.exports=fr});var ha=c((b0,fa)=>{var ty=d(),ca=p(),ry=b(),ny=D(),la=J(),sy=y();function hr(t,e){if(ry(t)||sy(t))return hr(t.values,e);if(ty(la(t)||ca(t),"You must pass (1) an object, array, Series, or DataFrame and (2) a function or value into the `findAll` function!"),!ny(e)){let i=e;e=o=>o===i}function r(i,o,u){if(u=u||[],u.indexOf(i)>-1)return null;if(la(i)){u.push(i);let a=Object.keys(i).concat(Object.getOwnPropertySymbols(i)),l=[];for(let f=0;f<a.length;f++){let h=a[f],m=i[h],N=!1;o(m)&&(l.push(m),N=!0);let O=r(m,o,u);O&&O.length>0&&O.slice(N?1:0).forEach(_=>l.push(_))}return l}else if(ca(i)){u.push(i);let a=[];for(let l=0;l<i.length;l++){let f=i[l],h=!1;o(f)&&(a.push(f),h=!0);let m=r(f,o,u);m&&m.length>0&&m.slice(h?1:0).forEach(N=>a.push(N))}return a}else if(o(i))return[i];return null}function n(i){try{return e(i)}catch{return!1}}let s=r(t,n);return s&&s.length>0?s:null}fa.exports=hr});var da=c((N0,ma)=>{var iy=g(),oy=v();function uy(t){try{if(t==="Infinity")return 1/0;if(t==="-Infinity")return-1/0;let e=JSON.parse(t);return iy(e)?e:NaN}catch{return NaN}}ma.exports=oy(uy)});var ga=c((v0,pa)=>{var ay=g(),cy=v();function ly(t){try{return ay(t)?typeof t=="bigint"?t:Math.floor(t):NaN}catch{return NaN}}pa.exports=cy(ly)});var st=c((w0,ya)=>{var fy=g(),hy=me(),my=Ie();function dy(t){fy(t)&&(t=[t]);let e=[],r=hy(t);for(let n=0;n<r;n++)e.push(0);return my(e,t)}ya.exports=dy});var Na=c((S0,ba)=>{var it=d(),qa=G(),py=g(),gy=q(),yy=st();function qy(t){typeof t=="bigint"&&(t=qa(t)),it(!gy(t),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),it(py(t),"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),it(qa(t)===t,"You must pass an integer greater than 0 (representing the size) into the `identity` function!"),it(t>0,"You must pass an integer greater than 0 (representing the size) into the `identity` function!");let e=yy([t,t]);for(let r=0;r<t;r++)e[r][r]=1;return e}ba.exports=qy});var wa=c((O0,va)=>{va.exports=["true","false","yes","no"]});var Oa=c((T0,Sa)=>{Sa.exports=["null","none","nan","na","n/a","","undefined"]});var xa=c((_0,Ia)=>{var by=Te(),Ny=d(),vy=wa(),wy=$t(),Sy=xe(),Oy=cr(),Ty=P(),Ta=G(),mr=p(),_y=b(),_a=pe(),Da=g(),Dy=y(),Iy=x(),xy=Oa();function ot(t){return t.type==="number"&&(typeof t.value<"u"?t.isInteger=Ta(t.value)===t.value:t.isInteger=Oy(t.values,e=>Da(e)?Ta(e)===e:!0)),t}function ut(t){if(_y(t)){let i=t.copy(),o=ut(t.values);return i.values=o.values,ot({type:o.type,values:i})}if(Dy(t)){let i=t.copy(),o=ut(t.values);return i.values=o.values,ot({type:o.type,values:i})}if(!mr(t)){let i=ut([t]);return i.value=i.values[0],delete i.values,ot(i)}Ny(mr(t),"The `inferType` function only works on arrays, Series, and DataFrames!");let e=Ty(t).map(i=>{if(i===void 0)return"null";try{if(typeof i=="object"){let a=new Date(i.getTime());if(_a(a))return"date"}}catch{}Iy(i)||(typeof i=="bigint"?i=i.toString()+"n":i=JSON.stringify(i));let u=i.toLowerCase().trim();if(xy.indexOf(u)>-1)return"null";if(vy.indexOf(u)>-1)return"boolean";try{if(i.match(/^-?\d+n$/g))return"bigint";let a=JSON.parse(i);return Da(a)?"number":typeof a=="object"?mr(a)?"string":"object":"string"}catch{let l=new Date(i);return _a(l)?"date":"string"}}),r=Sy(e),s=r.values.toSorted((i,o)=>r.get(o)-r.get(i))[0];return ot({type:s,values:by(t,i=>wy(i,s))})}Ia.exports=ut});var Ma=c((D0,ja)=>{var Aa=Le(),Q=d(),Ay=or(),Ey=p(),Fy=b(),Ea=g(),Fa=ce(),jy=w();function at(t){if(Fy(t)){let r=t.copy();return r.values=at(r.values),r}Q(Ey(t),"The `inverse` function only works on square 2-dimensional arrays or DataFrames!");let e=jy(t);if(Q(e.length===2,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),Q(e[0]===e[1],"The array passed into the `inverse` function must be exactly two-dimensional and square!"),Q(e[0]>=0,"The array passed into the `inverse` function must be exactly two-dimensional and square!"),e[0]===0)return t;if(e[0]===1){Q(t[0][0]!==0,"This matrix cannot be inverted!");let r=t[0][0];return typeof r=="bigint"&&(r=Number(r)),1/r}else if(e[0]===2){let r=t[0][0],n=t[0][1],s=t[1][0],i=t[1][1];typeof r=="bigint"&&(r=Number(r)),typeof n=="bigint"&&(n=Number(n)),typeof s=="bigint"&&(s=Number(s)),typeof i=="bigint"&&(i=Number(i));let o=r*i-n*s;Q(o!==0,"This matrix cannot be inverted!");let u=[[i,-n],[-s,r]];return Fa(u,1/o)}else if(e[0]>1){let r=(n,s)=>Ea(n)||Ea(s)?Fa(n,s):Ay(n,s);for(let n=1;n<e[0]-1;n++)try{let s=t.slice(0,n).map(_=>_.slice(0,n)),i=t.slice(0,n).map(_=>_.slice(n,e[0])),o=t.slice(n,e[0]).map(_=>_.slice(0,n)),u=t.slice(n,e[0]).map(_=>_.slice(n,e[0])),a=at(s),l=at(Aa(u,r(-1,r(r(o,a),i)))),f=Aa(a,r(r(r(r(a,i),l),o),a)),h=r(-1,r(r(a,i),l)),m=r(-1,r(r(l,o),a)),N=l;return f.map((_,lt)=>_.concat(h[lt])).concat(m.map((_,lt)=>_.concat(N[lt])))}catch{}Q(!1,"This matrix cannot be inverted!")}}ja.exports=at});var Ua=c((I0,Ba)=>{var My=new Function(`
18
18
  try {
19
19
  return this === window
20
20
  } catch(e) {}
@@ -24,4 +24,4 @@
24
24
  } catch(e){}
25
25
 
26
26
  return false
27
- `);Ba.exports=My});var Ca=c((x0,za)=>{var dr=g(),By=v();function Pa(t,e,r){try{if(!dr(t))return NaN;if(!dr(e))return NaN;if(!dr(r))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let n=Pa(Number(t),Number(e),r);try{return BigInt(n)}catch{return n}}return r*(e-t)+t}catch{return NaN}}za.exports=By(Pa)});var Ya=c((A0,Ra)=>{var ka=g(),Uy=q(),Py=v();function Ja(t,e){try{if(e=Uy(e)?Math.E:e,!ka(t))return NaN;if(!ka(e))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let r=Ja(Number(t),Number(e));try{return BigInt(r)}catch{return r}}return Math.log(t)/Math.log(e)}catch{return NaN}}Ra.exports=Py(Ja)});var $a=c((E0,Ka)=>{var zy=A();function Cy(t,e){return zy(t,{shouldDropNaNs:e}).mean}Ka.exports=Cy});var Ga=c((j0,La)=>{var ky=A();function Jy(t,e){return ky(t,{shouldDropNaNs:e,median:!0}).median}La.exports=Jy});var Xa=c((F0,Ha)=>{var Va=g(),Ry=v();function Wa(t,e){try{if(!Va(t))return NaN;if(!Va(e))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let r=Wa(Number(t),Number(e));try{return BigInt(r)}catch{return r}}return t%e}catch{return NaN}}Ha.exports=Ry(Wa)});var Za=c((M0,Qa)=>{var Yy=A();function Ky(t,e){return Yy(t,{shouldDropNaNs:e,mode:!0}).mode}Qa.exports=Ky});var nc=c((B0,rc)=>{var{random:ec}=H(),$y=Te(),Ly=q(),Gy=R();function tc(){let t=ec(),e=ec();return Math.sqrt(-2*Math.log(t))*Math.cos(2*Math.PI*e)}function Vy(t){return Ly(t)?tc():$y(Gy(t),tc)}rc.exports=Vy});var ic=c((U0,sc)=>{var Wy=Te(),Hy=R();function Xy(t){return Wy(Hy(t),()=>1)}sc.exports=Xy});var gr=c((P0,uc)=>{var{combinations:Qy}=Ve(),oc=d(),Zy=P(),eq=G(),tq=p(),rq=b(),nq=g(),sq=y(),iq=q(),oq=st();function pr(t,e){function*r(n,s){if(s=s||n.length,n.length===1){yield[n];return}for(let i of Qy(n,s)){if(!i.slice)continue;let o=oq(i.length);yield i;let u=1;for(;u<i.length;)if(o[u]<u){if(u%2===0){let a=i[0];i[0]=i[u],i[u]=a}else{let a=i[o[u]];i[o[u]]=i[u],i[u]=a}yield i,o[u]+=1,u=1}else o[u]=0,u+=1}}return rq(t)||sq(t)?pr(t.values,e):(oc(tq(t),"The `permutations` function only works on arrays, Series, and DataFrames!"),iq(e)&&(e=t.length),oc(nq(e)&&eq(e)===e&&e>=0,"`r` must be a non-negative integer!"),r(Zy(t),e))}function uq(t,e){let r=[];for(let n of pr(t,e))r.push(n.slice());return r}uc.exports={permutations:uq,permutationsIterator:pr}});var cc=c((z0,ac)=>{var{DataFrame:aq,Series:cq}=ue(),lq=p(),fq=b(),hq=te(),mq=y(),dq=w();function pq(){Object.keys(arguments).forEach(t=>{let e=arguments[t];if(lq(e))if(hq(e))console.log(e);else{let r=dq(e);r.length===1?new cq(e).print():r.length==2?new aq(e).print():console.log(e)}else fq(e)||mq(e)?e.print():console.log(e)})}ac.exports=pq});var hc=c((C0,fc)=>{var gq=p(),yq=g(),lc=q(),qq=A(),bq=v(),Nq=bq((t,e,r,n,s)=>{try{let i=!1;for(let l of[t,e,r,n,s]){if(!yq(l))return NaN;typeof l=="bigint"&&(i=!0)}i&&(t=Number(t),e=Number(e),r=Number(r),n=Number(n),s=Number(s));let o=(s-n)*(t-e),u=r-e;if(u===0)return NaN;let a=o/u+n;if(i)try{return BigInt(a)}catch{}return a}catch{return NaN}});function vq(t,e,r,n,s){if(gq(t)&&lc(n)&&lc(s)){n=e,s=r;let i=qq(t);e=i.min,r=i.max}return Nq(t,e,r,n,s)}fc.exports=vq});var dc=c((k0,mc)=>{var wq=g(),Sq=v();function Oq(t){try{return wq(t)?typeof t=="bigint"?t:Math.round(t):NaN}catch{return NaN}}mc.exports=Sq(Oq)});var yc=c((J0,gc)=>{var Tq=g(),_q=v();function pc(t){try{return Tq(t)?typeof t=="bigint"?BigInt(pc(Number(t))):t<0?-1:t>0?1:0:NaN}catch{return NaN}}gc.exports=_q(pc)});var bc=c((R0,qc)=>{var Dq=g(),Iq=v();function xq(t){try{return Dq(t)?(typeof t=="bigint"&&(t=Number(t)),Math.sin(t)):NaN}catch{return NaN}}qc.exports=Iq(xq)});var Sc=c((Y0,wc)=>{var Nc=d(),vc=p(),Aq=b(),Eq=D(),jq=y();function yr(t,e){if(Aq(t)||jq(t))return yr(t.values,e);Nc(vc(t),"The first argument passed into the `some` function must be an array, Series, or DataFrame!"),Nc(Eq(e),"The second argument passed into the `some` function must be a function!");for(let r of t)if(vc(r)){if(yr(r,e))return!0}else if(e(r))return!0;return!1}wc.exports=yr});var qr=c((K0,Oc)=>{var Fq=A();function Mq(t,e){return Fq(t,{shouldDropNaNs:e,stdev:!0}).stdev}Oc.exports=Mq});var _c=c(($0,Tc)=>{var Bq=qr();function Uq(t){return Bq(t)}Tc.exports=Uq});var Ic=c((L0,Dc)=>{var Pq=g(),zq=v();function Cq(t){try{return Pq(t)?(typeof t=="bigint"&&(t=Number(t)),Math.tan(t)):NaN}catch{return NaN}}Dc.exports=zq(Cq)});var ct=c((G0,Ec)=>{var xc=d(),Ac=D();function kq(t,e){xc(Ac(t),"`fn` must be a function!");let r=new Date;return e?t(...e):t(),new Date-r}async function Jq(t,e){xc(Ac(t),"`fn` must be a function!");let r=new Date;return e?await t(...e):await t(),new Date-r}Ec.exports={timeSync:kq,timeAsync:Jq}});var Fc=c((V0,jc)=>{var Rq=p(),Yq=b(),Kq=y(),$q=C();function Lq(){return $q([...arguments].map(t=>Rq(t)?t:Yq(t)||Kq(t)?t.values:[t]))}jc.exports=Lq});var Bc=c((W0,Mc)=>{var Gq=A();function Vq(t,e){return Gq(t,{shouldDropNaNs:e,variance:!0}).variance}Mc.exports=Vq});var Pc=c((H0,Uc)=>{var Wq=d(),Hq=p(),Xq=b(),Qq=y(),Zq=q(),eb=Oe(),tb=E();function rb(){let t=[],e=Object.values(arguments).map(r=>((Xq(r)||Qq(r))&&(r=r.values),Wq(Hq(r),"The `zip` function only works on arrays, Series, and DataFrames!"),r));return tb(0,eb(e.map(r=>r.length))).forEach(r=>{let n=[];e.forEach(s=>{let i=s[r];n.push(Zq(i)?void 0:i)}),t.push(n)}),t}Uc.exports=rb});var zc=c((X0,br)=>{var{copy:nb,decycle:sb}=U(),{DataFrame:ib,Series:ob}=ue(),le={abs:$e(),add:Le(),apply:Te(),arccos:oo(),arcsin:ao(),arctan:lo(),argmax:ho(),argmin:go(),assert:d(),cast:$t(),ceil:vo(),chop:Oo(),clamp:Io(),combinations:Ve().combinations,combinationsIterator:Ve().combinationsIterator,copy:nb,correl:Xo(),cos:Zo(),count:xe(),covariance:Xt(),DataFrame:ib,dataTypes:tu(),decycle:sb,diff:uu(),distance:Su(),divide:Tu(),dot:or(),dropMissing:ur(),dropMissingPairwise:ku(),dropNaN:_t(),dropNaNPairwise:Vu(),dropUndefined:Hu(),every:cr(),exp:ta(),factorial:sa(),find:aa(),findAll:ha(),flatten:P(),float:da(),floor:ga(),identity:Na(),IndexMatcher:Ht(),indexOf:fe(),inferType:xa(),int:G(),intersect:Wt(),inverse:Ma(),isArray:p(),isBoolean:ze(),isBrowser:Ua(),isDataFrame:b(),isDate:pe(),isEqual:z(),isFunction:D(),isJagged:te(),isNested:De(),isNumber:g(),isObject:J(),isSeries:y(),isString:x(),isUndefined:q(),lerp:Ca(),log:Ya(),MathError:Z(),max:Oe(),mean:$a(),median:Ga(),min:kt(),mod:Xa(),mode:Za(),multiply:tr(),ndarray:R(),normal:nc(),ones:ic(),permutations:gr().permutations,permutationsIterator:gr().permutationsIterator,pow:Qe(),print:cc(),product:me(),random:H().random,range:E(),remap:hc(),reshape:Ie(),reverse:ye(),round:dc(),scale:ce(),seed:H().seed,Series:ob,set:C(),shape:w(),shuffle:Pe(),sign:yc(),sin:bc(),some:Sc(),sort:se(),sqrt:er(),stats:A(),std:qr(),stdev:_c(),subtract:rr(),sum:Ze(),tan:Ic(),time:ct().timeSync,timeSync:ct().timeSync,timeAsync:ct().timeAsync,transpose:X(),union:Fc(),variance:Bc(),vectorize:v(),zeros:st(),zip:Pc(),dump:function(){let t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:void 0;if(!t)throw new le.MathError("Cannot dump functions into global scope because none of `globalThis`, `global`, `window`, or `self` exist in the current context!");Object.keys(le).forEach(e=>{try{Object.defineProperty(t,e,{configurable:!1,enumerable:!0,writable:!1,value:le[e]})}catch{t[e]=le[e]}})}};typeof br<"u"&&(br.exports=le);typeof window<"u"&&(window.JSMathTools=le)});var lb=c((Q0,Sr)=>{var{assert:Nr,int:vr,isNumber:wr,isString:ub,random:ab,seed:cb}=zc();function Cc(t,e,r){arguments.length===2&&(wr(arguments[1])?r=null:(r=e,e=null)),Nr(wr(t)&&vr(t)===t,"`keyLength` must be an integer!"),e&&(Nr(wr(e)&&vr(e)===e,"`keySeed` must be an integer!"),cb(e)),r&&Nr(ub(r),"`charset` must be a string!");let n="";r=r||"abcdefg1234567890";for(let s=0;s<t;s++)n+=r[vr(ab()*r.length)];return n}typeof Sr<"u"&&(Sr.exports=Cc);typeof window<"u"&&(window.makeKey=Cc)});lb();})();
27
+ `);Ba.exports=My});var Ca=c((x0,za)=>{var dr=g(),By=v();function Pa(t,e,r){try{if(!dr(t))return NaN;if(!dr(e))return NaN;if(!dr(r))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let n=Pa(Number(t),Number(e),r);try{return BigInt(n)}catch{return n}}return r*(e-t)+t}catch{return NaN}}za.exports=By(Pa)});var Ya=c((A0,Ra)=>{var ka=g(),Uy=q(),Py=v();function Ja(t,e){try{if(e=Uy(e)?Math.E:e,!ka(t))return NaN;if(!ka(e))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let r=Ja(Number(t),Number(e));try{return BigInt(r)}catch{return r}}return Math.log(t)/Math.log(e)}catch{return NaN}}Ra.exports=Py(Ja)});var $a=c((E0,Ka)=>{var zy=A();function Cy(t,e){return zy(t,{shouldDropNaNs:e}).mean}Ka.exports=Cy});var Ga=c((F0,La)=>{var ky=A();function Jy(t,e){return ky(t,{shouldDropNaNs:e,median:!0}).median}La.exports=Jy});var Xa=c((j0,Ha)=>{var Va=g(),Ry=v();function Wa(t,e){try{if(!Va(t))return NaN;if(!Va(e))return NaN;if(typeof t=="bigint"||typeof e=="bigint"){let r=Wa(Number(t),Number(e));try{return BigInt(r)}catch{return r}}return t%e}catch{return NaN}}Ha.exports=Ry(Wa)});var Za=c((M0,Qa)=>{var Yy=A();function Ky(t,e){return Yy(t,{shouldDropNaNs:e,mode:!0}).mode}Qa.exports=Ky});var nc=c((B0,rc)=>{var{random:ec}=H(),$y=Te(),Ly=q(),Gy=R();function tc(){let t=ec(),e=ec();return Math.sqrt(-2*Math.log(t))*Math.cos(2*Math.PI*e)}function Vy(t){return Ly(t)?tc():$y(Gy(t),tc)}rc.exports=Vy});var ic=c((U0,sc)=>{var Wy=Te(),Hy=R();function Xy(t){return Wy(Hy(t),()=>1)}sc.exports=Xy});var gr=c((P0,uc)=>{var{combinations:Qy}=Ve(),oc=d(),Zy=P(),eq=G(),tq=p(),rq=b(),nq=g(),sq=y(),iq=q(),oq=st();function pr(t,e){function*r(n,s){if(s=s||n.length,n.length===1){yield[n];return}for(let i of Qy(n,s)){if(!i.slice)continue;let o=oq(i.length);yield i;let u=1;for(;u<i.length;)if(o[u]<u){if(u%2===0){let a=i[0];i[0]=i[u],i[u]=a}else{let a=i[o[u]];i[o[u]]=i[u],i[u]=a}yield i,o[u]+=1,u=1}else o[u]=0,u+=1}}return rq(t)||sq(t)?pr(t.values,e):(oc(tq(t),"The `permutations` function only works on arrays, Series, and DataFrames!"),iq(e)&&(e=t.length),oc(nq(e)&&eq(e)===e&&e>=0,"`r` must be a non-negative integer!"),r(Zy(t),e))}function uq(t,e){let r=[];for(let n of pr(t,e))r.push(n.slice());return r}uc.exports={permutations:uq,permutationsIterator:pr}});var cc=c((z0,ac)=>{var{DataFrame:aq,Series:cq}=ue(),lq=p(),fq=b(),hq=te(),mq=y(),dq=w();function pq(){Object.keys(arguments).forEach(t=>{let e=arguments[t];if(lq(e))if(hq(e))console.log(e);else{let r=dq(e);r.length===1?new cq(e).print():r.length==2?new aq(e).print():console.log(e)}else fq(e)||mq(e)?e.print():console.log(e)})}ac.exports=pq});var hc=c((C0,fc)=>{var gq=p(),yq=g(),lc=q(),qq=A(),bq=v(),Nq=bq((t,e,r,n,s)=>{try{let i=!1;for(let l of[t,e,r,n,s]){if(!yq(l))return NaN;typeof l=="bigint"&&(i=!0)}i&&(t=Number(t),e=Number(e),r=Number(r),n=Number(n),s=Number(s));let o=(s-n)*(t-e),u=r-e;if(u===0)return NaN;let a=o/u+n;if(i)try{return BigInt(a)}catch{}return a}catch{return NaN}});function vq(t,e,r,n,s){if(gq(t)&&lc(n)&&lc(s)){n=e,s=r;let i=qq(t);e=i.min,r=i.max}return Nq(t,e,r,n,s)}fc.exports=vq});var dc=c((k0,mc)=>{var wq=g(),Sq=v();function Oq(t){try{return wq(t)?typeof t=="bigint"?t:Math.round(t):NaN}catch{return NaN}}mc.exports=Sq(Oq)});var yc=c((J0,gc)=>{var Tq=g(),_q=v();function pc(t){try{return Tq(t)?typeof t=="bigint"?BigInt(pc(Number(t))):t<0?-1:t>0?1:0:NaN}catch{return NaN}}gc.exports=_q(pc)});var bc=c((R0,qc)=>{var Dq=g(),Iq=v();function xq(t){try{return Dq(t)?(typeof t=="bigint"&&(t=Number(t)),Math.sin(t)):NaN}catch{return NaN}}qc.exports=Iq(xq)});var Sc=c((Y0,wc)=>{var Nc=d(),vc=p(),Aq=b(),Eq=D(),Fq=y();function yr(t,e){if(Aq(t)||Fq(t))return yr(t.values,e);Nc(vc(t),"The first argument passed into the `some` function must be an array, Series, or DataFrame!"),Nc(Eq(e),"The second argument passed into the `some` function must be a function!");for(let r of t)if(vc(r)){if(yr(r,e))return!0}else if(e(r))return!0;return!1}wc.exports=yr});var qr=c((K0,Oc)=>{var jq=A();function Mq(t,e){return jq(t,{shouldDropNaNs:e,stdev:!0}).stdev}Oc.exports=Mq});var _c=c(($0,Tc)=>{var Bq=qr();function Uq(t){return Bq(t)}Tc.exports=Uq});var Ic=c((L0,Dc)=>{var Pq=g(),zq=v();function Cq(t){try{return Pq(t)?(typeof t=="bigint"&&(t=Number(t)),Math.tan(t)):NaN}catch{return NaN}}Dc.exports=zq(Cq)});var ct=c((G0,Ec)=>{var xc=d(),Ac=D();function kq(t,e){xc(Ac(t),"`fn` must be a function!");let r=new Date;return e?t(...e):t(),new Date-r}async function Jq(t,e){xc(Ac(t),"`fn` must be a function!");let r=new Date;return e?await t(...e):await t(),new Date-r}Ec.exports={timeSync:kq,timeAsync:Jq}});var jc=c((V0,Fc)=>{var Rq=p(),Yq=b(),Kq=y(),$q=C();function Lq(){return $q([...arguments].map(t=>Rq(t)?t:Yq(t)||Kq(t)?t.values:[t]))}Fc.exports=Lq});var Bc=c((W0,Mc)=>{var Gq=A();function Vq(t,e){return Gq(t,{shouldDropNaNs:e,variance:!0}).variance}Mc.exports=Vq});var Pc=c((H0,Uc)=>{var Wq=d(),Hq=p(),Xq=b(),Qq=y(),Zq=q(),eb=Oe(),tb=E();function rb(){let t=[],e=Object.values(arguments).map(r=>((Xq(r)||Qq(r))&&(r=r.values),Wq(Hq(r),"The `zip` function only works on arrays, Series, and DataFrames!"),r));return tb(0,eb(e.map(r=>r.length))).forEach(r=>{let n=[];e.forEach(s=>{let i=s[r];n.push(Zq(i)?void 0:i)}),t.push(n)}),t}Uc.exports=rb});var zc=c((X0,br)=>{var{copy:nb,decycle:sb}=U(),{DataFrame:ib,Series:ob}=ue(),le={abs:$e(),add:Le(),apply:Te(),arccos:oo(),arcsin:ao(),arctan:lo(),argmax:ho(),argmin:go(),assert:d(),cast:$t(),ceil:vo(),chop:Oo(),clamp:Io(),combinations:Ve().combinations,combinationsIterator:Ve().combinationsIterator,copy:nb,correl:Xo(),cos:Zo(),count:xe(),covariance:Xt(),DataFrame:ib,dataTypes:tu(),decycle:sb,diff:uu(),distance:Su(),divide:Tu(),dot:or(),dropMissing:ur(),dropMissingPairwise:ku(),dropNaN:_t(),dropNaNPairwise:Vu(),dropUndefined:Hu(),every:cr(),exp:ta(),factorial:sa(),find:aa(),findAll:ha(),flatten:P(),float:da(),floor:ga(),identity:Na(),IndexMatcher:Ht(),indexOf:fe(),inferType:xa(),int:G(),intersect:Wt(),inverse:Ma(),isArray:p(),isBoolean:ze(),isBrowser:Ua(),isDataFrame:b(),isDate:pe(),isEqual:z(),isFunction:D(),isJagged:te(),isNested:De(),isNumber:g(),isObject:J(),isSeries:y(),isString:x(),isUndefined:q(),lerp:Ca(),log:Ya(),MathError:Z(),max:Oe(),mean:$a(),median:Ga(),min:kt(),mod:Xa(),mode:Za(),multiply:tr(),ndarray:R(),normal:nc(),ones:ic(),permutations:gr().permutations,permutationsIterator:gr().permutationsIterator,pow:Qe(),print:cc(),product:me(),random:H().random,range:E(),remap:hc(),reshape:Ie(),reverse:ye(),round:dc(),scale:ce(),seed:H().seed,Series:ob,set:C(),shape:w(),shuffle:Pe(),sign:yc(),sin:bc(),some:Sc(),sort:se(),sqrt:er(),stats:A(),std:qr(),stdev:_c(),subtract:rr(),sum:Ze(),tan:Ic(),time:ct().timeSync,timeSync:ct().timeSync,timeAsync:ct().timeAsync,transpose:X(),union:jc(),variance:Bc(),vectorize:v(),zeros:st(),zip:Pc(),dump:function(){let t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:void 0;if(!t)throw new le.MathError("Cannot dump functions into global scope because none of `globalThis`, `global`, `window`, or `self` exist in the current context!");Object.keys(le).forEach(e=>{try{Object.defineProperty(t,e,{configurable:!1,enumerable:!0,writable:!1,value:le[e]})}catch{t[e]=le[e]}})}};typeof br<"u"&&(br.exports=le);typeof window<"u"&&(window.JSMathTools=le)});var lb=c((Q0,Sr)=>{var{assert:Nr,int:vr,isNumber:wr,isString:ub,random:ab,seed:cb}=zc();function Cc(t,e,r){arguments.length===2&&(wr(arguments[1])?r=null:(r=e,e=null)),Nr(wr(t)&&vr(t)===t,"`keyLength` must be an integer!"),e&&(Nr(wr(e)&&vr(e)===e,"`keySeed` must be an integer!"),cb(e)),r&&Nr(ub(r),"`charset` must be a string!");let n="";r=r||"abcdefg1234567890";for(let s=0;s<t;s++)n+=r[vr(ab()*r.length)];return n}typeof Sr<"u"&&(Sr.exports=Cc);typeof window<"u"&&(window.makeKey=Cc)});lb();})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrc03c/make-key",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "devDependencies": {
@@ -16,6 +16,6 @@
16
16
  "key": "./bin.js"
17
17
  },
18
18
  "dependencies": {
19
- "@jrc03c/js-math-tools": "^0.0.79"
19
+ "@jrc03c/js-math-tools": "^0.0.81"
20
20
  }
21
21
  }