// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("exports ../../core/quantityUtils ../../core/unitUtils ../../chunks/vec32 ../../core/libs/gl-matrix-2/factories/vec3f64 ../../geometry/projection/projectVectorToVector ../../geometry/support/spatialReferenceUtils ./measurementUtils".split(" "),function(f,k,y,r,p,z,t,D){function E(a,b){const {hasZ:c,spatialReference:n}=a;var l=D.computeEuclideanMeasurementSR(n);let m=0;l=y.lengthUnitFromSpatialReference(l);if(null==l)return null;b=b===h.Direct?A:B;for(const u of a.paths)if(!(2>u.length)){a= u.length-1;for(let v=0;v