@jrc03c/make-key 0.0.17 → 0.0.19

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