!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.execute=function(e){var t=n.validation.exists("geometry1",e.geometry1),i=n.validation.exists("geometry2",e.geometry2),e=r.distance(t,i,e.unit);return o.inline(e,function(e){return{distance:e}})},i.action="gcx:wf:arcgis::DistanceEngineTask",i.suite="gcx:wf:builtin",i);function i(){}t.DistanceEngineTask=e});