import{validation}from"../../Validation.js";import{inline}from"./tools.js";import{distance}from"@arcgis/core/geometry/geometryEngineAsync";class DistanceEngineTask{execute(i){var e=validation.exists("geometry1",i.geometry1),n=validation.exists("geometry2",i.geometry2),i=distance(e,n,i.unit);return inline(i,function(i){return{distance:i}})}}DistanceEngineTask.action="gcx:wf:arcgis::DistanceEngineTask",DistanceEngineTask.suite="gcx:wf:builtin";export{DistanceEngineTask};