define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,t,i,n,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(s.prototype.execute=function(e){var t=i.validation.exists("geometry",e.geometry),e=i.validation.exists("extent",e.extent);e&&"polygon"==e.type&&(e=n.extentOf([e]));e=o.clip(t,e);return n.inline(e,function(e){return{geometry:e}})},s.action="gcx:wf:arcgis::ClipEngineTask",s.suite="gcx:wf:builtin",s);function s(){}t.ClipEngineTask=r});