!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],e)}(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("../../Validation"),o=e("./tools"),r=e("esri/geometry/geometryEngineAsync"),e=(i.prototype.executeUsing=function(e,t,i){switch(e){case"horizontal":return r.flipHorizontal(t,i);case"vertical":return r.flipVertical(t,i)}},i.prototype.execute=function(e){var t=n.validation.exists("geometry",e.geometry),i=n.validation.string("orientation",e.orientation),e=this.executeUsing(i,t,e.origin);return o.inline(e,function(e){return{geometry:e}})},i.action="gcx:wf:arcgis::FlipEngineTask",i.suite="gcx:wf:builtin",i);function i(){}t.FlipEngineTask=e});