import{validation}from"../../Validation.js";import{inline,isAbortable,schedulePromiseCancellation}from"./tools.js";import GeometryService from"@arcgis/core/tasks/GeometryService";class LabelPointsServiceTask{execute(e,i){var a=validation.string("url",e.url,validation.never),e=validation.array("geometry",e.geometry,validation.never);const o=new GeometryService(a);a=isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,a=o.labelPoints(e,a);return schedulePromiseCancellation(i,a),inline(a,function(e){return{points:e}})}}LabelPointsServiceTask.action="gcx:wf:arcgis::LabelPointsServiceTask",LabelPointsServiceTask.suite="gcx:wf:builtin";export{LabelPointsServiceTask};