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