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