define(["require","exports","tslib","../../Validation","./tools","esri/tasks/GeometryService"],function(e,i,t,r,o,s){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),s=t.__importDefault(s);n.prototype.execute=function(e,i){var t=r.validation.string("url",e.url,r.validation.never),n=r.validation.exists("geometry",e.geometry),a=r.validation.exists("reshaper",e.reshaper),e=new s.default(t),t=o.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,t=e.reshape(n,a,t);return o.schedulePromiseCancellation(i,t),o.inline(t,function(e){return{geometry:e}})},n.action="gcx:wf:arcgis::ReshapeServiceTask",n.suite="gcx:wf:builtin",t=n;function n(){}i.ReshapeServiceTask=t});