@jrc03c/make-key 0.0.11 → 0.0.12

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