!function(e){"object"==typeof module&&"object"==typeof module.exports?e(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","./esriDelegate!esri/geometry/SpatialReference","../../Validation","./tools","esri/tasks/GeometryService"],e)}(function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=e("tslib"),s=e("./esriDelegate!esri/geometry/SpatialReference"),d=e("../../Validation"),l=e("./tools"),c=n.__importDefault(e("esri/tasks/GeometryService")),e=(o.prototype.execute=function(e,i){var n=d.validation.string("url",e.url,d.validation.never),o=d.validation.exists("spatialReference",e.spatialReference),t=d.validation.exists("coordinates",e.coordinates),a=d.validation.string("conversionType",e.conversionType),r="object"==typeof o?o:void 0;"number"==typeof o&&(r=new s.SpatialReference({wkid:o}));a={sr:r="string"==typeof o?new s.SpatialReference({wkt:o}):r,coordinates:t,conversionType:a};null!==e.conversionMode&&void 0!==e.conversionMode&&(a.conversionMode=d.validation.string("conversionMode",e.conversionMode)),null!==e.numOfDigits&&void 0!==e.numOfDigits&&(a.numOfDigits=d.validation.number("numOfDigits",e.numOfDigits)),null!==e.rounding&&void 0!==e.rounding&&(a.rounding=d.validation.boolean("rounding",a.rounding)),null!==e.addSpaces&&void 0!==e.addSpaces&&(a.addSpaces=d.validation.boolean("addSpaces",e.addSpaces));e=new c.default(n),n=l.isAbortable(i.cancellationToken)?{signal:i.cancellationToken.signal}:void 0,n=e.toGeoCoordinateString(a,n);return l.schedulePromiseCancellation(i,n),l.inline(n,function(e){return{strings:e}})},o.action="gcx:wf:arcgis::ToGeoCoordinateStringServiceTask",o.suite="gcx:wf:builtin",o);function o(){}i.ToGeoCoordinateStringServiceTask=e});