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