define(["require","exports","../../Validation","./tools","esri/geometry/geometryEngineAsync"],function(e,t,i,s,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(o.prototype.executeWith=function(e,t,r){switch(e){case"contains":return n.contains(t,r);case"crosses":return n.crosses(t,r);case"disjoint":return n.disjoint(t,r);case"equals":return n.equals(t,r);case"intersects":return n.intersects(t,r);case"overlaps":return n.overlaps(t,r);case"touches":return n.touches(t,r);case"within":return n.within(t,r)}},o.prototype.execute=function(e){var t=i.validation.exists("geometry1",e.geometry1),r=i.validation.exists("geometry2",e.geometry2),e=i.validation.string("operation",e.operation),r=this.executeWith(e,t,r);return s.inline(r,function(e){return{result:e}})},o.action="gcx:wf:arcgis::CompareGeometries",o.suite="gcx:wf:builtin",o);function o(){}t.CompareGeometries=r});