UNPKG

d3-array

Version:

Array manipulation, ordering, searching, summarizing, etc.

3 lines (2 loc) • 17.3 kB
// https://d3js.org/d3-array/ v3.2.5 Copyright 2010-2026 Mike Bostock function t(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function n(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function r(r){let e,f,i;function u(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;f(t[e],n)<0?r=e+1:o=e}while(r<o)}return r}return 2!==r.length?(e=t,f=(n,o)=>t(r(n),o),i=(t,n)=>r(t)-n):(e=r===t||r===n?r:o,f=r,i=r),{left:u,center:function(t,n,r=0,o=t.length){const e=u(t,n,r,o-1);return e>r&&i(t[e-1],n)>-i(t[e],n)?e-1:e},right:function(t,n,r=0,o=t.length){if(r<o){if(0!==e(n,n))return o;do{const e=r+o>>>1;f(t[e],n)<=0?r=e+1:o=e}while(r<o)}return r}}}function o(){return 0}function e(t){return null===t?NaN:+t}const f=r(t),i=f.right,u=f.left,l=r(e).center;function c(t,n){if(!((n=+n)>=0))throw new RangeError("invalid r");let r=t.length;if(!((r=Math.floor(r))>=0))throw new RangeError("invalid length");if(!r||!n)return t;const o=p(n),e=t.slice();return o(t,e,0,r,1),o(e,t,0,r,1),o(t,e,0,r,1),t}const a=h(p),s=h(function(t){const n=p(t);return(t,r,o,e,f)=>{n(t,r,(o<<=2)+0,(e<<=2)+0,f<<=2),n(t,r,o+1,e+1,f),n(t,r,o+2,e+2,f),n(t,r,o+3,e+3,f)}});function h(t){return function(n,r,o=r){if(!((r=+r)>=0))throw new RangeError("invalid rx");if(!((o=+o)>=0))throw new RangeError("invalid ry");let{data:e,width:f,height:i}=n;if(!((f=Math.floor(f))>=0))throw new RangeError("invalid width");if(!((i=Math.floor(void 0!==i?i:e.length/f))>=0))throw new RangeError("invalid height");if(!f||!i||!r&&!o)return n;const u=r&&t(r),l=o&&t(o),c=e.slice();return u&&l?(d(u,c,e,f,i),d(u,e,c,f,i),d(u,c,e,f,i),y(l,e,c,f,i),y(l,c,e,f,i),y(l,e,c,f,i)):u?(d(u,e,c,f,i),d(u,c,e,f,i),d(u,e,c,f,i)):l&&(y(l,e,c,f,i),y(l,c,e,f,i),y(l,e,c,f,i)),n}}function d(t,n,r,o,e){for(let f=0,i=o*e;f<i;)t(n,r,f,f+=o,1)}function y(t,n,r,o,e){for(let f=0,i=o*e;f<o;++f)t(n,r,f,f+i,o)}function p(t){const n=Math.floor(t);if(n===t)return function(t){const n=2*t+1;return(r,o,e,f,i)=>{if(!((f-=i)>=e))return;let u=t*o[e];const l=i*t;for(let t=e,n=e+l;t<n;t+=i)u+=o[Math.min(f,t)];for(let t=e,c=f;t<=c;t+=i)u+=o[Math.min(f,t+l)],r[t]=u/n,u-=o[Math.max(e,t-l)]}}(t);const r=t-n,o=2*t+1;return(t,e,f,i,u)=>{if(!((i-=u)>=f))return;let l=n*e[f];const c=u*n,a=c+u;for(let t=f,n=f+c;t<n;t+=u)l+=e[Math.min(i,t)];for(let n=f,s=i;n<=s;n+=u)l+=e[Math.min(i,n+c)],t[n]=(l+r*(e[Math.max(f,n-a)]+e[Math.min(i,n+a)]))/o,l-=e[Math.max(f,n-c)]}}function M(t,n){let r=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&++r;else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(e=+e)>=e&&++r}return r}function v(t){return 0|t.length}function w(t){return!(t>0)}function g(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function m(...t){const n="function"==typeof t[t.length-1]&&function(t){return n=>t(...n)}(t.pop()),r=(t=t.map(g)).map(v),o=t.length-1,e=new Array(o+1).fill(0),f=[];if(o<0||r.some(w))return f;for(;;){f.push(e.map((n,r)=>t[r][n]));let i=o;for(;++e[i]===r[i];){if(0===i)return n?f.map(n):f;e[i--]=0}}}function A(t,n){var r=0,o=0;return Float64Array.from(t,void 0===n?t=>r+=+t||0:e=>r+=+n(e,o++,t)||0)}function b(t,n){let r,o=0,e=0,f=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(r=n-e,e+=r/++o,f+=r*(n-e));else{let i=-1;for(let u of t)null!=(u=n(u,++i,t))&&(u=+u)>=u&&(r=u-e,e+=r/++o,f+=r*(u-e))}if(o>1)return f/(o-1)}function x(t,n){const r=b(t,n);return r?Math.sqrt(r):r}function N(t,n){let r,o;if(void 0===n)for(const n of t)null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)));else{let e=-1;for(let f of t)null!=(f=n(f,++e,t))&&(void 0===r?f>=f&&(r=o=f):(r>f&&(r=f),o<f&&(o=f)))}return[r,o]}class E{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let o=0;o<this._n&&o<32;o++){const e=n[o],f=t+e,i=Math.abs(t)<Math.abs(e)?t-(f-e):e-(f-t);i&&(n[r++]=i),t=f}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n,r,o,e=this._n,f=0;if(e>0){for(f=t[--e];e>0&&(n=f,r=t[--e],f=n+r,o=r-(f-n),!o););e>0&&(o<0&&t[e-1]<0||o>0&&t[e-1]>0)&&(r=2*o,n=f+r,r==n-f&&(f=n))}return f}}function _(t,n){const r=new E;if(void 0===n)for(let n of t)(n=+n)&&r.add(n);else{let o=-1;for(let e of t)(e=+n(e,++o,t))&&r.add(e)}return+r}function T(t,n){const r=new E;let o=-1;return Float64Array.from(t,void 0===n?t=>r.add(+t||0):e=>r.add(+n(e,++o,t)||0))}class InternMap extends Map{constructor(t,n=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(F(this,t))}has(t){return super.has(F(this,t))}set(t,n){return super.set(S(this,t),n)}delete(t){return super.delete(j(this,t))}}class InternSet extends Set{constructor(t,n=k){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(F(this,t))}add(t){return super.add(S(this,t))}delete(t){return super.delete(j(this,t))}}function F({_intern:t,_key:n},r){const o=n(r);return t.has(o)?t.get(o):r}function S({_intern:t,_key:n},r){const o=n(r);return t.has(o)?t.get(o):(t.set(o,r),r)}function j({_intern:t,_key:n},r){const o=n(r);return t.has(o)&&(r=t.get(o),t.delete(o)),r}function k(t){return null!==t&&"object"==typeof t?t.valueOf():t}function O(t){return t}function R(t,...n){return H(t,O,O,n)}function q(t,...n){return H(t,Array.from,O,n)}function U(t,n){for(let r=1,o=n.length;r<o;++r)t=t.flatMap(t=>t.pop().map(([n,r])=>[...t,n,r]));return t}function P(t,...n){return U(q(t,...n),n)}function L(t,n,...r){return U(B(t,n,...r),r)}function z(t,n,...r){return H(t,O,n,r)}function B(t,n,...r){return H(t,Array.from,n,r)}function C(t,...n){return H(t,O,G,n)}function D(t,...n){return H(t,Array.from,G,n)}function G(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function H(t,n,r,o){return function t(e,f){if(f>=o.length)return r(e);const i=new InternMap,u=o[f++];let l=-1;for(const t of e){const n=u(t,++l,e),r=i.get(n);r?r.push(t):i.set(n,[t])}for(const[n,r]of i)i.set(n,t(r,f));return n(i)}(t,0)}function I(t,n){return Array.from(n,n=>t[n])}function J(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[r]=n;if(r&&2!==r.length||n.length>1){const o=Uint32Array.from(t,(t,n)=>n);return n.length>1?(n=n.map(n=>t.map(n)),o.sort((t,r)=>{for(const o of n){const n=Q(o[t],o[r]);if(n)return n}})):(r=t.map(r),o.sort((t,n)=>Q(r[t],r[n]))),I(t,o)}return t.sort(K(r))}function K(n=t){if(n===t)return Q;if("function"!=typeof n)throw new TypeError("compare is not a function");return(t,r)=>{const o=n(t,r);return o||0===o?o:(0===n(r,r))-(0===n(t,t))}}function Q(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function V(n,r,o){return(2!==r.length?J(z(n,r,o),([n,r],[o,e])=>t(r,e)||t(n,o)):J(R(n,o),([n,o],[e,f])=>r(o,f)||t(n,e))).map(([t])=>t)}var W=Array.prototype.slice;function X(t){return()=>t}const Y=Math.sqrt(50),Z=Math.sqrt(10),$=Math.sqrt(2);function tt(t,n,r){const o=(n-t)/Math.max(0,r),e=Math.floor(Math.log10(o)),f=o/Math.pow(10,e),i=f>=Y?10:f>=Z?5:f>=$?2:1;let u,l,c;return e<0?(c=Math.pow(10,-e)/i,u=Math.round(t*c),l=Math.round(n*c),u/c<t&&++u,l/c>n&&--l,c=-c):(c=Math.pow(10,e)*i,u=Math.round(t/c),l=Math.round(n/c),u*c<t&&++u,l*c>n&&--l),l<u&&.5<=r&&r<2?tt(t,n,2*r):[u,l,c]}function nt(t,n,r){if(!((r=+r)>0))return[];if((t=+t)===(n=+n))return[t];const o=n<t,[e,f,i]=o?tt(n,t,r):tt(t,n,r);if(!(f>=e))return[];const u=f-e+1,l=new Array(u);if(o)if(i<0)for(let t=0;t<u;++t)l[t]=(f-t)/-i;else for(let t=0;t<u;++t)l[t]=(f-t)*i;else if(i<0)for(let t=0;t<u;++t)l[t]=(e+t)/-i;else for(let t=0;t<u;++t)l[t]=(e+t)*i;return l}function rt(t,n,r){return tt(t=+t,n=+n,r=+r)[2]}function ot(t,n,r){r=+r;const o=(n=+n)<(t=+t),e=o?rt(n,t,r):rt(t,n,r);return(o?-1:1)*(e<0?1/-e:e)}function et(t,n,r){let o;for(;;){const e=rt(t,n,r);if(e===o||0===e||!isFinite(e))return[t,n];if(e>0){const r=Math.ceil(t/e),o=Math.floor(n/e);t=(r-(r*e>t))*e,n=(o+(o*e<n))*e}else if(e<0){const r=-e,o=Math.ceil(t*r),f=Math.floor(n*r);t=(o-(o/r>t))/r,n=(f+(f/r<n))/r}o=e}}function ft(t){return Math.max(1,Math.ceil(Math.log(M(t))/Math.LN2)+1)}function it(){var t=O,n=N,r=ft;function o(o){Array.isArray(o)||(o=Array.from(o));var e,f,u,l=o.length,c=new Array(l);for(e=0;e<l;++e)c[e]=t(o[e],e,o);var a=n(c),s=a[0],h=a[1],d=r(c,s,h);if(!Array.isArray(d)){const t=h,r=+d;if(n===N&&([s,h]=et(s,h,r)),(d=nt(s,h,r))[0]<=s&&(u=rt(s,h,r)),d[d.length-1]>=h)if(t>=h&&n===N){const t=rt(s,h,r);isFinite(t)&&(t>0?h=(Math.floor(h/t)+1)*t:t<0&&(h=(Math.ceil(h*-t)+1)/-t))}else d.pop()}for(var y=d.length,p=0,M=y;d[p]<=s;)++p;for(;d[M-1]>h;)--M;(p||M<y)&&(d=d.slice(p,M),y=M-p);var v,w=new Array(y+1);for(e=0;e<=y;++e)(v=w[e]=[]).x0=e>0?d[e-1]:s,v.x1=e<y?d[e]:h;if(isFinite(u)){if(u>0)for(e=0;e<l;++e)null!=(f=c[e])&&s<=f&&f<=h&&w[Math.min(y,Math.floor((f-s)/u))].push(o[e]);else if(u<0)for(e=0;e<l;++e)if(null!=(f=c[e])&&s<=f&&f<=h){const t=Math.floor((s-f)*u);w[Math.min(y,t+(d[t]<=f))].push(o[e])}}else for(e=0;e<l;++e)null!=(f=c[e])&&s<=f&&f<=h&&w[i(d,f,0,y)].push(o[e]);return w}return o.value=function(n){return arguments.length?(t="function"==typeof n?n:X(n),o):t},o.domain=function(t){return arguments.length?(n="function"==typeof t?t:X([t[0],t[1]]),o):n},o.thresholds=function(t){return arguments.length?(r="function"==typeof t?t:X(Array.isArray(t)?W.call(t):t),o):r},o}function ut(t,n){let r;if(void 0===n)for(const n of t)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(r<e||void 0===r&&e>=e)&&(r=e)}return r}function lt(t,n){let r,o=-1,e=-1;if(void 0===n)for(const n of t)++e,null!=n&&(r<n||void 0===r&&n>=n)&&(r=n,o=e);else for(let f of t)null!=(f=n(f,++e,t))&&(r<f||void 0===r&&f>=f)&&(r=f,o=e);return o}function ct(t,n){let r;if(void 0===n)for(const n of t)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&(r>e||void 0===r&&e>=e)&&(r=e)}return r}function at(t,n){let r,o=-1,e=-1;if(void 0===n)for(const n of t)++e,null!=n&&(r>n||void 0===r&&n>=n)&&(r=n,o=e);else for(let f of t)null!=(f=n(f,++e,t))&&(r>f||void 0===r&&f>=f)&&(r=f,o=e);return o}function st(t,n,r=0,o=1/0,e){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),o=Math.floor(Math.min(t.length-1,o)),!(r<=n&&n<=o))return t;for(e=void 0===e?Q:K(e);o>r;){if(o-r>600){const f=o-r+1,i=n-r+1,u=Math.log(f),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(f-l)/f)*(i-f/2<0?-1:1);st(t,n,Math.max(r,Math.floor(n-i*l/f+c)),Math.min(o,Math.floor(n+(f-i)*l/f+c)),e)}const f=t[n];let i=r,u=o;for(ht(t,r,n),e(t[o],f)>0&&ht(t,r,o);i<u;){for(ht(t,i,u),++i,--u;e(t[i],f)<0;)++i;for(;e(t[u],f)>0;)--u}0===e(t[r],f)?ht(t,r,u):(++u,ht(t,u,o)),u<=n&&(r=u+1),n<=u&&(o=u-1)}return t}function ht(t,n,r){const o=t[n];t[n]=t[r],t[r]=o}function dt(n,r=t){let o,e=!1;if(1===r.length){let f;for(const i of n){const n=r(i);(e?t(n,f)>0:0===t(n,n))&&(o=i,f=n,e=!0)}}else for(const t of n)(e?r(t,o)>0:0===r(t,t))&&(o=t,e=!0);return o}function yt(t,n,r){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(o=+o)>=o&&(yield o)}}(t,r)),(o=t.length)&&!isNaN(n=+n)){if(n<=0||o<2)return ct(t);if(n>=1)return ut(t);var o,e=(o-1)*n,f=Math.floor(e),i=ut(st(t,f).subarray(0,f+1));return i+(ct(t.subarray(f+1))-i)*(e-f)}}function pt(t,n,r=e){if((o=t.length)&&!isNaN(n=+n)){if(n<=0||o<2)return+r(t[0],0,t);if(n>=1)return+r(t[o-1],o-1,t);var o,f=(o-1)*n,i=Math.floor(f),u=+r(t[i],i,t);return u+(+r(t[i+1],i+1,t)-u)*(f-i)}}function Mt(t,n,r=e){if(!isNaN(n=+n)){if(o=Float64Array.from(t,(n,o)=>e(r(t[o],o,t))),n<=0)return at(o);if(n>=1)return lt(o);var o,f=Uint32Array.from(t,(t,n)=>n),i=o.length-1,u=Math.floor(i*n);return st(f,u,0,i,(t,n)=>Q(o[t],o[n])),(u=dt(f.subarray(0,u+1),t=>o[t]))>=0?u:-1}}function vt(t,n,r){const o=M(t),e=yt(t,.75)-yt(t,.25);return o&&e?Math.ceil((r-n)/(2*e*Math.pow(o,-1/3))):1}function wt(t,n,r){const o=M(t),e=x(t);return o&&e?Math.ceil((r-n)*Math.cbrt(o)/(3.49*e)):1}function gt(t,n){let r=0,o=0;if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(++r,o+=n);else{let e=-1;for(let f of t)null!=(f=n(f,++e,t))&&(f=+f)>=f&&(++r,o+=f)}if(r)return o/r}function mt(t,n){return yt(t,.5,n)}function At(t,n){return Mt(t,.5,n)}function bt(t){return Array.from(function*(t){for(const n of t)yield*n}(t))}function xt(t,n){const r=new InternMap;if(void 0===n)for(let n of t)null!=n&&n>=n&&r.set(n,(r.get(n)||0)+1);else{let o=-1;for(let e of t)null!=(e=n(e,++o,t))&&e>=e&&r.set(e,(r.get(e)||0)+1)}let o,e=0;for(const[t,n]of r)n>e&&(e=n,o=t);return o}function Nt(t,n=Et){const r=[];let o,e=!1;for(const f of t)e&&r.push(n(o,f)),o=f,e=!0;return r}function Et(t,n){return[t,n]}function _t(t,n,r){t=+t,n=+n,r=(e=arguments.length)<2?(n=t,t=0,1):e<3?1:+r;for(var o=-1,e=0|Math.max(0,Math.ceil((n-t)/r)),f=new Array(e);++o<e;)f[o]=t+o*r;return f}function Tt(n,r=t){if("function"!=typeof n[Symbol.iterator])throw new TypeError("values is not iterable");let o=Array.from(n);const e=new Float64Array(o.length);2!==r.length&&(o=o.map(r),r=t);const f=(t,n)=>r(o[t],o[n]);let i,u;return(n=Uint32Array.from(o,(t,n)=>n)).sort(r===t?(t,n)=>Q(o[t],o[n]):K(f)),n.forEach((t,n)=>{const r=f(t,void 0===i?t:i);r>=0?((void 0===i||r>0)&&(i=t,u=n),e[t]=u):e[t]=NaN}),e}function Ft(n,r=t){let o,e=!1;if(1===r.length){let f;for(const i of n){const n=r(i);(e?t(n,f)<0:0===t(n,n))&&(o=i,f=n,e=!0)}}else for(const t of n)(e?r(t,o)<0:0===r(t,t))&&(o=t,e=!0);return o}function St(n,r=t){if(1===r.length)return at(n,r);let o,e=-1,f=-1;for(const t of n)++f,(e<0?0===r(t,t):r(t,o)<0)&&(o=t,e=f);return e}function jt(n,r=t){if(1===r.length)return lt(n,r);let o,e=-1,f=-1;for(const t of n)++f,(e<0?0===r(t,t):r(t,o)>0)&&(o=t,e=f);return e}function kt(t,n){const r=St(t,n);return r<0?void 0:r}var Ot=Rt(Math.random);function Rt(t){return function(n,r=0,o=n.length){let e=o-(r=+r);for(;e;){const o=t()*e--|0,f=n[e+r];n[e+r]=n[o+r],n[o+r]=f}return n}}function qt(t,n){let r=0;if(void 0===n)for(let n of t)(n=+n)&&(r+=n);else{let o=-1;for(let e of t)(e=+n(e,++o,t))&&(r+=e)}return r}function Ut(t){if(!(e=t.length))return[];for(var n=-1,r=ct(t,Pt),o=new Array(r);++n<r;)for(var e,f=-1,i=o[n]=new Array(e);++f<e;)i[f]=t[f][n];return o}function Pt(t){return t.length}function Lt(){return Ut(arguments)}function zt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let r=-1;for(const o of t)if(!n(o,++r,t))return!1;return!0}function Bt(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");let r=-1;for(const o of t)if(n(o,++r,t))return!0;return!1}function Ct(t,n){if("function"!=typeof n)throw new TypeError("test is not a function");const r=[];let o=-1;for(const e of t)n(e,++o,t)&&r.push(e);return r}function Dt(t,n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");if("function"!=typeof n)throw new TypeError("mapper is not a function");return Array.from(t,(r,o)=>n(r,o,t))}function Gt(t,n,r){if("function"!=typeof n)throw new TypeError("reducer is not a function");const o=t[Symbol.iterator]();let e,f,i=-1;if(arguments.length<3){if(({done:e,value:r}=o.next()),e)return;++i}for(;({done:e,value:f}=o.next()),!e;)r=n(r,f,++i,t);return r}function Ht(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function It(t,...n){t=new InternSet(t);for(const r of n)for(const n of r)t.delete(n);return t}function Jt(t,n){const r=n[Symbol.iterator](),o=new InternSet;for(const n of t){if(o.has(n))return!1;let t,e;for(;({value:t,done:e}=r.next())&&!e;){if(Object.is(n,t))return!1;o.add(t)}}return!0}function Kt(t,...n){t=new InternSet(t),n=n.map(Qt);t:for(const r of t)for(const o of n)if(!o.has(r)){t.delete(r);continue t}return t}function Qt(t){return t instanceof InternSet?t:new InternSet(t)}function Vt(t,n){const r=t[Symbol.iterator](),o=new Set;for(const t of n){const n=Wt(t);if(o.has(n))continue;let e,f;for(;({value:e,done:f}=r.next());){if(f)return!1;const t=Wt(e);if(o.add(t),Object.is(n,t))break}}return!0}function Wt(t){return null!==t&&"object"==typeof t?t.valueOf():t}function Xt(t,n){return Vt(n,t)}function Yt(...t){const n=new InternSet;for(const r of t)for(const t of r)n.add(t);return n}export{E as Adder,InternMap,InternSet,t as ascending,it as bin,i as bisect,l as bisectCenter,u as bisectLeft,i as bisectRight,r as bisector,c as blur,a as blur2,s as blurImage,M as count,m as cross,A as cumsum,n as descending,x as deviation,It as difference,Jt as disjoint,zt as every,N as extent,T as fcumsum,Ct as filter,P as flatGroup,L as flatRollup,_ as fsum,dt as greatest,jt as greatestIndex,R as group,V as groupSort,q as groups,it as histogram,C as index,D as indexes,Kt as intersection,Ft as least,St as leastIndex,Dt as map,ut as max,lt as maxIndex,gt as mean,mt as median,At as medianIndex,bt as merge,ct as min,at as minIndex,xt as mode,et as nice,Nt as pairs,I as permute,yt as quantile,Mt as quantileIndex,pt as quantileSorted,st as quickselect,_t as range,Tt as rank,Gt as reduce,Ht as reverse,z as rollup,B as rollups,kt as scan,Ot as shuffle,Rt as shuffler,Bt as some,J as sort,Xt as subset,qt as sum,Vt as superset,vt as thresholdFreedmanDiaconis,wt as thresholdScott,ft as thresholdSturges,rt as tickIncrement,ot as tickStep,nt as ticks,Ut as transpose,Yt as union,b as variance,Lt as zip};