/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../chunks/languageUtils","./fieldStats"],(function(n,t,r){"use strict";function e(n,e,u,i){if(1===i.length){if(t.isArray(i[0]))return r.calculateStat(n,i[0],-1);if(t.isImmutableArray(i[0]))return r.calculateStat(n,i[0].toArray(),-1)}return r.calculateStat(n,i,-1)}function u(n,r){n.stdev=function(n,t){return r(n,t,(function(n,t,r){return e("stdev",n,t,r)}))},n.variance=function(n,t){return r(n,t,(function(n,t,r){return e("variance",n,t,r)}))},n.average=function(n,t){return r(n,t,(function(n,t,r){return e("mean",n,t,r)}))},n.mean=function(n,t){return r(n,t,(function(n,t,r){return e("mean",n,t,r)}))},n.sum=function(n,t){return r(n,t,(function(n,t,r){return e("sum",n,t,r)}))},n.min=function(n,t){return r(n,t,(function(n,t,r){return e("min",n,t,r)}))},n.max=function(n,t){return r(n,t,(function(n,t,r){return e("max",n,t,r)}))},n.distinct=function(n,t){return r(n,t,(function(n,t,r){return e("distinct",n,t,r)}))},n.count=function(n,e){return r(n,e,(function(n,r,e){if(t.pcCheck(e,1,1),t.isArray(e[0])||t.isString(e[0]))return e[0].length;if(t.isImmutableArray(e[0]))return e[0].length();throw new Error("Invalid Parameters for Count")}))}}n.registerFunctions=u,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
