define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,i,t,r,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=(a.prototype.executeUsing=function(e,i,n){return e?o.geodesicArea(i,n):o.planarArea(i,n)},a.prototype.execute=function(e){var i=t.validation.exists("geometry",e.geometry),n=t.validation.boolean("geodesic",e.geodesic,!1),e=this.executeUsing(n,i,e.unit);return r.inline(e,function(e){return{area:e}})},a.action="gcx:wf:arcgis::AreaEngineTask",a.suite="gcx:wf:builtin",a);function a(){}i.AreaEngineTask=n});